Help:Property constraints portal/Conflicts with
|This is the documentation page for a particular constraint type. See Help:Property constraints portal for a general overview of property constraints.|
If no constraint scope (P4680) is specified, this constraint is only checked on the main value of a statement. This is also the only currently supported scope.
Historically, a “conflicts with” constraint with the same property and a certain set of items was sometimes used to disallow those items. This has been superseded by the “none of” constraint type, which is easier to understand and works not just on statements but also on qualifiers and references.
There are several possible ways to address a violation of this constraint:
- It’s possible that the conflicting statement belongs on a different item, and should be moved.
- It’s possible that the statement with the constraint belongs on a different item, and should be moved.
- It’s possible that the conflicting statement should use a similar, but different property.
- It’s possible that the conflicting statement is incorrect, and should be removed.
- It’s possible that the item is a rare, but legitimate exception to the constraint, and nothing should be done.
This constraint has one mandatory and one optional parameter:
- property (P2306)
- Contains the property of the conflicting statement. Must contain exactly one property (no value Help or unknown value Help is not permitted). To add multiple conflicting statements, add multiple constraints of this type.
- item of property constraint (P2305)
- Optional; contains the conflicting values. no value Help and unknown value Help are interpreted literally, like any normal value (statements with no value Help or unknown value Help are not permitted if these special values are also given in the allowed values).
- If this parameter is missing, the constraint does not allow any statement with the given property, regardless of the value of the statement.
Example setting for author (P50). Meaning of this setting is as follows:
- Item which has author (P50) statement is generally about book, scientific paper and so on. So such item is not instance of human.
- On WikiData, sometimes it is difficult to distinguish item of Wikimedia disambiguation page and "actual" item page, from label alone. This setting prevents such confusion.
- In software items, generally developer (P178) is used, instead of author (P50).
|+ add value|
Example setting for MusicBrainz instrument ID (P1330). This property is for identifiers about music instruments. So the item which has this property statement is about music instrument (piano, guitar), is not item about artist (Mariah Carey, John Denver). So such item should not have MusicBrainz artist ID (P434).
|+ 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 by Module:Constraints using Template:Constraint, invoked from Template:Property documentation. Translations are defined at Module:i18n/constraints.
Lists of properties which are set conflicts-with constraint.
- Category:Properties with conflicts with constraints
- SPARQL query - click the execute button at the linked page to see the query result.