Difference between revisions of "Template:ObjectProperty"

From DBpedia Mappings
Jump to: navigation, search
(added all language labels)
Line 1: Line 1:
 
<includeonly>{{DisclaimerOntologyProperty}}  
 
<includeonly>{{DisclaimerOntologyProperty}}  
  
{|class="wikitable"
+
<table class="wikitable">
! colspan="2" style="text-align:left" | Ontology object property <small>([[Template:ObjectProperty|<span style="cursor:help;">help</span>]])</small>
+
<tr>
|-
+
<th colspan="2" style="text-align:left">Ontology object property <small>([[Template:ObjectProperty|<span style="cursor:help;">help</span>]])</small></th>
| width="150px" | rdfs:label@en
+
</tr>
| width="400px" | {{#if:{{{rdfs:label@en|}}}|{{{rdfs:label@en}}}|<span style="color:red">please define an English label</span>}}
+
<tr>
|-
+
<td width="150px">rdfs:label@en</td>
| rdfs:label@ca
+
<td width="400px">{{#if:{{{rdfs:label@en|}}}|{{{rdfs:label@en}}}|<span style="color:red">please define an English label</span>}}</td>
| {{#if:{{{rdfs:label@ca|}}}|{{{rdfs:label@ca}}}}}
+
</tr>
|-
+
{{#if:{{{rdfs:label@ca|}}}|<tr>
| rdfs:label@de
+
<td width="150px">rdfs:label@ca</td>
| {{#if:{{{rdfs:label@de|}}}|{{{rdfs:label@de}}}}}
+
<td>{{{rdfs:label@ca}}}</td></tr>}} {{#if:{{{rdfs:label@de|}}}|<tr>
|-
+
<td width="150px">rdfs:label@de</td>
| rdfs:label@el
+
<td>{{{rdfs:label@de}}}</td></tr>}} {{#if:{{{rdfs:label@el|}}}|<tr>
| {{#if:{{{rdfs:label@el|}}}|{{{rdfs:label@el}}}}}
+
<td width="150px">rdfs:label@el</td>
|-
+
<td>{{{rdfs:label@el}}}</td></tr>}} {{#if:{{{rdfs:label@es|}}}|<tr>
| rdfs:label@es
+
<td width="150px">rdfs:label@es</td>
| {{#if:{{{rdfs:label@es|}}}|{{{rdfs:label@es}}}}}
+
<td>{{{rdfs:label@es}}}</td></tr>}} {{#if:{{{rdfs:label@fr|}}}|<tr>
|-
+
<td width="150px">rdfs:label@fr</td>
| rdfs:label@fr
+
<td>{{{rdfs:label@fr}}}</td></tr>}} {{#if:{{{rdfs:label@ga|}}}|<tr>
| {{#if:{{{rdfs:label@fr|}}}|{{{rdfs:label@fr}}}}}
+
<td width="150px">rdfs:label@ga</td>
|-
+
<td>{{{rdfs:label@ga}}}</td></tr>}} {{#if:{{{rdfs:label@hr|}}}|<tr>
| rdfs:label@ga
+
<td width="150px">rdfs:label@hr</td>
| {{#if:{{{rdfs:label@ga|}}}|{{{rdfs:label@ga}}}}}
+
<td>{{{rdfs:label@hr}}}</td></tr>}} {{#if:{{{rdfs:label@hu|}}}|<tr>
|-
+
<td width="150px">rdfs:label@hu</td>
| rdfs:label@hr
+
<td>{{{rdfs:label@hu}}}</td></tr>}} {{#if:{{{rdfs:label@it|}}}|<tr>
| {{#if:{{{rdfs:label@hr|}}}|{{{rdfs:label@hr}}}}}
+
<td width="150px">rdfs:label@it</td>
|-
+
<td>{{{rdfs:label@it}}}</td></tr>}} {{#if:{{{rdfs:label@nl|}}}|<tr>
| rdfs:label@hu
+
<td width="150px">rdfs:label@nl</td>
| {{#if:{{{rdfs:label@hu|}}}|{{{rdfs:label@hu}}}}}
+
<td>{{{rdfs:label@nl}}}</td></tr>}} {{#if:{{{rdfs:label@pl|}}}|<tr>
|-
+
<td width="150px">rdfs:label@pl</td>
| rdfs:label@it
+
<td>{{{rdfs:label@pl}}}</td></tr>}} {{#if:{{{rdfs:label@pt|}}}|<tr>
| {{#if:{{{rdfs:label@it|}}}|{{{rdfs:label@it}}}}}
+
<td width="150px">rdfs:label@pt</td>
|-
+
<td>{{{rdfs:label@pt}}}</td></tr>}} {{#if:{{{rdfs:label@ru|}}}|<tr>
| rdfs:label@nl
+
<td width="150px">rdfs:label@ru</td>
| {{#if:{{{rdfs:label@nl|}}}|{{{rdfs:label@nl}}}}}
+
<td>{{{rdfs:label@ru}}}</td></tr>}} {{#if:{{{rdfs:label@sl|}}}|<tr>
|-
+
<td width="150px">rdfs:label@sl</td>
| rdfs:label@pl
+
<td>{{{rdfs:label@sl}}}</td></tr>}} {{#if:{{{rdfs:label@tr|}}}|<tr>
| {{#if:{{{rdfs:label@pl|}}}|{{{rdfs:label@pl}}}}}
+
<td width="150px">rdfs:label@tr</td>
|-
+
<td>{{{rdfs:label@tr}}}</td></tr>}}
| rdfs:label@pt
+
<tr>
| {{#if:{{{rdfs:label@pt|}}}|{{{rdfs:label@pt}}}}}
+
<td>rdfs:comment@en</td>
|-
+
<td>{{#if:{{{rdfs:comment@en|}}}|{{{rdfs:comment@en}}}}}</td>
| rdfs:label@ru
+
</tr>
| {{#if:{{{rdfs:label@ru|}}}|{{{rdfs:label@ru}}}}}
+
<tr>
|-
+
<td>rdfs:domain</td>
| rdfs:label@sl
+
<td>{{#if:{{{rdfs:domain|}}}|{{#ifeq:{{{rdfs:domain|}}}|owl:Thing|owl:Thing|[[OntologyClass:{{{rdfs:domain}}}|{{{rdfs:domain}}}]]}}|owl:Thing}}</td>
| {{#if:{{{rdfs:label@sl|}}}|{{{rdfs:label@sl}}}}}
+
</tr>
|-
+
<tr>
| rdfs:label@tr
+
<td>rdfs:range</td>
| {{#if:{{{rdfs:label@tr|}}}|{{{rdfs:label@tr}}}}}
+
<td>{{#if:{{{rdfs:range|}}}|{{#ifeq:{{{rdfs:range|}}}|owl:Thing|owl:Thing|[[OntologyClass:{{{rdfs:range}}}|{{{rdfs:range}}}]]}}|owl:Thing}}</td>
|-
+
</tr>
| rdfs:comment@en
+
<tr>
| {{#if:{{{rdfs:comment@en|}}}|{{{rdfs:comment@en}}}}}
+
<td>rdf:type</td>
|-
+
<td>{{#if:{{{rdf:type|}}}|{{{rdf:type}}}}}</td>
| rdfs:domain
+
</tr>
| {{#if:{{{rdfs:domain|}}}|{{#ifeq:{{{rdfs:domain|}}}|owl:Thing|owl:Thing|[[OntologyClass:{{{rdfs:domain}}}|{{{rdfs:domain}}}]]}}|owl:Thing}}
+
<tr>
|-
+
<td>rdfs:subPropertyOf</td>
| rdfs:range
+
<td>{{#if:{{{rdfs:subPropertyOf|}}}|{{{rdfs:subPropertyOf}}}}}</td>
| {{#if:{{{rdfs:range|}}}|{{#ifeq:{{{rdfs:range|}}}|owl:Thing|owl:Thing|[[OntologyClass:{{{rdfs:range}}}|{{{rdfs:range}}}]]}}|owl:Thing}}
+
</tr>
|-
+
</table>
| rdfs:type
+
</includeonly>
| {{#if:{{{rdfs:type|}}}|{{{rdfs:type}}}}}
+
|-
+
| rdfs:subPropertyOf
+
| {{#if:{{{rdfs:subPropertyOf|}}}|{{{rdfs:subPropertyOf}}}}}
+
|}</includeonly>
+
 
<noinclude>The '''<nowiki>{{ObjectProperty}}</nowiki>''' template can be used to define ontology object properties.  
 
<noinclude>The '''<nowiki>{{ObjectProperty}}</nowiki>''' template can be used to define ontology object properties.  
  

Revision as of 22:32, 18 April 2011

The {{ObjectProperty}} template can be used to define ontology object properties.

Usage

{{ObjectProperty
| rdfs:label@en   =
| rdfs:label@..  =
| rdfs:comment@en =
| rdfs:comment@.. =
| rdfs:domain  = 
| rdfs:range   =
| rdf:type     =
| rdfs:subPropertyOf =
}}

Meanings

  • rdfs:label@en: should be defined to provide a human-readable version of a property's name. Use ISO language code 639-1 (e.g. @en).
  • rdfs:comment@en: should be defined to provide a human-readable description of a property. Use ISO language code 639-1 (e.g. @en).
  • rdfs:domain: is used to state that any resource that has a given property is an instance of the stated class. If left empty, owl:Thing is assumed.
  • rdfs:range: is used to state that the values of a property are instances of the stated class. If left empty, owl:Thing is assumed.
  • rdf:type:
  • rdfs:subPropertyOf: defines that the property is a subproperty of some other property. Formally this means that if P1 is a subproperty of P2, then the property values of P1 are a subset of the property values of P2.
  • rdf:type:
  • rdfs:subPropertyOf: defines that the property is a subproperty of some other property. Formally this means that if P1 is a subproperty of P2, then the property values of P1 are a subset of the property values of P2.

Example

The definition of the DBpedia ontology property doctoralAdvisor:

{{ObjectProperty
| rdfs:label@en   = doctoral advisor
| rdfs:comment@en =
| rdfs:domain  = Scientist
| rdfs:range   = Person
}}

This is the definition of an ontology property.

Read more about editing the ontology schema.

You can see the result of your edit on DBpedia Live (this is BETA!).


Ontology object property (help)
rdfs:label@en doctoral advisor
rdfs:domain owl:Thing
rdfs:range Person
rdf:type
rdfs:subPropertyOf
owl:equivalentProperty
owl:propertyDisjointWith