SlideShare uma empresa Scribd logo
1 de 32
Baixar para ler offline
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/
	
  

Mais conteúdo relacionado

Semelhante a 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
 

Semelhante a 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
 

Último

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Último (20)

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
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
 
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
 
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
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
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
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

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/