Help:Property constraints portal/Conflicts with/pl

This page is a translated version of the page Help:Property constraints portal/Conflicts with and the translation is 27% complete.

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.

Możliwe działania

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.

Parametry

To ograniczenie ma jeden obowiązkowy i trzy opcjonalne parametry:

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.
replacement property (P6824)
Optional; contains a single property that should have been used instead of all properties listed by item of property constraint (P2305), or no value Help if no alternative property should exist..
If there are multiple properties specified by item of property constraint (P2305) which should have different values for replacement property (P6824) then this constraint will need to be split into multiple statements.
replacement value (P9729)
Optional; specifies a single alternative value that should be used, or no value Help if no alternative value should exist.
If there are multiple values specified by item of property constraint (P2305) which should have different values for replacement value (P9729) then this constraint will need to be split into multiple statements.


Przykłady

Przykład 1

Przykładowe ustawienie dla author (P50). Znaczenie tego ustawienia jest następujące:

  • 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

Przykład 2

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

Szablon

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.

constraint “conflicts-with constraint (Q21502838)” declaration error: “Module:Constraints/search:24: attempt to index a nil value”.

Listy

Lists of properties which are set conflicts-with constraint.