Help:Property constraints portal/Target required claim

From Wikidata
Jump to navigation Jump to search
Translate this page;
Other languages:
Deutsch • ‎English • ‎français • ‎polski • ‎русский • ‎српски / srpski • ‎العربية

This page contains changes. Please contact a translation admin to mark them for translation.


Other languages:
Deutsch • ‎English • ‎français • ‎polski • ‎русский • ‎српски / srpski • ‎العربية
Pictogram voting arrow.svg

value requires statement constraint (Q21510864) specifies that values for this property should have a certain other statement. The equivalent constraint for the item that contains the statement is item requires claim.

For example, values of screenwriter (P58) statement should also have a statement for sex or gender (P21) as well as the statement occupation (P106)  screenwriter (Q28389).

If no constraint scope (P4680) is specified, this constraint is checked everywhere.

Possible actions[edit]

There are several possible ways to address a violation of this constraint:

  • The most likely case is that the missing statements should be added to the value item.
  • It’s possible that the current item should not have the statement at all, and that the statement should be removed.
  • It’s possible that the item is a rare, but legitimate exception to the constraint, and nothing should be done.

Parameters[edit]

This constraint has one mandatory and one optional parameter:

property (P2306)
Contains the property of the missing statement. Must contain exactly one property (no value Help or unknown value Help is not permitted). To add multiple required statements, add multiple constraints of this type.
item of property constraint (P2305)
Optional; contains the allowed 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 only allowed if these special values are also given in the allowed values).
If this parameter is missing, the constraint only requires that a statement with the given property exists, but places no restriction on the value of that statement.

Examples[edit]

Example setting for film editor (P1040).

property constraint
Normal rank value requires statement constraint Arbcom ru editing.svg edit
property sex or gender
▼ 0 reference
+ add reference
Normal rank value requires statement constraint Arbcom ru editing.svg edit
property occupation
item of property constraint film editor
video editor
▼ 0 reference
+ add reference
+ add value

Template[edit]

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.

Property “sex or gender (P21)” declared by target items of “PROPERTY CONSTRAINTS PORTAL/TARGET REQUIRED CLAIM (Property constraints portal/Target required claim): If [item A] has this property with value [item B], [item B] is required to have property “sex or gender (P21)”. (Help)
Exceptions are possible as rare values may exist.
List of this constraint violations: Database reports/Constraint violations/P1040#Target required claim P21, SPARQL, SPARQL (by value), SPARQL (new)

Lists[edit]

Lists of properties which are set value requires statement constraint.