Yahoo! Query Language - Hadoop India Summit 2011

2,058 views

Published on

A short intro to Yahoo! Query Language (YQL) - select * from internet

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,058
On SlideShare
0
From Embeds
0
Number of Embeds
168
Actions
Shares
0
Downloads
34
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Yahoo! Query Language - Hadoop India Summit 2011

  1. 1. Saurabh SahniDeveloper, Hacker, Evangelist Hadoop India Summit 2011 1
  2. 2. YQL is a Cloud webservice and SQL-LikeLanguage
  3. 3. Filter, combine, tweak data across hundredsof Web Services. http://developer.yahoo.com/yql http://developer.yahoo.com/yql/console/
  4. 4. SELECT * FROM Internet" Building Queries and Stuff 4
  5. 5. Mashup with 1000+ APIs on web
  6. 6. Running Queries - INSERT Query StructureINSERT INTO bitly.shorten (login, apiKey, longUrl)VALUES (’ME, API_KEY, http://yahoo.com) 6
  7. 7. Running Queries - UPDATE Query StructureUPDATE social.profile.statusSET status="Using YQL UPDATE"WHERE guid=“NJFIDHVPVVISDXZKT7UKED2WHU” 7
  8. 8. Running Queries – Sub-selects with the IN clauseSELECT * FROM flickr.photos.searchWHERE (lat, lon)IN (SELECT centroid.latitude, centroid.longitude FROM geo.places WHERE text="SFO") 8
  9. 9. Translating Tweets to Hindi
  10. 10. Storage in Cloud
  11. 11. Storage in Cloud
  12. 12. Have An API?Make your API YQL Accessible withOpen Data TablesAdd YQL tables for any data or API onthe WebJoin 100s of other API providers
  13. 13. 1000+ Examples:http://github.com/yql/yql-tables More - http://www.datatables.org/
  14. 14. YQL ExecuteExtend open tables - Run server-side javascript on cloudAccess APIs that require authentication - Netflix OAuth, FlickrAuth, Google AuthSubAugment data - City / state to APIs that just return zip codeCreate APIs from web pages -  Celebrity birthdays scraped from IMDB 14
  15. 15. Build applications faster, that run fasterTRY Now - http://developer.yahoo.com/yql 15
  16. 16. Questions? Saurabh Sahni @saurabhsahni www.saurabhsahni.com

×