Ontology Editing: Difference between revisions

From DBpedia Mappings
Jump to navigationJump to search
(Redirected page to How to edit the DBpedia Ontology)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== How to add an ontology class ==
#REDIRECT [[How to edit the DBpedia Ontology]]
 
* Find a list of existing ontology classes via the sidebar ([http://mappings.dbpedia.org/index.php?title=Special%3AAllPages&from=&to=&namespace=100 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
* rdfs:subClassOf
* owl:equivalentClass
 
The [[Template:DatatypeProperty|DatatypeProperty template]] offers the following template parameters:
* rdfs:label
* rdfs:comment
* rdfs:domain
* rdfs:range
* owl:equivalentProperty
 
The [[Template:ObjectProperty|ObjectProperty template]] offers the following template parameters:
* rdfs:label
* rdfs:comment
* rdfs:domain
* rdfs:range
* owl:equivalentProperty
 
== Examples ==
 
The definition of the DBpedia ontology class Person (using the [[Template:Class|Class template]]):
<pre>{{Class
| rdfs:label  = Person
}}</pre>
 
The definition of the DBpedia ontology property height (using the [[Template:DatatypeProperty|DatatypeProperty template]]):
<pre>{{DatatypeProperty
| rdfs:label  = height
| rdfs:domain = Person
| rdfs:range  = centimeter
}}</pre>
 
The definition of the DBpedia ontology property doctoralAdvisor (using the [[Template:ObjectProperty|ObjectProperty template]]):
<pre>{{ObjectProperty
| rdfs:label  = doctoral advisor
| rdfs:domain = Scientist
| rdfs:range  = Person
}}</pre>

Latest revision as of 12:10, 7 July 2011