How to edit the DBpedia Ontology: Difference between revisions

From DBpedia Mappings
Jump to navigationJump to search
No edit summary
(correct)
 
(15 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 (units of measurement) used by the DBpedia ontology is found below:
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 Datatypes]
* [[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:
These tools might help you edit the ontology:
* '''Ontology View.''' The [http://mappings.dbpedia.org/server/ontology/classes ontology view] gives you an overview about the current shape of the DBpedia 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.  
* '''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.  
* '''MappingTool.''' The [[MappingTool|DBpedia MappingTool]] is a graphical user interface that supports users to create and edit mappings.
* '''Mapping Validator'''. Checks if [http://mappings.dbpedia.org/validation/|your mappings conform to the DBpedia ontology], it is updated once per day
* [http://dbpedia.hg.sourceforge.net/hgweb/dbpedia/extraction_framework/file/84eeec36fa5d/core/doc/mapping_language/ DBpedia Mapping Language Specification] (detailed)
* <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


== Edits ==
== How to edit ==


=== How to add an ontology class ===
=== How to add an ontology class ===
Line 37: Line 41:
The [[Template:Class|Class template]] offers the following template parameters:
The [[Template:Class|Class template]] offers the following template parameters:
* rdfs:label
* rdfs:label
* rdfs:comment
* rdfs:comment: '''you must fill this out''' explaining the particulars of usage
* rdfs:subClassOf
* rdfs:subClassOf
* owl:equivalentClass
* owl:equivalentClass
Line 43: Line 47:
The [[Template:DatatypeProperty|DatatypeProperty template]] offers the following template parameters:
The [[Template:DatatypeProperty|DatatypeProperty template]] offers the following template parameters:
* rdfs:label
* rdfs:label
* rdfs:comment
* rdfs:comment: '''you must fill this out''' explaining the particulars of usage
* rdfs:domain
* rdfs:domain
* rdfs:range
* rdfs:range
Line 50: Line 54:
The [[Template:ObjectProperty|ObjectProperty template]] offers the following template parameters:
The [[Template:ObjectProperty|ObjectProperty template]] offers the following template parameters:
* rdfs:label
* rdfs:label
* rdfs:comment
* rdfs:comment: '''you must fill this out''' explaining the particulars of usage
* rdfs:domain
* rdfs:domain
* rdfs:range
* rdfs:range
Line 58: Line 62:


The definition of the DBpedia ontology class Person (using the [[Template:Class|Class template]]):
The definition of the DBpedia ontology class Person (using the [[Template:Class|Class template]]):
<pre>{{Class  
<pre>{{Class
| rdfs:label@en = Person
| labels =
{{label|en|Person}}
}}</pre>
}}</pre>


The definition of the DBpedia ontology property height (using the [[Template:DatatypeProperty|DatatypeProperty template]]):
The definition of the DBpedia ontology property height (using the [[Template:DatatypeProperty|DatatypeProperty template]]):
<pre>{{DatatypeProperty  
<pre>{{DatatypeProperty
| rdfs:label@en = height
| labels =
{{label|en|height}}
| rdfs:domain = Person
| rdfs:domain = Person
| rdfs:range  = centimeter
| rdfs:range  = centimeter
Line 70: Line 76:


The definition of the DBpedia ontology property doctoralAdvisor (using the [[Template:ObjectProperty|ObjectProperty template]]):
The definition of the DBpedia ontology property doctoralAdvisor (using the [[Template:ObjectProperty|ObjectProperty template]]):
<pre>{{ObjectProperty  
<pre>{{ObjectProperty
| rdfs:label@en = doctoral advisor
| labels =
{{label|en|doctoral advisor}}
| rdfs:domain = Scientist
| rdfs:domain = Scientist
| rdfs:range  = Person
| rdfs:range  = Person
}}</pre>
}}</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:

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:

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

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
}}