Yahoo! Query Language - Hadoop India Summit 2011
-
Upload
saurabh-sahni -
Category
Technology
-
view
1.626 -
download
2
description
Transcript of Yahoo! Query Language - Hadoop India Summit 2011
1 Hadoop India Summit 2011
Saurabh Sahni Developer, Hacker, Evangelist
YQL is a Cloud web service and SQL-Like Language
Filter, combine, tweak data across hundreds of Web Services.
http://developer.yahoo.com/yql
http://developer.yahoo.com/yql/console/
4
SELECT * FROM Internet " Building Queries and Stuff
Mashup with 1000+ APIs on web
6
INSERT INTO bitly.shorten (login, apiKey, longUrl)
VALUES (’ME', 'API_KEY', 'http://yahoo.com')
Running Queries - INSERT Query Structure
7
UPDATE social.profile.status
SET status="Using YQL UPDATE"
WHERE guid=“NJFIDHVPVVISDXZKT7UKED2WHU”
Running Queries - UPDATE Query Structure
8
SELECT * FROM flickr.photos.search WHERE (lat, lon) IN (SELECT centroid.latitude, centroid.longitude
FROM geo.places WHERE text="SFO")
Running Queries – Sub-selects with the IN clause
Translating Tweets to Hindi
Storage in Cloud
Storage in Cloud
Have An API?
Make your API YQL Accessible with Open Data Tables
Add YQL tables for any data or API on the Web
Join 100s of other API providers
1000+ Examples: http://github.com/yql/yql-tables
More - http://www.datatables.org/
14
Extend open tables - Run server-side javascript on cloud
Access APIs that require authentication - Netflix OAuth, FlickrAuth, Google AuthSub
Augment data - City / state to APIs that just return zip code
Create APIs from web pages - Celebrity birthdays scraped from IMDB
YQL Execute
15
Build applications faster, that run faster
TRY Now - http://developer.yahoo.com/yql
Questions?
Saurabh Sahni @saurabhsahni www.saurabhsahni.com