Ontology Editing: Difference between revisions
From DBpedia Mappings
Jump to navigationJump to search
AnjaJentzsch (talk | contribs) |
(changed label and comment to label@en and comment@en) |
||
Line 42: | Line 42: | ||
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 = Person | | rdfs: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 = height | | rdfs:label@en = height | ||
| rdfs:domain = Person | | rdfs:domain = Person | ||
| rdfs:range = centimeter | | rdfs:range = centimeter | ||
Line 54: | Line 54: | ||
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 = doctoral advisor | | rdfs:label@en = doctoral advisor | ||
| rdfs:domain = Scientist | | rdfs:domain = Scientist | ||
| rdfs:range = Person | | rdfs:range = Person | ||
}}</pre> | }}</pre> |
Revision as of 11:44, 28 May 2010
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
- rdfs:subClassOf
- owl:equivalentClass
The DatatypeProperty template offers the following template parameters:
- rdfs:label
- rdfs:comment
- rdfs:domain
- rdfs:range
- owl:equivalentProperty
The 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 Class template):
{{Class | rdfs:label@en = Person }}
The definition of the DBpedia ontology property height (using the DatatypeProperty template):
{{DatatypeProperty | rdfs:label@en = height | rdfs:domain = Person | rdfs:range = centimeter }}
The definition of the DBpedia ontology property doctoralAdvisor (using the ObjectProperty template):
{{ObjectProperty | rdfs:label@en = doctoral advisor | rdfs:domain = Scientist | rdfs:range = Person }}