Mechanical Edits/Mateusz Konieczny - bot account/adding wikipedia tags based on wikidata tags in Poland
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
Adding wikipedia=* based wikidata=* tags.
Editing is restricted to Poland.
Why
Polish community consensus is that elements should have both wikipedia=* and wikidata=* keys.
Adding one of keys where other is present is highly tedious and bot making this kind of edit is less likely to make mistakes than a human.
Numbers
Depends on how many missing tags appear - depends on editing activity in OSM.
How
- Editing is limited to objects without wikipedia=* with wikidata=* tag.
- Links detected as invalid (leading to disambigs, articles about humans, animals, plants, events etc) are skipped and listed at https://matkoniecz.github.io/OSM-wikipedia-tag-validator-reports/
- Each changeset contains a single region
- Matching language (Polish in Poland) is preferred
- After every changeset bot sleeps for one minute
A theoretical example:
state before a mechanical edit:
- place=hamlet
- name=Wielopole
- addr:postcode=66-220
- population=54
- teryt:simc=540911523
- wikidata=Q9373130
state after a mechanical edit:
- place=hamlet
- name=Wielopole
- addr:postcode=66-220
- population=54
- teryt:simc=540911523
- wikipedia=pl:Wielopole (Sieniawa)
- wikidata=Q9373130
Changeset would be described and tagged with tags that mark it as automatic, provide link to discussion approving edit, link repository with source code etc
brand:wikipedia=* brand:wikidata=* and other prefixed tags are ignored
Discussion
Approved by Polish OSM community at https://forum.openstreetmap.org/viewtopic.php?id=59888
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://forum.openstreetmap.org/viewtopic.php?id=59888 .