introduction to yql - talk at hacku 2010, iit chennai

53
1

Upload: balaji-narayanan

Post on 20-Jan-2015

1.374 views

Category:

Technology


2 download

DESCRIPTION

Introduction to YQL - Talk at HackU 2010, IIT Chennai

TRANSCRIPT

Page 1: Introduction to YQL - Talk at HackU 2010, IIT Chennai

1

Page 2: Introduction to YQL - Talk at HackU 2010, IIT Chennai

select * from internet;

Balaji Narayanan@balajijegan

http://balajin.net/blog/

Page 3: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Application ?

Page 4: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Application =

data data manipulatimanipulati

onondata data

visualizatiovisualizationn

++

Page 5: Introduction to YQL - Talk at HackU 2010, IIT Chennai

datadata

Page 6: Introduction to YQL - Talk at HackU 2010, IIT Chennai
Page 7: Introduction to YQL - Talk at HackU 2010, IIT Chennai

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

??

????

??

Page 8: Introduction to YQL - Talk at HackU 2010, IIT Chennai

What is the problem?

8

Page 9: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Thousands of Web Services and sources that provide valuable

data

9

Page 10: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Data is isolated

10

Page 11: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Needs filtering, combining, tweaking, shaping even after it

gets to the developer.

11

Page 12: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Require Developers to read documentation and form

URLs/queries

12

Page 13: Introduction to YQL - Talk at HackU 2010, IIT Chennai

http://weather.yahooapis.com/forecastrss?p=FRXX0076&u=chttp://weather.yahooapis.com/forecastrss?p=FRXX0076&u=c

…if (flickcurl_prepare(fc, "flickr.photos.geo.correctLocation", parameters, count)) { … }…

…if (flickcurl_prepare(fc, "flickr.photos.geo.correctLocation", parameters, count)) { … }…

http://search.yahooapis.com/ImageSearchService/V1/imageSearch?appid=YahooDemo&query=Corvette&results=2

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);…

var map = new YMap(document.getElementById('map'));…var currentGeoPoint = new YGeoPoint( _c.Lat, _c.Lon ); map.addMarker(currentGeoPoint);…

YQYQLL

selectselect

descdesc

showshow

YQL YQL stmtstmt

BindingsBindings

Page 14: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Web Service with a SQL Like Language

14

Page 15: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Familiar to developers

15

Page 16: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Synonymous with data access

16

Page 17: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Expressive enough to get the right data

17

Page 18: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Supports query, filter, join and update data across

any structured data on the web / web services

18

Page 19: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Demo

http://developer.yahoo.com/yql/console

19

Page 20: Introduction to YQL - Talk at HackU 2010, IIT Chennai

XML or JSON output formats. JSON also allows for a callback parameter to use directly as JSON-P

20

Page 21: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Using YQL in your application

21

Page 22: Introduction to YQL - Talk at HackU 2010, IIT Chennai

22

Page 23: Introduction to YQL - Talk at HackU 2010, IIT Chennai

23

Page 24: Introduction to YQL - Talk at HackU 2010, IIT Chennai

YQL is not limited to

Yahoo! data only

24

Page 25: Introduction to YQL - Talk at HackU 2010, IIT Chennai

use and set

25

Page 26: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Imports the Open Data Table definition

26

Page 27: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Makes it available as tableName

27

Page 28: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Acts just like other YQL Tables

28

Page 29: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Open tables can be collected together into

environment files

29

Page 30: Introduction to YQL - Talk at HackU 2010, IIT Chennai

set api_key=“value” on myTable

30

Page 31: Introduction to YQL - Talk at HackU 2010, IIT Chennai

use ‘http://myweb/mytable.xml’

as tableName; select * from my tableName

31

Page 32: Introduction to YQL - Talk at HackU 2010, IIT Chennai

YQL Hosted Storage for Storing Secrets, Environment Files, Open Data Tables

Page 33: Introduction to YQL - Talk at HackU 2010, IIT Chennai

insert into yql.storage.admin (name,url) values ('fireeagle','http://balajin.net/hacks/fireeagle.env')

Page 34: Introduction to YQL - Talk at HackU 2010, IIT Chennai

<execute> store://balajin.net/fireeagle

</execute><select>

store://RtdcPRPDsp0d8WyyLSDo3T </select><update>

store://hyOKm0GnP802H2hPzMARZ1 </update>

Page 35: Introduction to YQL - Talk at HackU 2010, IIT Chennai

https://developer.yahoo.com/yql/console/?env=store://balajin.net/fireeagle

Page 36: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Insert / Update / Delete

36

Page 37: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Can modify the data on the cloud

37

Page 38: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Open Data Tables

38

Page 39: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Brings the power of table model to new APIs

39

Page 40: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Schema brings mapping between YQL and

endpoint

40

Page 41: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Keys can be marked as required

41

Page 42: Introduction to YQL - Talk at HackU 2010, IIT Chennai

YQL compiler validates the existence of required keys

42

Page 43: Introduction to YQL - Talk at HackU 2010, IIT Chennai

<execute> element

43

Page 44: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Extends open data table with server side JS

code

44

Page 45: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Move business logic of your application to the

cloud

45

Page 46: Introduction to YQL - Talk at HackU 2010, IIT Chennai

46

Page 47: Introduction to YQL - Talk at HackU 2010, IIT Chennai

More easily build web applications

47

Page 48: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Data processing done away from the app

48

Page 49: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Consistent and familiar syntax for all data

access

49

Page 50: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Iterative environment for developing the

query

50

Page 51: Introduction to YQL - Talk at HackU 2010, IIT Chennai

datadataYQLYQL

Page 52: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Contribute

http://github.com/yql/yql-tables/

52

Page 53: Introduction to YQL - Talk at HackU 2010, IIT Chennai

Questions

[email protected]

53