Template:PropertyMapping: Difference between revisions
From Mediawiki1
Jump to navigationJump to search
(Oh, the page just wasn't rendered. Try again: id="{{{templateProperty|}}}" to allow direct #property links) |
(added comment) |
||
Line 13: | Line 13: | ||
{{#if:{{{factor|}}}|<tr> | {{#if:{{{factor|}}}|<tr> | ||
<td>factor</td><td>{{{factor}}}</td> | <td>factor</td><td>{{{factor}}}</td> | ||
</tr>}} | |||
{{#if:{{{comment|}}}|<tr> | |||
<td>comment</td><td>{{{comment}}}</td> | |||
</tr>}} | </tr>}} | ||
</table></includeonly> | </table></includeonly> | ||
Line 25: | Line 28: | ||
| unit = | | unit = | ||
| factor = | | factor = | ||
| comment = | |||
}} | }} | ||
</pre> | </pre> | ||
Line 33: | Line 37: | ||
* '''ontologyProperty''': A template property to ontology property mapping should list one ontology property. | * '''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 (Please use only values from [http://mappings.dbpedia.org/index.php/DBpedia_Datatypes DBpedia unit and dimensions]). 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. | * '''unit''': If a template property containing a numerical value and a unit is mapped, the unit has to be defined (Please use only values from [http://mappings.dbpedia.org/index.php/DBpedia_Datatypes DBpedia unit and dimensions]). 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. | ||
* '''factor''': Multiplication factor that is applied for | * '''factor''': Multiplication factor that is applied for numeric data. | ||
* '''comment''': Comment about this mapping. Not used during extraction, only on the wiki. Please use English. | |||
=== Example === | === Example === |
Revision as of 22:55, 27 April 2012
{{PropertyMapping}} maps template properties to ontology properties.
Usage
{{PropertyMapping | templateProperty = | ontologyProperty = | unit = | factor = | comment = }}
Meanings
- templateProperty: A template property to ontology property mapping should list one template property which is to be mapped.
- 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 (Please use only values from DBpedia unit and dimensions). 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.
- factor: Multiplication factor that is applied for numeric data.
- comment: Comment about this mapping. Not used during extraction, only on the wiki. Please use English.
Example
The property mapping from the template property birth_date to the ontology property birthDate:
{{PropertyMapping | templateProperty = birth_date | ontologyProperty = birthDate }}
The property mapping for the number of visitors which is specified in millions:
{{PropertyMapping | templateProperty = visitors_mio | ontologyProperty = visitors | factor = 1000000 }}