Mechanical Edits/Mateusz Konieczny - bot account/fixing wikidata tags pointing at redirects in USA
Page content created as advised on Automated_Edits_code_of_conduct#Document_and_discuss_your_plans.
Who
I, Mateusz Konieczny using my bot account
contact
message via OSM I will respond also to PMs to the bot account. In both cases I will be notified about incoming PMs via email and notifications in OSM editors.
What
Fixing wikidata tags pointing at redirects, so tag after edit points directly at an entry.
Editing are restricted to USA.
Why
Wikidata tags are not supposed to point at redirects.
Fixing redirects is highly tedious and bot making this kind of edit is less likely to make mistakes than a human.
Numbers
Depends on how many new redirects appear - depends on editing activity in OSM and Wikidata.
How
- Editing is limited to wikidata=* tags that link to a redirect that leads to page matching wikipedia=* tag
- Each changeset contains a single region
- After every changeset bot sleeps for one minute
Example:
state before a mechanical edit:
source
- name=Haven Lake
- natural=water
- wikidata=Q34889384
- wikipedia=en:Haven Lake
- source=Bing
- source:date=2010-06/2010-07
- source:name=MSR_usgs_topo_maps
state after an edit:
- name=Haven Lake
- natural=water
- wikidata=Q5683692
- wikipedia=en:Haven Lake
- source=Bing
- source:date=2010-06/2010-07
- source:name=MSR_usgs_topo_maps
With changeset comment " handle unstable wikidata ids - apply redirects ". Bot changeset is also tagged with tags that mark it as automatic, provide link to discussion approving edit, link repository with source code etc
See https://www.openstreetmap.org/changeset/145268895 for an example mechanical edit.
Discussion
Approved by USA OSM community at https://community.openstreetmap.org/t/bot-edit-proposal-update-wikidata-tag-redirects-where-updated-value-would-match-present-wikipedia-tag/106588 and https://osmus.slack.com/archives/C029HV951/p1698760768541059
Repetition
This is reoccurring edit and may be made as soon as new matching elements appear. At this moment triggering new edit requires human intervention so exact schedule is not predictable and bot may stop running at any moment.
This can change in a future. If bot is abandoned and does not run, feel free to ping me. If I am unable to run it any more feel free to use my code. Note that it may require going through bot approval process again and that code is on specific license.
https://codeberg.org/matkoniecz/OpenStreetMap_cleanup_scripts/src/branch/master/recurrent_bot_edits may have more up to date code version that what is listed on this page
Opt-out
Please write at https://community.openstreetmap.org/ in thread where discussion has taken place.
See also
- Mechanical Edits/Mateusz Konieczny - bot account/fixing wikipedia tags pointing at redirects in USA
- Mechanical Edits/Mateusz Konieczny - bot account/fixing wikipedia tags pointing at redirects in Poland
- Mechanical Edits/Mateusz Konieczny - bot account/fixing wikidata tags pointing at redirects in Poland