Taiwan Open Hack 2009: Yahoo! Query Language

2,113 views

Published on

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

No Downloads
Views
Total views
2,113
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
21
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Taiwan Open Hack 2009: Yahoo! Query Language

  1. 1. Erik Eldridge Slideshare.net/erikeldridge Yahoo!Kimo Introduction to the Yahoo! Query Language
  2. 2. Presentation structure • Yahoo! Query Language (YQL) overview • The YQL Console • YQL Open Tables • Examples of YQL usage
  3. 3. YQL = Yahoo! Query Language • SQL-like syntax - SELECT {fields} from {table} WHERE {key} = {value} - SELECT * FROM flickr.photos.search WHERE text=" 臺北 101” - SELECT * FROM html where url=“http://www.wretch.cc/” - SELECT * FROM flickr.photos.search WHERE has_geo="true" and woe_id in (SELECT woeid FROM geo.places WHERE text="taipei" LIMIT 1) • Extensible access to APIs/data • SELECT * FROM Internet
  4. 4. Presentation structure • Yahoo! Query Language (YQL) overview • The YQL Console • YQL Open Tables • Examples of YQL usage
  5. 5. The YQL statement to run The YQL statement to run
  6. 6. Yahoo! starts us off w/ several pre-defined “tables” Predefined YQL data tables
  7. 7. XML response from a public data request Public U R Ls do not require O A uthRaw XML output
  8. 8. Presentation structure • Yahoo! Query Language (YQL) overview • The YQL Console • YQL Open Tables • Examples of YQL usage
  9. 9. Anyone can create a table for yql. Seeing the community tables in the console Now showing community tables Pulling table defs from datatables.org
  10. 10. Anatomy of a simple table showing table url, base api endpoint, and input definitions Tables can be very simple Inputdefinition N ative YQ L query E4X
  11. 11. Using a custom table in the console Specifying table w/ “use” Transcript HTML output
  12. 12. All community tables in the console are open source and available in githubDefault behavior of the Yahoo! Weather table C om m unity tables show n in YQ L console Hack idea: Plurk table
  13. 13. Presentation structure • Yahoo! Query Language (YQL) overview • The YQL Console • YQL Open Tables • Examples of YQL usage
  14. 14. YQL is great for mobile apps (1 request to yql for the heavy lifting results in faster apps). This app finds the locations of nearby bars: YQ L is greatform obile apps
  15. 15. Search Flickr photos by celestial location select * from flickr.photos.astro …
  16. 16. Thank You! • Resources: - delicious.com/erikeldridge/ taiwanhackday09+presentation+yql • Follow me on Twitter: - Twitter.com/erikeldridge • Get these slides on Slideshare: - Slideshare.net/erikeldridge
  17. 17. Hack Ideas • Plurk tables

×