Mapping fr:Infobox Compétition sportive: Difference between revisions
From Mediawiki1
Jump to navigationJump to search
(trying something simpler) |
|||
Line 1: | Line 1: | ||
{{TemplateMapping | {{ConditionalMapping | ||
| mapToClass = | | cases = | ||
| mappings = | {{Condition | ||
| templateProperty = charte | |||
| operator = contains | |||
| value = football | |||
| mapping = {{TemplateMapping | |||
| mapToClass = SoccerTournament | |||
| header = 0 | |||
| mappings = | |||
{{PropertyMapping | templateProperty = meilleur buteur | ontologyProperty = soccerTournamentTopScorer }} | |||
{{PropertyMapping | templateProperty = tenant | ontologyProperty = soccerTournamentLastChampion }} | |||
{{PropertyMapping | templateProperty = plus titré | ontologyProperty = soccerTournamentMostSuccessfull }} | |||
{{PropertyMapping | templateProperty = saison en cours | ontologyProperty = soccerTournamentThisSeason }} | |||
{{PropertyMapping | templateProperty = meilleur buteur | ontologyProperty = soccerTournamentTopScorer }} | |||
{{PropertyMapping | templateProperty = tenant | ontologyProperty = soccerTournamentLastChampion }} | |||
{{PropertyMapping | templateProperty = plus titré | ontologyProperty = soccerTournamentMostSuccessfull }} | |||
{{PropertyMapping | templateProperty = Saison en cours | ontologyProperty = soccerTournamentThisSeason }} | |||
{{PropertyMapping | templateProperty = vainqueur | ontologyProperty = soccerLeagueWinner }} | |||
{{PropertyMapping | templateProperty = relégué | ontologyProperty = soccerLeagueRelegated }} | |||
{{PropertyMapping | templateProperty = relégué fin | ontologyProperty = soccerLeagueRelegated }} | |||
{{PropertyMapping | templateProperty = promu début | ontologyProperty = soccerLeaguePromoted }} | |||
{{PropertyMapping | templateProperty = participants | ontologyProperty = numberOfTeams }} | |||
}} | |||
}} | |||
{{Condition | |||
| templateProperty = chart | |||
| operator = contains | |||
| value = automobile | |||
| mapping = {{TemplateMapping | |||
| mapToClass = SportsEvent | |||
| header = 0 | |||
| mappings = | |||
{{PropertyMapping | templateProperty = champion pilote | ontologyProperty = champion }} | |||
{{PropertyMapping | templateProperty = champion copilote | ontologyProperty = championInDouble }} | |||
{{PropertyMapping | templateProperty = champion constructeur | ontologyProperty = champion }} | |||
}} | |||
}} | |||
{{Condition | |||
| templateProperty = titre | |||
| operator = contains | |||
| value = olympique | |||
| mapping = | |||
{{TemplateMapping | |||
| mapToClass = OlympicEvent | |||
| header = 0 | |||
| mappings = | |||
{{PropertyMapping | templateProperty = vainqueur | ontologyProperty = goldMedalist }} | |||
{{PropertyMapping | templateProperty = deuxième | ontologyProperty = silverMedalist }} | |||
{{PropertyMapping | templateProperty = finaliste | ontologyProperty = silverMedalist }} | |||
{{PropertyMapping | templateProperty = troisième | ontologyProperty = bronzeMedalist }} | |||
}} | |||
}} | |||
{{Condition | |||
| templateProperty = charte | |||
| operator = contains | |||
| value = cyclisme | |||
| mapping = | |||
{{TemplateMapping | |||
| mapToClass = CyclingRace | |||
| header = 0 | |||
| mappings = | |||
{{PropertyMapping | templateProperty = tenant | ontologyProperty = recentWinner }} | |||
{{PropertyMapping | templateProperty = plus titré | ontologyProperty = mostWins }} | |||
}} | |||
}} | |||
{{Condition | |||
| templateProperty = charte | |||
| operator = contains | |||
| value = tennis | |||
| mapping = {{TemplateMapping | |||
| mapToClass = TennisTournament | |||
| header = 0 | |||
}} | |||
{{Condition | |||
| templateProperty = charte | |||
| operator = equals | |||
| value = Temporaire | |||
| mapping = | |||
{{TemplateMapping |mapToClass = Event |header = 0 }} | |||
}} | |||
{{Condition | |||
| operator = otherwise | |||
| mapping = | |||
{{TemplateMapping |mapToClass = SportsEvent |header = 0 }} | |||
}} | |||
| defaultMappings = | |||
{{PropertyMapping | templateProperty = lieu | ontologyProperty = city }} | {{PropertyMapping | templateProperty = lieu | ontologyProperty = city }} | ||
{{PropertyMapping | templateProperty = lieu | ontologyProperty = country }} | {{PropertyMapping | templateProperty = lieu | ontologyProperty = country }} |
Revision as of 10:12, 22 June 2014
{{ConditionalMapping | cases =
Condition (help) | |
---|---|
template property | charte |
operator | contains |
value | football |
Template Mapping (help) map to class SoccerTournament Mappings
Property Mapping (help) template property meilleur buteur ontology property soccerTournamentTopScorer
Property Mapping (help) template property tenant ontology property soccerTournamentLastChampion
Property Mapping (help) template property plus titré ontology property soccerTournamentMostSuccessfull
Property Mapping (help) template property saison en cours ontology property soccerTournamentThisSeason
Property Mapping (help) template property meilleur buteur ontology property soccerTournamentTopScorer
Property Mapping (help) template property tenant ontology property soccerTournamentLastChampion
Property Mapping (help) template property plus titré ontology property soccerTournamentMostSuccessfull
Property Mapping (help) template property Saison en cours ontology property soccerTournamentThisSeason
Property Mapping (help) template property vainqueur ontology property soccerLeagueWinner
Property Mapping (help) template property relégué ontology property soccerLeagueRelegated
Property Mapping (help) template property relégué fin ontology property soccerLeagueRelegated
Property Mapping (help) template property promu début ontology property soccerLeaguePromoted
Property Mapping (help) template property participants ontology property numberOfTeams
Condition (help) | |
---|---|
template property | chart |
operator | contains |
value | automobile |
Template Mapping (help) map to class SportsEvent Mappings
Property Mapping (help) template property champion pilote ontology property champion
Property Mapping (help) template property champion copilote ontology property championInDouble
Property Mapping (help) template property champion constructeur ontology property champion
Condition (help) | |
---|---|
template property | titre |
operator | contains |
value | olympique |
Template Mapping (help) map to class OlympicEvent Mappings
Property Mapping (help) template property vainqueur ontology property goldMedalist
Property Mapping (help) template property deuxième ontology property silverMedalist
Property Mapping (help) template property finaliste ontology property silverMedalist
Property Mapping (help) template property troisième ontology property bronzeMedalist
Condition (help) | |
---|---|
template property | charte |
operator | contains |
value | cyclisme |
Template Mapping (help) map to class CyclingRace Mappings
Property Mapping (help) template property tenant ontology property recentWinner
Property Mapping (help) template property plus titré ontology property mostWins
Condition (help) | |
---|---|
template property | charte |
operator | contains |
value | tennis |
Template Mapping (help) map to class TennisTournament
Condition (help) template property charte operator equals value Temporaire
Template Mapping (help) map to class Event
Condition (help) otherwise
Template Mapping (help) map to class SportsEvent