Mapping en:Infobox officeholder: Difference between revisions

From DBpedia Mappings
Jump to navigationJump to search
No edit summary
No edit summary
Line 3: Line 3:
   {{Condition
   {{Condition
     | templateProperty = $TemplateName
     | templateProperty = $TemplateName
     | operator = equals
     | operator = isIn
     | value = Infobox AM
     | value = Infobox AM, Infobox Canadian MP, Infobox MP, Infobox MEP, Infobox MLA
     | mapping = {{TemplateMapping | header = 0
     | mapping = {{TemplateMapping | header = 0
                   | mapToClass = MemberOfParliament
                   | mapToClass = MemberOfParliament
Line 11: Line 11:
   {{Condition
   {{Condition
     | templateProperty = $TemplateName
     | templateProperty = $TemplateName
     | operator = equals
     | operator = isIn
     | value = Infobox Canadian MP
     | value = Infobox governor, Infobox governor-elect, Infobox governor general, Infobox governor-general, Infobox US territorial governor
     | mapping = {{TemplateMapping | header = 0
     | mapping = {{TemplateMapping | header = 0
                   | mapToClass = MemberOfParliament
                   | mapToClass = Governor
                }}
   
  }}
  {{Condition
    | templateProperty = $TemplateName
    | operator = equals
    | value = Infobox MP
    | mapping = {{TemplateMapping | header = 0
                  | mapToClass = MemberOfParliament
                }}
  }}
   {{Condition
   {{Condition
     | operator = otherwise
     | operator = otherwise
Line 30: Line 21:
                   | mapToClass = OfficeHolder
                   | mapToClass = OfficeHolder
                 }}
                 }}
}}
  }}
| defaultMappings =
| defaultMappings =
{{PropertyMapping | templateProperty = otherparty | ontologyProperty = otherParty }}
{{PropertyMapping | templateProperty = otherparty | ontologyProperty = otherParty }}

Revision as of 00:53, 16 October 2017

{{ConditionalMapping | cases =

Condition (help)
template property $TemplateName
operator isIn
value Infobox AM, Infobox Canadian MP, Infobox MP, Infobox MEP, Infobox MLA
Template Mapping (help)
map to class MemberOfParliament
 {{Condition
   | templateProperty = $TemplateName
   | operator = isIn
   | value = Infobox governor, Infobox governor-elect, Infobox governor general, Infobox governor-general, Infobox US territorial governor
   | mapping = 
Template Mapping (help)
map to class [[OntologyClass:Governor
Condition (help)
otherwise
Template Mapping (help)
map to class OfficeHolder
|Governor
Condition (help)
otherwise
Template Mapping (help)
map to class OfficeHolder
]]