Your SlideShare is downloading. ×
Taiwan Open Hack 2009: Yahoo! Query Language
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Taiwan Open Hack 2009: Yahoo! Query Language

1,773
views

Published on

Published in: Technology

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,773
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
20
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Erik Eldridge Slideshare.net/erikeldridge Yahoo!Kimo Introduction to the Yahoo! Query Language
  • 2. Presentation structure • Yahoo! Query Language (YQL) overview • The YQL Console • YQL Open Tables • Examples of YQL usage
  • 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. Presentation structure • Yahoo! Query Language (YQL) overview • The YQL Console • YQL Open Tables • Examples of YQL usage
  • 5. The YQL statement to run The YQL statement to run
  • 6. Yahoo! starts us off w/ several pre-defined “tables” Predefined YQL data tables
  • 7. XML response from a public data request Public U R Ls do not require O A uthRaw XML output
  • 8. Presentation structure • Yahoo! Query Language (YQL) overview • The YQL Console • YQL Open Tables • Examples of YQL usage
  • 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. 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. Using a custom table in the console Specifying table w/ “use” Transcript HTML output
  • 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. Presentation structure • Yahoo! Query Language (YQL) overview • The YQL Console • YQL Open Tables • Examples of YQL usage
  • 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. Search Flickr photos by celestial location select * from flickr.photos.astro …
  • 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. Hack Ideas • Plurk tables