33
Up and running with Wikidata Emw New York City Wikidata workshop 2014-12-14

Up and running with Wikidata

  • Upload
    emw

  • View
    1.138

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Up and running with Wikidata

Up and running with Wikidata

EmwNew York City Wikidata workshop

2014-12-14

Wikidata is a free linked database that can be read and edited by

humans and machines

Wikidatas goals

Centralize interwiki links Centralize infoboxes Provide an interface for rich queries

Structure the sum of all human knowledge

What youll learn from this talk

How to edit Wikidata

How to classify

Ideas for small projects

Wikidata vocabulary

Where to find things

Awesome tools

Elements of a Wikidata statement

Example New York City (Q60)

Items and properties

Each item and property has its own page

Itemsndash Represent subjects Douglas Adams Challenger disasterndash Have identifiers like Q42 Q921090ndash 12906291 items

Propertiesndash Represent attribute names occupation has causendash Have identifiers like P106 P828ndash 1329 properties

Statements and claims Claims

ndash Claims are ldquotripletsrdquo

Formally subject predicate object In Wikidata item property value Example Douglas Adams occupation author

Statements

ndash A claim is only part of a statement

ndash Statements also include

References Ranks

Qualifiers ranks references

Qualifiersndash Qualifiers are properties used on claims rather than itemsndash ldquoYonkers population 12733 at time (P585) 1860rdquo

Ranksndash Preferred normal deprecatedndash Useful to mark outdated claims

Referencesndash Source of claim provenancendash ldquo stated in (P248) 1860 United States Censusrdquo

More on Wikidata vocabulary

httpswwwwikidataorgwikiWikidataGlossary

Wikipedia articles have a Wikidata item link in the left navigation panel

Finding Wikidata items

Wikidata search is quick and effective

Instant search suggests items that have labels or aliases matching your keyword

Finding Wikidata items

Search by label

Search by alias ldquoflurdquo -gt influenza

Finding properties

Is there a property for ldquonumber of windowsrdquo What was the ID of that property again

Searchndash In main site search box prefix search term with ldquoPrdquondash ldquoPnumber ofrdquo ldquoPoccupationrdquondash Instant search doesnt work for properties only items

Browsendash httpswwwwikidataorgwikiWikidataList_of_properties

^ bookmark this

Lets edit Wikidata

Walking through edits for

Yonkers New York

httpswwwwikidataorgwikiQ128114

Yonkers TODO

httpswwwwikidataorgwikiQ128114

population (P1082) claims for historical table in httpsenwikipediaorgwikiYonkers_New_YorkDemographics

Include references ldquo1860 United States Censusrdquo etc

To add to item from inbofox

ndash head of government (P6) office held by head of government (P1313)

ndash date of foundation or creation (P571)

ndash ZIP code (P281)

Area Population density

Properties with units (km^2 peoplekm^2 $) are not yet possible

ldquoUnitsrdquo datatype in development

httpsphabricatorwikimediaorgT65722

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 2: Up and running with Wikidata

Wikidata is a free linked database that can be read and edited by

humans and machines

Wikidatas goals

Centralize interwiki links Centralize infoboxes Provide an interface for rich queries

Structure the sum of all human knowledge

What youll learn from this talk

How to edit Wikidata

How to classify

Ideas for small projects

Wikidata vocabulary

Where to find things

Awesome tools

Elements of a Wikidata statement

Example New York City (Q60)

Items and properties

Each item and property has its own page

Itemsndash Represent subjects Douglas Adams Challenger disasterndash Have identifiers like Q42 Q921090ndash 12906291 items

Propertiesndash Represent attribute names occupation has causendash Have identifiers like P106 P828ndash 1329 properties

Statements and claims Claims

ndash Claims are ldquotripletsrdquo

Formally subject predicate object In Wikidata item property value Example Douglas Adams occupation author

Statements

ndash A claim is only part of a statement

ndash Statements also include

References Ranks

Qualifiers ranks references

Qualifiersndash Qualifiers are properties used on claims rather than itemsndash ldquoYonkers population 12733 at time (P585) 1860rdquo

Ranksndash Preferred normal deprecatedndash Useful to mark outdated claims

Referencesndash Source of claim provenancendash ldquo stated in (P248) 1860 United States Censusrdquo

More on Wikidata vocabulary

httpswwwwikidataorgwikiWikidataGlossary

Wikipedia articles have a Wikidata item link in the left navigation panel

Finding Wikidata items

Wikidata search is quick and effective

Instant search suggests items that have labels or aliases matching your keyword

Finding Wikidata items

Search by label

Search by alias ldquoflurdquo -gt influenza

Finding properties

Is there a property for ldquonumber of windowsrdquo What was the ID of that property again

Searchndash In main site search box prefix search term with ldquoPrdquondash ldquoPnumber ofrdquo ldquoPoccupationrdquondash Instant search doesnt work for properties only items

Browsendash httpswwwwikidataorgwikiWikidataList_of_properties

^ bookmark this

Lets edit Wikidata

Walking through edits for

Yonkers New York

httpswwwwikidataorgwikiQ128114

Yonkers TODO

httpswwwwikidataorgwikiQ128114

population (P1082) claims for historical table in httpsenwikipediaorgwikiYonkers_New_YorkDemographics

Include references ldquo1860 United States Censusrdquo etc

To add to item from inbofox

ndash head of government (P6) office held by head of government (P1313)

ndash date of foundation or creation (P571)

ndash ZIP code (P281)

Area Population density

Properties with units (km^2 peoplekm^2 $) are not yet possible

ldquoUnitsrdquo datatype in development

httpsphabricatorwikimediaorgT65722

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 3: Up and running with Wikidata

Wikidatas goals

Centralize interwiki links Centralize infoboxes Provide an interface for rich queries

Structure the sum of all human knowledge

What youll learn from this talk

How to edit Wikidata

How to classify

Ideas for small projects

Wikidata vocabulary

Where to find things

Awesome tools

Elements of a Wikidata statement

Example New York City (Q60)

Items and properties

Each item and property has its own page

Itemsndash Represent subjects Douglas Adams Challenger disasterndash Have identifiers like Q42 Q921090ndash 12906291 items

Propertiesndash Represent attribute names occupation has causendash Have identifiers like P106 P828ndash 1329 properties

Statements and claims Claims

ndash Claims are ldquotripletsrdquo

Formally subject predicate object In Wikidata item property value Example Douglas Adams occupation author

Statements

ndash A claim is only part of a statement

ndash Statements also include

References Ranks

Qualifiers ranks references

Qualifiersndash Qualifiers are properties used on claims rather than itemsndash ldquoYonkers population 12733 at time (P585) 1860rdquo

Ranksndash Preferred normal deprecatedndash Useful to mark outdated claims

Referencesndash Source of claim provenancendash ldquo stated in (P248) 1860 United States Censusrdquo

More on Wikidata vocabulary

httpswwwwikidataorgwikiWikidataGlossary

Wikipedia articles have a Wikidata item link in the left navigation panel

Finding Wikidata items

Wikidata search is quick and effective

Instant search suggests items that have labels or aliases matching your keyword

Finding Wikidata items

Search by label

Search by alias ldquoflurdquo -gt influenza

Finding properties

Is there a property for ldquonumber of windowsrdquo What was the ID of that property again

Searchndash In main site search box prefix search term with ldquoPrdquondash ldquoPnumber ofrdquo ldquoPoccupationrdquondash Instant search doesnt work for properties only items

Browsendash httpswwwwikidataorgwikiWikidataList_of_properties

^ bookmark this

Lets edit Wikidata

Walking through edits for

Yonkers New York

httpswwwwikidataorgwikiQ128114

Yonkers TODO

httpswwwwikidataorgwikiQ128114

population (P1082) claims for historical table in httpsenwikipediaorgwikiYonkers_New_YorkDemographics

Include references ldquo1860 United States Censusrdquo etc

To add to item from inbofox

ndash head of government (P6) office held by head of government (P1313)

ndash date of foundation or creation (P571)

ndash ZIP code (P281)

Area Population density

Properties with units (km^2 peoplekm^2 $) are not yet possible

ldquoUnitsrdquo datatype in development

httpsphabricatorwikimediaorgT65722

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 4: Up and running with Wikidata

What youll learn from this talk

How to edit Wikidata

How to classify

Ideas for small projects

Wikidata vocabulary

Where to find things

Awesome tools

Elements of a Wikidata statement

Example New York City (Q60)

Items and properties

Each item and property has its own page

Itemsndash Represent subjects Douglas Adams Challenger disasterndash Have identifiers like Q42 Q921090ndash 12906291 items

Propertiesndash Represent attribute names occupation has causendash Have identifiers like P106 P828ndash 1329 properties

Statements and claims Claims

ndash Claims are ldquotripletsrdquo

Formally subject predicate object In Wikidata item property value Example Douglas Adams occupation author

Statements

ndash A claim is only part of a statement

ndash Statements also include

References Ranks

Qualifiers ranks references

Qualifiersndash Qualifiers are properties used on claims rather than itemsndash ldquoYonkers population 12733 at time (P585) 1860rdquo

Ranksndash Preferred normal deprecatedndash Useful to mark outdated claims

Referencesndash Source of claim provenancendash ldquo stated in (P248) 1860 United States Censusrdquo

More on Wikidata vocabulary

httpswwwwikidataorgwikiWikidataGlossary

Wikipedia articles have a Wikidata item link in the left navigation panel

Finding Wikidata items

Wikidata search is quick and effective

Instant search suggests items that have labels or aliases matching your keyword

Finding Wikidata items

Search by label

Search by alias ldquoflurdquo -gt influenza

Finding properties

Is there a property for ldquonumber of windowsrdquo What was the ID of that property again

Searchndash In main site search box prefix search term with ldquoPrdquondash ldquoPnumber ofrdquo ldquoPoccupationrdquondash Instant search doesnt work for properties only items

Browsendash httpswwwwikidataorgwikiWikidataList_of_properties

^ bookmark this

Lets edit Wikidata

Walking through edits for

Yonkers New York

httpswwwwikidataorgwikiQ128114

Yonkers TODO

httpswwwwikidataorgwikiQ128114

population (P1082) claims for historical table in httpsenwikipediaorgwikiYonkers_New_YorkDemographics

Include references ldquo1860 United States Censusrdquo etc

To add to item from inbofox

ndash head of government (P6) office held by head of government (P1313)

ndash date of foundation or creation (P571)

ndash ZIP code (P281)

Area Population density

Properties with units (km^2 peoplekm^2 $) are not yet possible

ldquoUnitsrdquo datatype in development

httpsphabricatorwikimediaorgT65722

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 5: Up and running with Wikidata

Elements of a Wikidata statement

Example New York City (Q60)

Items and properties

Each item and property has its own page

Itemsndash Represent subjects Douglas Adams Challenger disasterndash Have identifiers like Q42 Q921090ndash 12906291 items

Propertiesndash Represent attribute names occupation has causendash Have identifiers like P106 P828ndash 1329 properties

Statements and claims Claims

ndash Claims are ldquotripletsrdquo

Formally subject predicate object In Wikidata item property value Example Douglas Adams occupation author

Statements

ndash A claim is only part of a statement

ndash Statements also include

References Ranks

Qualifiers ranks references

Qualifiersndash Qualifiers are properties used on claims rather than itemsndash ldquoYonkers population 12733 at time (P585) 1860rdquo

Ranksndash Preferred normal deprecatedndash Useful to mark outdated claims

Referencesndash Source of claim provenancendash ldquo stated in (P248) 1860 United States Censusrdquo

More on Wikidata vocabulary

httpswwwwikidataorgwikiWikidataGlossary

Wikipedia articles have a Wikidata item link in the left navigation panel

Finding Wikidata items

Wikidata search is quick and effective

Instant search suggests items that have labels or aliases matching your keyword

Finding Wikidata items

Search by label

Search by alias ldquoflurdquo -gt influenza

Finding properties

Is there a property for ldquonumber of windowsrdquo What was the ID of that property again

Searchndash In main site search box prefix search term with ldquoPrdquondash ldquoPnumber ofrdquo ldquoPoccupationrdquondash Instant search doesnt work for properties only items

Browsendash httpswwwwikidataorgwikiWikidataList_of_properties

^ bookmark this

Lets edit Wikidata

Walking through edits for

Yonkers New York

httpswwwwikidataorgwikiQ128114

Yonkers TODO

httpswwwwikidataorgwikiQ128114

population (P1082) claims for historical table in httpsenwikipediaorgwikiYonkers_New_YorkDemographics

Include references ldquo1860 United States Censusrdquo etc

To add to item from inbofox

ndash head of government (P6) office held by head of government (P1313)

ndash date of foundation or creation (P571)

ndash ZIP code (P281)

Area Population density

Properties with units (km^2 peoplekm^2 $) are not yet possible

ldquoUnitsrdquo datatype in development

httpsphabricatorwikimediaorgT65722

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 6: Up and running with Wikidata

Example New York City (Q60)

Items and properties

Each item and property has its own page

Itemsndash Represent subjects Douglas Adams Challenger disasterndash Have identifiers like Q42 Q921090ndash 12906291 items

Propertiesndash Represent attribute names occupation has causendash Have identifiers like P106 P828ndash 1329 properties

Statements and claims Claims

ndash Claims are ldquotripletsrdquo

Formally subject predicate object In Wikidata item property value Example Douglas Adams occupation author

Statements

ndash A claim is only part of a statement

ndash Statements also include

References Ranks

Qualifiers ranks references

Qualifiersndash Qualifiers are properties used on claims rather than itemsndash ldquoYonkers population 12733 at time (P585) 1860rdquo

Ranksndash Preferred normal deprecatedndash Useful to mark outdated claims

Referencesndash Source of claim provenancendash ldquo stated in (P248) 1860 United States Censusrdquo

More on Wikidata vocabulary

httpswwwwikidataorgwikiWikidataGlossary

Wikipedia articles have a Wikidata item link in the left navigation panel

Finding Wikidata items

Wikidata search is quick and effective

Instant search suggests items that have labels or aliases matching your keyword

Finding Wikidata items

Search by label

Search by alias ldquoflurdquo -gt influenza

Finding properties

Is there a property for ldquonumber of windowsrdquo What was the ID of that property again

Searchndash In main site search box prefix search term with ldquoPrdquondash ldquoPnumber ofrdquo ldquoPoccupationrdquondash Instant search doesnt work for properties only items

Browsendash httpswwwwikidataorgwikiWikidataList_of_properties

^ bookmark this

Lets edit Wikidata

Walking through edits for

Yonkers New York

httpswwwwikidataorgwikiQ128114

Yonkers TODO

httpswwwwikidataorgwikiQ128114

population (P1082) claims for historical table in httpsenwikipediaorgwikiYonkers_New_YorkDemographics

Include references ldquo1860 United States Censusrdquo etc

To add to item from inbofox

ndash head of government (P6) office held by head of government (P1313)

ndash date of foundation or creation (P571)

ndash ZIP code (P281)

Area Population density

Properties with units (km^2 peoplekm^2 $) are not yet possible

ldquoUnitsrdquo datatype in development

httpsphabricatorwikimediaorgT65722

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 7: Up and running with Wikidata

Items and properties

Each item and property has its own page

Itemsndash Represent subjects Douglas Adams Challenger disasterndash Have identifiers like Q42 Q921090ndash 12906291 items

Propertiesndash Represent attribute names occupation has causendash Have identifiers like P106 P828ndash 1329 properties

Statements and claims Claims

ndash Claims are ldquotripletsrdquo

Formally subject predicate object In Wikidata item property value Example Douglas Adams occupation author

Statements

ndash A claim is only part of a statement

ndash Statements also include

References Ranks

Qualifiers ranks references

Qualifiersndash Qualifiers are properties used on claims rather than itemsndash ldquoYonkers population 12733 at time (P585) 1860rdquo

Ranksndash Preferred normal deprecatedndash Useful to mark outdated claims

Referencesndash Source of claim provenancendash ldquo stated in (P248) 1860 United States Censusrdquo

More on Wikidata vocabulary

httpswwwwikidataorgwikiWikidataGlossary

Wikipedia articles have a Wikidata item link in the left navigation panel

Finding Wikidata items

Wikidata search is quick and effective

Instant search suggests items that have labels or aliases matching your keyword

Finding Wikidata items

Search by label

Search by alias ldquoflurdquo -gt influenza

Finding properties

Is there a property for ldquonumber of windowsrdquo What was the ID of that property again

Searchndash In main site search box prefix search term with ldquoPrdquondash ldquoPnumber ofrdquo ldquoPoccupationrdquondash Instant search doesnt work for properties only items

Browsendash httpswwwwikidataorgwikiWikidataList_of_properties

^ bookmark this

Lets edit Wikidata

Walking through edits for

Yonkers New York

httpswwwwikidataorgwikiQ128114

Yonkers TODO

httpswwwwikidataorgwikiQ128114

population (P1082) claims for historical table in httpsenwikipediaorgwikiYonkers_New_YorkDemographics

Include references ldquo1860 United States Censusrdquo etc

To add to item from inbofox

ndash head of government (P6) office held by head of government (P1313)

ndash date of foundation or creation (P571)

ndash ZIP code (P281)

Area Population density

Properties with units (km^2 peoplekm^2 $) are not yet possible

ldquoUnitsrdquo datatype in development

httpsphabricatorwikimediaorgT65722

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 8: Up and running with Wikidata

Statements and claims Claims

ndash Claims are ldquotripletsrdquo

Formally subject predicate object In Wikidata item property value Example Douglas Adams occupation author

Statements

ndash A claim is only part of a statement

ndash Statements also include

References Ranks

Qualifiers ranks references

Qualifiersndash Qualifiers are properties used on claims rather than itemsndash ldquoYonkers population 12733 at time (P585) 1860rdquo

Ranksndash Preferred normal deprecatedndash Useful to mark outdated claims

Referencesndash Source of claim provenancendash ldquo stated in (P248) 1860 United States Censusrdquo

More on Wikidata vocabulary

httpswwwwikidataorgwikiWikidataGlossary

Wikipedia articles have a Wikidata item link in the left navigation panel

Finding Wikidata items

Wikidata search is quick and effective

Instant search suggests items that have labels or aliases matching your keyword

Finding Wikidata items

Search by label

Search by alias ldquoflurdquo -gt influenza

Finding properties

Is there a property for ldquonumber of windowsrdquo What was the ID of that property again

Searchndash In main site search box prefix search term with ldquoPrdquondash ldquoPnumber ofrdquo ldquoPoccupationrdquondash Instant search doesnt work for properties only items

Browsendash httpswwwwikidataorgwikiWikidataList_of_properties

^ bookmark this

Lets edit Wikidata

Walking through edits for

Yonkers New York

httpswwwwikidataorgwikiQ128114

Yonkers TODO

httpswwwwikidataorgwikiQ128114

population (P1082) claims for historical table in httpsenwikipediaorgwikiYonkers_New_YorkDemographics

Include references ldquo1860 United States Censusrdquo etc

To add to item from inbofox

ndash head of government (P6) office held by head of government (P1313)

ndash date of foundation or creation (P571)

ndash ZIP code (P281)

Area Population density

Properties with units (km^2 peoplekm^2 $) are not yet possible

ldquoUnitsrdquo datatype in development

httpsphabricatorwikimediaorgT65722

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 9: Up and running with Wikidata

Qualifiers ranks references

Qualifiersndash Qualifiers are properties used on claims rather than itemsndash ldquoYonkers population 12733 at time (P585) 1860rdquo

Ranksndash Preferred normal deprecatedndash Useful to mark outdated claims

Referencesndash Source of claim provenancendash ldquo stated in (P248) 1860 United States Censusrdquo

More on Wikidata vocabulary

httpswwwwikidataorgwikiWikidataGlossary

Wikipedia articles have a Wikidata item link in the left navigation panel

Finding Wikidata items

Wikidata search is quick and effective

Instant search suggests items that have labels or aliases matching your keyword

Finding Wikidata items

Search by label

Search by alias ldquoflurdquo -gt influenza

Finding properties

Is there a property for ldquonumber of windowsrdquo What was the ID of that property again

Searchndash In main site search box prefix search term with ldquoPrdquondash ldquoPnumber ofrdquo ldquoPoccupationrdquondash Instant search doesnt work for properties only items

Browsendash httpswwwwikidataorgwikiWikidataList_of_properties

^ bookmark this

Lets edit Wikidata

Walking through edits for

Yonkers New York

httpswwwwikidataorgwikiQ128114

Yonkers TODO

httpswwwwikidataorgwikiQ128114

population (P1082) claims for historical table in httpsenwikipediaorgwikiYonkers_New_YorkDemographics

Include references ldquo1860 United States Censusrdquo etc

To add to item from inbofox

ndash head of government (P6) office held by head of government (P1313)

ndash date of foundation or creation (P571)

ndash ZIP code (P281)

Area Population density

Properties with units (km^2 peoplekm^2 $) are not yet possible

ldquoUnitsrdquo datatype in development

httpsphabricatorwikimediaorgT65722

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 10: Up and running with Wikidata

More on Wikidata vocabulary

httpswwwwikidataorgwikiWikidataGlossary

Wikipedia articles have a Wikidata item link in the left navigation panel

Finding Wikidata items

Wikidata search is quick and effective

Instant search suggests items that have labels or aliases matching your keyword

Finding Wikidata items

Search by label

Search by alias ldquoflurdquo -gt influenza

Finding properties

Is there a property for ldquonumber of windowsrdquo What was the ID of that property again

Searchndash In main site search box prefix search term with ldquoPrdquondash ldquoPnumber ofrdquo ldquoPoccupationrdquondash Instant search doesnt work for properties only items

Browsendash httpswwwwikidataorgwikiWikidataList_of_properties

^ bookmark this

Lets edit Wikidata

Walking through edits for

Yonkers New York

httpswwwwikidataorgwikiQ128114

Yonkers TODO

httpswwwwikidataorgwikiQ128114

population (P1082) claims for historical table in httpsenwikipediaorgwikiYonkers_New_YorkDemographics

Include references ldquo1860 United States Censusrdquo etc

To add to item from inbofox

ndash head of government (P6) office held by head of government (P1313)

ndash date of foundation or creation (P571)

ndash ZIP code (P281)

Area Population density

Properties with units (km^2 peoplekm^2 $) are not yet possible

ldquoUnitsrdquo datatype in development

httpsphabricatorwikimediaorgT65722

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 11: Up and running with Wikidata

Wikipedia articles have a Wikidata item link in the left navigation panel

Finding Wikidata items

Wikidata search is quick and effective

Instant search suggests items that have labels or aliases matching your keyword

Finding Wikidata items

Search by label

Search by alias ldquoflurdquo -gt influenza

Finding properties

Is there a property for ldquonumber of windowsrdquo What was the ID of that property again

Searchndash In main site search box prefix search term with ldquoPrdquondash ldquoPnumber ofrdquo ldquoPoccupationrdquondash Instant search doesnt work for properties only items

Browsendash httpswwwwikidataorgwikiWikidataList_of_properties

^ bookmark this

Lets edit Wikidata

Walking through edits for

Yonkers New York

httpswwwwikidataorgwikiQ128114

Yonkers TODO

httpswwwwikidataorgwikiQ128114

population (P1082) claims for historical table in httpsenwikipediaorgwikiYonkers_New_YorkDemographics

Include references ldquo1860 United States Censusrdquo etc

To add to item from inbofox

ndash head of government (P6) office held by head of government (P1313)

ndash date of foundation or creation (P571)

ndash ZIP code (P281)

Area Population density

Properties with units (km^2 peoplekm^2 $) are not yet possible

ldquoUnitsrdquo datatype in development

httpsphabricatorwikimediaorgT65722

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 12: Up and running with Wikidata

Wikidata search is quick and effective

Instant search suggests items that have labels or aliases matching your keyword

Finding Wikidata items

Search by label

Search by alias ldquoflurdquo -gt influenza

Finding properties

Is there a property for ldquonumber of windowsrdquo What was the ID of that property again

Searchndash In main site search box prefix search term with ldquoPrdquondash ldquoPnumber ofrdquo ldquoPoccupationrdquondash Instant search doesnt work for properties only items

Browsendash httpswwwwikidataorgwikiWikidataList_of_properties

^ bookmark this

Lets edit Wikidata

Walking through edits for

Yonkers New York

httpswwwwikidataorgwikiQ128114

Yonkers TODO

httpswwwwikidataorgwikiQ128114

population (P1082) claims for historical table in httpsenwikipediaorgwikiYonkers_New_YorkDemographics

Include references ldquo1860 United States Censusrdquo etc

To add to item from inbofox

ndash head of government (P6) office held by head of government (P1313)

ndash date of foundation or creation (P571)

ndash ZIP code (P281)

Area Population density

Properties with units (km^2 peoplekm^2 $) are not yet possible

ldquoUnitsrdquo datatype in development

httpsphabricatorwikimediaorgT65722

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 13: Up and running with Wikidata

Search by label

Search by alias ldquoflurdquo -gt influenza

Finding properties

Is there a property for ldquonumber of windowsrdquo What was the ID of that property again

Searchndash In main site search box prefix search term with ldquoPrdquondash ldquoPnumber ofrdquo ldquoPoccupationrdquondash Instant search doesnt work for properties only items

Browsendash httpswwwwikidataorgwikiWikidataList_of_properties

^ bookmark this

Lets edit Wikidata

Walking through edits for

Yonkers New York

httpswwwwikidataorgwikiQ128114

Yonkers TODO

httpswwwwikidataorgwikiQ128114

population (P1082) claims for historical table in httpsenwikipediaorgwikiYonkers_New_YorkDemographics

Include references ldquo1860 United States Censusrdquo etc

To add to item from inbofox

ndash head of government (P6) office held by head of government (P1313)

ndash date of foundation or creation (P571)

ndash ZIP code (P281)

Area Population density

Properties with units (km^2 peoplekm^2 $) are not yet possible

ldquoUnitsrdquo datatype in development

httpsphabricatorwikimediaorgT65722

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 14: Up and running with Wikidata

Search by alias ldquoflurdquo -gt influenza

Finding properties

Is there a property for ldquonumber of windowsrdquo What was the ID of that property again

Searchndash In main site search box prefix search term with ldquoPrdquondash ldquoPnumber ofrdquo ldquoPoccupationrdquondash Instant search doesnt work for properties only items

Browsendash httpswwwwikidataorgwikiWikidataList_of_properties

^ bookmark this

Lets edit Wikidata

Walking through edits for

Yonkers New York

httpswwwwikidataorgwikiQ128114

Yonkers TODO

httpswwwwikidataorgwikiQ128114

population (P1082) claims for historical table in httpsenwikipediaorgwikiYonkers_New_YorkDemographics

Include references ldquo1860 United States Censusrdquo etc

To add to item from inbofox

ndash head of government (P6) office held by head of government (P1313)

ndash date of foundation or creation (P571)

ndash ZIP code (P281)

Area Population density

Properties with units (km^2 peoplekm^2 $) are not yet possible

ldquoUnitsrdquo datatype in development

httpsphabricatorwikimediaorgT65722

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 15: Up and running with Wikidata

Finding properties

Is there a property for ldquonumber of windowsrdquo What was the ID of that property again

Searchndash In main site search box prefix search term with ldquoPrdquondash ldquoPnumber ofrdquo ldquoPoccupationrdquondash Instant search doesnt work for properties only items

Browsendash httpswwwwikidataorgwikiWikidataList_of_properties

^ bookmark this

Lets edit Wikidata

Walking through edits for

Yonkers New York

httpswwwwikidataorgwikiQ128114

Yonkers TODO

httpswwwwikidataorgwikiQ128114

population (P1082) claims for historical table in httpsenwikipediaorgwikiYonkers_New_YorkDemographics

Include references ldquo1860 United States Censusrdquo etc

To add to item from inbofox

ndash head of government (P6) office held by head of government (P1313)

ndash date of foundation or creation (P571)

ndash ZIP code (P281)

Area Population density

Properties with units (km^2 peoplekm^2 $) are not yet possible

ldquoUnitsrdquo datatype in development

httpsphabricatorwikimediaorgT65722

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 16: Up and running with Wikidata

Lets edit Wikidata

Walking through edits for

Yonkers New York

httpswwwwikidataorgwikiQ128114

Yonkers TODO

httpswwwwikidataorgwikiQ128114

population (P1082) claims for historical table in httpsenwikipediaorgwikiYonkers_New_YorkDemographics

Include references ldquo1860 United States Censusrdquo etc

To add to item from inbofox

ndash head of government (P6) office held by head of government (P1313)

ndash date of foundation or creation (P571)

ndash ZIP code (P281)

Area Population density

Properties with units (km^2 peoplekm^2 $) are not yet possible

ldquoUnitsrdquo datatype in development

httpsphabricatorwikimediaorgT65722

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 17: Up and running with Wikidata

Walking through edits for

Yonkers New York

httpswwwwikidataorgwikiQ128114

Yonkers TODO

httpswwwwikidataorgwikiQ128114

population (P1082) claims for historical table in httpsenwikipediaorgwikiYonkers_New_YorkDemographics

Include references ldquo1860 United States Censusrdquo etc

To add to item from inbofox

ndash head of government (P6) office held by head of government (P1313)

ndash date of foundation or creation (P571)

ndash ZIP code (P281)

Area Population density

Properties with units (km^2 peoplekm^2 $) are not yet possible

ldquoUnitsrdquo datatype in development

httpsphabricatorwikimediaorgT65722

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 18: Up and running with Wikidata

Yonkers TODO

httpswwwwikidataorgwikiQ128114

population (P1082) claims for historical table in httpsenwikipediaorgwikiYonkers_New_YorkDemographics

Include references ldquo1860 United States Censusrdquo etc

To add to item from inbofox

ndash head of government (P6) office held by head of government (P1313)

ndash date of foundation or creation (P571)

ndash ZIP code (P281)

Area Population density

Properties with units (km^2 peoplekm^2 $) are not yet possible

ldquoUnitsrdquo datatype in development

httpsphabricatorwikimediaorgT65722

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 19: Up and running with Wikidata

Area Population density

Properties with units (km^2 peoplekm^2 $) are not yet possible

ldquoUnitsrdquo datatype in development

httpsphabricatorwikimediaorgT65722

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 20: Up and running with Wikidata

Tools

ndash Querying Autolist by Magnus Manske httptoolswmflabsorgautolistautolist1html

ndash Batch editing Widar by Magnus Manske httpstoolswmflabsorgautolist

ndash Software framework Wikidata Toolkit by Markus Kroetzsch et al httpswwwmediawikiorgwikiWikidata_Toolkit httpsgithubcomWikidataWikidata-Toolkit

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 21: Up and running with Wikidata

Querying in Wikidata

List of politicians who died of a heart attack

Pseudo-query

occupation politician AND cause of death heart attack

occupation P106

politician Q82955

cause of death P509

heart attack Q12152

Wikidata query in Autolist

claim[10682955] AND claim[50912152]

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 22: Up and running with Wikidata

httptoolswmflabsorgautolistautolist1htmlq=claim[10682955]20AND20claim[50912152]

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 23: Up and running with Wikidata

Classification on Wikidata

Taxonomy of knowledge

Enables powerful inference novel applications

Interesting philosophical design and engineering issues

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 24: Up and running with Wikidata

Tree of Porphyry

UserVoiceOfTheCommons CC-BY-SA 30

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 25: Up and running with Wikidata

Classes and instances

Plato is a human is a animal

Plato instance of human subclass of animal

Instance concrete object individual

Class abstract object

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 26: Up and running with Wikidata

Classification on Wikidata

instance of (P31)ndash rdftype in RDF and OWL

ndash 11930243 usages

ndash Most popular Wikidata property

subclass of (P279)ndash ldquoall instances of A are also instances of Brdquo

ndash rdfssubClassOf in RDF and OWL

ndash 170571 usages

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 27: Up and running with Wikidata

Examples USS Nimitz instance of Nimitz-class aircraft carrier

Nimitz-class aircraft carrier subclass of aircraft carrier

2012 Cannes Film Festival instance of Cannes Film Festival

Cannes Film Festival subclass of film festival

an individual charm quark instance of charm quark

charm quark subclass of quark^ Many ldquoleaf nodesrdquo in Wikidatas taxonomic hierarchy are not instances (There are no items about individual quarks on Wikidata)

httpswwwwikidataorgwikiHelpBasic_membership_properties

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 28: Up and running with Wikidata

Bad smells

Item has many instance of or subclass of claims

Items typically satisfy a huge number of instance of claims Fido instance of dog Fido instance of English Pointer Fido instance of faithful animal hellip

Solution use one class for instance of put other class knowledge into normal properties

Fido instance of dog Fido breed English Pointer Fido known for faithfulness

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 29: Up and running with Wikidata

Bad smells

subclass of claim that is nonsensical when interpreted as ldquoAll instances of A are also instances of Brdquo

Exampledog subclass of pet

But not all dogs are pets

feral dog subclass of dog trueferal dog subclass of pet false dog subclass of pet false

Solution put ldquopetrdquo knowledge about dogs into claim that does not apply to all instances of dog Eg ldquodog has role petrdquo (Has role would not be transitive Also needed someall quantifier)

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 30: Up and running with Wikidata

Classification on Wikidata

Last but not least part of (P361)ndash Third basic membership propertyndash Top-level ldquopart-wholerdquo relation

Instance of subclass of and part of are all transitive

Transitive relation

A subclass of B

B subclass of C

A subclass of C

httpswwwwikidataorgwikiHelpBasic_membership_properties

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33
Page 31: Up and running with Wikidata

Ideas for small projects

Add data about towns and citiesndash population (P1082)

ndash head of government (P6)

Add medical knowledge about historical figures ndash medical condition (P1050)

ndash cause of death (P509)

ndash manner of death (P1196)

Add cultural knowledge about works of artndash instance of (P31)

ndash creator (P170)

ndash material used (P186)

ndash collection (P195)

  • Slide 1
  • Slide 2
  • Slide 3
  • Slide 4
  • Slide 5
  • Slide 6
  • Slide 7
  • Slide 8
  • Slide 9
  • Slide 10
  • Slide 11
  • Slide 12
  • Slide 13
  • Slide 14
  • Slide 15
  • Slide 16
  • Slide 17
  • Slide 18
  • Slide 19
  • Slide 20
  • Slide 21
  • Slide 22
  • Slide 23
  • Slide 24
  • Slide 25
  • Slide 26
  • Slide 27
  • Slide 28
  • Slide 29
  • Slide 30
  • Slide 31
  • Slide 32
  • Slide 33