Difference between revisions of "Template:ConditionalMapping"

From DBpedia Mappings
Jump to: navigation, search
Line 6: Line 6:
 
<blockquote>{{{defaultMappings}}}</blockquote>
 
<blockquote>{{{defaultMappings}}}</blockquote>
 
</includeonly>
 
</includeonly>
 +
<noinclude>'''<nowiki>{{ConditionalMapping}}</nowiki>''' maps templates to ontology classes. In comparison to <nowiki>{{TemplateMapping}}</nowiki> the mapping can be made dependent on template properties and their values.
 +
 +
=== Usage ===
 +
 +
<pre>
 +
{{ConditionalMapping
 +
| cases          =
 +
| defaultMappings =
 +
}}
 +
</pre>
 +
 +
=== Meanings ===
 +
 +
* '''cases''':
 +
* '''defaultMappings''':
 +
 +
=== Example ===
 +
 +
 +
<pre>
 +
{{ConditionalMapping
 +
| cases =
 +
  {{Condition
 +
  ...
 +
  }}
 +
 +
  ...
 +
 +
  {{Condition
 +
  | otherwise
 +
  ...
 +
  }}
 +
 +
| defaultMappings =
 +
  {{PropertyMapping
 +
  ...
 +
  }}
 +
  ...
 +
}}
 +
</pre>
 +
</noinclude>

Revision as of 12:16, 8 March 2010

{{ConditionalMapping}} maps templates to ontology classes. In comparison to {{TemplateMapping}} the mapping can be made dependent on template properties and their values.

Usage

{{ConditionalMapping
| cases           =
| defaultMappings =
}}

Meanings

  • cases:
  • defaultMappings:

Example

{{ConditionalMapping
| cases =
  {{Condition 
  ... 
  }}

  ...

  {{Condition
  | otherwise
  ...
  }}

| defaultMappings =
  {{PropertyMapping
  ... 
  }}
  ...
}}