osmose-backend icon indicating copy to clipboard operation
osmose-backend copied to clipboard

Check for wikidata syntax

Open ivanbranco opened this issue 11 months ago • 2 comments

Could a check for wikidata tags (wikidata, operator:wikidata, brand:wikidata, artist:wikidata ecc.) be run? The syntax require the value to be a valid wikidata item, so:

  1. it must start with Q
  2. it must be followed by numbers only

examples of elements that should be flagged:

  1. https://www.openstreetmap.org/node/11090384359/ here species:wikidata equals "Q156895natural=tree". There are letters after the first Q, so it should be flagged and fixed.
  2. https://www.openstreetmap.org/relation/16694980 here the name:etymology:wikidata should be fixed and the value eventually moved to name:etymology:wikipedia
  3. https://www.openstreetmap.org/way/856347720 operator:wikidata value is not a wikidata item
  4. ecc.ecc.

ivanbranco avatar Mar 20 '24 21:03 ivanbranco

The first one is already detected: link

Maybe they would be interested to include the other types too (and synchronize this with Osmose)? Its maintained via here: https://gitlab.com/geometalab/osm-wikidata-quality-checker

EDIT: https://gitlab.com/geometalab/osm-wikidata-quality-checker/-/issues/49

Famlam avatar Mar 20 '24 21:03 Famlam

Thank you very much! The other two are indeed also already detected by our tool, but unfortunately not reported to Osmose. This is due to a problem we have for a long time with some relations and closed ways for which we currently can't get the coordinates and Osmose requires to send some coordinates. This affects currently about 3% of the detected issues. It is planed to solve this ( #2) for a long time, let's se when i find time to do so..

turbotimon avatar Apr 02 '24 08:04 turbotimon