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

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

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/