SlideShare a Scribd company logo
1 of 26
Download to read offline
HackU 2013
University of Dundee
         February 2013
The web is full of
    juicy and
long lasting data




HackU 2013 – University of Dundee
And there is a lot of it around




HackU 2013 – University of Dundee
However, our
attempts to get it
 can sometimes
    be clumsy




HackU 2013 – University of Dundee
What we need is
                                    an easy way to
                                    get to that data




HackU 2013 – University of Dundee
What about using APIs?


                  Like RSS, JSON, XML, CSV, SOAP, REST, …




HackU 2013 – University of Dundee
We could use APIs. But there are
             thousands of APIs...




HackU 2013 – University of Dundee
and it’s painful to get your head
                    around them!




HackU 2013 – University of Dundee
What if there was one API…



                      One API for everything
                          on the web?


HackU 2013 – University of Dundee
One World
         One Web
         One API ?

Can it ever exist?

        Sounds like
         politics!


HackU 2013 – University of Dundee
Yes it does exist!

                                     YQL:

                                    The API
                                     for the
                                      web
HackU 2013 – University of Dundee
The Yahoo Query Language, or short
     YQL is a unified interface language
                 to the web.




                What are you waiting for?
             http://developer.yahoo.com/yql
HackU 2013 – University of Dundee
Accessing the web and its services
       now becomes easy as ABC SQL



   select * from web
        select {what} from {service}
              where {condition}


HackU 2013 – University of Dundee
Let’s try a real YQL example
                        I love kittens.
                YQL get me 5 kitten photos

      select * from
flickr.photos.search where
  text="kitten" limit 5



HackU 2013 – University of Dundee
Let’s try a real YQL example
              select * from
        flickr.photos.search where
          text="kitten" limit 5




                                Output can be XML or JSON
HackU 2013 – University of Dundee
I want to use YQL and I want it now.
              That’s the easy part…
http://query.yahooapis.com/v1/public/yql?q=
<SQL_QUERY>&format=<FORMAT>

e.g.

http://query.yahooapis.com/v1/public/yql?q=
select%20*%20from%20rss%20where%20url%3D
%22http%3A%2F%2Frss.news.yahoo.com%2Frss
%2Ftopstories%22&format=json

                There’s also a private endpoint which uses oauth authentication
                http://developer.yahoo.com/yql/guide/authorization-access.html

HackU 2013 – University of Dundee
That’s not all… You can mix and
        match several web services using
                the in() command




HackU 2013 – University of Dundee
Mix and match…

         Find photos in Dundee, UK with a
         Creative Commons “By” license

select * from flickr.photos.info where
photo_id in (select id from
flickr.photos.search where woe_id in (select
woeid from geo.places where text=’dundee,uk')
and license=4)



HackU 2013 – University of Dundee
Now use your imagination… and
                   build away!




                http://isithackday.com/hacks/cantine/index.php?loc=covent+garden
HackU 2013 – University of Dundee
Yahoo! offers lots of data for free!
flickr.photos.exif	
                   local.search	
              mybloglog.community.find	
  
flickr.photos.info	
                   music.ar1st.id	
            mybloglog.member	
  
flickr.photos.interes1ngness	
         music.ar1st.popular	
       mybloglog.member.contacts	
  
flickr.photos.recent	
                 music.ar1st.search	
        mybloglog.member.newwithcontacts	
  
flickr.photos.search	
                 music.ar1st.similar	
       mybloglog.member.newwithme	
  
flickr.photos.sizes	
                  music.release.ar1st	
       mybloglog.members.find	
  
flickr.places	
                        music.release.id	
          mybloglog.stats.find	
  
flickr.places.info	
                   music.release.popular	
     upcoming.category	
  
geo.places	
                          music.release.search	
      upcoming.country	
  
geo.places.ancestors	
                music.track.id	
            upcoming.events	
  
geo.places.belongtos	
                music.track.popular	
       upcoming.events.bes1nplace	
  
geo.places.children	
                 music.track.search	
        upcoming.groups	
  
geo.places.neighbors	
                music.video.category	
      upcoming.metro	
  
geo.places.parent	
                   music.video.id	
            upcoming.state	
  
geo.places.siblings	
                 music.video.popular	
       upcoming.user	
  
geo.placetypes	
                      music.video.search	
        upcoming.venue	
  
gnip.ac1vity	
                        music.video.similar	
       	
  
                                      	
  


  HackU 2013 – University of Dundee
… and more of it. ALL FREE!
search.images	
                       search.images	
                   search.images	
  
search.news	
                         search.news	
                     search.news	
  
search.siteexplorer.inlinks	
         search.siteexplorer.inlinks	
     search.siteexplorer.inlinks	
  
search.siteexplorer.pages	
           search.siteexplorer.pages	
       search.siteexplorer.pages	
  
search.spelling	
                     search.spelling	
                 search.spelling	
  
search.suggest	
                      search.suggest	
                  search.suggest	
  
search.termextract	
                  search.termextract	
              search.termextract	
  
search.web	
                          search.web	
                      search.web	
  
social.connec1ons	
                   social.connec1ons	
               social.connec1ons	
  
social.contacts	
                     social.contacts	
                 social.contacts	
  
social.presence	
                     social.presence	
                 social.presence	
  
social.profile	
                       social.profile	
                   social.profile	
  
social.updates	
                      social.updates	
                  social.updates	
  
weather.forecast	
                    weather.forecast	
                weather.forecast	
  
yahoo.iden1ty	
                       yahoo.iden1ty	
                   yahoo.iden1ty	
  
yap.setsmallview	
                    yap.setsmallview	
                yap.setsmallview	
  




  HackU 2013 – University of Dundee
You want more data?
           amazon	
                     nmm	
  
           bitly	
                      nyt	
  
           delicious	
                  opensocial	
  
           dopplr	
                     search	
  
           etsy	
                       shopping	
  
           friendfeed	
                 social	
  
           github	
                     twi@er	
  
           Greader	
                    update.groovy	
  
           guardian	
                   weather	
  
           imdb	
                       wesabe	
  
           iploca1on	
                  whitepages	
  
           las?m	
                      yahoo	
  
           nestoria	
                   yelp	
  
           ne?lix	
                     zillow	
  
           	
                           	
  
                      http://github.com/spullara/yql-tables/tree/master
HackU 2013 – University of Dundee
Why don’t you create your own data
             source for YQL…

                    Using YQL’s Open Tables

All we need to do is create a schema that
       explains the data structure.

 http://developer.yahoo.com/yql/guide/yql-opentables-
                     chapter.html




HackU 2013 – University of Dundee
What else can you do with YQL?


Get data of a website
          select * from html where url='http://
          www.telegraph.co.uk/' and xpath='//h3/a'




Get data of several websites in one query
          select * from rss where url in (<url1>,<url2>);




HackU 2013 – University of Dundee
Anything else? Yes...


Create a View (Filtered data set)
     use 'http://yqlblog.net/samples/searchrank.xml'
     as searchrank;
     select * from searchrank where query='pizza' and
     dispurl like '%pizzahut%'



     More about YQL Execute:
     http://developer.yahoo.com/yql/guide/
     yql-execute-chapter.html

HackU 2013 – University of Dundee
YQL, where to start…

User guide:
http://developer.yahoo.com/yql

YQL Console (Test your queries…)
http://developer.yahoo.com/yql/console/




HackU 2013 – University of Dundee

More Related Content

Similar to Dundee University HackU 2013 - YQL

Open Hack London - Introduction to YQL
Open Hack London - Introduction to YQLOpen Hack London - Introduction to YQL
Open Hack London - Introduction to YQLChristian Heilmann
 
YQL - Christian Heilmann Open Hack London presentation
YQL - Christian Heilmann Open Hack London presentationYQL - Christian Heilmann Open Hack London presentation
YQL - Christian Heilmann Open Hack London presentationKorben00
 
Emerging Technologies
Emerging TechnologiesEmerging Technologies
Emerging TechnologiesKaren Brooks
 
Exploring the Semantic Web
Exploring the Semantic WebExploring the Semantic Web
Exploring the Semantic WebRoberto García
 
99 scholars - increase your online research visibility
99 scholars - increase your online research visibility99 scholars - increase your online research visibility
99 scholars - increase your online research visibility99Scholars
 
Technology Driven Diff Instruction
Technology Driven Diff InstructionTechnology Driven Diff Instruction
Technology Driven Diff InstructionVicki Davis
 
Cooltools nsw elearning11
Cooltools nsw elearning11Cooltools nsw elearning11
Cooltools nsw elearning11Michael Coghlan
 
Web 2.0 tools for science
Web 2.0 tools for scienceWeb 2.0 tools for science
Web 2.0 tools for scienceegaunce
 
iCame iSaw iGoogled - MDGAFE
iCame iSaw iGoogled - MDGAFE iCame iSaw iGoogled - MDGAFE
iCame iSaw iGoogled - MDGAFE Joquetta Johnson
 
Differentiated Instruction and Assessment with Technology - NCTIES 1 pm
Differentiated Instruction and Assessment with Technology - NCTIES 1 pmDifferentiated Instruction and Assessment with Technology - NCTIES 1 pm
Differentiated Instruction and Assessment with Technology - NCTIES 1 pmVicki Davis
 
Technology Driven Differentiated Instruction 330pm
Technology Driven Differentiated Instruction 330pmTechnology Driven Differentiated Instruction 330pm
Technology Driven Differentiated Instruction 330pmVicki Davis
 
Web 2.0: What's the Buzz?
Web 2.0: What's the Buzz?Web 2.0: What's the Buzz?
Web 2.0: What's the Buzz?Julia Parra
 
Technology Driven Differentiated Instruction June 2013 #tic13
Technology Driven Differentiated Instruction June 2013 #tic13Technology Driven Differentiated Instruction June 2013 #tic13
Technology Driven Differentiated Instruction June 2013 #tic13Vicki Davis
 
Goodle Developer Days London 2008 - Open Social Update
Goodle Developer Days London 2008 - Open Social UpdateGoodle Developer Days London 2008 - Open Social Update
Goodle Developer Days London 2008 - Open Social UpdatePatrick Chanezon
 
Preparing for the Impact of Web 3.0
Preparing for the Impact of Web 3.0 Preparing for the Impact of Web 3.0
Preparing for the Impact of Web 3.0 Judy O'Connell
 
Learning in Networks of Knowledge
Learning in Networks of KnowledgeLearning in Networks of Knowledge
Learning in Networks of KnowledgeJudy O'Connell
 

Similar to Dundee University HackU 2013 - YQL (20)

Open Hack London - Introduction to YQL
Open Hack London - Introduction to YQLOpen Hack London - Introduction to YQL
Open Hack London - Introduction to YQL
 
Things to use, find and share
Things to use, find and shareThings to use, find and share
Things to use, find and share
 
Georgia Tech Hack Day
Georgia Tech Hack DayGeorgia Tech Hack Day
Georgia Tech Hack Day
 
YQL - Christian Heilmann Open Hack London presentation
YQL - Christian Heilmann Open Hack London presentationYQL - Christian Heilmann Open Hack London presentation
YQL - Christian Heilmann Open Hack London presentation
 
Emerging Technologies
Emerging TechnologiesEmerging Technologies
Emerging Technologies
 
Exploring the Semantic Web
Exploring the Semantic WebExploring the Semantic Web
Exploring the Semantic Web
 
99 scholars - increase your online research visibility
99 scholars - increase your online research visibility99 scholars - increase your online research visibility
99 scholars - increase your online research visibility
 
Technology Driven Diff Instruction
Technology Driven Diff InstructionTechnology Driven Diff Instruction
Technology Driven Diff Instruction
 
Cooltools nsw elearning11
Cooltools nsw elearning11Cooltools nsw elearning11
Cooltools nsw elearning11
 
Web 2.0 tools for science
Web 2.0 tools for scienceWeb 2.0 tools for science
Web 2.0 tools for science
 
iCame iSaw iGoogled - MDGAFE
iCame iSaw iGoogled - MDGAFE iCame iSaw iGoogled - MDGAFE
iCame iSaw iGoogled - MDGAFE
 
Differentiated Instruction and Assessment with Technology - NCTIES 1 pm
Differentiated Instruction and Assessment with Technology - NCTIES 1 pmDifferentiated Instruction and Assessment with Technology - NCTIES 1 pm
Differentiated Instruction and Assessment with Technology - NCTIES 1 pm
 
Technology Driven Differentiated Instruction 330pm
Technology Driven Differentiated Instruction 330pmTechnology Driven Differentiated Instruction 330pm
Technology Driven Differentiated Instruction 330pm
 
Web 2.0: What's the Buzz?
Web 2.0: What's the Buzz?Web 2.0: What's the Buzz?
Web 2.0: What's the Buzz?
 
Technology Driven Differentiated Instruction June 2013 #tic13
Technology Driven Differentiated Instruction June 2013 #tic13Technology Driven Differentiated Instruction June 2013 #tic13
Technology Driven Differentiated Instruction June 2013 #tic13
 
Web 2.0 Playground
Web 2.0 PlaygroundWeb 2.0 Playground
Web 2.0 Playground
 
Goodle Developer Days London 2008 - Open Social Update
Goodle Developer Days London 2008 - Open Social UpdateGoodle Developer Days London 2008 - Open Social Update
Goodle Developer Days London 2008 - Open Social Update
 
iCame! iSaw! iGoogled!
iCame! iSaw! iGoogled!iCame! iSaw! iGoogled!
iCame! iSaw! iGoogled!
 
Preparing for the Impact of Web 3.0
Preparing for the Impact of Web 3.0 Preparing for the Impact of Web 3.0
Preparing for the Impact of Web 3.0
 
Learning in Networks of Knowledge
Learning in Networks of KnowledgeLearning in Networks of Knowledge
Learning in Networks of Knowledge
 

Recently uploaded

ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayMakMakNepo
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 

Recently uploaded (20)

ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up Friday
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 

Dundee University HackU 2013 - YQL

  • 1. HackU 2013 University of Dundee February 2013
  • 2. The web is full of juicy and long lasting data HackU 2013 – University of Dundee
  • 3. And there is a lot of it around HackU 2013 – University of Dundee
  • 4. However, our attempts to get it can sometimes be clumsy HackU 2013 – University of Dundee
  • 5. What we need is an easy way to get to that data HackU 2013 – University of Dundee
  • 6. What about using APIs? Like RSS, JSON, XML, CSV, SOAP, REST, … HackU 2013 – University of Dundee
  • 7. We could use APIs. But there are thousands of APIs... HackU 2013 – University of Dundee
  • 8. and it’s painful to get your head around them! HackU 2013 – University of Dundee
  • 9. What if there was one API… One API for everything on the web? HackU 2013 – University of Dundee
  • 10. One World One Web One API ? Can it ever exist? Sounds like politics! HackU 2013 – University of Dundee
  • 11. Yes it does exist! YQL: The API for the web HackU 2013 – University of Dundee
  • 12. The Yahoo Query Language, or short YQL is a unified interface language to the web. What are you waiting for? http://developer.yahoo.com/yql HackU 2013 – University of Dundee
  • 13. Accessing the web and its services now becomes easy as ABC SQL select * from web select {what} from {service} where {condition} HackU 2013 – University of Dundee
  • 14. Let’s try a real YQL example I love kittens. YQL get me 5 kitten photos select * from flickr.photos.search where text="kitten" limit 5 HackU 2013 – University of Dundee
  • 15. Let’s try a real YQL example select * from flickr.photos.search where text="kitten" limit 5 Output can be XML or JSON HackU 2013 – University of Dundee
  • 16. I want to use YQL and I want it now. That’s the easy part… http://query.yahooapis.com/v1/public/yql?q= <SQL_QUERY>&format=<FORMAT> e.g. http://query.yahooapis.com/v1/public/yql?q= select%20*%20from%20rss%20where%20url%3D %22http%3A%2F%2Frss.news.yahoo.com%2Frss %2Ftopstories%22&format=json There’s also a private endpoint which uses oauth authentication http://developer.yahoo.com/yql/guide/authorization-access.html HackU 2013 – University of Dundee
  • 17. That’s not all… You can mix and match several web services using the in() command HackU 2013 – University of Dundee
  • 18. Mix and match… Find photos in Dundee, UK with a Creative Commons “By” license select * from flickr.photos.info where photo_id in (select id from flickr.photos.search where woe_id in (select woeid from geo.places where text=’dundee,uk') and license=4) HackU 2013 – University of Dundee
  • 19. Now use your imagination… and build away! http://isithackday.com/hacks/cantine/index.php?loc=covent+garden HackU 2013 – University of Dundee
  • 20. Yahoo! offers lots of data for free! flickr.photos.exif   local.search   mybloglog.community.find   flickr.photos.info   music.ar1st.id   mybloglog.member   flickr.photos.interes1ngness   music.ar1st.popular   mybloglog.member.contacts   flickr.photos.recent   music.ar1st.search   mybloglog.member.newwithcontacts   flickr.photos.search   music.ar1st.similar   mybloglog.member.newwithme   flickr.photos.sizes   music.release.ar1st   mybloglog.members.find   flickr.places   music.release.id   mybloglog.stats.find   flickr.places.info   music.release.popular   upcoming.category   geo.places   music.release.search   upcoming.country   geo.places.ancestors   music.track.id   upcoming.events   geo.places.belongtos   music.track.popular   upcoming.events.bes1nplace   geo.places.children   music.track.search   upcoming.groups   geo.places.neighbors   music.video.category   upcoming.metro   geo.places.parent   music.video.id   upcoming.state   geo.places.siblings   music.video.popular   upcoming.user   geo.placetypes   music.video.search   upcoming.venue   gnip.ac1vity   music.video.similar       HackU 2013 – University of Dundee
  • 21. … and more of it. ALL FREE! search.images   search.images   search.images   search.news   search.news   search.news   search.siteexplorer.inlinks   search.siteexplorer.inlinks   search.siteexplorer.inlinks   search.siteexplorer.pages   search.siteexplorer.pages   search.siteexplorer.pages   search.spelling   search.spelling   search.spelling   search.suggest   search.suggest   search.suggest   search.termextract   search.termextract   search.termextract   search.web   search.web   search.web   social.connec1ons   social.connec1ons   social.connec1ons   social.contacts   social.contacts   social.contacts   social.presence   social.presence   social.presence   social.profile   social.profile   social.profile   social.updates   social.updates   social.updates   weather.forecast   weather.forecast   weather.forecast   yahoo.iden1ty   yahoo.iden1ty   yahoo.iden1ty   yap.setsmallview   yap.setsmallview   yap.setsmallview   HackU 2013 – University of Dundee
  • 22. You want more data? amazon   nmm   bitly   nyt   delicious   opensocial   dopplr   search   etsy   shopping   friendfeed   social   github   twi@er   Greader   update.groovy   guardian   weather   imdb   wesabe   iploca1on   whitepages   las?m   yahoo   nestoria   yelp   ne?lix   zillow       http://github.com/spullara/yql-tables/tree/master HackU 2013 – University of Dundee
  • 23. Why don’t you create your own data source for YQL… Using YQL’s Open Tables All we need to do is create a schema that explains the data structure. http://developer.yahoo.com/yql/guide/yql-opentables- chapter.html HackU 2013 – University of Dundee
  • 24. What else can you do with YQL? Get data of a website select * from html where url='http:// www.telegraph.co.uk/' and xpath='//h3/a' Get data of several websites in one query select * from rss where url in (<url1>,<url2>); HackU 2013 – University of Dundee
  • 25. Anything else? Yes... Create a View (Filtered data set) use 'http://yqlblog.net/samples/searchrank.xml' as searchrank; select * from searchrank where query='pizza' and dispurl like '%pizzahut%' More about YQL Execute: http://developer.yahoo.com/yql/guide/ yql-execute-chapter.html HackU 2013 – University of Dundee
  • 26. YQL, where to start… User guide: http://developer.yahoo.com/yql YQL Console (Test your queries…) http://developer.yahoo.com/yql/console/ HackU 2013 – University of Dundee