Page MenuHomePhabricator

Show OpenStreetMap features associated with Wikidata items
Open, Needs TriagePublic

Description

A Wikidata item page would ideally include a map showing the OpenStreetMap features that have been tagged with the current Wikidata item. Direct links would make it a lot easier to navigate from a Wikidata item to the individual OpenStreetMap features. This workflow could be useful for quality assurance of Wikidata and OpenStreetMap data.

Because OpenStreetMap way, node, and relation IDs are unstable, it isn’t a good idea to add the IDs directly to a Wikidata item. Instead, we can use a third-party service such as overpass turbo to populate the map.

Event Timeline

mxn created this task.Aug 10 2017, 8:18 PM
Restricted Application added subscribers: PokestarFan, Aklapper. · View Herald TranscriptAug 10 2017, 8:18 PM
mxn added a comment.Aug 10 2017, 8:23 PM

For now, I’ve implemented this feature as a user script:

It would be great to have this user script as a gadget.

TheDJ added a subscriber: TheDJ.Sep 7 2017, 11:11 AM
TheDJ added a comment.Sep 7 2017, 11:15 AM

Nice work @mxn !

BTW.. i noticed that on overpass, all dutch locations are inside france according to the search autocomplete...a bit weird...

debt added a subscriber: debt.Sep 7 2017, 3:24 PM

I tried this out a few times, and saw this message on this page:

mxn added a comment.Sep 10 2017, 12:53 AM

@debt, that message means nothing in OpenStreetMap is tagged with the current item’s QID. The map and its overlays are provided by overpass turbo, so the gadget is unable to customize that particular message or add an edit link. It might be a different story if an overpass turbo instance were to run on Toolforge I suppose. ;-)

debt added a comment.Sep 11 2017, 11:05 PM

@mxn - gotcha, thanks :)

Jc86035 added a subscriber: Jc86035.EditedJan 6 2019, 6:48 AM

For the majority of items it is no longer necessary to use Overpass, as the same can be accomplished with mapframe, which is now shown on every item with coordinates in P625.

Salgo60 added a subscriber: Salgo60.Feb 4 2019, 8:19 AM

@Jc86035 the excellent thing with the overpass query is that you can see that the Wikidata object is represented in Open Street Map and linked see Wikidata tag in Open Street Map ==> Open Street Map takes a small step direction 5 star of Open Data

Yurik added a subscriber: Yurik.Feb 4 2019, 10:30 PM

Note that this is also possible with Sophox -- e.g. a SPARQL query can use Wikidata via federation together with all of OSM data itself (tags), plus attach the OSM geometry shapes to each wikidata ID it sees in the query result. Click "run query" under the example.