| This is the documentation page for a particular constraint type. SeeHelp:Property constraints portal for a general overview of property constraints. |

distinct-values constraint(Q21502410) specifies that values for this property should be unique across all of Wikidata, and no other entity should have the same value in a statement for this property.
Almost all (external) identifier properties have such a constraint, since anISBN-13(P212) orFreebase ID(P646) should uniquely identify an entity. Other examples includeflag(P163) andanthem(P85). AlsoCommons category(P373) should be unique because those categories typically have a unique Commons sitelink.
Properties with this constraint usually also havesingle-value constraint(Q19474404).
If noconstraint scope(P4680) is specified, this constraint is only checked on the main value of a statement.
A qualifier can be defined asseparator(P4155). This allows the same value on multiple entities as long as the separator qualifier is different.
There are several possible ways to address a violation of this constraint:
This constraint has one optional parameter:
| property constraint |
| ||||||||||
| add value | |||||||||||
When the constraint is set to the property, the following template is automatically displayed in the property talk page. The template is created byModule:Constraints usingTemplate:Constraint, invoked fromTemplate:Property documentation. Translations are defined atModule:i18n/constraints.
Cases where uniqueness should or could be evaluated differently and ways to handle such exceptions:
Lists of properties which are set distinct values constraint.