Template:CalculateMapping: Difference between revisions

From DBpedia Mappings
Jump to navigationJump to search
No edit summary
Line 1: Line 1:
<includeonly><table class="wikitable">
<includeonly><table class="wikitable">
<tr><th style="text-align:left" colspan="2">Calculate Mapping <small>([[Writing_Mappings/Templates#Custom_Mappings|<span style="cursor:help;">help</span>]])</small>
<tr><th style="text-align:left" colspan="2">Calculate Mapping <small>([[Template:CalculateMapping|<span style="cursor:help;">help</span>]])</small>
</th></tr>
</th></tr>
{{#if:{{{operation|}}}|<tr>
{{#if:{{{operation|}}}|<tr>
Line 24: Line 24:
{{#if:{{{ontologyProperty|}}}|<tr>
{{#if:{{{ontologyProperty|}}}|<tr>
<td> ontology property</td>
<td> ontology property</td>
<td>[[OntologyProperty:{{#replace:{{{ontologyProperty}}}|:|/}}]]</td>
<td>[[OntologyProperty:{{#replace:{{{ontologyProperty}}}|:|%2F}}|{{{ontologyProperty}}}]]</td>
</tr>}}
</tr>}}
</table></includeonly>
</table></includeonly>

Revision as of 10:42, 12 March 2010

{{CalculateMapping}} maps two template properties to one ontology property by calculating one value from both template property values using a given operation.

Usage

{{CalculateMapping
| operation         = 
| templateProperty1 = 
| unit1             = 
| templateProperty2 = 
| unit2             = 
| ontologyProperty  = 
}}

Meanings

  • operation: mathematical operation. Currently supported operation: add.
  • templateProperty1
  • unit1
  • templateProperty2
  • unit2
  • ontologyProperty

Example

{{CalculateMapping
| operation         = 
| templateProperty1 = 
| unit1             = 
| templateProperty2 = 
| unit2             = 
| ontologyProperty  = 
}}