2007年2月19日月曜日

Yahoo!pipes:union


 昨日までunionモジュールは2つの入力ができるようになっていたんだけど、今日見た見たら、入力ポイントが5つに増えていた。要望があって改修したのだろうか…。もともと!?

A Complete List of Pipes Modules:Yahoo!pipes

テキスト解析(Content Analysis)

This module analyzes the text within each feed item. It will try to find significant words or phrases and add a sub-element called "y:content_analysis" containing the results of the analysis.

このモジュールは、それぞれのフィードアイテムに含まれるテキストを分析するモジュールです。これは重要な単語もしくは句を見つけ出す。また分析の結果を含むy:content_analysisと呼ばれるサブエレメントを付け加える。

Operators

This Pipe demonstrates how you can use the Content Analysis module.

カウント(Count)

This module counts the number of items in a feed. The result is a typed number that you can pipe into a numeric
input field within another module.

このモジュールは、フィードのitemの数を数えます。この結果は、ほかのモジュールの数字を入力するフィールドにパイプ(なが)してあげることが出来ます。

Operators

This Pipe demonstrates how you can use the Count module.

Dateフォーマッタ(Date Formatter)

This module will format a datetime value piped in from another module as a string.

このモジュールは、文字列として他のモジュールからパイプされた日付の値をフォーマットします。

Date

This Pipe demonstrates how you can use the Date Formatter module.

日付の入力(Date Input)

This module accepts user-defined date strings. These values can be piped in to date input fields in another
module. This module can also be used to let users provide their own input on the Pipe's run page.

このモジュールは、ユーザー定義の日付文字列を受け入れます。これらの値は、ほかのモジュールの日付入力フィールドにパイプすることが出来ます。

User Inputs

This Pipe demonstrates how you can use the Date Input module.

Fetch URL

This module retrieves one or more Atom, RDF, or RSS feeds from the URL(s) entered in the input box. To add additional sources click on the '+' icon. To delete sources click on the Trash icon.

このモジュールは、入力されたURLから一つのあるいははたくさんのAtom,RDF,RSSを取得する。+アイコンをクリックして他のソースを追加することもできる。


Sources

This Pipe demonstrates how you can use the Fetch module.

フィルター(Filter)

This module can Block or Permit items that match the defined rules. After connecting an input source, the Title pulldown menu dynamically updates to provide additional criteria. The text in the input box can be entered manually or piped in from a Text input module. To add additional rules click on the + icon. To delete sources click on the Trash icon.

このモジュールは、定義したルールにマッチするitemをブロックしたり許可したり出来る。入力ソースに接続したのち、タイトルのプルダウンメニューは追加の基準を提供するためにダイナミック(動的)に更新されます。このフィールドのテキストは、(利用者の入力)ありは、テキスト入力モジュールからパイプされて入力される。ルールを追加するには、+アイコンをクリックします。ゴミ箱アイコンをクリックすると削除できます。

Operators

This Pipe demonstrates how you can use the Filter module.

フリッカーモジュール(Flickr)

This module searches Flickr for images using the supplied parameters. Users can refine the search by entering keywords, the number of desired results, and a location. The string in the input boxes can be entered manually or piped in from a User Input module.

このモジュールは与えられたパラメータを使って、フリッカーの画像を検索します。利用者はキーワードを追加したり、結果の件数を設定したり、場所を指定したりすることによりゴミを取り除くことができます。入力フォームの文字列は手動の入力でもユーザー入力モジュールからのパイプもいけます。

Sources

This Pipe demonstrates how you can use the Flickr module.

For Each Replace

This module will run an enclosed sub-module or pipe one time for each item in the feed. The output will replace the original item. After connecting an input source, any pulldown menus in a sub-module will dynamically update to provide additional criteria. You can choose which values to pass to the sub-module as parameters, or you can pipe them in from other modules.

このモジュールはFEEDの中のそれぞれのitemにサブモジュールを適用したり、パイプを実装したりする。この出力はオリジナルのitemを上書きする。ある入力ソースに接続したら、すべてのサブモジュールの要素は動的にアップデートされる。パラメータとしてサブモジュールに値を渡すか他のモジュールからパイプしてくるか選ぶことができる。

Operators

This Pipe demonstrates how you can use the For Each Replace module.

For Each Annotate

This module constructs a loop that runs the sub-module, or pipe, once for each item in the feed. The output result will be appended to the original item using the defined attribute name. After connecting an input source any pulldown menus in a sub-module will dynamically update to provide additional criteria. You can choose which values to pass to the sub-module as parameters, or you can pipe them in from other modules.

このモジュールはFEEDに含まれるそれぞれのitemをサブモジュールやパイプ、をループ処理させることができる。この出力は定義されたアトリビュート(属性)でオリジナルに追加される。入力ソースを接続すると動的にプルダウンメニューアップデートされる。パラメータとしてサブモジュールに値を渡すか他のモジュールからパイプしてくるか選ぶことができる。

Operators

This Pipe demonstrates how you can use the For Each Annotate module.

Google Base

This module searches Google Base data using the supplied parameters. Users can refine the search by entering keywords, what they are looking for, and restricting the results to a geographic range. You can enter a string in the input box or pipe it in from a User Input module.

このモジュールはパラメータを与えられたパラメータを使ってグーグルベースのデータを検索します。利用者は探していることのキーワードを追加したり、地理的な制限を指定したりすることによりゴミを取り除くことができます。入力フォームの文字列は手動の入力でもユーザー入力モジュールからのパイプもいけます。

Sources

This Pipe demonstrates how you can use the Google Base module.

Location Extractor

This module analyzes text within each feed item and attempts to identify addresses, location names or popular map service URLs. If the extractor finds geodata in the feed, it will annotate each item with a "y:location" sub-element containing that item's latitude and longitude.

このモジュールはFEEDのそれぞれのitemのテキストを分析し住所、地名、地図サービスのURLの特定を試みます。もしこいつがFEEDデータの中にジオデータを見つけたらy:locationサブモジュールの緯度経度情報を付加する。

Operators

This Pipe demonstrates how you can use the Location Extractor module.

Location Input

This module accepts user-defined location strings. These values can be piped in to other modules or pipes that accept a location as input. This module can also be used to let users enter their own location data on a Pipes run page.

このモジュールは、ユーザー定義のロケーション文字列を受け入れます。これらの値は他のモジュールからパイプしてくることもできるし入力としてある場所をパイプで流してあげることも出来ます。このモジュールはまたPipesのRunページでユーザー自身に場所を入力させることもできます。

User Inputs

This Pipe demonstrates how you can use the Location Input module.

(数字の入力)Number Input

This module accepts user-defined numeric strings. These values can be piped in to other modules or pipes that accept numeric input. This module can also be used to let users enter their own numeric data on a Pipes run page.

このモジュールはユーザー定義の数字を受信します。これらの値は、他のモジュールからパイプされるのもOKだし、ほかのモジュールにパイプしてやることも可能です。このモジュールは提供はPipesのrunページでユーザーに入力させることも出来ます。

User Inputs

This Pipe demonstrates how you can use the Number Input module.

リネーム(Rename)

This module lets you rename or copy item attributes.

このモジュールは、itemの属性をリネームもしくはコピー(複製)することができる。

Operators

This Pipe demonstrates how you can use the Rename module.

並べ替え(Sort)

This module sorts items in ascending or descending order matching the defined rules. After connecting an input source, the Title pulldown menu dynamically updates to provide additional criteria. To add additional rules click on the + icon. To delete sources click on the Trash icon.

このモジュールは、定義されたルールに従い、昇順、降順で並べ替える。入力ソースに接続するとtitleプルダウンメニューが動的に更新されます。ルールを追加するには+アイコンを消すにはゴミ箱アイコンをクリックする。

Operators

This Pipe demonstrates how you can use the Sort module.

文字列連結(String Concatenate)

This module joins multiple item attributes into a single string. Enter the name of each field you want to join together, one per line. You can enter the text in the input boxes manually or pipe it in from an appropriate User Input module. To add additional rules click on the + icon. To delete sources click on the Trash icon.

このモジュールは複数のitemの属性を単一の文字列に連結する。それぞれのフィールドの名前を入力すると一行につき一つになります。マニュアルでテキストを入力できるし、適切なユーザー入力モジュールからのテキストを(連結させて)パイプしてあげることもできる。条件の追加は+アイコン、削除はゴミ箱アイコン。

String

This Pipe demonstrates how you can use the String Concatenate module.

テキスト入力(Text Input)

This module accepts user defined text strings. These values can be piped in to other modules or pipes that accept text input. This module can also be used to let users enter their own text data on a Pipes run page.

このモジュールはユーザー定義の文字列を受け入れる。この値は他のモジュールからパイプされる、またはテキスト入力としてパイプすることもできる。このモジュールはまたPipesのRunページでユーザーに入力としてパイプすることもできる。

User Inputs

This Pipe demonstrates how you can use the Text Input module.

BabelFish

This module automatically translates items from one language into another. Select the language combination you desire from the pulldown menu.

このモジュールは自動的にitemをある言語からほかの言語に翻訳する。プルダウンメニューから言語の組み合わせを選択して使う。

Operators

This Pipe demonstrates how you can use the BabelFish module.

切り詰め(Truncate)

This module limits the number of items that passes through it. You can enter a number manually or pipe it in from a Number Input module.

このモジュールは渡してやるitemの数を制限します。(与える数字は)手動でも数字の入力モジュールからでもOK。

Operator

This Pipe demonstrates how you can use the Truncate module.

結合(Union)

This module merges two feeds together.

2つのFEEDをマージ(結合)する。

Operators

This Pipe demonstrates how you can use the Union module.

ユニーク(Unique)

This module combines items containing identical strings. After connecting an input source, the Title pulldown menu dynamically updates to provide additional criteria. A count of duplicate items will be added as a y:repeat_count element.

このモジュールは同一の文字列を含んでいるitemを結合します。入力データを接続すると、動的にtitleプルダウンが更新されます。複製されたitemのカウントはy:repeat_count要素としてitemに追加されます。

Operators

This Pipe demonstrates how you can use the Unique module.

URLBuilder

This module builds URLs in either traditional or Web 2.0 style query-string format from a series of input fields. If a URL is composed of a series of field-value pairs in the query string, just paste it into the Base input box. The module will automatically parse out the key/value pairs. To build a Web 2.0-style address, enter the Base URL followed by each directory path element on a new line. You can connect the output of the URLBuilder to the input box of a Fetch module. You can pipe in values for any input box from a User Input module, making the URL configurable.

URL

This Pipe demonstrates how you can use the URLBuilder module.

URL Input

This module accepts user-defined URLs. These values can be piped in to other modules or pipes that accept URLs as input. This module can also be used to let users enter their own URLs on a Pipes run page.

User Inputs

This Pipe demonstrates how you can use the URL Input module.

Yahoo! Local

This module searches Yahoo! Local using the supplied parameters. Users can refine the search by entering keywords and restricting the results to a geographic range. The string in the input boxes can be entered manually or piped in from a User Input module.

Sources

This Pipe demonstrates how can use the Yahoo! Local module.

Yahoo! Search

This module searches the web using keywords. Users can refine the search by restricting it to specific URL sources. To add additional source restrictions click on the + icon. To delete sources click on the Trash icon. The string in the input boxes can be entered manually or piped in from a User Input module.

Sources

2007年2月16日金曜日

Yahoo!pipesの使い方(日本語)

 Yahoo!pipesがすごいらしいので、メニューの内容と使い方を 紹介したいと思います。Yahoo!pipesで何ができるかの概要を知りたいかたは、他のサイトがたくさんあるのでそちらをご覧下さい(追ってリンク集も作ります:気長にお待ち下さい)。

 まずYahoo!INCにログインします。日本のヤフーとアカウントが違うので日本のヤフーにしかアカウントがない場合には、こちらにも新しくIDを作る必要があります。

 アカウントが無事できたら、http://pipes.yahoo.com/ にアクセス。そしてログイン。

 早速MyPipesを作ってみたいところですが、どんなことができるかメニューを見てみます。

■右カラムのメニューについて
 ▽Sources(素材)
Yahoo!Search…素材としてYSTの検索結果を利用できる。
Yahoo!Local…素材としてYahoo!Localのお店の情報などが検索出来ます。
Fetch…URLを入力するとデータを取得してくれます。ライブドアの「独女通信」のRSSを入力してみたら難なくとってきました。
Google Base…試してないのでわからんですが、検索語を入力すると結果一覧が取得できるのでしょう。
Flickr…検索語を入力したら結果一覧が取得できるはずです。






▽User inputs(ユーザー入力)…入力ダイアログを表示させます。入力させたい形式を選んで使います。ここで入力された値をSourcesにつないで、素材として入力してやります。

Input…Name,prompt,position,default,debugの項目があります。
Number Input…数字の入力に使います。
Location Input…ZIP(郵便番号)コードを入力すると国名、都市名、緯度経度、都道府県コード、市町村名、緯度、経度が返ってきます。日本のコードでもちゃんと返ってきました。が23区が23Wordsと訳されています。←これであっているのかなぁ
  • countryJapan
  • lat35.698826
  • _original1300015
  • postal1300015
  • state13
  • cityTokyo 23 Wards
  • lon139.793655
  • quality60
Text Input
Date Input

▽Operators(オペレータ:処理モジュール!?)
For Each(Annotate)…foreachする。。。動作未検証です。
For Each(Replace)…foreachする。Sourceモジュールのみドロップ出来るようです。ある入力から得られた値を利用して他のフィードを取ってくるといった動作をさせることができます。
Count…入力素材の要素数をカウントする。
Filter…RSSの<要素>を対象に、「~を含む」「~を含まない」「正規表現にマッチする」「~より大きい」「~より小さい」という条件で入力(素材)にフィルターをかけることができる。
Truncate…入力データの要素の数を制限できる。「最新n件」という指定ができる。
Content Alalysis…内容解析をしてキーワードを抽出してくれる。
Sort…item中のtitle、body、pubdateのいずれかをキーにしてソート(並べ替え)できる。
Babel Fish…翻訳機(英語→日本語もあり)
Location Extractor
Union…2つの入力を混ぜて一つにします。
Unique…行の中の重複をなくします。

▽Url
URL Builder…CGIなどのURLを作成するモジュール。BaseのURLを入力してあげて、あとはキーとその値を入力してあげます。User Inputのモジュールからの入力を値として使うことが出来ます。

▽String
String Concatenate…入力素材の値をフォーマットするのに使います。サンプルでは、Location Inputモジュールでロケーションコードを入力して、その結果返ってくる要素の中からCityとStateの値をカンマで連結するということをやっています。

▽Date
DateFormatter…Filterモジュールに日付を入力するためのフォーマッタ。他のモジュールでもテキストを入力する部分にはつかえるはず(動作未検証)。