Automated edits/pangoSE

From OpenStreetMap Wiki
Jump to navigation Jump to search

Key:image

There are serious problems with the use of this key in the database.

I recently started discussing the problems related to urls and File:filename.* that links to wikimedia_commons using the tag. See Talk:Key:image#Discourage_linking_to_commons_files_and_migrate_all_File:filename..2A_values_and_direct_urls_to_wikimedia_commons and tagging.

Algorithm 1

There are some image= tags that link to multiple images separated by ";". These will not be touched. (if a ; is found in the url this algorithm will skip it)

There are some elements like https://www.openstreetmap.org/node/674919702 that both link to a commons category with wikimedia_commons= and an additional image= that links to one of those images. I will not touch this as it would probably be best to introduce new tags commons_image and commons_category for this usecase like Yurik did in the tagging discussion.

There are some urls that link to a category and the media viewer. This is not always working (see [1]) but will not be touched by this edit as there have not been a discussion of this practice yet to my knowledge.

Algorithm 2

Based on suggestions by Yurik of separating the file and category references.

Note commons_file could also link to a video.

There are some image= tags that link to multiple images separated by ";". These will not be touched. (if a ; is found in the url this algorithm will skip it)

There are some elements like https://www.openstreetmap.org/node/674919702 that both link to a commons category with wikimedia_commons= and an additional image= that links to one of those images. These will be changed to commons_file and commons_category.

There are some urls that link to a category and the media viewer. This is not always working (see [2]) but will not be touched by this edit as there have not been a discussion of this practice yet to my knowledge.

Affected features

This edit will affect about 80,000 elements in the database. There are >80,000 image= tags with links to wikimedia commons where 50,000 of them is in Germany alone.

Execution

Changesets will be kept small ie. country size bbox maximum. For Germany there are ~50150 so there I will keep the bbox region sized.

I will use JOSM to make the changes using find/replace.

Discussion