document.Yowl.register( "bib", [ "Found a book" ], [ "Found a book" ], null );
select: [ "book" ], where: [ { pattern: [ "?book", "a", "http://somebig.org/book" ], setUserData: true } ] bib-book
document.Yowl.notify( "Found a book", "Found a book", "About to retrieve more information from Amazon via Yahoo! Pipes", "bib", "http://www.amazon.com/favicon.ico", false, 0 );
url: 'http://pipes.yahoo.com/pipes/pipe.run', params: { callbackParamName: '_callback', _id: 'vuUwDiIY3BGcDKmUqGIyXQ', _render: 'json', resource: ${book}, appkey: '1NFRP7K42SQ7A1E1W982' }
for (var i = 0; i != context.data.count; i++) { var item = context.data.value.items[i]; document.meta.store.add( "", "${book}", "http://purl.org/dc/elements/1.1/title", { content: item.ItemAttributes.Title, datatype: "http://www.w3.org/1999/02/22-rdf-syntax-ns" }, true ); document.meta.store.add( "", "${book}", "http://xmlns.com/foaf/0.1/depiction", item.ImageSets.ImageSet.SmallImage.URL, false ); }
select: [ "title", "depiction" ], where: [ { pattern: [ "${book}", "a", "http://somebig.org/book" ] }, { pattern: [ "${book}", "http://purl.org/dc/elements/1.1/title", "?title" ], optional: true }, { pattern: [ "${book}", "http://xmlns.com/foaf/0.1/depiction", "?depiction" ], optional: true } ]
if (${title} == undefined) ${title} = { content: "" }; if (${depiction} == undefined) ${depiction} = null; document.Yowl.notify( "Found a book", "Recommended: " + ${title.content}, "Full title and thumbnail retrieved using ISBN number", "bib", ${depiction}, true, 0 );
${title.content}