Template:DateIntervalMapping: Difference between revisions

From DBpedia Mappings
Jump to navigationJump to search
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
|-
|-
| 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>
|}</includeonly>
<noinclude>'''<nowiki>{{DateIntervalMapping}}</nowiki>''' maps a template property containing date intervals to a start date and end date ontology property.
<noinclude>'''<nowiki>{{DateIntervalMapping}}</nowiki>''' maps a template property containing date intervals to a start date and end date ontology property.
Line 31: Line 31:
=== Example ===
=== Example ===


Mapping
The property mapping from the template property active years to the ontology properties activeYearsStartYear and activeYearsEndYear:
<pre>
<pre>
{{DateIntervalMapping
{{DateIntervalMapping

Latest revision as of 10: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
}}