Template:DateIntervalMapping: Difference between revisions

From DBpedia Mappings
Jump to navigationJump to search
(Created page with '{|class="wikitable" ! style="text-align:left" colspan="2" | Date Interval Mapping |- | width="150px" | template property | width="400px" | {{#if:{{{templateProperty|}}}|{{{templa...')
 
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{|class="wikitable"
<includeonly>{|class="wikitable"
! style="text-align:left" colspan="2" | Date Interval Mapping
! style="text-align:left" colspan="2" | Date Interval Mapping <small>([[Template:DateIntervalMapping|<span style="cursor:help;">help</span>]])</small>
|-
|-
| width="150px" | template property
| width="200px" | template property
| width="400px" | {{#if:{{{templateProperty|}}}|{{{templateProperty}}}|<span style="color:red">please define a template property</span>}}
| width="350px" | {{#if:{{{templateProperty|}}}|{{{templateProperty}}}|<span style="color:red">please define a template property</span>}}
|-
|-
| start date ontology property
| start date ontology property
| {{#if:{{{startDateOntologyProperty|}}}|[[OntologyProperty:{{#replace:{{{startDateOntologyProperty}}}|:|/}}]]|<span style="color:red">please define a start date ontology property</span>}}
| {{#if:{{{startDateOntologyProperty|}}}|[[OntologyProperty:{{#replace:{{{startDateOntologyProperty}}}|:|%2F}}|{{{startDateOntologyProperty}}}]]|<span style="color:red">please define a start date ontology property</span>}}
|-
|-
| end date ontology property
| end date ontology property
| {{#if:{{{endDateOntologyProperty|}}}|[[OntologyProperty:{{#replace:{{{endDateOntologyProperty}}}|:|/}}]]|<span style="color:red">please define an end date ontology property</span>}}
| {{#if:{{{endDateOntologyProperty|}}}|[[OntologyProperty:{{#replace:{{{endDateOntologyProperty}}}|:|%2F}}|{{{endDateOntologyProperty}}}]]|<span style="color:red">please define an end date ontology property</span>}}  
|}
|}</includeonly>
<noinclude>'''<nowiki>{{DateIntervalMapping}}</nowiki>''' maps a template property containing date intervals to a start date and end date ontology property.
 
=== Usage ===
 
<pre>
{{DateIntervalMapping
| templateProperty          =
| startDateOntologyProperty =
| endDateOntologyProperty  =
}}
</pre>
 
=== Meanings ===
 
* '''templateProperty'''
* '''startDateOntologyProperty'''
* '''endDateOntologyProperty'''
 
=== Example ===
 
The property mapping from the template property active years to the ontology properties activeYearsStartYear and activeYearsEndYear:
<pre>
{{DateIntervalMapping
| templateProperty          = active years
| startDateOntologyProperty = activeYearsStartYear
| endDateOntologyProperty  = activeYearsEndYear
}}
</pre>
</noinclude>

Latest revision as of 09:36, 12 March 2010

{{DateIntervalMapping}} maps a template property containing date intervals to a start date and end date ontology property.

Usage

{{DateIntervalMapping
| templateProperty          =
| startDateOntologyProperty = 
| endDateOntologyProperty   =
}}

Meanings

  • templateProperty
  • startDateOntologyProperty
  • endDateOntologyProperty

Example

The property mapping from the template property active years to the ontology properties activeYearsStartYear and activeYearsEndYear:

{{DateIntervalMapping
| templateProperty          = active years
| startDateOntologyProperty = activeYearsStartYear
| endDateOntologyProperty   = activeYearsEndYear
}}