Template:DateIntervalMapping: Difference between revisions
From DBpedia Mappings
Jump to navigationJump to search
No edit summary |
AnjaJentzsch (talk | contribs) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
|- | |- | ||
| start date ontology property | | start date ontology property | ||
| {{#if:{{{startDateOntologyProperty|}}}|[[OntologyProperty:{{#replace:{{{startDateOntologyProperty}}}|:| | | {{#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}}}|:| | | {{#if:{{{endDateOntologyProperty|}}}|[[OntologyProperty:{{#replace:{{{endDateOntologyProperty}}}|:|%2F}}|{{{endDateOntologyProperty}}}]]|<span style="color:red">please define an end date ontology property</span>}} | ||
|}</includeonly> | |}</includeonly> | ||
<noinclude> | <noinclude>'''<nowiki>{{DateIntervalMapping}}</nowiki>''' maps a template property containing date intervals to a start date and end date ontology property. | ||
=== Usage === | === Usage === | ||
<pre> | <pre> | ||
{{ | {{DateIntervalMapping | ||
| templateProperty = | |||
| startDateOntologyProperty = | |||
| endDateOntologyProperty = | |||
}} | }} | ||
</pre> | </pre> | ||
=== Meanings === | === Meanings === | ||
* '''templateProperty''' | |||
* '''startDateOntologyProperty''' | |||
* '''endDateOntologyProperty''' | |||
=== Example === | === Example === | ||
The property mapping from the template property active years to the ontology properties activeYearsStartYear and activeYearsEndYear: | |||
<pre> | <pre> | ||
{{ | {{DateIntervalMapping | ||
| templateProperty = active years | |||
| startDateOntologyProperty = activeYearsStartYear | |||
| endDateOntologyProperty = activeYearsEndYear | |||
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </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 }}