Template:SpecificProperty: Difference between revisions
From Mediawiki1
Jump to navigationJump to search
No edit summary |
(nicer link label for ontologyProperty) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><table class="wikitable"> | <includeonly><table class="wikitable" id="{{{ontologyProperty|}}}"> | ||
<tr><th style="text-align:left" colspan="2">Specific Property <small>([[Template:SpecificProperty|<span style="cursor:help;">help</span>]])</small> | <tr><th style="text-align:left" colspan="2">Specific Property <small>([[Template:SpecificProperty|<span style="cursor:help;">help</span>]])</small> | ||
</th></tr> | </th></tr> | ||
<tr> | <tr> | ||
<td> ontology property | <td> ontology property | ||
</td><td>{{#if:{{{ontologyProperty|}}}|[[OntologyProperty:{{#replace:{{{ontologyProperty}}}|:|/}}]]|<span style="color:red">please define an ontology property</span>}}</td></tr> | </td><td>{{#if:{{{ontologyProperty|}}}|[[OntologyProperty:{{#replace:{{{ontologyProperty}}}|:|/}}|{{{ontologyProperty}}}]]|<span style="color:red">please define an ontology property</span>}}</td></tr> | ||
{{#if:{{{unit|}}}|<tr> | {{#if:{{{unit|}}}|<tr> | ||
<td>unit</td><td>{{{unit}}}</td> | <td>unit</td><td>{{{unit}}}</td> | ||
</tr>}} | </tr>}} | ||
</table></includeonly> | </table></includeonly> | ||
<noinclude>'''<nowiki>{{SpecificProperty}}</nowiki>''' | <noinclude>'''<nowiki>{{SpecificProperty}}</nowiki>''' is used to create a new refined property based on the general property. | ||
=== Usage === | === Usage === | ||
Line 26: | Line 26: | ||
=== Example === | === Example === | ||
The general property ''height'''s range is the SI length unit metre. For the ontology class ''Person'' one can refine the property using the range ''centimetre''. | |||
<pre> | <pre> | ||
{{SpecificProperty | {{SpecificProperty | ||
| ontologyProperty = | | ontologyProperty = height | ||
| unit = | | unit = centimetre | ||
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> |
Latest revision as of 03:07, 22 May 2012
{{SpecificProperty}} is used to create a new refined property based on the general property.
Usage
{{SpecificProperty | ontologyProperty = | unit = }}
Meanings
- ontologyProperty: A template property to ontology property mapping should list one ontology property.
- unit: If a template property containing a numerical value and a unit is mapped, the unit has to be defined. If a template property has no default unit defined, e.g. its values can contain different units of the same dimension, the dimension has to be defined for usability as well as validation reasons. Possible dimensions are Length or Mass.
Example
The general property height's range is the SI length unit metre. For the ontology class Person one can refine the property using the range centimetre.
{{SpecificProperty | ontologyProperty = height | unit = centimetre }}