osmose-backend
osmose-backend copied to clipboard
Check for wikidata syntax
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:
- it must start with Q
- it must be followed by numbers only
examples of elements that should be flagged:
- 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.
- https://www.openstreetmap.org/relation/16694980 here the name:etymology:wikidata should be fixed and the value eventually moved to name:etymology:wikipedia
- https://www.openstreetmap.org/way/856347720 operator:wikidata value is not a wikidata item
- ecc.ecc.
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
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..