[Tagging] "part:wikidata=*" tag proposal for multiple elements connected to the same wikidata id

Janko Mihelić janjko at gmail.com
Fri Sep 6 13:05:38 UTC 2019

Last year there was a little discussion about unique wikidata ids in the
openstreetmap database:

It was more or less decided there was no problem with this. Nevertheless, I
think we should consider having a hard rule of "*A Wikidata item cannot be
connected to more than one OSM item*".

Problems with not enforcing this rule:

- the problem of a partially downloaded database, where one is never sure
if a wikidata item is fully downloaded unless the whole database is

- we could get a flood of wikidata tags where one would, for example, tag
every building in a town with the wikidata id of the town, because that
building is a part of the town. Is that wrong tagging? Well, if the above
rule is not in place, I'm not sure.

- if a road segment has two road routes that are using it, then we should
tag it as "wikidata=Q1234;Q5678". That means, if we want to find any
wikidata id, we should be prepared to parse all wikidata tags and be
prepared for semicolons. This slows down any wikidata searches

- we can't enforce some rules like "tag leisure=stadium can only be
connected to something that is, or is derived from Q483110 (Stadium) in
Wikidata" because, if we tag all the parts of an entity, we can also tag a
water fountain in the stadium, because that is a part of it.

So I propose we enforce this rule, and we tag, for example, railways only
on the route relation.

If one wants to tag all route segments with a wikidata tag, I propose a
general usage "*part:wikidata=**" which would be used when a single
wikidata tag just isn't viable. Proposal wiki page here:


Thanks for reading,
Janko Mihelić
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tagging/attachments/20190906/a802b264/attachment.html>

More information about the Tagging mailing list