docs/ontology.owl
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF [
<!ENTITY cc "http://creativecommons.org/ns#">
<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#">
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#">
<!ENTITY owl "http://www.w3.org/2002/07/owl#">
<!ENTITY wikibase "http://wikiba.se/ontology#">
]>
<rdf:RDF
xmlns:xsd="&xsd;"
xmlns:rdf="&rdf;"
xmlns:rdfs="&rdfs;"
xmlns:owl="&owl;"
xmlns:cc="&cc;"
>
<owl:Ontology rdf:about="&wikibase;">
<rdfs:label>Wikibase system ontology</rdfs:label>
<rdfs:comment>The system ontology of Wikibase</rdfs:comment>
<rdfs:seeAlso rdf:resource="https://www.mediawiki.org/wiki/Wikibase/Indexing/RDF_Dump_Format" />
<cc:licence rdf:resource="http://creativecommons.org/publicdomain/zero/1.0/" />
</owl:Ontology>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Classes
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<owl:Class rdf:about="&wikibase;Dump">
<rdfs:label>Dump</rdfs:label>
<rdfs:comment>A dump of wikidata content.</rdfs:comment>
</owl:Class>
<owl:Class rdf:about="&wikibase;Entity">
<rdfs:label>Entity</rdfs:label>
<rdfs:comment>Wikibase entity.</rdfs:comment>
</owl:Class>
<owl:Class rdf:about="&wikibase;Item">
<rdfs:label>Item</rdfs:label>
<rdfs:comment>Wikibase item.</rdfs:comment>
<rdfs:subClassOf rdf:resource="&wikibase;Entity"/>
</owl:Class>
<owl:Class rdf:about="&wikibase;Property">
<rdfs:label>Property</rdfs:label>
<rdfs:comment>Wikibase property.</rdfs:comment>
<rdfs:subClassOf rdf:resource="&wikibase;Entity"/>
</owl:Class>
<owl:Class rdf:about="&wikibase;Statement">
<rdfs:label>Statement</rdfs:label>
<rdfs:comment>A reified statement.</rdfs:comment>
</owl:Class>
<owl:Class rdf:about="&wikibase;Reference">
<rdfs:label>Reference</rdfs:label>
<rdfs:comment>A reference to sources supporting the claim.</rdfs:comment>
</owl:Class>
<owl:Class rdf:about="&wikibase;Value">
<rdfs:label>Value</rdfs:label>
<rdfs:comment>Wikibase extended value.</rdfs:comment>
</owl:Class>
<owl:Class rdf:about="&wikibase;PropertyType">
<rdfs:label>PropertyType</rdfs:label>
<rdfs:comment>Type of a wikibase property.</rdfs:comment>
</owl:Class>
<owl:Class rdf:about="&wikibase;Rank">
<rdfs:label>Rank</rdfs:label>
<rdfs:comment>Wikibase statement rank.</rdfs:comment>
</owl:Class>
<owl:Class rdf:about="&wikibase;BestRank">
<rdfs:label>BestRank</rdfs:label>
<rdfs:comment>This class marks statement that has the best rank for its property.</rdfs:comment>
</owl:Class>
<owl:Class rdf:about="&wikibase;QuantityValue">
<rdfs:label>QuantityValue</rdfs:label>
<rdfs:comment>Wikibase extended value representing quantity.</rdfs:comment>
<rdfs:subClassOf rdf:resource="&wikibase;Value"/>
</owl:Class>
<owl:Class rdf:about="&wikibase;TimeValue">
<rdfs:label>TimeValue</rdfs:label>
<rdfs:comment>Wikibase extended value representing time.</rdfs:comment>
<rdfs:subClassOf rdf:resource="&wikibase;Value"/>
</owl:Class>
<owl:Class rdf:about="&wikibase;GlobecoordinateValue">
<rdfs:label>GlobecoordinateValue</rdfs:label>
<rdfs:comment>Wikibase extended value representing geographic coordinate.</rdfs:comment>
<rdfs:subClassOf rdf:resource="&wikibase;Value"/>
</owl:Class>
<owl:Class rdf:about="&wikibase;GeoAutoPrecision">
<rdfs:label>GeoAutoPrecision</rdfs:label>
<rdfs:comment>This coordinate value uses automatic precision since the user did not specify one.</rdfs:comment>
</owl:Class>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Individuals
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<!-- Individual statement ranks -->
<owl:NamedIndividual rdf:about="&wikibase;DeprecatedRank">
<rdfs:label>DeprecatedRank</rdfs:label>
<rdfs:comment>Deprecated statement rank.</rdfs:comment>
<rdf:type rdf:resource="&wikibase;Rank"/>
</owl:NamedIndividual>
<owl:NamedIndividual rdf:about="&wikibase;NormalRank">
<rdfs:label>NormalRank</rdfs:label>
<rdfs:comment>Normal statement rank.</rdfs:comment>
<rdf:type rdf:resource="&wikibase;Rank"/>
</owl:NamedIndividual>
<owl:NamedIndividual rdf:about="&wikibase;PreferredRank">
<rdfs:label>PreferredRank</rdfs:label>
<rdfs:comment>Preferred statement rank.</rdfs:comment>
<rdf:type rdf:resource="&wikibase;Rank"/>
</owl:NamedIndividual>
<!-- Individual property types supported by Wikibase -->
<owl:NamedIndividual rdf:about="&wikibase;CommonsMedia">
<rdfs:label>CommonsMedia</rdfs:label>
<rdfs:comment>Wikimedia Commons reference type.</rdfs:comment>
<rdf:type rdf:resource="&wikibase;PropertyType"/>
</owl:NamedIndividual>
<owl:NamedIndividual rdf:about="&wikibase;ExternalId">
<rdfs:label>WikibaseExternalId</rdfs:label>
<rdfs:comment>Type for referring to ID defined by external authority.</rdfs:comment>
<rdf:type rdf:resource="&wikibase;PropertyType"/>
</owl:NamedIndividual>
<owl:NamedIndividual rdf:about="&wikibase;Globecoordinate">
<rdfs:label>Globecoordinate</rdfs:label>
<rdfs:comment>Coordinate type.</rdfs:comment>
<rdf:type rdf:resource="&wikibase;PropertyType"/>
</owl:NamedIndividual>
<owl:NamedIndividual rdf:about="&wikibase;Monolingualtext">
<rdfs:label>Monolingualtext</rdfs:label>
<rdfs:comment>Type for text in single language.</rdfs:comment>
<rdf:type rdf:resource="&wikibase;PropertyType"/>
</owl:NamedIndividual>
<owl:NamedIndividual rdf:about="&wikibase;Quantity">
<rdfs:label>Quantity</rdfs:label>
<rdfs:comment>Type for numerical quantity.</rdfs:comment>
<rdf:type rdf:resource="&wikibase;PropertyType"/>
</owl:NamedIndividual>
<owl:NamedIndividual rdf:about="&wikibase;String">
<rdfs:label>String</rdfs:label>
<rdfs:comment>Basic string type.</rdfs:comment>
<rdf:type rdf:resource="&wikibase;PropertyType"/>
</owl:NamedIndividual>
<owl:NamedIndividual rdf:about="&wikibase;Time">
<rdfs:label>Time</rdfs:label>
<rdfs:comment>Date and time value type.</rdfs:comment>
<rdf:type rdf:resource="&wikibase;PropertyType"/>
</owl:NamedIndividual>
<owl:NamedIndividual rdf:about="&wikibase;Url">
<rdfs:label>Url</rdfs:label>
<rdfs:comment>URL link type.</rdfs:comment>
<rdf:type rdf:resource="&wikibase;PropertyType"/>
</owl:NamedIndividual>
<owl:NamedIndividual rdf:about="&wikibase;WikibaseItem">
<rdfs:label>WikibaseItem</rdfs:label>
<rdfs:comment>Type for referring to another Wikibase item.</rdfs:comment>
<rdf:type rdf:resource="&wikibase;PropertyType"/>
</owl:NamedIndividual>
<owl:NamedIndividual rdf:about="&wikibase;WikibaseProperty">
<rdfs:label>WikibaseProperty</rdfs:label>
<rdfs:comment>Type for referring to a Wikibase property.</rdfs:comment>
<rdf:type rdf:resource="&wikibase;PropertyType"/>
</owl:NamedIndividual>
<owl:NamedIndividual rdf:about="&wikibase;GeoShape">
<rdfs:label>GeoShape</rdfs:label>
<rdfs:comment>Type for storing links to geoshape data.</rdfs:comment>
<rdf:type rdf:resource="&wikibase;PropertyType"/>
</owl:NamedIndividual>
<owl:NamedIndividual rdf:about="&wikibase;TabularData">
<rdfs:label>TabularData</rdfs:label>
<rdfs:comment>Type for storing links to tabular data.</rdfs:comment>
<rdf:type rdf:resource="&wikibase;PropertyType"/>
</owl:NamedIndividual>
<!-- Individual property types supported by known Wikibase extensions -->
<owl:NamedIndividual rdf:about="&wikibase;Math">
<rdfs:label>Mathematical expression</rdfs:label>
<rdfs:comment>Type for mathematical expressions as supported by the Math extension.</rdfs:comment>
<rdf:type rdf:resource="&wikibase;PropertyType"/>
</owl:NamedIndividual>
<owl:NamedIndividual rdf:about="&wikibase;MusicalNotation">
<rdfs:label>MusicalNotation</rdfs:label>
<rdfs:comment>Type for storing musical scores written in LilyPond notation as supported by the Score extension.</rdfs:comment>
<rdf:type rdf:resource="&wikibase;PropertyType"/>
</owl:NamedIndividual>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// Properties
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<owl:ObjectProperty rdf:about="&wikibase;rank">
<rdfs:label>rank</rdfs:label>
<rdfs:comment>Statement rank.</rdfs:comment>
<rdfs:range rdf:resource="&wikibase;Rank"/>
<rdfs:domain rdf:resource="&wikibase;Statement"/>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="&wikibase;badge">
<rdfs:label>badge</rdfs:label>
<rdfs:comment>Badge on the Wiki page.</rdfs:comment>
<rdfs:range rdf:resource="&wikibase;Item"/>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="&wikibase;directClaim">
<rdfs:label>directClaim</rdfs:label>
<rdfs:comment>Link between Wikibase Property and direct claim predicate.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;Property"/>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="&wikibase;claim">
<rdfs:label>claim</rdfs:label>
<rdfs:comment>Link between Wikibase Property and claim predicate.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;Property"/>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="&wikibase;statementProperty">
<rdfs:label>statementProperty</rdfs:label>
<rdfs:comment>Link between Wikibase Property and statement property predicate.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;Property"/>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="&wikibase;statementValue">
<rdfs:label>statementValue</rdfs:label>
<rdfs:comment>Link between Wikibase Property and statement value predicate.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;Property"/>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="&wikibase;statementValueNormalized">
<rdfs:label>statementValueNormalized</rdfs:label>
<rdfs:comment>Link between Wikibase Property and statement normalized value predicate.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;Property"/>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="&wikibase;qualifier">
<rdfs:label>qualifier</rdfs:label>
<rdfs:comment>Link between Wikibase Property and qualifier predicate.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;Property"/>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="&wikibase;qualifierValue">
<rdfs:label>qualifierValue</rdfs:label>
<rdfs:comment>Link between Wikibase Property and qualifier value predicate.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;Property"/>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="&wikibase;qualifierValueNormalized">
<rdfs:label>qualifierValueNormalized</rdfs:label>
<rdfs:comment>Link between Wikibase Property and qualifier normalized value predicate.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;Property"/>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="&wikibase;reference">
<rdfs:label>reference</rdfs:label>
<rdfs:comment>Link between Wikibase Property and reference predicate.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;Property"/>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="&wikibase;referenceValue">
<rdfs:label>referenceValue</rdfs:label>
<rdfs:comment>Link between Wikibase Property and reference value predicate.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;Property"/>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="&wikibase;referenceValueNormalized">
<rdfs:label>referenceValueNormalized</rdfs:label>
<rdfs:comment>Link between Wikibase Property and reference normalized value predicate.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;Property"/>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="&wikibase;novalue">
<rdfs:label>novalue</rdfs:label>
<rdfs:comment>Link between Wikibase Property and no value class.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;Property"/>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="&wikibase;geoGlobe">
<rdfs:label>geoGlobe</rdfs:label>
<rdfs:comment>Globe reference URL.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;GlobecoordinateValue"/>
<rdfs:range rdf:resource="&wikibase;Item"/>
</owl:ObjectProperty>
<owl:DatatypeProperty rdf:about="&wikibase;geoLatitude">
<rdfs:label>geoLatitude</rdfs:label>
<rdfs:comment>Coordinate latitude.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;GlobecoordinateValue"/>
<rdfs:range rdf:resource="&xsd;decimal"/>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="&wikibase;geoLongitude">
<rdfs:label>geoLongitude</rdfs:label>
<rdfs:comment>Coordinate longitude.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;GlobecoordinateValue"/>
<rdfs:range rdf:resource="&xsd;decimal"/>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="&wikibase;geoPrecision">
<rdfs:label>geoPrecision</rdfs:label>
<rdfs:comment>Coordinate precision.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;GlobecoordinateValue"/>
<rdfs:range rdf:resource="&xsd;decimal"/>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="&wikibase;quantityAmount">
<rdfs:label>quantityAmount</rdfs:label>
<rdfs:comment>Amount of quantity.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;QuantityValue"/>
<rdfs:range rdf:resource="&xsd;decimal"/>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="&wikibase;quantityLowerBound">
<rdfs:label>quantityLowerBound</rdfs:label>
<rdfs:comment>Lower bound of the value.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;QuantityValue"/>
<rdfs:range rdf:resource="&xsd;decimal"/>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="&wikibase;quantityUpperBound">
<rdfs:label>quantityUpperBound</rdfs:label>
<rdfs:comment>Upper bound of the value.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;QuantityValue"/>
<rdfs:range rdf:resource="&xsd;decimal"/>
</owl:DatatypeProperty>
<owl:ObjectProperty rdf:about="&wikibase;quantityUnit">
<rdfs:label>quantityUnit</rdfs:label>
<rdfs:comment>Unit of measurement.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;QuantityValue"/>
<rdfs:range rdf:resource="&wikibase;Item"/>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="&wikibase;quantityNormalized">
<rdfs:label>quantityNormalized</rdfs:label>
<rdfs:comment>Representation of this quantity in standard units.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;QuantityValue"/>
<rdfs:range rdf:resource="&wikibase;QuantityValue"/>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="&wikibase;timeCalendarModel">
<rdfs:label>timeCalendarModel</rdfs:label>
<rdfs:comment>Preferred calendar used to display this date to the user.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;TimeValue"/>
<rdfs:range rdf:resource="&wikibase;Item"/>
</owl:ObjectProperty>
<owl:DatatypeProperty rdf:about="&wikibase;timePrecision">
<rdfs:label>timePrecision</rdfs:label>
<rdfs:comment>Datetime precision.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;TimeValue"/>
<rdfs:range rdf:resource="&xsd;nonNegativeInteger"/>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="&wikibase;timeTimezone">
<rdfs:label>timeTimezone</rdfs:label>
<rdfs:comment>Timezone offset from UTC in minutes.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;TimeValue"/>
<rdfs:range rdf:resource="&xsd;decimal"/>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="&wikibase;timeValue">
<rdfs:label>timeValue</rdfs:label>
<rdfs:comment>Time value as datetime literal.</rdfs:comment>
<rdfs:domain rdf:resource="&wikibase;TimeValue"/>
<rdfs:range rdf:resource="&xsd;dateTime"/>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="&wikibase;wikiGroup">
<rdfs:label>wikiGroup</rdfs:label>
<rdfs:comment>Wiki group that the site belongs to.</rdfs:comment>
</owl:DatatypeProperty>
<!--
///////////////////////////////////////////////////////////////////////////////////////
//
// General axioms
//
///////////////////////////////////////////////////////////////////////////////////////
-->
<rdf:Description>
<rdf:type rdf:resource="&owl;AllDisjointClasses"/>
<owl:members rdf:parseType="Collection">
<rdf:Description rdf:about="&wikibase;Item"/>
<rdf:Description rdf:about="&wikibase;Property"/>
</owl:members>
</rdf:Description>
</rdf:RDF>