Skip to content

Latest commit

 

History

History
200 lines (188 loc) · 21.1 KB

wikidata_places.md

File metadata and controls

200 lines (188 loc) · 21.1 KB

Wikidata place types and related OSM Tags

Wikidata does not have any official ontologies, however the DBpedia project has created an ontology that covered place types. The table below used the DBpedia place ontology as a starting point, and is provided as a cross-reference to the relevant OSM tags.

The Wikidata place types listed in the table below can be used in conjunction with the Wikidata Query Service to retrieve instances of those place types from the Wikidata knowledgebase.

SELECT ?item ?lat ?lon
WHERE {
  ?item wdt:P31*/wdt:P279*wd:Q9430; wdt:P625 ?pt.
  ?item p:P625?loc.
  ?loc psv:P625?cnode.
  ?cnode wikibase:geoLatitude?lat.
  ?cnode wikibase:geoLongitude?lon.
}

An example json return for all instances of the Wikidata item "Q9430" (Ocean) can be seen at json

NOTE the OSM tags listed are those listed in the wikidata entries, and not all the possible matches for tags within OSM.

title concept OSM Tag
Q17334923 Location
Q811979 Architectural Structure
Q194195 Amusement park
Q204832 Roller coaster attraction=roller_coaster
Q2870166 Water ride
Q641226 Arena amenity=events_centre
Q41176 Building building=yes
Q1303167 Barn building=barn
Q655686 Commercial building building=commercial
Q4830453 Business
Q7075 Library amenity=library
Q133215 Casino amenity=casino
Q23413 Castle historic=castle
Q83405 Factory
Q53060 Gate barrier=gate
Q11755880 Residential Building building=residential
Q3947 House building=house
Q35112127 Historic Building
Q5773747 Historic house
Q38723 Higher Education Institution
Q3914 School amenity=school
Q9842 Primary school
Q159334 Secondary school
Q16917 Hospital amenity=hospital, healthcare=hospital, building=hospital
Q27686 Hotel tourism=hotel, building=hotel
Q33506 Museum tourism=museum
Q40357 Prison amenity=prison
Q24398318 Religious Building
Q160742 Abbey
Q16970 Church (building) building=church
Q44613 Monastery amenity=monastery
Q32815 Mosque building=mosque
Q697295 Shrine building=shrine
Q34627 Synagogue building=synagogue
Q44539 Temple building=temple
Q11707 Restaurant amenity=restaurant
Q11315 Shopping mall shop=mall, shop=shopping_centre
Q11303 Skyscraper
Q17350442 Venue
Q41253 Movie Theater amenity=cinema
Q483110 Stadium leisure=stadium, building=stadium
Q24354 Theater (structure) amenity=theatre
Q121359 Infrastructure
Q1248784 Airport
Q12323 Dam waterway=dam
Q1353183 Launch pad
Q105190 Levee man_made=dyke
Q105731 Lock (water navigation) lock=yes
Q44782 Port
Q159719 Power station power=plant
Q174814 Electrical substation
Q134447 Nuclear power plant plant:source=nuclear
Q786014 Rest area highway=rest_area, highway=services
Q12280 Bridge bridge=* , man_made=bridge
Q728937 Railroad Line railway=rail
Q1311958 Railway Tunnel
Q34442 Road highway=* , route=road
Q1788454 Road junction
Q44377 Tunnel tunnel=*
Q5031071 Canal tunnel
Q719456 Station public_transport=station
Q205495 Filling station amenity=fuel
Q928830 Metro station station=subway
Q55488 Train station railway=station
Q2175765 Tram stop railway=tram_stop, public_transport=stop_position
Q6852233 Military building
Q44494 Mill (grinding)
Q185187 Watermill man_made=watermill
Q38720 Windmill man_made=windmill
Q4989906 Monument historic=monument
Q5003624 Memorial historic=memorial
Q271669 Landform
Q190429 Depression (geology)
Q17018380 Bight (geography)
Q54050 Hill
Q1210950 Channel (geography)
Q23442 Island place=island
Q42523 Atoll
Q34763 Peninsula
Q355304 Watercourse
Q30198 Marsh wetland=marsh
Q75520 Plateau
Q2042028 Ravine
Q631305 Rock formation
Q12516 Pyramid
Q1076486 Sports venue
Q682943 Cricket field sport=cricket
Q1048525 Golf course leisure=golf_course
Q1777138 Race track highway=raceway
Q130003 Ski resort
Q174782 Town square place=square
Q12518 Tower building=tower, man_made=tower
Q39715 Lighthouse man_made=lighthouse
Q274153 Water tower building=water_tower, man_made=water_tower
Q43501 Zoo tourism=zoo
Q39614 Cemetery amenity=grave_yard, landuse=cemetery
Q152081 Concentration camp
Q1107656 Garden leisure=garden
Q820477 Mine
Q33837 Archipelago place=archipelago
Q40080 Beach natural=beach
Q15324 Body of water natural=water
Q23397 Lake water=lake
Q9430 Ocean
Q165 Sea
Q47521 Stream
Q12284 Canal waterway=canal
Q4022 River waterway=river, type=waterway
Q185113 Cape natural=cape
Q35509 Cave natural=cave_entrance
Q8514 Desert
Q4421 Forest natural=wood
Q35666 Glacier natural=glacier
Q177380 Hot spring
Q8502 Mountain natural=peak
Q133056 Mountain pass
Q46831 Mountain range
Q39816 Valley natural=valley
Q8072 Volcano natural=volcano
Q43229 Organization
Q327333 Government agency office=government
Q22698 Park leisure=park
Q159313 Urban agglomeration
Q177634 Community
Q5107 Continent place=continent
Q6256 Country place=country
Q75848 Gated community
Q3153117 Intercommunality
Q82794 Region
Q56061 Administrative division boundary=administrative
Q665487 Diocese
Q4976993 Parish boundary=civil_parish
Q194203 Arrondissements of France
Q91028 Arrondissements of Belgium
Q3623867 Arrondissements of Benin
Q2311958 Canton (country subdivision) political_division=canton
Q643589 Department
Q202216 Overseas department and region
Q149621 District place=district
Q15243209 Historic district
Q5144960 Microregion
Q15284 Municipality
Q515716 Prefecture
Q34876 Province
Q3191695 Regency (Indonesia)
Q1970725 Natural region
Q486972 Human settlement
Q515 City place=city
Q5119 Capital city capital=yes
Q4286337 City district
Q1394476 Civil township
Q1115575 Civil parish designation=civil_parish
Q5153984 Commune-level subdivisions
Q123705 Neighbourhood place=neighbourhood
Q1500350 Townships of China
Q17343829 Unincorporated Community
Q3957 Town place=town
Q532 Village place=village
Q5084 Hamlet place=hamlet
Q7275 State
Q79007 Street
Q473972 Protected area boundary=protected_area
Q1377575 Wildlife refuge
Q1410668 National Wildlife Refuge protection_title=National Wildlife Refuge, ownership=national
Q9259 World Heritage Site

Future Work

The Wikidata improvements to Nominatim can be further enhanced by:

  • continuing to add new Wikidata links to OSM objects
  • increasing the number of place types accounted for in the wikipedia_articles table
  • working to use place types in the wikipedia_article matching process