Mapping en:Infobox military person: Difference between revisions

From Mediawiki1
Jump to navigationJump to search
No edit summary
(Undo revision 38964 by VladimirAlexiev (Talk))
Line 1: Line 1:
{{ ConditionalMapping | cases =
{{TemplateMapping
  {{ Condition
| mapToClass = MilitaryPerson
    | templateProperty = наставка
| mappings =
    | operator = isSet
{{PropertyMapping | templateProperty = name | ontologyProperty = foaf:name }}
    | mapping = {{TemplateMapping | mapToClass = MilitaryPerson | mappings =
{{PropertyMapping | templateProperty = born | ontologyProperty = birthDate }}
      {{ConstantMapping | ontologyProperty = gender | value = http://dbpedia.org/resource/Female}}}}}}
{{PropertyMapping | templateProperty = died | ontologyProperty = deathDate }}
  {{ Condition
{{PropertyMapping | templateProperty = placeofburial | ontologyProperty = restingPlace }}
    | operator = otherwise
{{PropertyMapping | templateProperty = placeofbirth | ontologyProperty = birthPlace }}
    | mapping = {{TemplateMapping | mapToClass = MilitaryPerson | mappings =
{{PropertyMapping | templateProperty = placeofdeath | ontologyProperty = deathPlace }}
      {{ConstantMapping | ontologyProperty = gender | value = http://dbpedia.org/resource/Male}}}}}}
        {{PropertyMapping | templateProperty = nickname | ontologyProperty = foaf:nick}}
 
        {{PropertyMapping | templateProperty = allegiance | ontologyProperty = allegiance }}
| defaultMappings =
{{PropertyMapping | templateProperty = branch | ontologyProperty = militaryBranch }}
 
{{DateIntervalMapping
  {{PropertyMapping | templateProperty = име | ontologyProperty = foaf:name }}
          | templateProperty = serviceyears
  {{PropertyMapping | templateProperty = прякор | ontologyProperty = foaf:nick}}
          | startDateOntologyProperty = serviceStartYear
  {{PropertyMapping | templateProperty = описание | ontologyProperty = description }}
          | endDateOntologyProperty = serviceEndYear
  {{PropertyMapping | templateProperty = снимка | ontologyProperty = picture }}
        }}
  {{PropertyMapping | templateProperty = портрет | ontologyProperty = picture }}
{{PropertyMapping | templateProperty = servicenumber | ontologyProperty = serviceNumber }}
 
{{PropertyMapping | templateProperty = unit | ontologyProperty = militaryUnit }}
  {{PropertyMapping | templateProperty = дата-на-раждане | ontologyProperty = birthDate }}
{{PropertyMapping | templateProperty = commands | ontologyProperty = militaryCommand }}
  {{PropertyMapping | templateProperty = роден-дата | ontologyProperty = birthDate }}
{{PropertyMapping | templateProperty = battles | ontologyProperty = battle }}
  {{PropertyMapping | templateProperty = роден-година | ontologyProperty = birthDate }}
{{PropertyMapping | templateProperty = awards | ontologyProperty = award }}
  {{PropertyMapping | templateProperty = починал-дата | ontologyProperty = deathDate }}
{{PropertyMapping | templateProperty = relations | ontologyProperty = relation }}
  {{PropertyMapping | templateProperty = дата-на-смърт | ontologyProperty = deathDate }}
{{PropertyMapping | templateProperty = laterwork | ontologyProperty = occupation }}
  {{PropertyMapping | templateProperty = починал-година | ontologyProperty = deathDate }}
  {{PropertyMapping | templateProperty = placeofburial | ontologyProperty = restingPlace }}
  {{PropertyMapping | templateProperty = място-на-раждане | ontologyProperty = birthPlace }}
  {{PropertyMapping | templateProperty = място на раждане | ontologyProperty = birthPlace }}
  {{PropertyMapping | templateProperty = роден-страна | ontologyProperty = birthPlace }}
  {{PropertyMapping | templateProperty = роден-град  | ontologyProperty = birthPlace }}
  {{PropertyMapping | templateProperty = място-на-смърт | ontologyProperty = deathPlace }}
  {{PropertyMapping | templateProperty = място на смърт | ontologyProperty = deathPlace }}
  {{PropertyMapping | templateProperty = починал-страна | ontologyProperty = deathPlace }}
  {{PropertyMapping | templateProperty = починал-град  | ontologyProperty = deathPlace }}
 
  {{PropertyMapping | templateProperty = битки | ontologyProperty = battle }}
  {{PropertyMapping | templateProperty = войни | ontologyProperty = war }}
  {{PropertyMapping | templateProperty = войсково поделение | ontologyProperty = militaryUnit }}
  {{PropertyMapping | templateProperty = въоръжени сили | ontologyProperty = militaryBranch }}
  {{PropertyMapping | templateProperty = звание | ontologyProperty = militaryRank }}
  {{PropertyMapping | templateProperty = командвания | ontologyProperty = militaryCommand }}
  {{PropertyMapping | templateProperty = награди | ontologyProperty = award }}
  {{PropertyMapping | templateProperty = националност | ontologyProperty = nationality }}
  {{PropertyMapping | templateProperty = по-късна работа | ontologyProperty = occupation }}
  {{PropertyMapping | templateProperty = портал | ontologyProperty = foaf:homepage }}
  {{PropertyMapping | templateProperty = преданост | ontologyProperty = allegiance }}
  {{PropertyMapping | templateProperty = родства | ontologyProperty = relation }}
 
  {{ DateIntervalMapping | templateProperty = години на служба
                | startDateOntologyProperty = serviceStartYear
                | endDateOntologyProperty = serviceEndYear}}
  {{ DateIntervalMapping | templateProperty = живял
                | startDateOntologyProperty = birthDate
                | endDateOntologyProperty = deathDate}}
}}
}}

Revision as of 13:53, 23 December 2014

This is the mapping for the Wikipedia template Infobox military person. 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 MilitaryPerson

Mappings




Property Mapping (help)
template property name
ontology property foaf:name




Property Mapping (help)
template property born
ontology property birthDate




Property Mapping (help)
template property died
ontology property deathDate




Property Mapping (help)
template property placeofburial
ontology property restingPlace




Property Mapping (help)
template property placeofbirth
ontology property birthPlace




Property Mapping (help)
template property placeofdeath
ontology property deathPlace




Property Mapping (help)
template property nickname
ontology property foaf:nick




Property Mapping (help)
template property allegiance
ontology property allegiance




Property Mapping (help)
template property branch
ontology property militaryBranch


Date Interval Mapping (help)
template property serviceyears
start date ontology property serviceStartYear
end date ontology property serviceEndYear




Property Mapping (help)
template property servicenumber
ontology property serviceNumber




Property Mapping (help)
template property unit
ontology property militaryUnit




Property Mapping (help)
template property commands
ontology property militaryCommand




Property Mapping (help)
template property battles
ontology property battle




Property Mapping (help)
template property awards
ontology property award




Property Mapping (help)
template property relations
ontology property relation




Property Mapping (help)
template property laterwork
ontology property occupation