SlideShare a Scribd company logo
1 of 37
Download to read offline
The Freebase API
Shawn Simister, September 2010
An entity graph of
people, places, and things.
13 million entities
Every entity has one or more IDs
Each entity has one or more IDs
 /en/u2
 /m/0dw4g
 /wikipedia/en_id/52780
 /authority/facebook/u2
 /authority/musicbrainz/name/ARTIST197
 ...
Entities are connected
… with meaningful properties
Approx. 400 million connections
Where does the data come from?
Freebase schema
  10,448 Properties
     describing ...

    4,936 Types*
   organized into ...

     641 Domains
    (~72 Commons)

*types with 10 or more instances
One entity, many types

                            Person
                            /people/person



                            Actor
                            /film/actor



/en/arnold_schwarzenegger   Politician
                            /government/politician
Freebase Commons
American Football   Cricket                 Language             Projects
Architecture        Data world              Law                  Protected places
Astronomy           Digicams                Library              Radio
Automotive          Education               Location             Rail
Aviation            Engineering             Martial arts         Religion
Awards              Events                  Measurement unit     Royalty
Baseball            Fashion                 Media commons        Soccer
Basketball          Fictional universes     Medicine             Spaceflight
Bicycles            Film                    Meteorology          Sports
Biology             Food                    Miltary              Symbols
Boats               Freebase                Music                Tennis
Books               Games                   Olympics             Theater
Broadcast           Geology                 Opera                Time
Business            Government              Organization         Transportation
Celebrities         Hobbies and interests   People               Travel
Chemistry           Ice hockey              Periodicals          TV
Computers           Influence               Physical geography   Video games
Conferences         Internet                Physics              Visual arts
Developing applications
  with Freebase data
REST API

http://api.freebase.com/api/service/mqlread    Read structured data


http://api.freebase.com/api/service/mqlwrite   Write structured data


http://api.freebase.com/api/service/search     Free text search


http://api.freebase.com/api/service/topic      Simplified topic data

                                               ... and more




   http://www.freebase.com/docs/web_services
MQL

Metaweb Query Language
Rhymes with “pickle”
JSON format
Query by example
Querying Freebase

  [{
       "id" :   null,
       "name" : null,
       "type" : "/film/film"
  }]
Query results
[{
      "id" :   "/en/3_10_to_yuma_1957",
      "name" : "3:10 to Yuma",
      "type" : "/film/film"
},{
      "id" :   "/en/20_000_leagues_under_the_sea",
      "name" : "20,000 Leagues Under the Sea",
      "type" : "/film/film"
},{
      "id" :   "/en/2010_the_year_we_make_contact",
      "name" : "2010: The Year We Make Contact",
      "type" : "/film/film"
},
      ... and so on
}]
Querying Freebase

  [{
       "id" :   null,
       "name" : null,
       "type" : "/film/film"
  }]
Querying Freebase
[{
     "id" :      null,
     "name" : null,
     "type" : "/film/film",
     "directed_by" : {
        "id" : "/en/george_lucas"
     }
}]
Querying Freebase
[{
     "id" :      null,
     "name" : null,
     "type" : "/film/film",
     "directed_by" : {
         "id" : "/en/george_lucas"
     },
     "starring" : [{
         "actor" : {
             "id" : "/en/harrison_ford"
         }
     }]
}]
http://freebase.com/tools/queryeditor
Libraries

freebase-python (best supported)
http://code.google.com/p/freebase-python

          Other languages
  http://wiki.freebase.com/wiki/Libraries
Acre
http://acre.freebase.com
Templating language
<acre:block if=”f”>
    <h2>$f women with this name, including ...</h2>
    <ul acre:for=”w in women”>
        <li><a href=”http://www.freebase.com/view$w.id”>$w.name</a></li>
    </ul>
</acre:block>

<acre:block if=”m”>
    <h2>$m men with this name, including ...</h2>
    <ul acre:for=”m in men”>
        <li><a href=”http://www.freebase.com/view$m.id”>$m.name</a></li>
    </ul>
</acre:block>



      http://www.freebase.com/docs/acre_templates
Freebase Suggest




http://code.google.com/p/freebase-suggest/
Thank you

Everything you need to get started is
        available in the wiki

http://wiki.freebase.com/wiki/HackTO2

More Related Content

Similar to Freebase API @ HackTO 2

DBpedia Framework - BBC Talk
DBpedia Framework - BBC TalkDBpedia Framework - BBC Talk
DBpedia Framework - BBC TalkGeorgi Kobilarov
 
Bruce Damer's presentation for Larry Lessig's Cyberlaw class at Stanford (Mar...
Bruce Damer's presentation for Larry Lessig's Cyberlaw class at Stanford (Mar...Bruce Damer's presentation for Larry Lessig's Cyberlaw class at Stanford (Mar...
Bruce Damer's presentation for Larry Lessig's Cyberlaw class at Stanford (Mar...Bruce Damer
 
The Social Semantic Web: An Introduction
The Social Semantic Web: An IntroductionThe Social Semantic Web: An Introduction
The Social Semantic Web: An IntroductionJohn Breslin
 
Linking library and theatre data
Linking library and theatre dataLinking library and theatre data
Linking library and theatre dataLukas Koster
 
Heritage Management 2018 - 00 assignment 2018
Heritage Management 2018 - 00 assignment 2018Heritage Management 2018 - 00 assignment 2018
Heritage Management 2018 - 00 assignment 2018Iolanda Pensa
 
Mashups in the Information Technology Classroom
Mashups in the Information Technology ClassroomMashups in the Information Technology Classroom
Mashups in the Information Technology ClassroomMark Frydenberg
 
Text Analytic Summit 2010
Text Analytic Summit 2010Text Analytic Summit 2010
Text Analytic Summit 2010Jamie Taylor
 
Introducción a la web semántica - Linkatu - irekia 2012
Introducción a la web semántica - Linkatu - irekia 2012Introducción a la web semántica - Linkatu - irekia 2012
Introducción a la web semántica - Linkatu - irekia 2012Alberto Labarga
 
Humanities in the Digital World
Humanities in the Digital WorldHumanities in the Digital World
Humanities in the Digital WorldDavid De Roure
 
Describing Everything - Open Web standards and classification
Describing Everything - Open Web standards and classificationDescribing Everything - Open Web standards and classification
Describing Everything - Open Web standards and classificationDan Brickley
 
Augmented Reality’s First Educational Applications
Augmented Reality’s First Educational ApplicationsAugmented Reality’s First Educational Applications
Augmented Reality’s First Educational ApplicationsBryan Alexander
 
GitHub & Stack Overflow Recruiting
GitHub & Stack Overflow RecruitingGitHub & Stack Overflow Recruiting
GitHub & Stack Overflow RecruitingTrishWyderka1
 

Similar to Freebase API @ HackTO 2 (16)

DBpedia Framework - BBC Talk
DBpedia Framework - BBC TalkDBpedia Framework - BBC Talk
DBpedia Framework - BBC Talk
 
Bruce Damer's presentation for Larry Lessig's Cyberlaw class at Stanford (Mar...
Bruce Damer's presentation for Larry Lessig's Cyberlaw class at Stanford (Mar...Bruce Damer's presentation for Larry Lessig's Cyberlaw class at Stanford (Mar...
Bruce Damer's presentation for Larry Lessig's Cyberlaw class at Stanford (Mar...
 
Draft of work group
Draft of work groupDraft of work group
Draft of work group
 
The Social Semantic Web: An Introduction
The Social Semantic Web: An IntroductionThe Social Semantic Web: An Introduction
The Social Semantic Web: An Introduction
 
Linking library and theatre data
Linking library and theatre dataLinking library and theatre data
Linking library and theatre data
 
Heritage Management 2018 - 00 assignment 2018
Heritage Management 2018 - 00 assignment 2018Heritage Management 2018 - 00 assignment 2018
Heritage Management 2018 - 00 assignment 2018
 
Mashups in the Information Technology Classroom
Mashups in the Information Technology ClassroomMashups in the Information Technology Classroom
Mashups in the Information Technology Classroom
 
Text Analytic Summit 2010
Text Analytic Summit 2010Text Analytic Summit 2010
Text Analytic Summit 2010
 
Introducción a la web semántica - Linkatu - irekia 2012
Introducción a la web semántica - Linkatu - irekia 2012Introducción a la web semántica - Linkatu - irekia 2012
Introducción a la web semántica - Linkatu - irekia 2012
 
Humanities in the Digital World
Humanities in the Digital WorldHumanities in the Digital World
Humanities in the Digital World
 
Web of data
Web of dataWeb of data
Web of data
 
Describing Everything - Open Web standards and classification
Describing Everything - Open Web standards and classificationDescribing Everything - Open Web standards and classification
Describing Everything - Open Web standards and classification
 
Augmented Reality’s First Educational Applications
Augmented Reality’s First Educational ApplicationsAugmented Reality’s First Educational Applications
Augmented Reality’s First Educational Applications
 
GitHub & Stack Overflow Recruiting
GitHub & Stack Overflow RecruitingGitHub & Stack Overflow Recruiting
GitHub & Stack Overflow Recruiting
 
Alternatives to Copyright
Alternatives to CopyrightAlternatives to Copyright
Alternatives to Copyright
 
Digital Methods Tool Medley
Digital Methods Tool MedleyDigital Methods Tool Medley
Digital Methods Tool Medley
 

Recently uploaded

Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
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 FMESafe Software
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
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 WorkerThousandEyes
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
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 WoodJuan lago vázquez
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 

Recently uploaded (20)

Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
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
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
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
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
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
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 

Freebase API @ HackTO 2