Template:SpecificProperty: Difference between revisions

From DBpedia Mappings
Jump to navigationJump to search
(add id="{{{templateProperty|}}}" to allow direct #property links. '''NOTE''': call pages using this template with &action=purge)
(nicer link label for ontologyProperty)
 
Line 4: Line 4:
<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>

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
}}