barcampla_boss_yql

29
Yahoo! Open Technologies Jonathan LeBlanc – Technology Evangelist Yahoo! Developer Network – Partner Integrations Blog: www.nakedtechnologist.com Twitter: jcleblanc

description

Barcamp LA presentation on Yahoo! BOSS and YQL (including open data tables & execute)

Transcript of barcampla_boss_yql

Page 1: barcampla_boss_yql

Yahoo! Open TechnologiesJonathan LeBlanc – Technology Evangelist

Yahoo! Developer Network – Partner Integrations

Blog: www.nakedtechnologist.com

Twitter: jcleblanc

Page 2: barcampla_boss_yql

2

Build Your Own Search Service

Page 3: barcampla_boss_yql

3

How Do I Use It?Development and Stuff

Page 4: barcampla_boss_yql

4

BOSS – Requesting Data

http://boss.yahooapis.com/ysearch/{service}/v1/

{query}?appid={yourBOSSappid}&[params]

Params

• start • format

• count • callback

• lang • sites

• region

Page 5: barcampla_boss_yql

5

What Can I Build With This Thing? BOSS Examples in Practice

Page 6: barcampla_boss_yql

6

New Presentation Models

Page 7: barcampla_boss_yql

7

Client / Browser Integrations

Page 8: barcampla_boss_yql

8

New Ranking Models

Page 9: barcampla_boss_yql

9

Vertical/niche search products

Page 10: barcampla_boss_yql

10

Yahoo! Query Language (YQL) SELECT * FROM Internet

Page 11: barcampla_boss_yql

11

Page 12: barcampla_boss_yql

12

SELECT * FROM Internet

Page 13: barcampla_boss_yql

13

Page 14: barcampla_boss_yql

14

Page 15: barcampla_boss_yql

15

SELECT myColumn, myTitle

FROM myTable(0, 50)

WHERE myColumn = 'value' AND myTitle = 'title‘

LIMIT 3 OFFSET 10 |

sort(field='myColumn') | reverse()

YQL – Query Structure

Page 16: barcampla_boss_yql

16

YQL Command: SHOW tables (77 Standard / 147 with community)

YQL – Available Tables

<table>atom</table><table>csv</table><table>feed</table><table>flickr.photos.exif</table><table>flickr.photos.info</table><table>flickr.photos.interestingness</table><table>flickr.photos.recent</table><table>flickr.photos.search</table><table>flickr.photos.sizes</table><table>flickr.places</table><table>flickr.places.info</table><table>geo.places</table><table>geo.places.ancestors</table><table>geo.places.belongtos</table><table>geo.places.children</table><table>geo.places.neighbors</table><table>geo.places.parent</table><table>geo.places.siblings</table><table>geo.placetypes</table><table>gnip.activity</table><table>html</table><table>json</table><table>local.search</table><table>microformats</table><table>music.artist.id</table><table>music.artist.popular</table><table>music.artist.search</table><table>music.artist.similar</table>

<table>music.release.artist</table><table>music.release.id</table><table>music.release.popular</table><table>music.release.search</table><table>music.track.id</table><table>music.track.popular</table><table>music.track.search</table><table>music.video.category</table><table>music.video.id</table><table>music.video.popular</table><table>music.video.search</table><table>music.video.similar</table><table>mybloglog.community.find</table><table>mybloglog.member</table><table>mybloglog.member.contacts</table><table>mybloglog.member.newwithcontacts</table><table>mybloglog.member.newwithme</table><table>mybloglog.members.find</table><table>mybloglog.stats.find</table><table>rss</table><table>search.images</table><table>search.news</table><table>search.siteexplorer.inlinks</table><table>search.siteexplorer.pages</table><table>search.spelling</table><table>search.suggest</table><table>search.termextract</table><table>search.web</table>

<table>social.connections</table><table>social.contacts</table><table>social.presence</table><table>social.profile</table><table>social.updates</table><table>upcoming.category</table><table>upcoming.country</table><table>upcoming.events</table><table>upcoming.events.bestinplace</table><table>upcoming.groups</table><table>upcoming.metro</table><table>upcoming.state</table><table>upcoming.user</table><table>upcoming.venue</table><table>uritemplate</table><table>weather.forecast</table><table>xml</table><table>yahoo.identity</table><table>yap.setsmallview</table><table>yql.admin.blockedips</table><table>yql.admin.blockedscripts</table>

Page 17: barcampla_boss_yql

17

YQL Command: DESC social.connections

YQL – Table Contents

Page 18: barcampla_boss_yql

18

YQL - Running a Query

http://query.yahooapis.com/v1/yql?[params]

http://query.yahooapis.com/v1/public/yql?[params]

Params• q=[QUERY]• format=[xml / json]• callback=[function name]• diagnostics=[true / false]

Page 19: barcampla_boss_yql

19

YQL – Output Types

Page 20: barcampla_boss_yql

20

YQL Open Data Tables Structure the internet

Page 21: barcampla_boss_yql

21

YQL – Open Data Tables

Page 22: barcampla_boss_yql

22

YQL – Using an Open Data Table

USE ‘{TABLE URL}’ as digg;SELECT * FROM digg WHERE topic=‘apple’;

Page 23: barcampla_boss_yql

23

YQL Execute Augment the Internet

Page 24: barcampla_boss_yql

24

Page 25: barcampla_boss_yql

25

Page 26: barcampla_boss_yql

26

End Result What’s this data going to do for me?

Page 27: barcampla_boss_yql

27

Page 28: barcampla_boss_yql

28

Getting Started

BOSS Main Pagehttp://developer.yahoo.com/boss

YQL Main Pagehttp://developer.yahoo.com/yql

YQL Consolehttp://developer.yahoo.com/yql/console

Developer Forumshttp://developer.yahoo.com/forums

Page 29: barcampla_boss_yql

29

Thank You Questions?