Template:ConstantMapping: Difference between revisions
From DBpedia Mappings
Jump to navigationJump to search
(Created page with '<includeonly><table class="wikitable"> <tr><th style="text-align:left" colspan="2"> Property Mapping <small>(<span style="cursor:help;">help</span>)<...') |
No edit summary |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><table class="wikitable"> | <includeonly><table class="wikitable"> | ||
<tr><th style="text-align:left" colspan="2"> | <tr><th style="text-align:left" colspan="2"> Constant Mapping <small>([[Template:ConstantMapping|<span style="cursor:help;">help</span>]])</small> | ||
</th></tr> | </th></tr> | ||
<tr> | <tr> | ||
Line 12: | Line 12: | ||
</tr>}} | </tr>}} | ||
</table></includeonly> | </table></includeonly> | ||
<noinclude>'''<nowiki>{{ | <noinclude>'''<nowiki>{{ConstantMapping}}</nowiki>''' maps information that is only contained in the infobox title (other than the class information) to ontology properties. | ||
=== Usage === | === Usage === | ||
Line 27: | Line 27: | ||
* '''ontologyProperty''': A constant mapping should list one ontology property. | * '''ontologyProperty''': A constant mapping should list one ontology property. | ||
* '''value''': A constant mapping should list one value. Dependening on the ontology property, if it is a object property or a datatype property, a URI or a literal is produced for this value. | * '''value''': A constant mapping should list one value. Dependening on the ontology property, if it is a object property or a datatype property, a URI or a literal is produced for this value. For URI please provide: | ||
** A ''decoded'' URI (e.g. "Billy Murray (actor)" but not "Billy_Murray_%28actor%29") if you want a URI from the same DBpedia, OR | |||
** A full URL (e.g. [http://dbpedia.org/resource/Female]) if you want a URL from another DBpedia, or external URL | |||
* '''unit''': If the value contains 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 the value contains 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. | ||
=== Example === | === Example === | ||
The constant mapping for | The constant mapping for Infobox_Australian_road that retains the information about the country (the type information is mapped one level above in a TemplateMapping): | ||
<pre> | <pre> |
Latest revision as of 18:14, 22 December 2014
{{ConstantMapping}} maps information that is only contained in the infobox title (other than the class information) to ontology properties.
Usage
{{ConstantMapping | ontologyProperty = | value = | unit = }}
Meanings
- ontologyProperty: A constant mapping should list one ontology property.
- value: A constant mapping should list one value. Dependening on the ontology property, if it is a object property or a datatype property, a URI or a literal is produced for this value. For URI please provide:
- A decoded URI (e.g. "Billy Murray (actor)" but not "Billy_Murray_%28actor%29") if you want a URI from the same DBpedia, OR
- A full URL (e.g. [1]) if you want a URL from another DBpedia, or external URL
- unit: If the value contains 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.
Example
The constant mapping for Infobox_Australian_road that retains the information about the country (the type information is mapped one level above in a TemplateMapping):
{{ConstantMapping | ontologyProperty = country | value = Australia }}