OpenRefine/CommonsExtension

Prevent users from uploading and give warnings during upload if certain basic metadata and Wikitext criteria aren't met

Opened this issue · 4 comments

I'm checking some recent uploads with OpenRefine to Wikimedia Commons and some users keep these uploads extremely minimal.

This upload for instance doesn't include any structured data and Wikitext except for a license. This is not sufficient according to Wikimedia Commons guidelines; the file should at least have a set of minimal structured data statements and/or a minimal infobox template in Wikitext.

This is clearly explained in the current how-to - but not every user is aware of, or reads, these guidelines.

To prevent users from doing such (too minimal) uploads in the future, OpenRefine should provide warnings and probably even prevent uploads if minimal conditions aren't met.

Checks can be done for

  • Files not having at least the minimally required structured data statements
  • Files without a == {{int:filedesc}} == header and/or without one of the following bits of infobox template wikitext: {{Information}} – default template meant especially for photographs created by users.
    {{Artwork}} – for paintings, artworks and artifacts held by museums and other GLAM institutions
    {{Photograph}} – for photographs held by museums and other GLAM institutions
    {{Art photo}} – for photographs of artworks with more fields for photographer metadata
    {{Book}} – for books
    {{Map}} – for maps
    {{Musical work}} – for music files
wetneb commented

We could have this in the main repository, because those checks should be enforced regardless of whether the commons extension is installed, no?

wetneb commented

Yes I guess those additional checks could be added by the Commons extension instead of the Wikibase one, it's debatable. I'm not sure which proportion of people doing Commons uploads actually have the Commons extension installed, it would be interesting to have some stats about that.