Yql V8

1,078 views

Published on

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
1,078
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Yql V8

  1. 1. Erik Eldridge Slideshare.net/erikeldridge Yahoo!Kimo Introduction to the Yahoo! Query Language
  2. 2. Presentation structure <ul><li>Yahoo! Query Language (YQL) overview </li></ul><ul><li>The YQL Console </li></ul><ul><li>YQL Open Tables </li></ul><ul><li>Examples of YQL usage </li></ul>
  3. 3. YQL = Yahoo! Query Language <ul><li>SQL-like syntax </li></ul><ul><ul><li>SELECT {fields} from {table} WHERE {key} = {value} </li></ul></ul><ul><ul><li>SELECT * FROM flickr.photos.search WHERE text=&quot; 臺北 101” </li></ul></ul><ul><ul><li>SELECT * FROM html where url=“ http ://www.wretch.cc/” </li></ul></ul><ul><ul><li>SELECT * FROM flickr.photos.search WHERE has_geo=&quot;true&quot; and woe_id in (SELECT woeid FROM geo.places WHERE text=&quot;taipei&quot; LIMIT 1) </li></ul></ul><ul><li>Extensible access to APIs/data </li></ul><ul><li>SELECT * FROM Internet </li></ul>
  4. 4. Presentation structure <ul><li>Yahoo! Query Language (YQL) overview </li></ul><ul><li>The YQL Console </li></ul><ul><li>YQL Open Tables </li></ul><ul><li>Examples of YQL usage </li></ul>
  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 URLs do not require OAuth Raw XML output
  8. 8. Presentation structure <ul><li>Yahoo! Query Language (YQL) overview </li></ul><ul><li>The YQL Console </li></ul><ul><li>YQL Open Tables </li></ul><ul><li>Examples of YQL usage </li></ul>
  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 Input definition Native YQL 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 Community tables shown in YQL console Hack idea: Plurk table
  13. 13. Presentation structure <ul><li>Yahoo! Query Language (YQL) overview </li></ul><ul><li>The YQL Console </li></ul><ul><li>YQL Open Tables </li></ul><ul><li>Examples of YQL usage </li></ul>
  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: YQL is great for mobile apps
  15. 15. Search Flickr photos by celestial location select * from flickr.photos.astro …
  16. 16. Thank You! <ul><li>Resources: </li></ul><ul><ul><li>delicious.com/erikeldridge/ taiwanhackday09+presentation+yql </li></ul></ul><ul><li>Follow me on Twitter: </li></ul><ul><ul><li>Twitter.com/erikeldridge </li></ul></ul><ul><li>Get these slides on Slideshare: </li></ul><ul><ul><li>Slideshare.net/erikeldridge </li></ul></ul>
  17. 17. Hack Ideas <ul><li>Plurk tables </li></ul>

×