Mapping en:Infobox building: Difference between revisions

From Mediawiki1
Jump to navigationJump to search
(removed disclaimer)
(Merged from infobox hotl and additions)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
}}
{{ConditionalMapping
 
| cases =
{{TemplateMapping
  {{Condition
| mapToClass = Building
  | templateProperty = hotel_name
| mappings =
  | operator = isSet
{{PropertyMapping | templateProperty = address | ontologyProperty = address }}
  | mapping = {{TemplateMapping | header = 0 | mapToClass = Hotel }}
{{PropertyMapping | templateProperty = architect | ontologyProperty = architect }}
  }}
{{PropertyMapping | templateProperty = architecturalBureau | ontologyProperty = architectualBureau }}
  {{Condition
{{PropertyMapping | templateProperty = buildingStartDate | ontologyProperty = buildingStartDate }}
  | templateProperty = hotel_name
{{PropertyMapping | templateProperty = buildingEndDate | ontologyProperty = buildingEndDate }}
  | operator = isSet
{{PropertyMapping | templateProperty = openingDate | ontologyProperty = openingDate }}
  | mapping = {{TemplateMapping | header = 0 | mapToClass = Hotel }}
{{PropertyMapping | templateProperty = closingDate | ontologyProperty = dateOfAbandonment }}
  }}
{{PropertyMapping | templateProperty = rebuildingDate | ontologyProperty = rebuildingDate }}
  {{Condition
{{PropertyMapping | templateProperty = owner | ontologyProperty = owner }}
  | templateProperty = hotel_chain
{{PropertyMapping | templateProperty = owningOrganisation | ontologyProperty = owningOrganisation }}
  | operator = isSet
{{PropertyMapping | templateProperty = visitorsTotal | ontologyProperty = visitorsTotal }}
  | mapping = {{TemplateMapping | header = 0 | mapToClass = Hotel }}
{{PropertyMapping | templateProperty = visitorsPerYear | ontologyProperty = visitorsPerYear }}
  }}
{{PropertyMapping | templateProperty = former_names | ontologyProperty = formerName }}
  {{Condition
{{PropertyMapping | templateProperty = architectural_style | ontologyProperty = architecturalStyle }}
  | templateProperty = number_of_rooms
{{PropertyMapping | templateProperty = structural_system | ontologyProperty = structuralSystem }}
  | operator = isSet
{{PropertyMapping | templateProperty = cost | ontologyProperty = cost | unit = Currency }}
  | mapping = {{TemplateMapping | header = 0 | mapToClass = Hotel }}
{{PropertyMapping | templateProperty = current_tenants | ontologyProperty = tenant }}
  }}
{{PropertyMapping | templateProperty = start_date | ontologyProperty = buildingStartDate }}
  {{Condition
{{PropertyMapping | templateProperty = completion_date | ontologyProperty = buildingEndDate }}
  | templateProperty = number_of_suites
{{PropertyMapping | templateProperty = inauguration_date | ontologyProperty = openingDate }}
  | operator = isSet
{{PropertyMapping | templateProperty = demolition_date | ontologyProperty = demolitionDate }}
  | mapping = {{TemplateMapping | header = 0 | mapToClass = Hotel }}
{{PropertyMapping | templateProperty = destruction_date | ontologyProperty = destructionDate }}
  }}
{{PropertyMapping | templateProperty = floor_count | ontologyProperty = floorCount }}
  {{Condition
{{PropertyMapping | templateProperty = floor_area | ontologyProperty = floorArea | unit = Area }}
  | templateProperty = number_of_stores
{{PropertyMapping | templateProperty = awards | ontologyProperty = awards }}
  | operator = isSet
{{GeocoordinatesMapping | coordinates = coordinates }}
  | mapping = {{TemplateMapping | header = 0 | mapToClass = ShoppingMall }}
{{PropertyMapping | templateProperty = elevationInFoot | ontologyProperty = elevation | unit = foot }}
  }}
{{PropertyMapping | templateProperty = elevationInMeters | ontologyProperty = elevation | unit = metre }}
  {{Condition
{{PropertyMapping | templateProperty = width | ontologyProperty = width | unit = Length }}
  | templateProperty = number_of_anchors
{{PropertyMapping | templateProperty = height | ontologyProperty = height | unit = Length }}
  | operator = isSet
{{PropertyMapping | templateProperty = building_name | ontologyProperty = foaf:name }}
  | mapping = {{TemplateMapping | header = 0 | mapToClass = ShoppingMall }}
{{PropertyMapping | templateProperty = native_building_name | ontologyProperty = foaf:name }}
  }}
{{PropertyMapping | templateProperty = building_type | ontologyProperty = type }}
  {{Condition
{{PropertyMapping | templateProperty = location | ontologyProperty = location }}
  | templateProperty = seating_type
  | operator = isSet
  | mapping = {{TemplateMapping | header = 0 | mapToClass = Venue }}
  }}
  {{Condition
  | templateProperty = seating_capacity
  | operator = isSet
  | mapping = {{TemplateMapping | header = 0 | mapToClass = Venue }}
  }}
  {{Condition
  | operator = otherwise
  | mapping = {{TemplateMapping | header = 0 | mapToClass = Building }}
  }}
| defaultMappings =
  {{PropertyMapping | templateProperty = hotel_name | ontologyProperty = foaf:name }}
  {{PropertyMapping | templateProperty = name | ontologyProperty = foaf:name }}
  {{PropertyMapping | templateProperty = building_name | ontologyProperty = foaf:name }}
  {{PropertyMapping | templateProperty = native_name | ontologyProperty = originalName }}
  {{PropertyMapping | templateProperty = former_names | ontologyProperty = formerName }}
  {{PropertyMapping | templateProperty = alternate_names | ontologyProperty = alternativeName }}
  {{PropertyMapping | templateProperty = building_type | ontologyProperty = type }}
  {{PropertyMapping | templateProperty = etymology | ontologyProperty = namedAfter }}
  {{PropertyMapping | templateProperty = address | ontologyProperty = address }}
  {{PropertyMapping | templateProperty = location | ontologyProperty = location }}
  {{PropertyMapping | templateProperty = location_country | ontologyProperty = country }}
  {{PropertyMapping | templateProperty = location_city | ontologyProperty = city }}
  {{PropertyMapping | templateProperty = location_town | ontologyProperty = location }}
  {{PropertyMapping | templateProperty = status | ontologyProperty = status }}
  {{PropertyMapping | templateProperty = classification | ontologyProperty = classification }}
  {{PropertyMapping | templateProperty = architect | ontologyProperty = architect }}
  {{PropertyMapping | templateProperty = architecture_firm | ontologyProperty = architect }}
  {{PropertyMapping | templateProperty = developer | ontologyProperty = developer }}
  {{PropertyMapping | templateProperty = engineer | ontologyProperty = engineer }}
  {{PropertyMapping | templateProperty = architecturalBureau | ontologyProperty = architectualBureau }}
  {{GeocoordinatesMapping | coordinates = coordinates }}
  {{ GeocoordinatesMapping | coordinates = coordinates | latitudeDegrees = latd | latitudeDirection = latNS | latitudeMinutes = latm | latitudeSeconds = lats | longitudeDegrees = longd | longitudeDirection = longEW | longitudeMinutes = longm | longitudeSeconds = longs }}
  {{PropertyMapping | templateProperty = construction_start_date | ontologyProperty = buildingStartDate }}
  {{PropertyMapping | templateProperty = start_date | ontologyProperty = buildingStartDate }}
  {{PropertyMapping | templateProperty = groundbreaking_date | ontologyProperty = buildingStartDate }}
  {{PropertyMapping | templateProperty = buildingEndDate | ontologyProperty = buildingEndDate }}
  {{PropertyMapping | templateProperty = completion_date | ontologyProperty = buildingEndDate }}
  {{PropertyMapping | templateProperty = opening | ontologyProperty = openingDate }}
  {{PropertyMapping | templateProperty = opened_date | ontologyProperty = openingDate }}
  {{PropertyMapping | templateProperty = opening_date | ontologyProperty = openingDate }}
  {{PropertyMapping | templateProperty = closing_date | ontologyProperty = dateOfAbandonment }}
  {{PropertyMapping | templateProperty = inauguration_date | ontologyProperty = openingDate }}
  {{PropertyMapping | templateProperty = date_demolished | ontologyProperty = demolitionDate }}
  {{PropertyMapping | templateProperty = demolition_date | ontologyProperty = demolitionDate }}
  {{PropertyMapping | templateProperty = destruction_date | ontologyProperty = destructionDate }}
  {{PropertyMapping | templateProperty = rebuildingDate | ontologyProperty = rebuildingDate }}
  {{PropertyMapping | templateProperty = owner | ontologyProperty = owner }}
  {{PropertyMapping | templateProperty = cost | ontologyProperty = cost | unit = Currency }}
  {{PropertyMapping | templateProperty = architectural_style | ontologyProperty = architecturalStyle }}
  {{PropertyMapping | templateProperty = height | ontologyProperty = height | unit = Length }}
  {{PropertyMapping | templateProperty = architectural | ontologyProperty = height | unit = Length }}
  {{PropertyMapping | templateProperty = tip | ontologyProperty = height | unit = Length }}
  {{PropertyMapping | templateProperty = roof | ontologyProperty = height | unit = Length }}
  {{PropertyMapping | templateProperty = width | ontologyProperty = width | unit = Length }}
  {{PropertyMapping | templateProperty = altitude | ontologyProperty = width | unit = Length }}
  {{PropertyMapping | templateProperty = top_floor | ontologyProperty = height | unit = Length }}
  {{PropertyMapping | templateProperty = floor_count | ontologyProperty = floorCount }}
  {{PropertyMapping | templateProperty = floors | ontologyProperty = floorCount }}
  {{PropertyMapping | templateProperty = floor_area | ontologyProperty = floorArea | unit = Area }}
  {{PropertyMapping | templateProperty = visitorsTotal | ontologyProperty = visitorsTotal }}
  {{PropertyMapping | templateProperty = visitorsPerYear | ontologyProperty = visitorsPerYear }}
  {{PropertyMapping | templateProperty = website | ontologyProperty = foaf:homepage }}
  {{PropertyMapping | templateProperty = structural_system | ontologyProperty = structuralSystem }}
  {{PropertyMapping | templateProperty = awards | ontologyProperty = award }}
  {{PropertyMapping | templateProperty = ren_awards | ontologyProperty = award }}  
  {{PropertyMapping | templateProperty = native_building_name | ontologyProperty = foaf:name }}
  {{PropertyMapping | templateProperty = parking | ontologyProperty = numberOfParkingSpaces }}
  {{PropertyMapping | templateProperty = number_of_restaurants | ontologyProperty = numberOfRestaurants }}
  {{PropertyMapping | templateProperty = number_of_rooms | ontologyProperty = numberOfRooms }}
  {{PropertyMapping | templateProperty = rooms | ontologyProperty = numberOfRooms }}
  {{PropertyMapping | templateProperty = unit_count | ontologyProperty = numberOfRooms }}
  {{PropertyMapping | templateProperty = number_of_suites | ontologyProperty = numberOfSuites }}
  {{PropertyMapping | templateProperty = chain | ontologyProperty = chain }}
  {{PropertyMapping | templateProperty = hotel_chain | ontologyProperty = chain }}
  {{PropertyMapping | templateProperty = affiliation | ontologyProperty = affiliation }}
  {{PropertyMapping | templateProperty = number_of_stores | ontologyProperty = numberOfStores }}
  {{PropertyMapping | templateProperty = number_of_anchors | ontologyProperty = numberOfStores }}
  {{PropertyMapping | templateProperty = seating_capacity | ontologyProperty = seatingCapacity }}
  {{PropertyMapping | templateProperty = known_for | ontologyProperty = knownFor }}
  {{PropertyMapping | templateProperty = elevator_count | ontologyProperty = elevatorCount }}
  {{PropertyMapping | templateProperty = material | ontologyProperty = material }}
  {{PropertyMapping | templateProperty = diameter | ontologyProperty = diameter }}
}}
}}

Latest revision as of 15:05, 31 October 2017

This is the mapping for the Wikipedia template Infobox building. 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 hotel_name
operator isSet
Template Mapping (help)
map to class Hotel
Condition (help)
template property hotel_name
operator isSet
Template Mapping (help)
map to class Hotel
Condition (help)
template property hotel_chain
operator isSet
Template Mapping (help)
map to class Hotel
Condition (help)
template property number_of_rooms
operator isSet
Template Mapping (help)
map to class Hotel
Condition (help)
template property number_of_suites
operator isSet
Template Mapping (help)
map to class Hotel
Condition (help)
template property number_of_stores
operator isSet
Template Mapping (help)
map to class ShoppingMall
Condition (help)
template property number_of_anchors
operator isSet
Template Mapping (help)
map to class ShoppingMall
Condition (help)
template property seating_type
operator isSet
Template Mapping (help)
map to class Venue
Condition (help)
template property seating_capacity
operator isSet
Template Mapping (help)
map to class Venue
Condition (help)
otherwise
Template Mapping (help)
map to class Building

Default Mappings




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




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




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




Property Mapping (help)
template property native_name
ontology property originalName




Property Mapping (help)
template property former_names
ontology property formerName




Property Mapping (help)
template property alternate_names
ontology property alternativeName




Property Mapping (help)
template property building_type
ontology property type




Property Mapping (help)
template property etymology
ontology property namedAfter




Property Mapping (help)
template property address
ontology property address




Property Mapping (help)
template property location
ontology property location




Property Mapping (help)
template property location_country
ontology property country




Property Mapping (help)
template property location_city
ontology property city




Property Mapping (help)
template property location_town
ontology property location




Property Mapping (help)
template property status
ontology property status




Property Mapping (help)
template property classification
ontology property classification




Property Mapping (help)
template property architect
ontology property architect




Property Mapping (help)
template property architecture_firm
ontology property architect




Property Mapping (help)
template property developer
ontology property developer




Property Mapping (help)
template property engineer
ontology property engineer




Property Mapping (help)
template property architecturalBureau
ontology property architectualBureau
Geocoordinates Mapping (help)
coordinates template property coordinates
Geocoordinates Mapping (help)
coordinates template property coordinates
longitude degrees template property longd
longitude minutes template property longm
longitude seconds template property longs
longitude direction template property longEW
latitude degrees template property latd
latitude minutes template property latm
latitude seconds template property lats
latitude direction template property latNS




Property Mapping (help)
template property construction_start_date
ontology property buildingStartDate




Property Mapping (help)
template property start_date
ontology property buildingStartDate




Property Mapping (help)
template property groundbreaking_date
ontology property buildingStartDate




Property Mapping (help)
template property buildingEndDate
ontology property buildingEndDate




Property Mapping (help)
template property completion_date
ontology property buildingEndDate




Property Mapping (help)
template property opening
ontology property openingDate




Property Mapping (help)
template property opened_date
ontology property openingDate




Property Mapping (help)
template property opening_date
ontology property openingDate




Property Mapping (help)
template property closing_date
ontology property dateOfAbandonment




Property Mapping (help)
template property inauguration_date
ontology property openingDate




Property Mapping (help)
template property date_demolished
ontology property demolitionDate




Property Mapping (help)
template property demolition_date
ontology property demolitionDate




Property Mapping (help)
template property destruction_date
ontology property destructionDate




Property Mapping (help)
template property rebuildingDate
ontology property rebuildingDate




Property Mapping (help)
template property owner
ontology property owner


Property Mapping (help)
template property cost
ontology property cost
unitCurrency




Property Mapping (help)
template property architectural_style
ontology property architecturalStyle


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


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


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


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


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


Property Mapping (help)
template property altitude
ontology property width
unitLength


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




Property Mapping (help)
template property floor_count
ontology property floorCount




Property Mapping (help)
template property floors
ontology property floorCount


Property Mapping (help)
template property floor_area
ontology property floorArea
unitArea




Property Mapping (help)
template property visitorsTotal
ontology property visitorsTotal




Property Mapping (help)
template property visitorsPerYear
ontology property visitorsPerYear




Property Mapping (help)
template property website
ontology property foaf:homepage




Property Mapping (help)
template property structural_system
ontology property structuralSystem




Property Mapping (help)
template property awards
ontology property award




Property Mapping (help)
template property ren_awards
ontology property award




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




Property Mapping (help)
template property parking
ontology property numberOfParkingSpaces




Property Mapping (help)
template property number_of_restaurants
ontology property numberOfRestaurants




Property Mapping (help)
template property number_of_rooms
ontology property numberOfRooms




Property Mapping (help)
template property rooms
ontology property numberOfRooms




Property Mapping (help)
template property unit_count
ontology property numberOfRooms




Property Mapping (help)
template property number_of_suites
ontology property numberOfSuites




Property Mapping (help)
template property chain
ontology property chain




Property Mapping (help)
template property hotel_chain
ontology property chain




Property Mapping (help)
template property affiliation
ontology property affiliation




Property Mapping (help)
template property number_of_stores
ontology property numberOfStores




Property Mapping (help)
template property number_of_anchors
ontology property numberOfStores




Property Mapping (help)
template property seating_capacity
ontology property seatingCapacity




Property Mapping (help)
template property known_for
ontology property knownFor




Property Mapping (help)
template property elevator_count
ontology property elevatorCount




Property Mapping (help)
template property material
ontology property material




Property Mapping (help)
template property diameter
ontology property diameter