Help:Property constraints portal/Mandatory qualifiers

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 reply soft green.svg

mandatory qualifier constraint (Q21510856) specifies that some qualifier is mandatory for this property. To limit the set of permitted qualifiers, use allowed qualifiers constraint.

For example, head of state (P35) statements should always have a start time (P580) qualifier.

If the property also has an allowed qualifiers constraint, all the mandatory qualifiers must also be listed as permitted qualifiers there.

This constraint can only be checked on the main value of a statement; if any other constraint scope (P4680) is specified, an error is reported.

Possible actions[edit]

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

  • The most likely case is that the missing qualifier should be added. If the value is not known, it might make sense to use unknown value Help.
  • It’s possible that the statement is a rare, but legitimate exception to the constraint, and nothing should be done.

Parameters[edit]

This constraint has one mandatory parameter:

property (P2306)
Contains the required qualifier. Must contain exactly one property (no value Help or unknown value Help are not allowed). To add multiple required qualifiers, add multiple constraints of this type.

Examples[edit]

Example 1[edit]

Example setting for population (P1082).

property constraint
Normal rank mandatory qualifier constraint Arbcom ru editing.svg edit
property point in time
▼ 0 reference
+ add reference
+ add value

Example 2[edit]

Example setting for solubility (P2177).

property constraint
Normal rank mandatory qualifier constraint Arbcom ru editing.svg edit
property solvent
▼ 0 reference
+ add reference
Normal rank mandatory qualifier constraint Arbcom ru editing.svg edit
property temperature
▼ 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.

Mandatory qualifier “point in time (P585): this property should be used with the listed qualifier. (Help)
Exceptions are possible as rare values may exist.
List of this constraint violations: Database reports/Constraint violations/P1082#mandatory qualifier, SPARQL, SPARQL (new)

Lists[edit]

Lists of properties which are set item mandatory qualifier constraint.