Sophox / sophox

A collection of services exposing OSM data, metadata, and other microservices
Apache License 2.0
31 stars 5 forks source link

Query wikidata in osm with sophox #30

Open Seandebasti opened 2 years ago

Seandebasti commented 2 years ago

Hi, I have two questions 1) How is that possible to query secondary wikidata links like operator:wikidata from openstreetmap? I can not see any example. 2) Whats the difference between operator:wikidata and brand:wikidata? According to https://wiki.openstreetmap.org/wiki/Sophox (Current challenges) its written to use brand:wikidata instead of operator:wikidata?

I just ask, because I like to add wikidata Q´s but under which tag? Thanks

1ec5 commented 2 years ago

How is that possible to query secondary wikidata links like operator:wikidata from openstreetmap? I can not see any example.

There are a few examples of querying secondary Wikidata keys on this page, which also populates the “Examples” pane in Sophox itself.

Whats the difference between operator:wikidata and brand:wikidata? According to https://wiki.openstreetmap.org/wiki/Sophox (Current challenges) its written to use brand:wikidata instead of operator:wikidata?

There are actually quite a few *:wikidata keys, each representing different relationships between a given feature on the map and the specified Wikidata item. This list on the wiki gives a good rundown of the most common keys. The difference between a brand and an operator in OSM can be rather nuanced and depends on the kind of feature being tagged.

The “Current challenges” section lists OSM cleanup tasks that you can help with. The challenge you’re referring to specifically finds occurrences of mistagged brands. For example, if a McDonald’s restaurant location is tagged wikidata=Q38076, that would mean the entire global restaurant chain is located right there at that location, which would be incorrect. Similarly, operator=McDonald’s operator:wikidata=Q38076 would almost always be incorrect, because most McDonald’s locations are franchises operated by other companies.

If you’re ever unsure about the right tags for a feature (and thus the right companion *:wikidata tags), there are several places you can go for help, such as the #poi channel in OSMUS Slack or the tagging mailing list.