SlideShare une entreprise Scribd logo
1  sur  37
Télécharger pour lire hors ligne
Freebase Schema
        Jamie Taylor




Wednesday, December 8, 2010
Goals



        •   Schema: The Freebase Data Model
        •   Schema as API
        •   Schema patterns



Wednesday, December 8, 2010
Freebase is a collection of facts
                    Sofia Coppola directed Marie Antoinette




                                 {
                                 {
                      {

                        Freebase only contains
                           nodes and Links
Wednesday, December 8, 2010
Freebase is a Graph




Wednesday, December 8, 2010
Freebase is a labeled Graph
                              child                  wrote

                                                         directed
               parent            sibling

                                  directed

                                      starred_in                    directed

                                                   starred_in


Wednesday, December 8, 2010
Schema

                          "All the things you can say
                          about something in Freebase"




                       Schema is the data model for Freebase



Wednesday, December 8, 2010
All nodes are “/type/object”
 /m/02vyw                                     /people/person
         id                            type
                                        type /film/director



        [{
                                    /type/object/name
          "id":"/m/02vyw",            name
          "name":null,
          "type":[{}]
                                  “Francis Coppola”
        }]

Wednesday, December 8, 2010
Types suggest properties to use
 /m/02vyw
         id
                                                      type /film/director
                                  lm
                                /fi
                              or
                              ct
                    ire
                  /d
             lm
          /fi




                              /type/object/id /en/bram_stokers_dracula
Wednesday, December 8, 2010
Queries follow schema

                          [{
                             "id": "/en/francis_ford_coppola",
                             "/film/director/film": [{
                               "id":null,
                                "name":null
                             }]
                          }]




Wednesday, December 8, 2010
Properties link the graph together
 /m/02vyw
         id
                                                      type /film/director
                                  lm
                                /fi
                              or
                              ct
                    ire




                                         ten _by
                  /d




                                   wri t
             lm
          /fi




                              /type/object/id /en/bram_stokers_dracula
Wednesday, December 8, 2010
Queries follow schema

                          [{
                             "id": "/en/francis_ford_coppola",     Name is returned
                                                                   (how to get ID?)
                             "/film/director/film": [{               How to get all the
                               "id": "/en/bram_stokers_dracula",   writters for all of
                                                                   Coppola’s movies?
                                "written_by":null
                             }]
                          }]




Wednesday, December 8, 2010
Core Concepts




Wednesday, December 8, 2010
Core Concepts

                   Instance:
                        •     Topic: "a thing in the world"
                              •   Blade Runner, Ridley Scott, NBC, Last Proof

                   Schema:
                        •     Types - Categorical collections of instances
                        •     Properties - Relationships between instances


Wednesday, December 8, 2010
Core Concepts


   An instance may have multiple Types
        •   "Co-Types" (Types are mix-ins)
        •   Arnold Schwartzeneger
             •    Person, Actor, Politician, Sports Figure




Wednesday, December 8, 2010
Lessons from everyday vocabulary

                                                          Wikipedia Word Frequency

                                20000000


                                18000000


                                16000000


                                14000000


                                12000000
                    Frequency




                                10000000


                                 8000000


                                 6000000


                                 4000000


                                 2000000


                                       0
                                           0         20        40        60          80   100   120
                                                                        Rank
                   Data from Victor S. Grishchenko

Wednesday, December 8, 2010
Schema Principle #1
                                                                      Event Example:
                                                                      -Film Festival
                                                                      -Battle of Waterloo




                              Use Co-Types Liberally:
                                 Use a few large, encompassing Types to
                                 provide general information

                                 Use several smaller, fine grained Types to
                                 provide detailed information




Wednesday, December 8, 2010
Core Concepts                  Relational DB
                                                                vs
                                                                RDF




               Properties are defined on Types
                   •    Properties are the vocabulary for a specific Type
                   •    An instance must be “an instance of a type”
                        before it can use the Type’s properties to describe
                        itself




Wednesday, December 8, 2010
Core Concepts      Expected Type ~ RDFS Range




      •    A Property Value has a specific Type
           •    "Expected Type"

      •    A Property has exactly one Expected Type


                                  Manufactures




Wednesday, December 8, 2010
Core Concepts


                   Expected Types (Property Values):
                        •     Value Types (literals)
                              •   String (two flavors), Integer, Float, DateTime, boolean

                        •     Object Types
                              •   Everything Else




Wednesday, December 8, 2010
/type/object   contrast to common
                                                       topic




                Everything in Freebase has this Type
                Provides basic properties
                          •   Type

                          •   Name

                          •   .......

                All other Properties come from some other Type!



Wednesday, December 8, 2010
/common/topic
                   "Topics"
                        •     Things we have discourse about
                        •     Provides properties:
                              •   Alias

                              •   Article

                              •   Image

                              •   Weblinks

                        •     Assumed to be an "Included Type" for any
                              "standard" type
Wednesday, December 8, 2010
Schema Patterns


                Compound Value
                Mediator
                Phylogeny
                Enumeration



Wednesday, December 8, 2010
Compound Value                                      complex literal




                Two or more properties which can only be
                interpreted with regard to one another
                Population
                     •    Dated Integer ("when did this location have that many people")

                Movie Budget
                     •    Dated money value

                     •    Date, Currency, Amount

                Ticker Symbol
                     •    Exchange, Symbol


Wednesday, December 8, 2010
Compound Value
                                                 currency
                              estimated_budget     amount     31MM

       {
         "id":   "/en/apocalypse_now",
                                                 valid_date   1979
         "type": "/film/film",
         "estimated_budget": [{
           "currency":   null,
           "amount":     null,
           "valid_date": null
         }]
       }
Wednesday, December 8, 2010
Mediator               combine date annotation and
                                                        character = tv character



           An annotation on the link between two Topics
              • Requires an object between the two Topics
              • The Topics become separated by two properties


                actor             performance                       film


                                    character

           • Also useful for indicating the dates when a
                relationship existed (e.g., education, employment, etc.)
Wednesday, December 8, 2010
Mediator




  {
    "id":   "/en/marie_antoinette_2006",
    "type": "/film/film",
    "starring": [{
      "actor":null,
      "character":null
    }]
  }
Wednesday, December 8, 2010
Phylogeny
                  Used when instances form a hierarchy
                  Phylogeny properties have an expected
                  Type which is the same as the Type on
                  which the property is defined.

                              Examples:
                              •   /location/location/containedby

                              •   /computer/computer/parent_model

                              •   /tv/tv_program/spin_offs


Wednesday, December 8, 2010
Phylogeny




 {
   "id": "/en/fairfax_california",
   "/location/location/containedby": [{
     "id": null,
     "containedby": [{
       "id": null        Why can I use the
                         short name??
     }]
   }]
 }
Wednesday, December 8, 2010
Enumerated Value
                Closed collection of “values” for a property
                Constrains relations to fixed set of objects


        • /people/person/gender
                   { female, male, other }

        • /visual_art/visual_artist/art_forms
                   { drawing, painting, print making, photography.... }


Wednesday, December 8, 2010
Explore the Freebase Graph
                              child                  wrote

                                                         directed
               parent            sibling

                                  directed

                                      starred_in                    directed

                                                   starred_in


Wednesday, December 8, 2010
Explore the Freebase Graph


                              [{
                                "id":   null,
                                "type": "/film/director"
                              }]




Wednesday, December 8, 2010
Explore the Freebase Graph


                              [{
                                "id":   null,
                                "type": "/film/director",
                                "/people/person/children": [{
                                   "id":   null,
                                   "type": "/film/director"
                                }]
                              }]




Wednesday, December 8, 2010
Explore the Freebase Graph

                              [{
                                "id":   null,
                                "type": "/film/director",
                                "film":[ ],
                                "/people/person/children": [{
                                   "id":   null,
                                   "type": "/film/director"
                                   "film":[ ]
                                }]
                              }]




Wednesday, December 8, 2010
Explore the Freebase Graph
                              [{
                                "id":   null,
                                "type": "/film/director",
                                "film": [ ],
                                "/people/person/children": [{
                                   "id":   null,
                                   "type": "/film/director",
                                   "film": [{
                                     "name":null,
                                     "starring": [{
                                         "actor": null
                                     }]
                                   }]
                                }]
                              }]



Wednesday, December 8, 2010
namespace




   It’s all nodes
                                                                                                                                                                                                                                                /
                                                                                                                                                                                                                                                                         pe
                                                                                                                                                                                                                                                                            ople
                                                                                                                                                                                                                                                                                 ( key
                                                                                                                                                                                                 y)                                                                                       )
                                                                                                                                                                                             (ke
                                                                                                                                                                                       film

                                                                                                                                                                                                                                                                                                                          domain



                                                                                                                                                                                                                                                                                                                type
                                                                                                                               domain                                                                                                                                                                                     /people




      and links!
                                                                                                                                          type
                                                                                                                                /film


                                                                                                                                                                                                                                           e
                                                                                                                                                                         insta                                                       anc
                                                                                                                                                                               nce                      type                  inst


                                                                                                                                                                                                                 nam
                                                                                                                                                                                                                    e




                                                                                                                                                                                                                                                                                                     y)
                                                                                                                                                                                                                                                                                                (ke
                                                                                                                                                                                                e
                                                                                                                                                                                             typ
                                                                                                                                                                                                                                   "domain"




                                                                                                                                                                                                                                                                                               son
                                                                                                                                                                                                                                                                                                                                            type




                                                                                                                                                  film




                                                                                                                                                                                                                                                                                              per
                                                                                                                                                   (key
                                                                                                                                                                                                                                                                                                                                                          name           "property"




                                                                                                                                                                                             ins
                                                                                                                                                                                                                                ce                                                                                            type




                                                                                                                                                        )




                                                                                                                                                                                              tan
                                                                                                                                                                                                                                                                                                                                                                 propert
                                                                                                                                                                                                                             tan                                                                                                                                        ies
                                                                                                                                                                                                                        ins




                                                                                                                                                                                                   ce
                                                                                                                                                                                                                                                                                                                                                              ins
                                                                                                                                                                                                                                                                                                                                                                  tan
                                                                                                                                                                   "type"                                                                                                                                                                                            ce




                                                                                                                                                                                                                                                                                                                                             instance
                                                                                                                                                                                                          type
                                                                                                                                                                                             nam
                                                                                                                                                                                                   e                    type           instance                                                                                                                                   typ
                                                                                                                                                                                                                                                                                                                                                                                        e
                                                                                                                                                                                                                                                                                                                                                                                                property
                                                                                                                                                                                                                                       instance
                                                                                                                                                                                                                                                                                                                                                                     expected_type
                                                                                                                                                                                     ce
                                                                                                                                                                                 tan
                                                                                                                                                                           ins




                                                                                                                                                                                                                                                                                                                                                                                                       na
                                                                                                                                                                                                                       ins




                                                                                                                                                                                                                                                                                                                                                                                                          m
                                                                                                                                                                                                   nce




                                                                                                                                                                                                                                                                                                                                                                                                            e
                                                                                                                                                                                                                        tan
                                                                                                                                                                                                insta




                                                                                                                                                                                                                          ce
                                                                                                                                                                                                                                                                                                                                                                                                           "expected type"




                                                                                                                                                                                                                                                                                                                                     type
                                                                                                                                                                                                                                                                                                                               property

                                                                                                              type                                          type                                                                                            type
                                                                                                                                                                                                                                                                                                                                                                                        typ
                                                                                                                                type                                                                                                           type
                                                                                                                                                                                                                                                                                                                                                                                            e
                                                                                                                                                                            type                                                                                                properties                                                  na
                                                                                                                                                                                                                                                                                                                                                        expected
                                                                                                                                                                                                                                                                                                                                                                  _type                         date_time
                                                                                                                                                                                                                                                                                                                                               me
                                                                                                                                                                                                                                                                   na
                                                                                                                               na                                                                                                                                    me
                                                                                                                                 me                                       na
                                                                                                                                                                            m
                                                                                                                                                                                 e
                                                                                                                                                                                                                                                                                   "person"                                                             "date of birth"




                                                                                                                                                                                                                                                      nce
                                                                                                                                                 "film"




                                                                                                                                                              instance
                                                                                                                    instance




                                                                                                                                                                                                                                                    insta
                                                                                                                                                                                              "actor"




                                                                                                                      e                                                                                                                                                                LEGEND
                                                                                                 film           typ

                                                                                                             name
                                                                                                                                       "Blade Runner"                                                                                                                       /type/object
                                                                                                  starring




                                                                                                                                                                                                                                                                           /type/object + /common/topic
                                                                                                  film




                                                                                                                                                                                                                                                              obj type
                                                        film
                                                      character                               performance

                                                                                                                                                                                                                                                            /namespace
                                                  e
                                               nam
                              "Rick Deckard"
                                                                                                                                                                                                                                                                          outgoing                             incoming
                                                                                                  actor




                                                                                                                                                                                                                                                                                       keyvalue (key)
                                                                                                  film




                                                                                                 actor                                                                                                                                                                    out
                                                                                                                                                                                                                                                                                goin
                                                                                                                                                                                                                                                                                     gp
                                                                                                                                                                                                                                                                                        rop
                                                                                                person            e                                                                                                                                                                         e  rty
                                                                                                              typ
                                                                                                                      type                                                                                                                                                                                literal value
                                                                                                             nam
                                                                                         th                     e
                                                                               _o   f_bir
                                                                          date
                                                                                                                                "Harrison Ford"
                                                             1942-07-13




Wednesday, December 8, 2010
Domains, Bases and Commons

                              "commons"             individual's "bases"
                                          promo
                                               te


                                           Blade
                                           Runner



                              "domains"


Wednesday, December 8, 2010
Questions?!

                Docs: www.freebase.com/docs
                Wiki: wiki.freebase.com
                Mailing List: lists.freebase.com




Wednesday, December 8, 2010

Contenu connexe

Tendances

Running Android on the Raspberry Pi: Android Pie meets Raspberry Pi
Running Android on the Raspberry Pi: Android Pie meets Raspberry PiRunning Android on the Raspberry Pi: Android Pie meets Raspberry Pi
Running Android on the Raspberry Pi: Android Pie meets Raspberry PiChris Simmonds
 
Apache Arrow and Python: The latest
Apache Arrow and Python: The latestApache Arrow and Python: The latest
Apache Arrow and Python: The latestWes McKinney
 
Html5 Game Development with Canvas
Html5 Game Development with CanvasHtml5 Game Development with Canvas
Html5 Game Development with CanvasPham Huy Tung
 
Game development using Flutter
Game development using FlutterGame development using Flutter
Game development using FlutterShady Selim
 
Introduction to DataFusion An Embeddable Query Engine Written in Rust
Introduction to DataFusion  An Embeddable Query Engine Written in RustIntroduction to DataFusion  An Embeddable Query Engine Written in Rust
Introduction to DataFusion An Embeddable Query Engine Written in RustAndrew Lamb
 

Tendances (7)

L'hivern
L'hivernL'hivern
L'hivern
 
Running Android on the Raspberry Pi: Android Pie meets Raspberry Pi
Running Android on the Raspberry Pi: Android Pie meets Raspberry PiRunning Android on the Raspberry Pi: Android Pie meets Raspberry Pi
Running Android on the Raspberry Pi: Android Pie meets Raspberry Pi
 
Apache Arrow and Python: The latest
Apache Arrow and Python: The latestApache Arrow and Python: The latest
Apache Arrow and Python: The latest
 
Html5 Game Development with Canvas
Html5 Game Development with CanvasHtml5 Game Development with Canvas
Html5 Game Development with Canvas
 
Game development using Flutter
Game development using FlutterGame development using Flutter
Game development using Flutter
 
Dita febrer
Dita febrerDita febrer
Dita febrer
 
Introduction to DataFusion An Embeddable Query Engine Written in Rust
Introduction to DataFusion  An Embeddable Query Engine Written in RustIntroduction to DataFusion  An Embeddable Query Engine Written in Rust
Introduction to DataFusion An Embeddable Query Engine Written in Rust
 

Similaire à Freebase Schema

Text Analytic Summit 2010
Text Analytic Summit 2010Text Analytic Summit 2010
Text Analytic Summit 2010Jamie Taylor
 
The Impact of 3D on the Film Industry
The Impact of 3D on the Film IndustryThe Impact of 3D on the Film Industry
The Impact of 3D on the Film IndustryJanek Holoubek
 
Ruby on CouchDB - SimplyStored and RockingChair
Ruby on CouchDB - SimplyStored and RockingChairRuby on CouchDB - SimplyStored and RockingChair
Ruby on CouchDB - SimplyStored and RockingChairJonathan Weiss
 
Textual Modeling Framework Xtext
Textual Modeling Framework XtextTextual Modeling Framework Xtext
Textual Modeling Framework XtextSebastian Zarnekow
 
RESEARCH CATALOGUE w/ References
RESEARCH CATALOGUE w/ ReferencesRESEARCH CATALOGUE w/ References
RESEARCH CATALOGUE w/ ReferencesktDan
 

Similaire à Freebase Schema (6)

Unwinding The Twine
Unwinding The TwineUnwinding The Twine
Unwinding The Twine
 
Text Analytic Summit 2010
Text Analytic Summit 2010Text Analytic Summit 2010
Text Analytic Summit 2010
 
The Impact of 3D on the Film Industry
The Impact of 3D on the Film IndustryThe Impact of 3D on the Film Industry
The Impact of 3D on the Film Industry
 
Ruby on CouchDB - SimplyStored and RockingChair
Ruby on CouchDB - SimplyStored and RockingChairRuby on CouchDB - SimplyStored and RockingChair
Ruby on CouchDB - SimplyStored and RockingChair
 
Textual Modeling Framework Xtext
Textual Modeling Framework XtextTextual Modeling Framework Xtext
Textual Modeling Framework Xtext
 
RESEARCH CATALOGUE w/ References
RESEARCH CATALOGUE w/ ReferencesRESEARCH CATALOGUE w/ References
RESEARCH CATALOGUE w/ References
 

Plus de Jamie Taylor

Social Fabric of Semantics - SemTech 2010
Social Fabric of Semantics - SemTech 2010Social Fabric of Semantics - SemTech 2010
Social Fabric of Semantics - SemTech 2010Jamie Taylor
 
Freebase - Semantic Technologies 2010 Code Camp
Freebase - Semantic Technologies 2010 Code CampFreebase - Semantic Technologies 2010 Code Camp
Freebase - Semantic Technologies 2010 Code CampJamie Taylor
 
Geo Location Semantics
Geo Location SemanticsGeo Location Semantics
Geo Location SemanticsJamie Taylor
 
The next phase of Web2.0: Data
The next phase of Web2.0: DataThe next phase of Web2.0: Data
The next phase of Web2.0: DataJamie Taylor
 
Public private-cloud
Public private-cloudPublic private-cloud
Public private-cloudJamie Taylor
 
Using Semantics to Enhance Content
Using Semantics to Enhance ContentUsing Semantics to Enhance Content
Using Semantics to Enhance ContentJamie Taylor
 
Freebase Workshop, December 2009
Freebase Workshop, December 2009Freebase Workshop, December 2009
Freebase Workshop, December 2009Jamie Taylor
 
Using Semantics to Enhance Content Publishing
Using Semantics to Enhance Content PublishingUsing Semantics to Enhance Content Publishing
Using Semantics to Enhance Content PublishingJamie Taylor
 
ISWC 2009 Consuming LOD
ISWC 2009 Consuming LODISWC 2009 Consuming LOD
ISWC 2009 Consuming LODJamie Taylor
 
NYC Semantic Web Meetup - Aug 2009
NYC Semantic Web Meetup -  Aug 2009NYC Semantic Web Meetup -  Aug 2009
NYC Semantic Web Meetup - Aug 2009Jamie Taylor
 
Drupal and the Semantic Web
Drupal and the Semantic WebDrupal and the Semantic Web
Drupal and the Semantic WebJamie Taylor
 
Freebase, RDF and the Semantic Web
Freebase, RDF and the Semantic WebFreebase, RDF and the Semantic Web
Freebase, RDF and the Semantic WebJamie Taylor
 

Plus de Jamie Taylor (12)

Social Fabric of Semantics - SemTech 2010
Social Fabric of Semantics - SemTech 2010Social Fabric of Semantics - SemTech 2010
Social Fabric of Semantics - SemTech 2010
 
Freebase - Semantic Technologies 2010 Code Camp
Freebase - Semantic Technologies 2010 Code CampFreebase - Semantic Technologies 2010 Code Camp
Freebase - Semantic Technologies 2010 Code Camp
 
Geo Location Semantics
Geo Location SemanticsGeo Location Semantics
Geo Location Semantics
 
The next phase of Web2.0: Data
The next phase of Web2.0: DataThe next phase of Web2.0: Data
The next phase of Web2.0: Data
 
Public private-cloud
Public private-cloudPublic private-cloud
Public private-cloud
 
Using Semantics to Enhance Content
Using Semantics to Enhance ContentUsing Semantics to Enhance Content
Using Semantics to Enhance Content
 
Freebase Workshop, December 2009
Freebase Workshop, December 2009Freebase Workshop, December 2009
Freebase Workshop, December 2009
 
Using Semantics to Enhance Content Publishing
Using Semantics to Enhance Content PublishingUsing Semantics to Enhance Content Publishing
Using Semantics to Enhance Content Publishing
 
ISWC 2009 Consuming LOD
ISWC 2009 Consuming LODISWC 2009 Consuming LOD
ISWC 2009 Consuming LOD
 
NYC Semantic Web Meetup - Aug 2009
NYC Semantic Web Meetup -  Aug 2009NYC Semantic Web Meetup -  Aug 2009
NYC Semantic Web Meetup - Aug 2009
 
Drupal and the Semantic Web
Drupal and the Semantic WebDrupal and the Semantic Web
Drupal and the Semantic Web
 
Freebase, RDF and the Semantic Web
Freebase, RDF and the Semantic WebFreebase, RDF and the Semantic Web
Freebase, RDF and the Semantic Web
 

Dernier

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 

Dernier (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 

Freebase Schema

  • 1. Freebase Schema Jamie Taylor Wednesday, December 8, 2010
  • 2. Goals • Schema: The Freebase Data Model • Schema as API • Schema patterns Wednesday, December 8, 2010
  • 3. Freebase is a collection of facts Sofia Coppola directed Marie Antoinette { { { Freebase only contains nodes and Links Wednesday, December 8, 2010
  • 4. Freebase is a Graph Wednesday, December 8, 2010
  • 5. Freebase is a labeled Graph child wrote directed parent sibling directed starred_in directed starred_in Wednesday, December 8, 2010
  • 6. Schema "All the things you can say about something in Freebase" Schema is the data model for Freebase Wednesday, December 8, 2010
  • 7. All nodes are “/type/object” /m/02vyw /people/person id type type /film/director [{ /type/object/name   "id":"/m/02vyw", name   "name":null,   "type":[{}] “Francis Coppola” }] Wednesday, December 8, 2010
  • 8. Types suggest properties to use /m/02vyw id type /film/director lm /fi or ct ire /d lm /fi /type/object/id /en/bram_stokers_dracula Wednesday, December 8, 2010
  • 9. Queries follow schema [{    "id": "/en/francis_ford_coppola",    "/film/director/film": [{      "id":null, "name":null    }] }] Wednesday, December 8, 2010
  • 10. Properties link the graph together /m/02vyw id type /film/director lm /fi or ct ire ten _by /d wri t lm /fi /type/object/id /en/bram_stokers_dracula Wednesday, December 8, 2010
  • 11. Queries follow schema [{    "id": "/en/francis_ford_coppola", Name is returned (how to get ID?)    "/film/director/film": [{ How to get all the      "id": "/en/bram_stokers_dracula", writters for all of Coppola’s movies? "written_by":null    }] }] Wednesday, December 8, 2010
  • 13. Core Concepts Instance: • Topic: "a thing in the world" • Blade Runner, Ridley Scott, NBC, Last Proof Schema: • Types - Categorical collections of instances • Properties - Relationships between instances Wednesday, December 8, 2010
  • 14. Core Concepts An instance may have multiple Types • "Co-Types" (Types are mix-ins) • Arnold Schwartzeneger • Person, Actor, Politician, Sports Figure Wednesday, December 8, 2010
  • 15. Lessons from everyday vocabulary Wikipedia Word Frequency 20000000 18000000 16000000 14000000 12000000 Frequency 10000000 8000000 6000000 4000000 2000000 0 0 20 40 60 80 100 120 Rank Data from Victor S. Grishchenko Wednesday, December 8, 2010
  • 16. Schema Principle #1 Event Example: -Film Festival -Battle of Waterloo Use Co-Types Liberally: Use a few large, encompassing Types to provide general information Use several smaller, fine grained Types to provide detailed information Wednesday, December 8, 2010
  • 17. Core Concepts Relational DB vs RDF Properties are defined on Types • Properties are the vocabulary for a specific Type • An instance must be “an instance of a type” before it can use the Type’s properties to describe itself Wednesday, December 8, 2010
  • 18. Core Concepts Expected Type ~ RDFS Range • A Property Value has a specific Type • "Expected Type" • A Property has exactly one Expected Type Manufactures Wednesday, December 8, 2010
  • 19. Core Concepts Expected Types (Property Values): • Value Types (literals) • String (two flavors), Integer, Float, DateTime, boolean • Object Types • Everything Else Wednesday, December 8, 2010
  • 20. /type/object contrast to common topic Everything in Freebase has this Type Provides basic properties • Type • Name • ....... All other Properties come from some other Type! Wednesday, December 8, 2010
  • 21. /common/topic "Topics" • Things we have discourse about • Provides properties: • Alias • Article • Image • Weblinks • Assumed to be an "Included Type" for any "standard" type Wednesday, December 8, 2010
  • 22. Schema Patterns Compound Value Mediator Phylogeny Enumeration Wednesday, December 8, 2010
  • 23. Compound Value complex literal Two or more properties which can only be interpreted with regard to one another Population • Dated Integer ("when did this location have that many people") Movie Budget • Dated money value • Date, Currency, Amount Ticker Symbol • Exchange, Symbol Wednesday, December 8, 2010
  • 24. Compound Value currency estimated_budget amount 31MM {   "id":   "/en/apocalypse_now", valid_date 1979   "type": "/film/film",   "estimated_budget": [{     "currency":   null,     "amount":     null,     "valid_date": null   }] } Wednesday, December 8, 2010
  • 25. Mediator combine date annotation and character = tv character An annotation on the link between two Topics • Requires an object between the two Topics • The Topics become separated by two properties actor performance film character • Also useful for indicating the dates when a relationship existed (e.g., education, employment, etc.) Wednesday, December 8, 2010
  • 26. Mediator {   "id":   "/en/marie_antoinette_2006",   "type": "/film/film",   "starring": [{     "actor":null,     "character":null   }] } Wednesday, December 8, 2010
  • 27. Phylogeny Used when instances form a hierarchy Phylogeny properties have an expected Type which is the same as the Type on which the property is defined. Examples: • /location/location/containedby • /computer/computer/parent_model • /tv/tv_program/spin_offs Wednesday, December 8, 2010
  • 28. Phylogeny {   "id": "/en/fairfax_california",   "/location/location/containedby": [{     "id": null,     "containedby": [{       "id": null Why can I use the short name??     }]   }] } Wednesday, December 8, 2010
  • 29. Enumerated Value Closed collection of “values” for a property Constrains relations to fixed set of objects • /people/person/gender { female, male, other } • /visual_art/visual_artist/art_forms { drawing, painting, print making, photography.... } Wednesday, December 8, 2010
  • 30. Explore the Freebase Graph child wrote directed parent sibling directed starred_in directed starred_in Wednesday, December 8, 2010
  • 31. Explore the Freebase Graph [{   "id":   null,   "type": "/film/director" }] Wednesday, December 8, 2010
  • 32. Explore the Freebase Graph [{   "id":   null,   "type": "/film/director",   "/people/person/children": [{      "id":   null,      "type": "/film/director"   }] }] Wednesday, December 8, 2010
  • 33. Explore the Freebase Graph [{   "id":   null,   "type": "/film/director",   "film":[ ],   "/people/person/children": [{      "id":   null,      "type": "/film/director"      "film":[ ]   }] }] Wednesday, December 8, 2010
  • 34. Explore the Freebase Graph [{   "id":   null,   "type": "/film/director",   "film": [ ],   "/people/person/children": [{      "id":   null,      "type": "/film/director",      "film": [{        "name":null,        "starring": [{          "actor": null        }]      }]   }] }] Wednesday, December 8, 2010
  • 35. namespace It’s all nodes / pe ople ( key y) ) (ke film domain type domain /people and links! type /film e insta anc nce type inst nam e y) (ke e typ "domain" son type film per (key name "property" ins ce type ) tan propert tan ies ins ce ins tan "type" ce instance type nam e type instance typ e property instance expected_type ce tan ins na ins m nce e tan insta ce "expected type" type property type type type typ type type e type properties na expected _type date_time me na na me me na m e "person" "date of birth" nce "film" instance instance insta "actor" e LEGEND film typ name "Blade Runner" /type/object starring /type/object + /common/topic film obj type film character performance /namespace e nam "Rick Deckard" outgoing incoming actor keyvalue (key) film actor out goin gp rop person e e rty typ type literal value nam th e _o f_bir date "Harrison Ford" 1942-07-13 Wednesday, December 8, 2010
  • 36. Domains, Bases and Commons "commons" individual's "bases" promo te Blade Runner "domains" Wednesday, December 8, 2010
  • 37. Questions?! Docs: www.freebase.com/docs Wiki: wiki.freebase.com Mailing List: lists.freebase.com Wednesday, December 8, 2010