How to edit the DBpedia Ontology: Difference between revisions
No edit summary |
(correct) |
||
(19 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
The DBpedia ontology is based on OWL and forms the structural backbone of DBpedia. It describes classes, e.g. person, city, country, and properties, e.g. birth place, longitude. Information in Wikipedia articles is then mapped via the above described mapping to this ontology. Most prominently, many Wikipedia pages use so called infoboxes. For instance, the English wikipedia article about [http://en.wikipedia.org/wiki/London London] contains a "settlement infobox". This infobox may be mapped to e.g. the class "populated place" (see [[OntologyClass:PopulatedPlace|PopulatedPlace]]) in the DBpedia ontology and the attributes in the infobox are mapped to properties in the DBpedia ontology. <!-- Please see the [http://en.wikipedia.org/wiki/Template:Infobox_settlement/doc documentation of the settlement infobox] for details. --> This way, a unified view over all data in infoboxes can be obtained. Since this information conforms to Semantic Web standards, it can be queried and combined by a broad range of tools in a useful way. This increases the value of information entered by the Wikipedia community. | The DBpedia ontology is based on OWL and forms the structural backbone of DBpedia. It describes classes, e.g. person, city, country, and properties, e.g. birth place, longitude. Information in Wikipedia articles is then mapped via the above described mapping to this ontology. Most prominently, many Wikipedia pages use so called infoboxes. For instance, the English wikipedia article about [http://en.wikipedia.org/wiki/London London] contains a "settlement infobox". This infobox may be mapped to e.g. the class "populated place" (see [[OntologyClass:PopulatedPlace|PopulatedPlace]]) in the DBpedia ontology and the attributes in the infobox are mapped to properties in the DBpedia ontology. <!-- Please see the [http://en.wikipedia.org/wiki/Template:Infobox_settlement/doc documentation of the settlement infobox] for details. --> This way, a unified view over all data in infoboxes can be obtained. Since this information conforms to Semantic Web standards, it can be queried and combined by a broad range of tools in a useful way. This increases the value of information entered by the Wikipedia community. | ||
A listing of all classes, properties and datatypes | A listing of all classes, properties and datatypes used by the DBpedia ontology is found below: | ||
* [http://mappings.dbpedia.org/index.php?title=Special%3AAllPages&from=&to=&namespace=200 Ontology Classes] - OWL classes and their definitions | * [http://mappings.dbpedia.org/index.php?title=Special%3AAllPages&from=&to=&namespace=200 Ontology Classes] - OWL classes and their definitions; [http://mappings.dbpedia.org/server/ontology/classes Class Hierarchy] | ||
* [http://mappings.dbpedia.org/index.php?title=Special%3AAllPages&from=&to=&namespace=202 Ontology Properties] - OWL Object and Datatype properties | * [http://mappings.dbpedia.org/index.php?title=Special%3AAllPages&from=&to=&namespace=202 Ontology Properties] - OWL Object and Datatype properties | ||
* [http://mappings.dbpedia.org/index.php?title=Special%3AAllPages&from=&to=&namespace=206 | * [[DBpedia Datatypes]] - units of measurement, shown in a "hierarchy" (or [http://mappings.dbpedia.org/index.php?title=Special%3AAllPages&from=&to=&namespace=206 paginated list] ) | ||
You can also [http://mappings.dbpedia.org/server/ontology/dbpedia.owl download an OWL file] containing all classes, properties and datatypes as they are currently defined. | |||
== Tools == | == Tools == | ||
These tools might help you edit the ontology: | |||
* [[Exploring the Ontology]] | |||
* '''Ontology Validator.''' When you are editing a mapping, there is a ''validate button'' on the bottom of the page. Pressing the button validates your changes for syntactic correctness and highlights inconsistencies such as missing property definitions. | |||
* '''Mapping Validator'''. Checks if [http://mappings.dbpedia.org/validation/|your mappings conform to the DBpedia ontology], it is updated once per day | |||
* <s>'''MappingTool.''' The [[MappingTool|DBpedia MappingTool]] is a graphical user interface that supports users to create and edit mappings.</s> | |||
* DBpedia Mapping [https://github.com/dbpedia/extraction-framework/tree/master/core/doc/mapping_language Language Specification] (detailed) | |||
* [http://vladimiralexiev.github.io/pres/20150209-dbpedia/add-mapping-long.html Adding a DBpedia Mapping], [http://vladimiralexiev.github.io/pres/20150209-dbpedia/add-mapping.html presentation] at DBpedia Meeting, Dublin, 9 Feb 2015 | |||
== How to edit == | |||
=== How to add an ontology class === | |||
* ''' | * Find a list of existing ontology classes via the sidebar ([http://mappings.dbpedia.org/index.php?title=Special%3AAllPages&from=&to=&namespace=200 Ontology Classes]) or have a look at the [http://mappings.dbpedia.org/server/ontology/classes class hierarchy]. | ||
* If you like to add a new ontology class, create a wiki page in the ''OntologyClass'' namespace. The page name has to be upper camel case. | |||
* Write a [[Template:Class|Class template]] defining the ontology class properties like label, super class etc.. | |||
=== How to add an ontology property === | |||
* Find a list of existing ontology properties via the sidebar ([http://mappings.dbpedia.org/index.php?title=Special%3AAllPages&from=&to=&namespace=202 Ontology Properties]). | |||
* If you like to add a new ontology property, create a wiki page in the ''OntologyProperty'' namespace. The page name has to be upper camel case. | |||
* Write a [[Template:DatatypeProperty|DatatypeProperty template]] or [[Template:ObjectProperty|ObjectProperty template]] defining the ontology property. | |||
=== Ontology Schema Definition Language === | |||
The language consists of the following templates to cover the ontology schema definition: | |||
* [[Template:Class]] | |||
* [[Template:DatatypeProperty]] | |||
* [[Template:ObjectProperty]] | |||
The [[Template:Class|Class template]] offers the following template parameters: | |||
* rdfs:label | |||
* rdfs:comment: '''you must fill this out''' explaining the particulars of usage | |||
* rdfs:subClassOf | |||
* owl:equivalentClass | |||
The [[Template:DatatypeProperty|DatatypeProperty template]] offers the following template parameters: | |||
* rdfs:label | |||
* rdfs:comment: '''you must fill this out''' explaining the particulars of usage | |||
* rdfs:domain | |||
* rdfs:range | |||
* owl:equivalentProperty | |||
The [[Template:ObjectProperty|ObjectProperty template]] offers the following template parameters: | |||
* rdfs:label | |||
* rdfs:comment: '''you must fill this out''' explaining the particulars of usage | |||
* rdfs:domain | |||
* rdfs:range | |||
* owl:equivalentProperty | |||
== Examples == | |||
The definition of the DBpedia ontology class Person (using the [[Template:Class|Class template]]): | |||
<pre>{{Class | |||
| labels = | |||
{{label|en|Person}} | |||
}}</pre> | |||
The definition of the DBpedia ontology property height (using the [[Template:DatatypeProperty|DatatypeProperty template]]): | |||
<pre>{{DatatypeProperty | |||
| labels = | |||
{{label|en|height}} | |||
| rdfs:domain = Person | |||
| rdfs:range = centimeter | |||
}}</pre> | |||
The definition of the DBpedia ontology property doctoralAdvisor (using the [[Template:ObjectProperty|ObjectProperty template]]): | |||
<pre>{{ObjectProperty | |||
| labels = | |||
{{label|en|doctoral advisor}} | |||
| rdfs:domain = Scientist | |||
| rdfs:range = Person | |||
}}</pre> |
Latest revision as of 12:20, 9 March 2022
The DBpedia ontology is based on OWL and forms the structural backbone of DBpedia. It describes classes, e.g. person, city, country, and properties, e.g. birth place, longitude. Information in Wikipedia articles is then mapped via the above described mapping to this ontology. Most prominently, many Wikipedia pages use so called infoboxes. For instance, the English wikipedia article about London contains a "settlement infobox". This infobox may be mapped to e.g. the class "populated place" (see PopulatedPlace) in the DBpedia ontology and the attributes in the infobox are mapped to properties in the DBpedia ontology. This way, a unified view over all data in infoboxes can be obtained. Since this information conforms to Semantic Web standards, it can be queried and combined by a broad range of tools in a useful way. This increases the value of information entered by the Wikipedia community.
A listing of all classes, properties and datatypes used by the DBpedia ontology is found below:
- Ontology Classes - OWL classes and their definitions; Class Hierarchy
- Ontology Properties - OWL Object and Datatype properties
- DBpedia Datatypes - units of measurement, shown in a "hierarchy" (or paginated list )
You can also download an OWL file containing all classes, properties and datatypes as they are currently defined.
Tools
These tools might help you edit the ontology:
- Exploring the Ontology
- Ontology Validator. When you are editing a mapping, there is a validate button on the bottom of the page. Pressing the button validates your changes for syntactic correctness and highlights inconsistencies such as missing property definitions.
- Mapping Validator. Checks if mappings conform to the DBpedia ontology, it is updated once per day
MappingTool. The DBpedia MappingTool is a graphical user interface that supports users to create and edit mappings.- DBpedia Mapping Language Specification (detailed)
- Adding a DBpedia Mapping, presentation at DBpedia Meeting, Dublin, 9 Feb 2015
How to edit
How to add an ontology class
- Find a list of existing ontology classes via the sidebar (Ontology Classes) or have a look at the class hierarchy.
- If you like to add a new ontology class, create a wiki page in the OntologyClass namespace. The page name has to be upper camel case.
- Write a Class template defining the ontology class properties like label, super class etc..
How to add an ontology property
- Find a list of existing ontology properties via the sidebar (Ontology Properties).
- If you like to add a new ontology property, create a wiki page in the OntologyProperty namespace. The page name has to be upper camel case.
- Write a DatatypeProperty template or ObjectProperty template defining the ontology property.
Ontology Schema Definition Language
The language consists of the following templates to cover the ontology schema definition:
The Class template offers the following template parameters:
- rdfs:label
- rdfs:comment: you must fill this out explaining the particulars of usage
- rdfs:subClassOf
- owl:equivalentClass
The DatatypeProperty template offers the following template parameters:
- rdfs:label
- rdfs:comment: you must fill this out explaining the particulars of usage
- rdfs:domain
- rdfs:range
- owl:equivalentProperty
The ObjectProperty template offers the following template parameters:
- rdfs:label
- rdfs:comment: you must fill this out explaining the particulars of usage
- rdfs:domain
- rdfs:range
- owl:equivalentProperty
Examples
The definition of the DBpedia ontology class Person (using the Class template):
{{Class | labels = {{label|en|Person}} }}
The definition of the DBpedia ontology property height (using the DatatypeProperty template):
{{DatatypeProperty | labels = {{label|en|height}} | rdfs:domain = Person | rdfs:range = centimeter }}
The definition of the DBpedia ontology property doctoralAdvisor (using the ObjectProperty template):
{{ObjectProperty | labels = {{label|en|doctoral advisor}} | rdfs:domain = Scientist | rdfs:range = Person }}