Template:ObjectProperty: Difference between revisions
From Mediawiki1
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
| {{#if:{{{rdfs:range|}}}|[[OntologyClass:{{{rdfs:range}}}]]|owl:Thing}} | | {{#if:{{{rdfs:range|}}}|[[OntologyClass:{{{rdfs:range}}}]]|owl:Thing}} | ||
|}</includeonly> | |}</includeonly> | ||
<noinclude>'''<nowiki>{{ObjectProperty}}</nowiki>''' | <noinclude> | ||
The '''<nowiki>{{ObjectProperty}}</nowiki>''' template can be used to define ontology object properties. | |||
=== Usage === | === Usage === | ||
Line 17: | Line 18: | ||
<pre> | <pre> | ||
{{ObjectProperty | {{ObjectProperty | ||
| rdfs:label | | rdfs:label = | ||
| rdfs:domain = | | rdfs:comment = | ||
| rdfs:range | | rdfs:domain = | ||
| rdfs:range = | |||
}} | }} | ||
</pre> | </pre> | ||
Line 28: | Line 30: | ||
<pre> | <pre> | ||
{{ObjectProperty | {{ObjectProperty | ||
| rdfs:label = doctoral advisor | | rdfs:label = doctoral advisor | ||
| rdfs:domain = Scientist | | rdfs:comment = | ||
| rdfs:range = Person | | rdfs:domain = Scientist | ||
| rdfs:range = Person | |||
}} | }} | ||
</pre> | </pre> | ||
{{ObjectProperty | {{ObjectProperty | ||
| rdfs:label = doctoral advisor | | rdfs:label = doctoral advisor | ||
| rdfs:domain = Scientist | | rdfs:domain = Scientist | ||
| rdfs:range = Person | | rdfs:range = Person | ||
}} | }} | ||
</noinclude> | </noinclude> |
Revision as of 13:27, 5 March 2010
The {{ObjectProperty}} template can be used to define ontology object properties.
Usage
{{ObjectProperty | rdfs:label = | rdfs:comment = | rdfs:domain = | rdfs:range = }}
Example
The definition of the DBpedia ontology property doctoralAdvisor:
{{ObjectProperty | rdfs:label = doctoral advisor | rdfs:comment = | rdfs:domain = Scientist | rdfs:range = Person }}
Ontology object property | |
---|---|
rdfs:label | doctoral advisor |
rdfs:domain | OntologyClass:Scientist |
rdfs:range | OntologyClass:Person |