All Projects → EdwardBetts → osm-wikidata

EdwardBetts / osm-wikidata

Licence: GPL-3.0 License
Match OSM entities with Wikidata items

Programming Languages

python
139335 projects - #7 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to osm-wikidata

equalstreetnames
Map visualizing the streetnames by gender : 50 cities in 11 countries
Stars: ✭ 64 (-11.11%)
Mutual labels:  wikidata, openstreetmap
Wikimama
Scripts to help matching OSM features to Wikidata items
Stars: ✭ 8 (-88.89%)
Mutual labels:  wikidata, openstreetmap
gosmparse
Processing OpenStreetMap PBF files at speed with Go
Stars: ✭ 55 (-23.61%)
Mutual labels:  openstreetmap
to-fix
A task manager for OpenStreetMap
Stars: ✭ 54 (-25%)
Mutual labels:  openstreetmap
osmcha
Python package to detect suspicious OSM changesets
Stars: ✭ 33 (-54.17%)
Mutual labels:  openstreetmap
osmfocus
Open source tool for examining OpenStreetMap elements by moving around on a map.
Stars: ✭ 30 (-58.33%)
Mutual labels:  openstreetmap
taghistory
📈 History of OSM tag usage
Stars: ✭ 33 (-54.17%)
Mutual labels:  openstreetmap
humanized opening hours
A parser for the opening_hours fields from OpenStreetMap
Stars: ✭ 22 (-69.44%)
Mutual labels:  openstreetmap
bexhill-osm
A local mapping project using data from OpenStreetMap. Includes overlays, walking directions and historical information.
Stars: ✭ 16 (-77.78%)
Mutual labels:  openstreetmap
ohsome-api
API for analysing OpenStreetMap history data
Stars: ✭ 25 (-65.28%)
Mutual labels:  openstreetmap
OSMDashboard
OpenStreetMaps Dashboard for OpenTracks
Stars: ✭ 37 (-48.61%)
Mutual labels:  openstreetmap
prototypes
miscellaneous wolfram language functions
Stars: ✭ 24 (-66.67%)
Mutual labels:  openstreetmap
ate-onde-chega-cultura
Mapa interativo dos equipamentos culturais em Portugal
Stars: ✭ 18 (-75%)
Mutual labels:  wikidata
o.map
Open Street Map app - KaiOS
Stars: ✭ 51 (-29.17%)
Mutual labels:  openstreetmap
mapping-north-korea
Humanitarian Project for Mapping North Korea
Stars: ✭ 15 (-79.17%)
Mutual labels:  openstreetmap
MapComplete
A small and easy OpenStreetMap editor
Stars: ✭ 101 (+40.28%)
Mutual labels:  openstreetmap
SPARQL
Lib PHP for SPARQL 1.1
Stars: ✭ 23 (-68.06%)
Mutual labels:  wikidata
AndroidOfflineMapLibrary
Offline OpenStreet Map Library (No Internet Required) You dont have to even one-time connect!
Stars: ✭ 16 (-77.78%)
Mutual labels:  openstreetmap
query-overpass
Query the OpenStreetMap Overpass API.
Stars: ✭ 17 (-76.39%)
Mutual labels:  openstreetmap
osmoscope-ui
An OpenStreetMap Quality Assurance Tool - User Interface
Stars: ✭ 31 (-56.94%)
Mutual labels:  openstreetmap

Introduction

This tool is running live using the Wikidata SPARQL query service and the OSM Overpass and Nominatim APIs. It works best with a city, island or administrative area.

The index page displays list of existing matches and a search box. If you pick an existing result you'll see Wikidata items within the given area, for each item there is a list of candidate matching OSM items.

Matching process interface

The matching process takes a few minutes. It downloads potential OSM objects from Overpass and loads them into PostgreSQL with osm2pgsql. The interface provides status updates while the matching process is running.

A large area will trigger an Overpass timeout and the match will fail.

Once the matching process is complete a 'view match candidates' link will appear. The matching is based on names and English Wikipedia categories.

One-to-one between OSM and Wikidata

With this system the aim is for a single OSM entity to link to one Wikidata item. Many geographical entities are represented by multiple objects in OSM with the same name, for example dual carriageway bridges are mapped as two roadways, or buildings within a large site like a hospital.

For bridges with two roadways the system will look for the outline of the bridge tagged with man_made=bridge and for a hospital or other campus the aim is to tag the way or relation that represents the entire site.

English language Wikipedia categories and Wikidata are used for matching

The matching system makes use of categories on Wikipedia because the information on Wikidata is incomplete. Wikidata includes an import of all Wikipedia including the coordinates, but for a lot of items the 'instance of' property is not set.

There is a mapping from Wikipedia category to possible OSM tags. For example if a Wikipedia article has the word 'station' in any category then railway=station is added to the list of possible tags.

Name matching

Each Wikidata name is compared with each name in OSM. Wikidata names are pulled from the item name, alias and sitelinks in every language. Most name fields on the OSM side are considered, old_name and a few others are ignored.

The name comparison includes some normalisation, punctuation is removed.

Existing OSM tags for Wikidata and Wikipedia

Existing Wikipedia tags are ignored. If an OSM entity already has a Wikidata tag it will be left alone.

Items that are unlikely to match

  • Radio stations: not mapped on OpenStreetMap
  • Streets: the matcher ignores streets to minimise the Overpass data download
  • Sites of Special Scientific Interest: not tagged as such on OSM
  • Rivers: river relations are not multipolygons so osm2pgsql ignores them
  • Things that no longer exist: Wikidata items that existed in the past
  • Organisations: Small organisations within office buildings are not in OSM
  • Events and festivals: Not part of OSM

Development

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].