Mapping en:Infobox Serbia municipality: Difference between revisions

From Mediawiki1
Jump to navigationJump to search
(initial mapping)
 
No edit summary
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{ DBpediaTemplateMapping
{{ConditionalMapping
| mapToClass = Municipality
| cases =
| mappings =
  {{Condition
{{ DBpediaPropertyMapping | templateProperty = neighboring_municipalities | ontologyProperty = neighboringMunicipality }}
    | templateProperty = settlement_type
{{ DBpediaPropertyMapping | templateProperty = postal_code | ontologyProperty = postalCode }}
    | operator = equals
{{ DBpediaPropertyMapping | templateProperty = municipality_code | ontologyProperty = areaCode }}
    | value = city
{{ DBpediaPropertyMapping | templateProperty = area | ontologyProperty = areaTotal | unit = squareKilometre }}
    | mapping = {{TemplateMapping
{{ DBpediaPropertyMapping | templateProperty = elevation | ontologyProperty = elevation | unit = metre }}
                  | mapToClass = City
{{ DBpediaPropertyMapping | templateProperty = highest_m | ontologyProperty = maximumElevation | unit = metre }}
                }}
{{ DBpediaPropertyMapping | templateProperty = lowest_m | ontologyProperty = minimumElevation | unit = metre }}
  }}
{{ DBpediaPropertyMapping | templateProperty = population | ontologyProperty = populationTotal }}
 
{{ DBpediaPropertyMapping | templateProperty = populationof | ontologyProperty = populationAsOf }}
  {{Condition
{{ DBpediaPropertyMapping | templateProperty = website | ontologyProperty = foaf:homepage }}
    | templateProperty = settlement_type
{{ DBpediaPropertyMapping | templateProperty = demonym | ontologyProperty = demonym }}
    | operator = equals
{{ DBpediaGeocoordinatesMapping | longitudeMinutes = long_m  | longitudeDirection = long_NS  | latitudeDegrees = lat_d  | latitudeMinutes = lat_m  | latitudeDirection = lat_EW }}
    | value = town
    | mapping = {{TemplateMapping
                  | mapToClass = Town
                }}
  }}
 
  {{Condition
    | templateProperty = settlement_type
    | operator = equals
    | value = village
    | mapping = {{TemplateMapping
                  | mapToClass = Village
                }}
  }}
 
  {{Condition
    | operator = otherwise
    | mapping = {{TemplateMapping
                  | mapToClass = Town
                }}
  }}
 
| defaultMappings =
{{ConstantMapping | ontologyProperty = country | value = Serbia }}
{{PropertyMapping | templateProperty = neighboring_municipalities | ontologyProperty = neighboringMunicipality }}
{{PropertyMapping | templateProperty = postal_code | ontologyProperty = postalCode }}
{{PropertyMapping | templateProperty = municipality_code | ontologyProperty = areaCode }}
{{PropertyMapping | templateProperty = area | ontologyProperty = areaTotal | unit = squareKilometre }}
{{PropertyMapping | templateProperty = elevation | ontologyProperty = elevation | unit = metre }}
{{PropertyMapping | templateProperty = highest_m | ontologyProperty = maximumElevation | unit = metre }}
{{PropertyMapping | templateProperty = lowest_m | ontologyProperty = minimumElevation | unit = metre }}
{{PropertyMapping | templateProperty = population | ontologyProperty = populationTotal }}
{{PropertyMapping | templateProperty = populationof | ontologyProperty = populationAsOf }}
{{PropertyMapping | templateProperty = website | ontologyProperty = foaf:homepage }}
{{PropertyMapping | templateProperty = demonym | ontologyProperty = demonym }}
{{GeocoordinatesMapping | longitudeMinutes = long_m  | longitudeDirection = long_NS  | latitudeDegrees = lat_d  | latitudeMinutes = lat_m  | latitudeDirection = lat_EW }}
}}
}}

Latest revision as of 14:58, 28 July 2011

This is the mapping for the Wikipedia template Infobox Serbia municipality. 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 settlement_type
operator equals
value city

This is the mapping for the Wikipedia template Infobox Serbia municipality. 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 City


Condition (help)
template property settlement_type
operator equals
value town

This is the mapping for the Wikipedia template Infobox Serbia municipality. 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 Town


Condition (help)
template property settlement_type
operator equals
value village

This is the mapping for the Wikipedia template Infobox Serbia municipality. 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 Village


Condition (help)
otherwise

This is the mapping for the Wikipedia template Infobox Serbia municipality. 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 Town

Default Mappings

Constant Mapping (help)
ontology property country
value Serbia




Property Mapping (help)
template property neighboring_municipalities
ontology property neighboringMunicipality




Property Mapping (help)
template property postal_code
ontology property postalCode




Property Mapping (help)
template property municipality_code
ontology property areaCode


Property Mapping (help)
template property area
ontology property areaTotal
unitsquareKilometre


Property Mapping (help)
template property elevation
ontology property elevation
unitmetre


Property Mapping (help)
template property highest_m
ontology property maximumElevation
unitmetre


Property Mapping (help)
template property lowest_m
ontology property minimumElevation
unitmetre




Property Mapping (help)
template property population
ontology property populationTotal




Property Mapping (help)
template property populationof
ontology property populationAsOf




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




Property Mapping (help)
template property demonym
ontology property demonym
Geocoordinates Mapping (help)
longitude minutes template property long_m
longitude direction template property long_NS
latitude degrees template property lat_d
latitude minutes template property lat_m
latitude direction template property lat_EW