When adding an image on Wikidata, it would be nice to have a gadget able to suggest to add the depicted (P180) on Wikimedia Commons too.
Image (P18) on Wikidata | → | Depicted (P180) on Wikimedia Commons |
---|---|---|
→ | ||
Suggested pseudo-code
- (base case) assume that the depicted cannot be proposed
- after a Wikidata user saves an image (P18 statement)
- query image statements from Wikimedia Commons (API wbgetclaims: example request for this file)
- check if the image already has at least one "depicted" (P180) statement
- if not:
- ✅ assume that the depicted can be proposed in Wikimedia Commons
- if yes (this code branch can be omitted in the first version):
- check whenever none of the depicted entities is: the original entity (e.g. Barack Obama) or something even more specific (e.g. about cats, let's say kitten, Tibetan cat, etc. · example SPARQL query to find more specific elements)
- ✅ assume that the depicted can be proposed in Wikimedia Commons
- check whenever none of the depicted entities is: the original entity (e.g. Barack Obama) or something even more specific (e.g. about cats, let's say kitten, Tibetan cat, etc. · example SPARQL query to find more specific elements)
- if not:
- check if the image already has at least one "depicted" (P180) statement
- query image statements from Wikimedia Commons (API wbgetclaims: example request for this file)
When we know that the depicted can be proposed in Wikimedia Commons, I expect an OOUI simple message asking something like:
How does this image represent [ENTITY LABEL]?
Buttons: [Normally, or not particularly] · [Main subject]
Then save the statement as not prominent (rank = normal) or (rank = preferred).
(We can also think of a vice-versa gadget from Wikimedia Commons, but this Task is about designing a gadget for Wikidata)
What do you think about?