Mechanical Edits/Mateusz Konieczny - bot account/fixing wikipedia tags pointing at redirects 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
Fixing wikipedia tags pointing at redirects, so tag after edit points directly at an article.
Editing are restricted to Poland.
Why
Wikipedia tags are not supposed to point at redirects. Also, redirects are more likely to become deleted or redirected to other pages than the article. In addition, sometimes page was renamed because old name was wrong or contained some kind of an error.
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 Wikipedia.
How
- Editing is limited to objects with both wikipedia=* and wikidata=* tag.
- Editing is limited to wikipedia=* tags that link to a redirect that leads to page matching wikidata=* tag
- Each changeset contains a single object
- After every changeset bot sleeps for one minute
Example:
state before a mechanical edit:
- place=hamlet
- name=Wielopole
- addr:postcode=66-220
- population=54
- teryt:simc=540911523
- wikipedia=pl:Wielopole (województwo lubuskie)
- 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
With changeset comment " http://www.openstreetmap.org/node/2432216038 [wikipedia=pl:Wielopole (województwo lubuskie)] to [wikipedia=pl:Wielopole (Sieniawa)], as current tag is a redirect and the new page matches present wikidata ". Changeset is also tagged with tags that mark it as automatic, provide link to discussion approving edit, link repository with source code etc
Discussion
Approved by Polish OSM community at https://forum.openstreetmap.org/viewtopic.php?id=59649
Repetition
This is reoccurring edit and may be made as soon as new redirects appear. At this moment triggering new edit requires human intervention and review so exact schedule is not predictable and bot may stop running at any moment.
Opt-out
Please write at https://forum.openstreetmap.org/viewtopic.php?id=59649 .