Should we consider adding some sort of mechanism for enforcing the uniqueness of statements in the Statements Panel on the Filepage?
Problem
Currently the user can do this:
- Navigate to some uploaded file's File page
- Add a statement like: "Depicts Taj Mahal (American Blues Musician)": Q353023
- Add another identical statement (also using Q353023)
- Publish their changes, so that both (identical) statements appear separately.
Furthermore, they can then set one of these identical statements to "Prominent"; it re-orders properly, but both statements remain. So it will be pretty easy from time of launch for users to add inconsistent data, even with good intentions.
Screenshot showing both prominent and non-prominent version of the same statement, on Test Commons:
Proposed Solution
We want to allow multiple statements which reference the same entity, in principle, because down the road more features may be added which will allow those statements to be differentiated.
But it would probably be good to consider adding a means to enforce statement "uniqueness" programmatically, no matter what level of qualifier support is present. Ideally this should be handled at the level of the data model, not in the UI – introduce a Statement class which has comparison methods, etc.
Depicts Q123 == Depicts Q123: identical statement
Depicts Q123 != Depicts Q123, Qualifier: P456 Q789: not identical
We should test for equality at whatever level of "depth" we support at the given time, and redundant/identical statements should be auto-pruned on publish. In a perfect world, anyway.

