Mapping en:Infobox football biography: Difference between revisions

From DBpedia Mappings
Jump to navigationJump to search
(disclaimer template paramater: page name encoded)
(changed propertiesnames, deleted not necessary properties)
Line 1: Line 1:
{{DisclaimerMapping|{{PAGENAMEE}}}}
{{DisclaimerMapping|{{PAGENAMEE}}}}


{{TemplateMapping
{{ConditionalMapping
| mapToClass = FootballPlayer
| cases =
| mappings =
{{Condition
{{PropertyMapping | templateProperty = status | ontologyProperty = status }}
    | templateProperty = manageryears
{{PropertyMapping | templateProperty = College | ontologyProperty = college }}
    | operator = isSet
{{PropertyMapping | templateProperty = high_school | ontologyProperty = highschool }}
    | mapping = {{TemplateMapping
{{PropertyMapping | templateProperty = debutyear | ontologyProperty = debutYear }}
                | mapToClass = SoccerManager
{{PropertyMapping | templateProperty = finalyear | ontologyProperty = finalYear }}
                }}
{{PropertyMapping | templateProperty = draftyear | ontologyProperty = draftYear }}
}}
{{PropertyMapping | templateProperty = draftround | ontologyProperty = draftRound }}
 
{{PropertyMapping | templateProperty = draftpick | ontologyProperty = draftPick }}
{{Condition
{{PropertyMapping | templateProperty = undraftedyear | ontologyProperty = undraftedYear }}
    | templateProperty = managerclubs
{{PropertyMapping | templateProperty = teams | ontologyProperty = team }}
    | operator = isSet
{{PropertyMapping | templateProperty = debutteam | ontologyProperty = debutTeam }}
    | mapping = {{TemplateMapping
{{PropertyMapping | templateProperty = suppdraftyear | ontologyProperty = supplementalDraftYear }}
                | mapToClass = SoccerManager
{{PropertyMapping | templateProperty = suppdraftround | ontologyProperty = supplementalDraftRound }}
                }}
{{PropertyMapping | templateProperty = pastteams | ontologyProperty = pastTeam }}
}}
{{PropertyMapping | templateProperty = espn | ontologyProperty = espnid }}
 
{{PropertyMapping | templateProperty = coachingteams | ontologyProperty = coachingTeam }}
{{Condition
    | otherwise
    | mapping = {{TemplateMapping
                | mapToClass = SoccerPlayer
                }}
}}
 
| defaultMappings =
{{PropertyMapping | templateProperty = playername | ontologyProperty = foaf:name }}
{{PropertyMapping | templateProperty = playername | ontologyProperty = foaf:name }}
{{PropertyMapping | templateProperty = fullname | ontologyProperty = foaf:name }}
{{PropertyMapping | templateProperty = fullname | ontologyProperty = foaf:name }}
{{PropertyMapping | templateProperty = team | ontologyProperty = currentTeam }}
        {{PropertyMapping | templateProperty = dateofbirth | ontologyProperty = birthDate }}
{{PropertyMapping | templateProperty = position1 | ontologyProperty = currentPosition }}
{{PropertyMapping | templateProperty = position2 | ontologyProperty = currentPosition }}
{{PropertyMapping | templateProperty = position3 | ontologyProperty = currentPosition }}
{{PropertyMapping | templateProperty = position4 | ontologyProperty = currentPosition }}
{{PropertyMapping | templateProperty = position5 | ontologyProperty = currentPosition }}
{{PropertyMapping | templateProperty = dateofbirth | ontologyProperty = birthDate }}
{{PropertyMapping | templateProperty = cityofbirth | ontologyProperty = birthPlace }}
{{PropertyMapping | templateProperty = cityofbirth | ontologyProperty = birthPlace }}
{{PropertyMapping | templateProperty = countryofbirth | ontologyProperty = birthPlace }}
{{PropertyMapping | templateProperty = countryofbirth | ontologyProperty = birthPlace }}
Line 34: Line 35:
{{PropertyMapping | templateProperty = cityofdeath | ontologyProperty = deathPlace }}
{{PropertyMapping | templateProperty = cityofdeath | ontologyProperty = deathPlace }}
{{PropertyMapping | templateProperty = countryofdeath | ontologyProperty = deathPlace }}
{{PropertyMapping | templateProperty = countryofdeath | ontologyProperty = deathPlace }}
{{PropertyMapping | templateProperty = Weight_lbs | ontologyProperty = weight | unit = pound }}
        {{PropertyMapping | templateProperty = currentclub | ontologyProperty = currentTeam }}
{{PropertyMapping | templateProperty = height | ontologyProperty = height | unit = Length}}
        {{PropertyMapping | templateProperty = clubnumber | ontologyProperty = currentNumber }}    
{{PropertyMapping | templateProperty = position | ontologyProperty = currentPosition }}
        {{PropertyMapping | templateProperty = height | ontologyProperty = height | unit = Length}}
{{PropertyMapping | templateProperty = number | ontologyProperty = currentNumber }}
        {{PropertyMapping | templateProperty = position | ontologyProperty = currentPosition }}      
{{PropertyMapping | templateProperty = birthdate | ontologyProperty = birthDate }}
 
{{PropertyMapping | templateProperty = deathdate | ontologyProperty = deathDate }}
        {{DateIntervalMapping
{{PropertyMapping | templateProperty = currentteam | ontologyProperty = currentTeam }}
          | templateProperty         = youthyears
{{PropertyMapping | templateProperty = currentnumber | ontologyProperty = currentNumber }}
          | startDateOntologyProperty = activeYearsStartYear
{{PropertyMapping | templateProperty = currentposition | ontologyProperty = currentPosition }}
          | endDateOntologyProperty  = activeYearsEndYear
{{PropertyMapping | templateProperty = weight | ontologyProperty = weight | unit = pound }}
        }}
{{CalculateMapping | operation = add | templateProperty1 = Height_ft  | unit1 = foot  | templateProperty2 = Height_in  | unit2 = inch  | ontologyProperty = height }}
        {{PropertyMapping | templateProperty = youthclubs | ontologyProperty = currentTeam }}
{{CalculateMapping | operation = add | templateProperty1 = heightft  | unit1 = foot  | templateProperty2 = heightin  | unit2 = inch  | ontologyProperty = height }}
        {{DateIntervalMapping
          | templateProperty         = years
          | startDateOntologyProperty = activeYearsStartYear
          | endDateOntologyProperty  = activeYearsEndYear
        }}
        {{PropertyMapping | templateProperty = clubs | ontologyProperty = currentTeam }}      
<!--    {{PropertyMapping | templateProperty = caps(goals) | ontologyProperty = currentTeam }}
Needs to been changed into an Intermediate Node
-->       
        {{DateIntervalMapping
          | templateProperty         = nationalyears
          | startDateOntologyProperty = activeYearsStartYear
          | endDateOntologyProperty  = activeYearsEndYear
        }}
        {{PropertyMapping | templateProperty = nationalteam | ontologyProperty = currentTeam }}
<!--    {{PropertyMapping | templateProperty = nationalcaps(goals) | ontologyProperty = currentTeam }}
Needs to been changed into an Intermediate Node
-->   
 
        {{PropertyMapping | templateProperty = coachingteams | ontologyProperty = coachingTeam }}
 
}}
}}

Revision as of 15:56, 11 March 2010

This is the mapping for the Wikipedia template Infobox football biography. 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.

This is the mapping for the Wikipedia template Infobox football biography. 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 manageryears
operator isSet

This is the mapping for the Wikipedia template Infobox football biography. 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 SoccerManager


Condition (help)
template property managerclubs
operator isSet

This is the mapping for the Wikipedia template Infobox football biography. 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 SoccerManager


Condition (help)
template property please define a template property
operator please define an operator (one of: isSet, equals, contains, otherwise)
value please define a value

This is the mapping for the Wikipedia template Infobox football biography. 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 SoccerPlayer

Default Mappings




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




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




Property Mapping (help)
template property dateofbirth
ontology property birthDate




Property Mapping (help)
template property cityofbirth
ontology property birthPlace




Property Mapping (help)
template property countryofbirth
ontology property birthPlace




Property Mapping (help)
template property dateofdeath
ontology property deathDate




Property Mapping (help)
template property cityofdeath
ontology property deathPlace




Property Mapping (help)
template property countryofdeath
ontology property deathPlace




Property Mapping (help)
template property currentclub
ontology property currentTeam




Property Mapping (help)
template property clubnumber
ontology property currentNumber


Property Mapping (help)
template property height
ontology property height
unitLength




Property Mapping (help)
template property position
ontology property currentPosition


Date Interval Mapping (help)
template property youthyears
start date ontology property activeYearsStartYear
end date ontology property activeYearsEndYear




Property Mapping (help)
template property youthclubs
ontology property currentTeam


Date Interval Mapping (help)
template property years
start date ontology property activeYearsStartYear
end date ontology property activeYearsEndYear




Property Mapping (help)
template property clubs
ontology property currentTeam


Date Interval Mapping (help)
template property nationalyears
start date ontology property activeYearsStartYear
end date ontology property activeYearsEndYear




Property Mapping (help)
template property nationalteam
ontology property currentTeam





Property Mapping (help)
template property coachingteams
ontology property coachingTeam