28. You can mix and match
several web services using
the in() command.
29. Guess what this does:
select * from
flickr.photos.info where
photo_id in (select id from
flickr.photos.search where
woe_id in (select woeid from
geo.places where
text='london,uk') and
license=4)
30. Find London, UK, without a
doubt.
select * from
flickr.photos.info where
photo_id in (select id from
flickr.photos.search where
woe_id in (select woeid from
geo.places where
text='london,uk') and
license=4)
31. Find Photos of London, UK
select * from
flickr.photos.info where
photo_id in (select id from
flickr.photos.search where
woe_id in (select woeid from
geo.places where
text='london,uk') and
license=4)
32. Find Photos of London, UK
with a “By” CC license
select * from
flickr.photos.info where
photo_id in (select id from
flickr.photos.search where
woe_id in (select woeid from
geo.places where
text='london,uk') and
license=4)
33. Give me everything you
know about these photos.
select * from
flickr.photos.info where
photo_id in (select id from
flickr.photos.search where
woe_id in (select woeid from
geo.places where
text='london,uk') and
license=4)
34. Using a command like this
and some out-of-the-box UI
elements like Yahoo Maps
and the YUI carousel, you
can build something *very*
quickly.
36. Instead of selecting all the
information you can also
limit the results:
select name,url from
upcoming.venue where metro_id
in (select id from
upcoming.metro where
search_text=quot;stokeyquot;)
49. All we need the data
provider to do is to create a
schema that explains their
data structure.
http://developer.yahoo.com/yql/guide/
yql-opentables-chapter.html
50. And people do…
amazon nmm
bitly nyt
delicious opensocial
dopplr search
etsy shopping
friendfeed social
github twi?er
Greader update.groovy
guardian weather
imdb wesabe
iploca0on whitepages
las>m yahoo
nestoria yelp
ne>lix zillow
http://github.com/spullara/yql-tables/tree/master
51. For example the national
maritime museum:
select * from
nmm.archive.search where
searchterm=‘horatio nelson'
54. The only shame is that you
can’t do all the things in
YQL that you can do in
Pipes – for example string
manipulation.
55. We wondered how to make
this possible.
One thing we didn’t want
to sacrifice is the simplicity
of the language itself.
56. So instead of inventing an
own language, we decided
to piggy-back on one you
already know.
57. YQL execute allows you to
embed JavaScript in the
open table schema that
runs on the YQL server and
converts the data for you.
http://developer.yahoo.com/yql/guide/yql-
execute-chapter.html
58. For example you can
augment an existing service
to do something different.
62. Stored as XML this can be
used in a YQL query:
use 'http://yqlblog.net/
samples/searchrank.xml' as
searchrank;
select * from searchrank where
query='pizza' and dispurl like
'%pizzahut%'
64. Anyways, the *easiest* way
to start with YQL is to use
the console.
http://developer.yahoo.com/yql/console/
74. Of course, you can also
spend half the hack day
reading API docs
75. Check out some code
examples on.
http://isithackday.com/hacks/ohd-london