SlideShare ist ein Scribd-Unternehmen logo
1 von 32
Downloaden Sie, um offline zu lesen
YQL and GEO!
	
  
Agenda!
	
  
•  YQL Overview
	
  
•  Making Queries and the Console
	
  
•  Demo
	
  
•  Geo Hacking
	
  
•  YQL and GEO
	
  
The web has lot of data around
	
  
http://developer.yahoo.com/everything.html
	
  
The trouble with data!
	
   •  You need to find data API
	
  •  Get Access - Signup for key
	
  •  Find data endpoint
	
  •  Read docs to learn what parameters you
have
	
  •  Get data in obscure format
	
  •  Use data after converting and filtering
	
  •  More APIs you use, more is your
annoyance
	
  
To make data access
easy on the web,
Yahoo! created YQL
	
  
YQL turns web services
and data on the web
into databases.
	
  
	
  
YQL lets you access
almost all API’s in a
Standardized manner.
	
  
	
  
API List on console
	
  
select {what} from {where}
where {conditions}
	
  
You can select, filter,
sort and limit data.
You can even insert,
update and delete from
tables.
	
  
YQL: http://developer.yahoo.com/yql/console
	
  
Finding Videos about IIT-D!
	
  
SELECT * FROM
youtube.search where query="IIT Delhi"
	
  
Selecting Photos of Hackday!
	
  
SELECT * FROM
flickr.photos.search where text="hackday"	
  
SELECT * FROM flickr.photos.search where
text="hackday” LIMIT 5
	
  
Inserting data!
	
  
INSERT INTO bitly.shorten (login,apiKey,longUrl)
VALUES ('ME', 'API_KEY', 'http://yahoo.com')
	
  
updating data!
	
  
UPDATE social.profile.status
SET status="Using YQL UPDATE" WHERE
guid="NJFIDHVPVVISDX7UKED2WHU"
	
  
Mix and Match several
web services using IN
command
	
  
Guess what this does?!
	
  
SELECT * FROM google.translate where q in
(select title from rss(1) where url="http://
rss.news.yahoo.com/rss/topstories")
and target='hi'	
  
Company Headlines anyone??!
	
  
select * from html(1) where url=
"http://finance.yahoo.com/q?s=AMZN"
and xpath='//div[@id="yfi_headlines"]/div[2]/
ul/li/a'
Using the YQL Console
makes data access
very easy!
	
  
GEO HACKING!
	
  
•  GOOD NEWS! - Not hard to do.
	
  
•  YQL as always has a solution to
most geo problems.
	
  
REQUIREMENTS!
	
  
•  Turning a location into a place.
	
  
•  Finding geographical hierarchy.
	
  
•  Geo-tagging information.
	
  
REQUIREMENTS!
	
  
•  Turning a location into a place.
	
  
•  Finding geographical hierarchy.
	
  
•  Geo-tagging information.
	
  
GEOCODING AND REVERSE-GEOCODING!
	
  
•  converting street addresses or place
names into geographic coordinates
(and vice versa).
	
  
	
  h"p://developer.yahoo.com/yql/console/#h=desc%20geo.placefinder	
  
	
  
YQL to the rescue!
	
  
select * from geo.placefinder where
text="IIT Delhi"
	
  
select * from geo.placefinder where
text="28.61282,77.231079" and gflags="R"	
  
REQUIREMENTS!
	
  
•  Turning a location into a place.
	
  
•  Finding geographical hierarchy.
	
  
•  Geo-tagging information.
	
  
YQL GEO.PLACES.*!
	
  
•  geo.places.ancestors
	
  
•  geo.places.belongtos
	
  
•  geo.places.children
	
  
•  geo.places.common
	
  
•  geo.places.descendants
	
  
•  geo.places.neighbors
	
  
•  geo.places.parent
	
  
•  geo.places.siblings
	
  
REQUIREMENTS!
	
  
•  Turning a location into a place.
	
  
•  Finding geographical hierarchy.
	
  
•  Geo-tagging information.
	
  
PLACEMAKER!
	
  
•  Takes text/web URL and
extracts the geographical
information from it.
	
  
SELECT * FROM
geo.placemaker WHERE
documentContent = "Hey,
I am in bangalore now.
Will visit mumbai and delhi
before going back to
sunnyvale" AND
documentType="text/plain"	
  
PLACEMAKER!
	
  
SELECT * FROM geo.placemaker where
documentURL="http://en.wikipedia.org/
wiki/Country" and documentType="text/
html"
SELECT * FROM geo.placemaker WHERE
documentURL = "http://
timesofindia.feedsportal.com/33039/f/
533917/index.rss" AND
documentType="text/rss"
Final Lessons: Links!
	
  
http://developer.yahoo.com/yql/console
	
  
http://github.com/yql/yql-tables
	
  
http://isithackday.com/hacks/geo/
http://isithackday.com/geoplanet-explorer/
	
  

Weitere ähnliche Inhalte

Ähnlich wie YQL and Geo

YQL:: Select * from Internet
YQL:: Select * from InternetYQL:: Select * from Internet
YQL:: Select * from Internet
drgath
 
YQL Publicis Hackday
YQL Publicis HackdayYQL Publicis Hackday
YQL Publicis Hackday
Paul Donnelly
 
Yql V8
Yql V8Yql V8
Yql V8
JH Lee
 
Select * from internet
Select * from internetSelect * from internet
Select * from internet
markandey
 
YQL: Master Of the Mix
YQL: Master Of the MixYQL: Master Of the Mix
YQL: Master Of the Mix
markandey
 
WPP Hackday presentation - YQL
WPP Hackday presentation - YQLWPP Hackday presentation - YQL
WPP Hackday presentation - YQL
sriramiyer2007
 

Ähnlich wie YQL and Geo (20)

YQL:: Select * from Internet
YQL:: Select * from InternetYQL:: Select * from Internet
YQL:: Select * from Internet
 
YQL: Select * from Internet
YQL: Select * from InternetYQL: Select * from Internet
YQL: Select * from Internet
 
Yql hacku iitd_2012
Yql hacku iitd_2012Yql hacku iitd_2012
Yql hacku iitd_2012
 
Yui conf nov8-2010-introtoyql
Yui conf nov8-2010-introtoyqlYui conf nov8-2010-introtoyql
Yui conf nov8-2010-introtoyql
 
YQL Publicis Hackday
YQL Publicis HackdayYQL Publicis Hackday
YQL Publicis Hackday
 
YQL & Yahoo! APIs - Open Hack India 2011
YQL & Yahoo! APIs - Open Hack India 2011YQL & Yahoo! APIs - Open Hack India 2011
YQL & Yahoo! APIs - Open Hack India 2011
 
YQL: Hacking on steroids - Yahoo! Open Hack Day 2012
YQL: Hacking on steroids - Yahoo! Open Hack Day 2012YQL: Hacking on steroids - Yahoo! Open Hack Day 2012
YQL: Hacking on steroids - Yahoo! Open Hack Day 2012
 
Build your web apps with yql and yui
Build your web apps with yql and yuiBuild your web apps with yql and yui
Build your web apps with yql and yui
 
Yql V8
Yql V8Yql V8
Yql V8
 
Select * from internet
Select * from internetSelect * from internet
Select * from internet
 
Query the web with YQL
Query the web with YQLQuery the web with YQL
Query the web with YQL
 
Open hack 2011-ppt-geo
Open hack 2011-ppt-geoOpen hack 2011-ppt-geo
Open hack 2011-ppt-geo
 
YQL: Master Of the Mix
YQL: Master Of the MixYQL: Master Of the Mix
YQL: Master Of the Mix
 
Open Hack Taiwan 2012
Open Hack Taiwan 2012Open Hack Taiwan 2012
Open Hack Taiwan 2012
 
Embulk makes Japan visible
Embulk makes Japan visibleEmbulk makes Japan visible
Embulk makes Japan visible
 
WPP Hackday presentation - YQL
WPP Hackday presentation - YQLWPP Hackday presentation - YQL
WPP Hackday presentation - YQL
 
Open Hack London - Introduction to YQL
Open Hack London - Introduction to YQLOpen Hack London - Introduction to YQL
Open Hack London - Introduction to YQL
 
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
 
Yahoo xtra Open Technolgies
Yahoo xtra Open TechnolgiesYahoo xtra Open Technolgies
Yahoo xtra Open Technolgies
 
Yahoo! Hack India: Hyderabad 2013 | YQL - One API to query them all
Yahoo! Hack India: Hyderabad 2013 | YQL - One API to query them allYahoo! Hack India: Hyderabad 2013 | YQL - One API to query them all
Yahoo! Hack India: Hyderabad 2013 | YQL - One API to query them all
 

Kürzlich hochgeladen

Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
UK Journal
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
FIDO Alliance
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
UXDXConf
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
panagenda
 

Kürzlich hochgeladen (20)

The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptx
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Your enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4jYour enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4j
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 

YQL and Geo

  • 2. Agenda!   •  YQL Overview   •  Making Queries and the Console   •  Demo   •  Geo Hacking   •  YQL and GEO  
  • 3. The web has lot of data around  
  • 5. The trouble with data!   •  You need to find data API  •  Get Access - Signup for key  •  Find data endpoint  •  Read docs to learn what parameters you have  •  Get data in obscure format  •  Use data after converting and filtering  •  More APIs you use, more is your annoyance  
  • 6. To make data access easy on the web, Yahoo! created YQL  
  • 7. YQL turns web services and data on the web into databases.    
  • 8. YQL lets you access almost all API’s in a Standardized manner.    
  • 9. API List on console  
  • 10. select {what} from {where} where {conditions}  
  • 11. You can select, filter, sort and limit data. You can even insert, update and delete from tables.  
  • 13. Finding Videos about IIT-D!   SELECT * FROM youtube.search where query="IIT Delhi"  
  • 14. Selecting Photos of Hackday!   SELECT * FROM flickr.photos.search where text="hackday"   SELECT * FROM flickr.photos.search where text="hackday” LIMIT 5  
  • 15. Inserting data!   INSERT INTO bitly.shorten (login,apiKey,longUrl) VALUES ('ME', 'API_KEY', 'http://yahoo.com')  
  • 16. updating data!   UPDATE social.profile.status SET status="Using YQL UPDATE" WHERE guid="NJFIDHVPVVISDX7UKED2WHU"  
  • 17. Mix and Match several web services using IN command  
  • 18. Guess what this does?!   SELECT * FROM google.translate where q in (select title from rss(1) where url="http:// rss.news.yahoo.com/rss/topstories") and target='hi'  
  • 19. Company Headlines anyone??!   select * from html(1) where url= "http://finance.yahoo.com/q?s=AMZN" and xpath='//div[@id="yfi_headlines"]/div[2]/ ul/li/a'
  • 20. Using the YQL Console makes data access very easy!  
  • 21.
  • 22. GEO HACKING!   •  GOOD NEWS! - Not hard to do.   •  YQL as always has a solution to most geo problems.  
  • 23. REQUIREMENTS!   •  Turning a location into a place.   •  Finding geographical hierarchy.   •  Geo-tagging information.  
  • 24. REQUIREMENTS!   •  Turning a location into a place.   •  Finding geographical hierarchy.   •  Geo-tagging information.  
  • 25. GEOCODING AND REVERSE-GEOCODING!   •  converting street addresses or place names into geographic coordinates (and vice versa).    h"p://developer.yahoo.com/yql/console/#h=desc%20geo.placefinder    
  • 26. YQL to the rescue!   select * from geo.placefinder where text="IIT Delhi"   select * from geo.placefinder where text="28.61282,77.231079" and gflags="R"  
  • 27. REQUIREMENTS!   •  Turning a location into a place.   •  Finding geographical hierarchy.   •  Geo-tagging information.  
  • 28. YQL GEO.PLACES.*!   •  geo.places.ancestors   •  geo.places.belongtos   •  geo.places.children   •  geo.places.common   •  geo.places.descendants   •  geo.places.neighbors   •  geo.places.parent   •  geo.places.siblings  
  • 29. REQUIREMENTS!   •  Turning a location into a place.   •  Finding geographical hierarchy.   •  Geo-tagging information.  
  • 30. PLACEMAKER!   •  Takes text/web URL and extracts the geographical information from it.   SELECT * FROM geo.placemaker WHERE documentContent = "Hey, I am in bangalore now. Will visit mumbai and delhi before going back to sunnyvale" AND documentType="text/plain"  
  • 31. PLACEMAKER!   SELECT * FROM geo.placemaker where documentURL="http://en.wikipedia.org/ wiki/Country" and documentType="text/ html" SELECT * FROM geo.placemaker WHERE documentURL = "http:// timesofindia.feedsportal.com/33039/f/ 533917/index.rss" AND documentType="text/rss"
  • 32. Final Lessons: Links!   http://developer.yahoo.com/yql/console   http://github.com/yql/yql-tables   http://isithackday.com/hacks/geo/ http://isithackday.com/geoplanet-explorer/