+ All Categories
Home > Technology > Taiwan Open Hack 2009: Yahoo! Query Language

Taiwan Open Hack 2009: Yahoo! Query Language

Date post: 12-Sep-2014
Category:
View: 3,178 times
Download: 0 times
Share this document with a friend
Description:
 
Popular Tags:
17
Erik Eldridge Slideshare.net/erikeldridge Yahoo!Kimo Introduction to the Yahoo! Query Language
Transcript
Page 1: Taiwan Open Hack 2009: Yahoo! Query Language

Erik EldridgeSlideshare.net/erikeldridge

Yahoo!Kimo Introduction to the Yahoo! Query Language

Page 2: Taiwan Open Hack 2009: Yahoo! Query Language

Presentation structure

• Yahoo! Query Language (YQL) overview

• The YQL Console

• YQL Open Tables

• Examples of YQL usage

Page 3: Taiwan Open Hack 2009: Yahoo! Query Language

YQL = Yahoo! Query Language

• SQL-like syntax- SELECT {fields} from {table} WHERE {key} = {value}- SELECT * FROM flickr.photos.search WHERE text=" 臺北 101”- SELECT * FROM html where url=“http://www.wretch.cc/”- SELECT * FROM flickr.photos.search WHERE has_geo="true" and woe_id in

(SELECT woeid FROM geo.places WHERE text="taipei" LIMIT 1)

• Extensible access to APIs/data

• SELECT * FROM Internet

Page 4: Taiwan Open Hack 2009: Yahoo! Query Language

Presentation structure

• Yahoo! Query Language (YQL) overview

• The YQL Console

• YQL Open Tables

• Examples of YQL usage

Page 5: Taiwan Open Hack 2009: Yahoo! Query Language

The YQL statement to run

The YQL statement to run

Page 6: Taiwan Open Hack 2009: Yahoo! Query Language

Yahoo! starts us off w/ several pre-defined “tables”

Predefined YQL data tables

Page 7: Taiwan Open Hack 2009: Yahoo! Query Language

XML response from a public data requestPublic URLs do not require OAuth Raw XML output

Page 8: Taiwan Open Hack 2009: Yahoo! Query Language

Presentation structure

• Yahoo! Query Language (YQL) overview

• The YQL Console

• YQL Open Tables

• Examples of YQL usage

Page 9: Taiwan Open Hack 2009: Yahoo! Query Language

Anyone can create a table for yql. Seeing the community tables in the console

Now showing community tablesPulli

ng table

def

s fro

m d

atat

able

s.org

Page 10: Taiwan Open Hack 2009: Yahoo! Query Language

Anatomy of a simple table showing table url, base api endpoint, and input definitions

Tables can be very simple

Input d

efin

ition

Native YQL query

E4X

Page 11: Taiwan Open Hack 2009: Yahoo! Query Language

Using a custom table in the console

Specifying table w/ “use”

Transcript HTML output

Page 12: Taiwan Open Hack 2009: Yahoo! Query Language

All community tables in the console are open source and available in githubDefault behavior of the Yahoo! Weather table

Comm

unity ta

bles

shown in

YQL c

onsole

Hack idea:Plurk table

Page 13: Taiwan Open Hack 2009: Yahoo! Query Language

Presentation structure

• Yahoo! Query Language (YQL) overview

• The YQL Console

• YQL Open Tables

• Examples of YQL usage

Page 14: Taiwan Open Hack 2009: Yahoo! Query Language

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 g

reat

for m

obile a

pps

Page 15: Taiwan Open Hack 2009: Yahoo! Query Language

Search Flickr photos by celestial location

select * from flickr.photos.astro …

Page 16: Taiwan Open Hack 2009: Yahoo! Query Language

Thank You!

• Resources:- delicious.com/erikeldridge/

taiwanhackday09+presentation+yql

• Follow me on Twitter: - Twitter.com/erikeldridge

• Get these slides on Slideshare:- Slideshare.net/erikeldridge

Page 17: Taiwan Open Hack 2009: Yahoo! Query Language

Hack Ideas

• Plurk tables


Recommended