Yql And Its Hotness

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    Yql And Its Hotness - Presentation Transcript

    1. YQL (and its hotness)
    2. YQL is Yahoo! Query Language
    3. Yahoo! calls it:
    4. A “mediator service” that enables developers to query, filter, and combine data across Yahoo! and beyond.
    5. I call it:
    6. An API for the public internet.
    7. I think my description is a bit more catchy.
    8. YQL offers a SQL-like syntax.
    9. SELECT * FROM search.web WHERE query=\"ruby\"
    10. Look familiar?
    11. SELECT what FROM table WHERE filter
    12. Tables in YQL are much the same as tables in SQL.
    13. SELECT * FROM search.web WHERE query=\"ruby\"
    14. You can SELECT specific elements or objects.
    15. SELECT title FROM search.web WHERE query=\"ruby\"
    16. WHERE filters have lots of operators.
    17. = =! > < <= >= IN LIKE IS NULL IS NOT NULL AND OR
    18. Join tables with sub-selects using matching values as a foreign key.
    19. What is a YQL table?
    20. The defaults are mostly data sources for Yahoo's own data APIs.
    21. Some for HTML, JSON, XML, RSS, ATOM, CSV, feeds and microformats.
    22. Tables are defined in XML.
    23. <?xml version=\"1.0\" encoding=\"UTF-8\"?> <table xmlns=\"http://query.yahooapis.com/v1/schema/table.xsd\"> <meta> <author>Paul Daniel</author> <documentationURL>http://apiwiki.twitter.com/REST+API +Documentation#show</documentationURL> </meta> <bindings> <select itemPath=\"feed.entry\" produces=\"XML\"> <urls> <url>http://twitter.com/statuses/user_timeline/{id}.atom</url> </urls> <paging model=\"page\"> <start default=\"0\" id=\"page\"/> <pagesize max=\"200\" id=\"count\"/> <total default=\"20\"/> </paging> <inputs> <key id=\"since\" type=\"xs:string\" paramType=\"query\" /> <key id=\"since_id\" type=\"xs:string\" paramType=\"query\" /> <key id=\"id\" type=\"xs:string\" paramType=\"path\" required=\"true\"/> </inputs> </select> </bindings> </table>
    24. You can write your own.
    25. And share them for others to use.
    26. SHOW tables DESC table
    27. What’s the output?
    28. <?xml version=\"1.0\" encoding=\"UTF-8\"?> <query xmlns:yahoo=\"http://www.yahooapis.com/v1/base.rng\" yahoo:count=\"10\" yahoo:created=\"2009-02-11T03:16:48Z\" yahoo:lang=\"en-US\" yahoo:updated=\"2009-02-11T03:16:48Z\" yahoo:uri=\"http:// query.yahooapis.com/v1/yql?q=SELECT+*+%0AFROM+search.web+WHERE+query%3D %22ruby%22\"> <diagnostics> <publiclyCallable>true</publiclyCallable> <url execution-time=\"116\">http://boss.yahooapis.com/ysearch/web/ v1/ruby?format=xml&amp;start=0&amp;count=10</url> <user-time>119</user-time> <service-time>116</service-time> <build-version>851</build-version> </diagnostics> <results> <result xmlns=\"http://www.inktomi.com/\"> <abstract><![CDATA[<b>Ruby</b> originated in Japan during the mid-1990s and was initially developed and <b>...</b> <b>Ruby</b> supports multiple programming paradigms, including functional, object <b>...</ b>]]></abstract> <clickurl>http://lrd.yahooapis.com/ _ylc=X3oDMTQ4NWxyYWUxBF9TAzIwMjMxNTI3MDIEYXBwaWQDb0pfTWdwbklrWW5CMWhTZnFUZ Ed5TkouTXNxZlNMQmkEcG9zAzEEc2VydmljZQNZU2VhcmNoV2ViBHNsawN0aXRsZQRzcmNwdml kA253RkNNVVBEQjJIMkxjVFRsQWt1ZVI0VXl6LkNJVW1TUXlBQUFLckk-/SIG=11tsuk1oo/ **http%3A//en.wikipedia.org/wiki/Ruby_(programming_language)</clickurl>
    29. { \"query\": { \"count\":\"10\", \"created\":\"2009-02-11T03:20:22Z\", \"lang\":\"en-US\", \"updated\":\"2009-02-11T03:20:22Z\", \"uri\":\"http://query.yahooapis.com/v1/yql? q=SELECT+*+%0AFROM+search.web+WHERE+query%3D %22ruby%22\", \"diagnostics\": { \"publiclyCallable\":\"true\", \"url\": { \"execution-time\":\"109\",
    30. Specify callback with ‘callback’ for JSON-P.
    31. call({ \"query\": { \"count\":\"10\", \"created\":\"2009-02-11T03:20:22Z\", \"lang\":\"en-US\", \"updated\":\"2009-02-11T03:20:22Z\", \"uri\":\"http://query.yahooapis.com/v1/yql? q=SELECT+*+%0AFROM+search.web+WHERE+query%3D %22ruby%22\", \"diagnostics\": { \"publiclyCallable\":\"true\", \"url\": { \"execution-time\":\"109\",
    32. http://query.yahooapis.com/v1/ public/yql?q=SELECT%20* %20%0AFROM%20search.web %20WHERE%20query%3D %22ruby%22 &format=json&callback=call
    33. Where is all this?
    34. http://developer.yahoo.com/ yql/
    35. http://developer.yahoo.com/ yql/console
    36. Examples
    37. I converted the GitHub Activity Badge today.
    38. Took me 5 minutes. http://github.com/ lachlanhardy/github- activity-badge/
    39. Oh! And I built this...
    40. http://streamslide.com http://github.com/ lachlanhardy/ streamslide/
    41. Thank you
    42. http://lachstock.com.au

    + Lachlan HardyLachlan Hardy, 8 months ago

    custom

    1210 views, 1 favs, 0 embeds more stats

    I gave a presentation to RORO in Sydney on 2009-02- more

    More info about this document

    CC Attribution License

    Go to text version

    • Total Views 1210
      • 1210 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 9
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories