Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Yahoo! Query Language - Hadoop India Summit 2011

2,103 views

Published on

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

Published in: Technology
  • Be the first to comment

  • Be the first to like this

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

×