440 likes | 580 Views
Participating in the Web of Data. Christian Heilmann / @codepo8 Senior Developer Evangelist Yahoo Developer Network http://developer.yahoo.com http://icant.co.uk http:// developer-evangelis m .com. Las Vegas, Nevada 17. March 2010. Pencils down!. http://delicious.com/codepo8/mix10.
E N D
Participating in the Web of Data Christian Heilmann / @codepo8 Senior Developer Evangelist Yahoo Developer Network http://developer.yahoo.com http://icant.co.uk http://developer-evangelism.com Las Vegas, Nevada 17. March 2010
Pencils down! http://delicious.com/codepo8/mix10
Joining the Enterprise crew http://www.flickr.com/photos/rspeed/4115466351/
And now? The web as the platform The Mobile Web Geolocation
Time to shift down a gear... http://www.flickr.com/photos/neurolysis/3335080917/
Finding the common denominator http://www.flickr.com/photos/kentbrew/3764641730/
Tapping into the world of data http://www.flickr.com/photos/bixentro/2199711056/
Why APIs work End Users Data Source Developers Application Programming Interface Other Apps
Why APIs work End Users On-demand delivery of the needed data in the right format. Access of the data source only when needed - otherwise caching works. Data Source Developers Application Programming Interface Other Apps
APIs made easy select {what} from {where} where {conditions}
YQL examples select * from flickr.photos.search where text="donkey" and license=4
YQL examples select * from craigslist.search where location="sfbay" and type="sss" and query="flower pot"
YQL examples select * from google.news where q="healthcare"
YQL examples select * from query.multi where queries in ( 'select * from nyt.article.search where query="healthcare"', 'select * from microsoft.bing.news where query="healthcare"', 'select * from google.news where q="healthcare"' )
YQL examples select content from html where url="http://www.foxnews.com/" and xpath="//h2/a"
YQL examples select * from google.translate where q in (select content from html where url="http://www.foxnews.com" and xpath="//h2/a”) and target="fr"
YQL examples insert into wordpress.post (title, description, blogurl, username, password) values ("Test Title", "This is a test body", "http://yqltest.wordpress.com", "yqltest", "password")
API for APIs http://query.yahooapis.com/v1/public/yql? q={query} &format=xml|json &callback={callbackfunction}
APIs made easy http://developer.yahoo.com/yql • No time wasted reading API docs • Creating complex queries with the console. • Filter data before use • Fast pipes. • Caching + converting • Server-side JavaScript
Then turn it into an API! select * from csv where url="http://spreadsheets.google.com/pub?key=tpWDkIZMZleQaREf493v1Jw&output=csv" and columns="Year,City,Sport,Discipline,Country,Event, Gender,Type" and Year="1924"
In summary... • We have the network and we have the technology. • We have people who work effectively with the tools they use. • We have a new generation coming who naturally use the internet and are happy with our web interfaces. • If we use our efforts 50/50 on new and building APIs and converters to get the data of the old the web will rock.
Homework http://github.com/yql/yql-tables
THANKS! Photos: flickr.com, oddlyspecific.com, thereifixedit.com, failblog.org, epicwinftw.com, the internets.