Help:Property constraints portal/Conflicts with

Other languages:
Cymraeg • ‎Deutsch • ‎English • ‎Esperanto • ‎français • ‎polski • ‎svenska • ‎русский • ‎српски / srpski • ‎українська • ‎العربية • ‎中文 • ‎日本語
Pictogram voting x.svg

conflicts-with constraint (Q21502838) specifies that items using this property should not have a certain other statement. It is the opposite of item requires statement constraint (Q21503247).

For example, items with author (P50) should not have statements sex or gender (P21) or instance of (P31) human (Q5).

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.

Possible actionsEdit

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.

ParametersEdit

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.

ExamplesEdit

Example 1Edit

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).
property constraint
  conflicts-with constraint
property instance of
item of property constraint human
Wikimedia disambiguation page
software
0 references
add reference


add value

Example 2Edit

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).

property constraint
  conflicts-with constraint
property MusicBrainz artist ID
0 references
add reference


add value

TemplateEdit

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.

 
Conflicts with “instance of (P31): human (Q5), Wikimedia disambiguation page (Q4167410), software (Q7397), fictional human (Q15632617), human settlement (Q486972): this property must not be used with the listed properties and values. (Help)
Exceptions are possible as rare values may exist.
List of this constraint violations: Database reports/Constraint violations/P50#Conflicts with P31, SPARQL, SPARQL (new)

ListsEdit

Lists of properties which are set conflicts-with constraint.