Introduction to YQL - Talk at HackU 2010, IIT Chennai

1,706 views

Published on

Introduction to YQL - Talk at HackU 2010, IIT Chennai

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

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

No notes for slide
  • We have moved past the web of documents. “Raw Data now”. Tim Berners Lee says “Data drives a huge amount of what happens in our lives because somebody takes that data and does something with it”
  • Lets take an example of a developer trying
  • Introduction to YQL - Talk at HackU 2010, IIT Chennai

    1. 1.
    2. 2. select * from internet; Balaji Narayanan @balajijegan http://balajin.net/blog/
    3. 3. Application ?
    4. 4. Application = data manipulation data visualization +
    5. 5. data
    6. 7. var map = new YMap(document.getElementById('map'));…var currentGeoPoint = new YGeoPoint( _c.Lat, _c.Lon ); map.addMarker(currentGeoPoint);… … if (flickcurl_prepare(fc, "flickr.photos.geo.correctLocation", parameters, count)) { … } … http://search.yahooapis.com/ImageSearchService/V1/imageSearch?appid=YahooDemo&query=Corvette&results=2 http://weather.yahooapis.com/forecastrss?p=FRXX0076&u=c ? ? ? ?
    7. 8. What is the problem?
    8. 9. Thousands of Web Services and sources that provide valuable data
    9. 10. Data is isolated
    10. 11. Needs filtering, combining, tweaking, shaping even after it gets to the developer.
    11. 12. Require Developers to read documentation and form URLs/queries
    12. 13. YQL select desc show YQL stmt Bindings http://weather.yahooapis.com/forecastrss?p=FRXX0076&u=c … if (flickcurl_prepare(fc, "flickr.photos.geo.correctLocation", parameters, count)) { … } … http://search.yahooapis.com/ImageSearchService/V1/imageSearch?appid=YahooDemo&query=Corvette&results=2 var map = new YMap(document.getElementById('map'));…var currentGeoPoint = new YGeoPoint( _c.Lat, _c.Lon ); map.addMarker(currentGeoPoint);…
    13. 14. Web Service with a SQL Like Language
    14. 15. Familiar to developers
    15. 16. Synonymous with data access
    16. 17. Expressive enough to get the right data
    17. 18. Supports query, filter, join and update data across any structured data on the web / web services
    18. 19. Demo http://developer.yahoo.com/yql/console
    19. 20. XML or JSON output formats. JSON also allows for a callback parameter to use directly as JSON-P
    20. 21. Using YQL in your application
    21. 22.
    22. 23.
    23. 24. YQL is not limited to Yahoo! data only
    24. 25. use and set
    25. 26. Imports the Open Data Table definition
    26. 27. Makes it available as tableName
    27. 28. Acts just like other YQL Tables
    28. 29. Open tables can be collected together into environment files
    29. 30. set api_key=“value” on myTable
    30. 31. use ‘http://myweb/mytable.xml’ as tableName ; select * from my tableName
    31. 32. <ul><li>YQL Hosted Storage for Storing Secrets, Environment Files, Open Data Tables </li></ul>
    32. 33. <ul><li>insert into yql.storage.admin (name,url) values ('fireeagle','http://balajin.net/hacks/fireeagle.env') </li></ul>
    33. 34. <ul><li>< execute > </li></ul><ul><li>store://balajin.net/fireeagle </li></ul><ul><li></execute> </li></ul><ul><li>< select > </li></ul><ul><li>store://RtdcPRPDsp0d8WyyLSDo3T </li></ul><ul><li></select> </li></ul><ul><li>< update > store://hyOKm0GnP802H2hPzMARZ1 </li></ul><ul><li></update> </li></ul>
    34. 35. <ul><li>https://developer.yahoo.com/yql/console/? env=store://balajin.net/fireeagle </li></ul>
    35. 36. Insert / Update / Delete
    36. 37. Can modify the data on the cloud
    37. 38. Open Data Tables
    38. 39. Brings the power of table model to new APIs
    39. 40. Schema brings mapping between YQL and endpoint
    40. 41. Keys can be marked as required
    41. 42. YQL compiler validates the existence of required keys
    42. 43. < execute > element
    43. 44. Extends open data table with server side JS code
    44. 45. Move business logic of your application to the cloud
    45. 46.
    46. 47. More easily build web applications
    47. 48. Data processing done away from the app
    48. 49. Consistent and familiar syntax for all data access
    49. 50. Iterative environment for developing the query
    50. 51. data YQL
    51. 52. Contribute http://github.com/yql/yql-tables/
    52. 53. Questions [email_address]

    ×