Top Banner
Erik Eldridge Slideshare.net/erikeldridge Yahoo!Kimo Introduction to the Yahoo! Query Language
17

Yql V8

Sep 12, 2014

Download

Technology

 
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Yql V8

Erik EldridgeSlideshare.net/erikeldridge

Yahoo!Kimo Introduction to the Yahoo! Query Language

Page 2: Yql V8

Presentation structure

• Yahoo! Query Language (YQL) overview

• The YQL Console

• YQL Open Tables

• Examples of YQL usage

Page 3: Yql V8

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: Yql V8

Presentation structure

• Yahoo! Query Language (YQL) overview

• The YQL Console

• YQL Open Tables

• Examples of YQL usage

Page 5: Yql V8

The YQL statement to run

The YQL statement to run

Page 6: Yql V8

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

Predefined YQL data tables

Page 7: Yql V8

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

Page 8: Yql V8

Presentation structure

• Yahoo! Query Language (YQL) overview

• The YQL Console

• YQL Open Tables

• Examples of YQL usage

Page 9: Yql V8

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: Yql V8

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: Yql V8

Using a custom table in the console

Specifying table w/ “use”

Transcript HTML output

Page 12: Yql V8

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: Yql V8

Presentation structure

• Yahoo! Query Language (YQL) overview

• The YQL Console

• YQL Open Tables

• Examples of YQL usage

Page 14: Yql V8

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: Yql V8

Search Flickr photos by celestial location

select * from flickr.photos.astro …

Page 16: Yql V8

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: Yql V8

Hack Ideas

• Plurk tables