• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
YQL and Geo
 

YQL and Geo

on

  • 478 views

 

Statistics

Views

Total Views
478
Views on SlideShare
478
Embed Views
0

Actions

Likes
0
Downloads
4
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    YQL and Geo YQL and Geo Presentation Transcript

    • 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/