SlideShare a Scribd company logo
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

Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Product School
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Thierry Lestable
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...Product School
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesThousandEyes
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3DianaGray10
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaCzechDreamin
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxAbida Shariff
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...Elena Simperl
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Jeffrey Haguewood
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfCheryl Hung
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsPaul Groth
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekCzechDreamin
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Alison B. Lowndes
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxDavid Michel
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka DoktorováCzechDreamin
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Julian Hyde
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...CzechDreamin
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIES VE
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeCzechDreamin
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Product School
 

Recently uploaded (20)

Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 

Freebase API @ HackTO 2