Mapping bg:Държавник инфо: Difference between revisions

From DBpedia Mappings
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
{{ConditionalMapping
{{ConditionalMapping
| cases =
| cases =
  {{ Condition
    | templateProperty = наставка
    | operator = isSet
    | mapping = {{ TemplateMapping | mapToClass = Politician | mappings =
      {{ConstantMapping | ontologyProperty = gender | value = http://dbpedia.org/resource/Female}}}}}}
  {{ Condition
    | operator = otherwise
    | mapping = {{ TemplateMapping | mapToClass = Politician | mappings =
      {{ConstantMapping | ontologyProperty = gender | value = http://dbpedia.org/resource/Male}}}}}}


{{ Condition
| defaultMappings =
   | templateProperty = наставка
 
   | operator = isSet
<!-- OWN PROPERTIES -->
   | mapping = {{ TemplateMapping | mapToClass = Politician | mappings =
  {{ PropertyMapping | templateProperty = име | ontologyProperty = foaf:name}}
     {{ConstantMapping | ontologyProperty = gender | value = http://dbpedia.org/resource/Female}}}}
  {{ PropertyMapping | templateProperty = роден_място | ontologyProperty = birthPlace}}
}}
  {{ PropertyMapping | templateProperty = роден_дата | ontologyProperty = birthDate}}
  {{ PropertyMapping | templateProperty = починал_място | ontologyProperty = deathPlace}}
  {{ PropertyMapping | templateProperty = починал_дата | ontologyProperty = deathDate}} 
  {{ PropertyMapping | templateProperty = националност | ontologyProperty = nationality}}
  {{ PropertyMapping | templateProperty = гражданство | ontologyProperty = nationality}}
  {{ PropertyMapping | templateProperty = съпруг | ontologyProperty = spouse}}
  {{ PropertyMapping | templateProperty = съпруга | ontologyProperty = spouse}}
  {{ PropertyMapping | templateProperty = деца | ontologyProperty = child }}
  <!-- {{ PropertyMapping | templateProperty = родства | ontologyProperty = }} -->
  {{ PropertyMapping | templateProperty = уебсайт | ontologyProperty = foaf:page}}
  {{ PropertyMapping | templateProperty = бележки | ontologyProperty = notes }}
  {{ PropertyMapping | templateProperty = религия | ontologyProperty = religion }}
  {{ PropertyMapping | templateProperty = погребан | ontologyProperty = buriedPlace }}
  {{ PropertyMapping | templateProperty = погребана | ontologyProperty = buriedPlace }}
  <!-- {{ PropertyMapping | templateProperty = големина | ontologyProperty = }} -->
  <!-- {{ PropertyMapping | templateProperty = седалище | ontologyProperty = }} -->
  <!-- {{ PropertyMapping | templateProperty = отличия | ontologyProperty = }} -->
  <!-- {{ PropertyMapping | templateProperty = подпис | ontologyProperty = }} -->
  <!-- {{ PropertyMapping | templateProperty = портал | ontologyProperty = }} -->
  <!-- {{ PropertyMapping | templateProperty = портрет | ontologyProperty = }} -->
  <!-- {{ PropertyMapping | templateProperty = професия | ontologyProperty = }} -->
  <!-- {{ PropertyMapping | templateProperty = alma mater | ontologyProperty = }} -->
  <!-- {{ PropertyMapping | templateProperty = преданост | ontologyProperty = }} -->
  <!-- {{ PropertyMapping | templateProperty = войни | ontologyProperty = }} -->
  <!-- {{ PropertyMapping | templateProperty = години на служба | ontologyProperty = }} -->
   <!-- {{ PropertyMapping | templateProperty = звание | ontologyProperty = }} -->
   <!-- {{ PropertyMapping | templateProperty = род войски | ontologyProperty = }} -->
   <!-- {{ PropertyMapping | templateProperty = войсково поделение | ontologyProperty = }} -->
  <!-- {{ PropertyMapping | templateProperty = командвания | ontologyProperty = }} -->
 
<!-- PROPERTIES of длъжност, първи мандат -->
  {{IntermediateNodeMapping | nodeClass = CareerStation | correspondingProperty = careerStation | mappings =  
     <!-- {{ PropertyMapping | templateProperty = президент | ontologyProperty = }} -->
    {{ PropertyMapping | templateProperty = длъжност | ontologyProperty = office}}
    {{ PropertyMapping | templateProperty = мандат_край | ontologyProperty = activeYearsEndYear }}
    {{ PropertyMapping | templateProperty = мандат_нач | ontologyProperty = activeYearsStartYear }}
    {{ PropertyMapping | templateProperty = министър-председател | ontologyProperty = primeMinister}}
    {{ PropertyMapping | templateProperty = назначен от | ontologyProperty = appointer}}
    {{ PropertyMapping | templateProperty = наследен от | ontologyProperty = successor}}
    {{ PropertyMapping | templateProperty = партия | ontologyProperty = party}}
    {{ PropertyMapping | templateProperty = пост | ontologyProperty = colleague}}
    {{ PropertyMapping | templateProperty = пост1 | ontologyProperty = colleague}}
    {{ PropertyMapping | templateProperty = пост2a | ontologyProperty = colleague}}
    {{ PropertyMapping | templateProperty = предшестван от | ontologyProperty = predecessor}}
  }}


{{ Condition
<!-- PROPERTIES of длъжност, втори мандат -->
  | operator = otherwise
<!-- Трябва да влязат в собствен IntermediateNodeMapping заедно с длъжност, партия, назначен от
  | mapping = {{ TemplateMapping | mapToClass = Politician | mappings =
    {{ PropertyMapping | templateProperty = втори_мандат_вицепрезидент | ontologyProperty = }}
     {{ConstantMapping | ontologyProperty = gender | value = http://dbpedia.org/resource/Male}}}}
    {{ PropertyMapping | templateProperty = втори_мандат_край | ontologyProperty = }}
}}
    {{ PropertyMapping | templateProperty = втори_мандат_министър-председател | ontologyProperty = primeMinister}}
    {{ PropertyMapping | templateProperty = втори_мандат_монарх | ontologyProperty = }}
    {{ PropertyMapping | templateProperty = втори_мандат_наследен от | ontologyProperty = successor}}
    {{ PropertyMapping | templateProperty = втори_мандат_нач | ontologyProperty = }}
    {{ PropertyMapping | templateProperty = втори_мандат_пост | ontologyProperty = }}
    {{ PropertyMapping | templateProperty = втори_мандат_пост-вид | ontologyProperty = }}
     {{ PropertyMapping | templateProperty = втори_мандат_предшестван от | ontologyProperty = predecessor}}
    {{ PropertyMapping | templateProperty = втори_мандат_президент | ontologyProperty = }}
    {{ PropertyMapping | templateProperty = год_втори_мандат_министър-председател | ontologyProperty = }}
    {{ PropertyMapping | templateProperty = год_втори_мандат_пост | ontologyProperty = }}
-->


| defaultMappings =
<!-- PROPERTIES of длъжност, трети мандат -->
        {{ PropertyMapping | templateProperty = бележки | ontologyProperty = notes }}
<!-- Трябва да влязат в собствен IntermediateNodeMapping заедно с длъжност, партия, назначен от
        {{ PropertyMapping | templateProperty = име | ontologyProperty = foaf:name}}
    {{ PropertyMapping | templateProperty = трети_мандат_предшестван от | ontologyProperty = predecessor}}
{{ PropertyMapping | templateProperty = погребан | ontologyProperty = buriedPlace }}
    {{ PropertyMapping | templateProperty = трети_мандат_наследен от | ontologyProperty = successor}}
{{ PropertyMapping | templateProperty = погребана | ontologyProperty = buriedPlace }}
-->
{{ PropertyMapping | templateProperty = починал_дата | ontologyProperty = deathDate}} 
{{ PropertyMapping | templateProperty = роден_място | ontologyProperty = birthPlace}}
        {{ PropertyMapping | templateProperty = националност | ontologyProperty = nationality}}
        {{ PropertyMapping | templateProperty = партия | ontologyProperty = party}}
        {{ PropertyMapping | templateProperty = партия2 | ontologyProperty = party}}
        {{ PropertyMapping | templateProperty = портрет | ontologyProperty = picture }}
        {{ PropertyMapping | templateProperty = починал_място | ontologyProperty = deathPlace}}
        {{ PropertyMapping | templateProperty = религия | ontologyProperty = religion }}
        {{ PropertyMapping | templateProperty = роден_дата | ontologyProperty = birthDate}}
        {{ PropertyMapping | templateProperty = съпруг | ontologyProperty = spouse}}
        {{ PropertyMapping | templateProperty = съпруга | ontologyProperty = spouse}}
        {{ PropertyMapping | templateProperty = уебсайт | ontologyProperty = foaf:homepage}}


        {{IntermediateNodeMapping | nodeClass = CareerStation | correspondingProperty = careerStation | mappings =  
<!-- PROPERTIES of длъжност2, първи мандат -->
            {{ PropertyMapping | templateProperty = длъжност | ontologyProperty = office}}
  {{IntermediateNodeMapping | nodeClass = CareerStation | correspondingProperty = careerStation | mappings =  
    {{ PropertyMapping | templateProperty = мандат_нач | ontologyProperty = serviceStartDate}}  
    {{ PropertyMapping | templateProperty = длъжност2 | ontologyProperty = office}}
            {{ PropertyMapping | templateProperty = мандат_край | ontologyProperty = serviceEndDate}}  
    {{ PropertyMapping | templateProperty = мандат_край2 | ontologyProperty = serviceEndDate}}  
            {{ PropertyMapping | templateProperty = министър-председател | ontologyProperty = primeMinister}}
    {{ PropertyMapping | templateProperty = мандат_нач2 | ontologyProperty = serviceStartDate}}  
            {{ PropertyMapping | templateProperty = назначен от | ontologyProperty = appointer}}
    {{ PropertyMapping | templateProperty = назначен от2 | ontologyProperty = appointer}}
            {{ PropertyMapping | templateProperty = наследен от | ontologyProperty = successor}}
    {{ PropertyMapping | templateProperty = наследен от2 | ontologyProperty = successor}}
            {{ PropertyMapping | templateProperty = пост | ontologyProperty = colleague}}
    {{ PropertyMapping | templateProperty = партия2 | ontologyProperty = party}}  
            {{ PropertyMapping | templateProperty = пост1 | ontologyProperty = colleague}}
    {{ PropertyMapping | templateProperty = пост1a | ontologyProperty = colleague}}
            {{ PropertyMapping | templateProperty = пост2a | ontologyProperty = colleague}}
    {{ PropertyMapping | templateProperty = пост2 | ontologyProperty = colleague}}
            {{ PropertyMapping | templateProperty = предшестван от | ontologyProperty = predecessor}}
    {{ PropertyMapping | templateProperty = пост3a | ontologyProperty = colleague}}
}}
    {{ PropertyMapping | templateProperty = предшестван от2 | ontologyProperty = predecessor}}
  }}


        {{IntermediateNodeMapping | nodeClass = CareerStation | correspondingProperty = careerStation | mappings =  
<!-- PROPERTIES of длъжност3, първи мандат -->
            {{ PropertyMapping | templateProperty = втори_мандат_министър-председател | ontologyProperty = primeMinister}}
  {{IntermediateNodeMapping | nodeClass = CareerStation | correspondingProperty = careerStation | mappings =  
            {{ PropertyMapping | templateProperty = втори_мандат_наследен от | ontologyProperty = successor}}
    {{ PropertyMapping | templateProperty = длъжност3 | ontologyProperty = office}}
            {{ PropertyMapping | templateProperty = втори_мандат_предшестван от | ontologyProperty = predecessor}}
    {{ PropertyMapping | templateProperty = мандат_нач3 | ontologyProperty = serviceStartDate}}  
            {{ PropertyMapping | templateProperty = длъжност2 | ontologyProperty = office}}
    {{ PropertyMapping | templateProperty = мандат_край3 | ontologyProperty = serviceEndDate}}  
    {{ PropertyMapping | templateProperty = мандат_нач2 | ontologyProperty = serviceStartDate}}  
    {{ PropertyMapping | templateProperty = назначен от3 | ontologyProperty = appointer}}
            {{ PropertyMapping | templateProperty = мандат_край2 | ontologyProperty = serviceEndDate}}  
    {{ PropertyMapping | templateProperty = предшестван от3 | ontologyProperty = predecessor}}
            {{ PropertyMapping | templateProperty = назначен от2 | ontologyProperty = appointer}}
    {{ PropertyMapping | templateProperty = наследен от3 | ontologyProperty = successor}}
            {{ PropertyMapping | templateProperty = наследен от2 | ontologyProperty = successor}}
    {{ PropertyMapping | templateProperty = пост3 | ontologyProperty = colleague}}
            {{ PropertyMapping | templateProperty = пост1a | ontologyProperty = colleague}}
    {{ PropertyMapping | templateProperty = пост4a | ontologyProperty = colleague}}
            {{ PropertyMapping | templateProperty = пост2 | ontologyProperty = colleague}}
  }}
            {{ PropertyMapping | templateProperty = пост3a | ontologyProperty = colleague}}
            {{ PropertyMapping | templateProperty = предшестван от2 | ontologyProperty = predecessor}}
}}


        {{IntermediateNodeMapping | nodeClass = CareerStation | correspondingProperty = careerStation | mappings =
            {{ PropertyMapping | templateProperty = длъжност3 | ontologyProperty = office}}
    {{ PropertyMapping | templateProperty = мандат_нач3 | ontologyProperty = serviceStartDate}}
            {{ PropertyMapping | templateProperty = мандат_край3 | ontologyProperty = serviceEndDate}}
            {{ PropertyMapping | templateProperty = назначен от3 | ontologyProperty = appointer}}
            {{ PropertyMapping | templateProperty = наследен от3 | ontologyProperty = successor}}
            {{ PropertyMapping | templateProperty = пост3 | ontologyProperty = colleague}}
            {{ PropertyMapping | templateProperty = пост4a | ontologyProperty = colleague}}
            {{ PropertyMapping | templateProperty = предшестван от3 | ontologyProperty = predecessor}}
            {{ PropertyMapping | templateProperty = трети_мандат_наследен от | ontologyProperty = successor}}
            {{ PropertyMapping | templateProperty = трети_мандат_предшестван от | ontologyProperty = predecessor}}


}}
    <!-- {{ PropertyMapping | templateProperty = вице_министър-председател | ontologyProperty = }} -->
    <!-- {{ PropertyMapping | templateProperty = вице_министър-председател1 | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = alma mater | ontologyProperty = }} -->
    <!-- {{ PropertyMapping | templateProperty = вице_министър-председател2 | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = color | ontologyProperty = }} -->
    <!-- {{ PropertyMapping | templateProperty = вице_министър-председател2а | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = linkcolor | ontologyProperty = }} -->
    <!-- {{ PropertyMapping | templateProperty = вице_министър-председател3 | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = бележки | ontologyProperty = }} -->
    <!-- {{ PropertyMapping | templateProperty = вице_министър-председател3а | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = вице_министър-председател | ontologyProperty = }} -->
    <!-- {{ PropertyMapping | templateProperty = вице_министър-председател4b | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = вице_министър-председател1 | ontologyProperty = }} -->
    <!-- {{ PropertyMapping | templateProperty = вице_министър-председател4а | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = вице_министър-председател2 | ontologyProperty = }} -->
    <!-- {{ PropertyMapping | templateProperty = вице_министър-председател5b | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = вице_министър-председател2а | ontologyProperty = }} -->
    <!-- {{ PropertyMapping | templateProperty = вице_министър-председател5а | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = вице_министър-председател3 | ontologyProperty = }} -->
    <!-- {{ PropertyMapping | templateProperty = вице_министър-председател6b | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = вице_министър-председател3а | ontologyProperty = }} -->
    <!-- {{ PropertyMapping | templateProperty = вицепрезидент | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = вице_министър-председател4b | ontologyProperty = }} -->
    <!-- {{ PropertyMapping | templateProperty = вицепрезидент1 | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = вице_министър-председател4а | ontologyProperty = }} -->
    <!-- {{ PropertyMapping | templateProperty = вицепрезидент2 | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = вице_министър-председател5b | ontologyProperty = }} -->
    <!-- {{ PropertyMapping | templateProperty = вицепрезидент2а | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = вице_министър-председател5а | ontologyProperty = }} -->
    <!-- {{ PropertyMapping | templateProperty = вицепрезидент3 | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = вице_министър-председател6b | ontologyProperty = }} -->
    <!-- {{ PropertyMapping | templateProperty = вицепрезидент3a | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = вицепрезидент | ontologyProperty = }} -->
    <!-- {{ PropertyMapping | templateProperty = вицепрезидент3а | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = вицепрезидент1 | ontologyProperty = }} -->
    <!-- {{ PropertyMapping | templateProperty = вицепрезидент4a | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = вицепрезидент2 | ontologyProperty = }} -->
   
<!-- {{ PropertyMapping | templateProperty = вицепрезидент2а | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = вицепрезидент3 | ontologyProperty = }} -->
<!-- {{ PropertyMapping | templateProperty = вицепрезидент3a | ontologyProperty
}}
}}

Revision as of 16:45, 20 January 2015

This is the mapping for the Wikipedia template Държавник инфо. Find usages of this Wikipedia template here.

Test this mapping (or in namespace File or Creator) with some example Wikipedia pages. Check which properties are not mapped yet.

Read more about mapping Wikipedia templates.

Conditions

Condition (help)
template property наставка
operator isSet

This is the mapping for the Wikipedia template Държавник инфо. Find usages of this Wikipedia template here.

Test this mapping (or in namespace File or Creator) with some example Wikipedia pages. Check which properties are not mapped yet.

Read more about mapping Wikipedia templates.

Template Mapping (help)
map to class Politician

Mappings

Constant Mapping (help)
ontology property gender
value http://dbpedia.org/resource/Female
Condition (help)
otherwise

This is the mapping for the Wikipedia template Държавник инфо. Find usages of this Wikipedia template here.

Test this mapping (or in namespace File or Creator) with some example Wikipedia pages. Check which properties are not mapped yet.

Read more about mapping Wikipedia templates.

Template Mapping (help)
map to class Politician

Mappings

Constant Mapping (help)
ontology property gender
value http://dbpedia.org/resource/Male

Default Mappings




Property Mapping (help)
template property име
ontology property foaf:name




Property Mapping (help)
template property роден_място
ontology property birthPlace




Property Mapping (help)
template property роден_дата
ontology property birthDate




Property Mapping (help)
template property починал_място
ontology property deathPlace




Property Mapping (help)
template property починал_дата
ontology property deathDate




Property Mapping (help)
template property националност
ontology property nationality




Property Mapping (help)
template property гражданство
ontology property nationality




Property Mapping (help)
template property съпруг
ontology property spouse




Property Mapping (help)
template property съпруга
ontology property spouse




Property Mapping (help)
template property деца
ontology property child




Property Mapping (help)
template property уебсайт
ontology property foaf:page




Property Mapping (help)
template property бележки
ontology property notes




Property Mapping (help)
template property религия
ontology property religion




Property Mapping (help)
template property погребан
ontology property buriedPlace




Property Mapping (help)
template property погребана
ontology property buriedPlace


Intermediate Node Mapping (help)
node class CareerStation
corresponding property careerStation




Property Mapping (help)
template property длъжност
ontology property office




Property Mapping (help)
template property мандат_край
ontology property activeYearsEndYear




Property Mapping (help)
template property мандат_нач
ontology property activeYearsStartYear




Property Mapping (help)
template property министър-председател
ontology property primeMinister




Property Mapping (help)
template property назначен от
ontology property appointer




Property Mapping (help)
template property наследен от
ontology property successor




Property Mapping (help)
template property партия
ontology property party




Property Mapping (help)
template property пост
ontology property colleague




Property Mapping (help)
template property пост1
ontology property colleague




Property Mapping (help)
template property пост2a
ontology property colleague




Property Mapping (help)
template property предшестван от
ontology property predecessor



Intermediate Node Mapping (help)
node class CareerStation
corresponding property careerStation




Property Mapping (help)
template property длъжност2
ontology property office




Property Mapping (help)
template property мандат_край2
ontology property serviceEndDate




Property Mapping (help)
template property мандат_нач2
ontology property serviceStartDate




Property Mapping (help)
template property назначен от2
ontology property appointer




Property Mapping (help)
template property наследен от2
ontology property successor




Property Mapping (help)
template property партия2
ontology property party




Property Mapping (help)
template property пост1a
ontology property colleague




Property Mapping (help)
template property пост2
ontology property colleague




Property Mapping (help)
template property пост3a
ontology property colleague




Property Mapping (help)
template property предшестван от2
ontology property predecessor


Intermediate Node Mapping (help)
node class CareerStation
corresponding property careerStation




Property Mapping (help)
template property длъжност3
ontology property office




Property Mapping (help)
template property мандат_нач3
ontology property serviceStartDate




Property Mapping (help)
template property мандат_край3
ontology property serviceEndDate




Property Mapping (help)
template property назначен от3
ontology property appointer




Property Mapping (help)
template property предшестван от3
ontology property predecessor




Property Mapping (help)
template property наследен от3
ontology property successor




Property Mapping (help)
template property пост3
ontology property colleague




Property Mapping (help)
template property пост4a
ontology property colleague