Help:Property constraints portal/Qualifiers

Other languages:
Deutsch • ‎English • ‎Esperanto • ‎français • ‎polski • ‎русский • ‎српски / srpski • ‎العربية • ‎日本語
Pictogram reply soft green.svg

allowed qualifiers constraint (Q21510851) specifies that only a certain set of qualifiers may be used with a property. To specify required qualifiers, use mandatory qualifiers constraint.

For example, the only qualifiers valid for musical conductor (P3300) are start time (P580), end time (P582) and stated as (P1932).

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.

If such a constraint is defined on a property, its values are also used as suggestions when someone adds a new statement with that property. For example, someone adding a new musical conductor (P3300) statement will see the allowed qualifiers, start time (P580), end time (P582) and stated as (P1932), as suggestions when adding a qualifier. (Other properties can still be added by searching for them or pasting their property IDs.)

Possible actionsEdit

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

  • It’s possible that the qualifier is not the correct one to use for the statement, and a similar but different property should be used instead. Check the list of permitted qualifiers for an applicable property.
  • It’s possible that the statement should not have the qualifier at all, and that the qualifier should be removed.
  • It’s possible that the statement is a rare, but legitimate exception to the constraint, and nothing should be done.

ParametersEdit

This constraint has one mandatory parameter:

property (P2306)
Contains the permitted qualifiers. Must contain one or more properties, or a single no value Help to specify that statements for this property should not have any qualifiers. (unknown value Help is not permitted.)

ExamplesEdit

Example 1Edit

For example, valid qualifier for students count (P2196) is point in time.

property constraint
  allowed qualifiers constraint
property point in time
0 references
add reference


add value

Example 2 - no qualifiers allowedEdit

Setting for no qualifiers allowed. no value specify that statements for this property should not have any qualifiers. "no value" is added to statements by clicking on the icon beside the value field that looks like this  .

property constraint
  allowed qualifiers constraint
property no value
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.

  Exceptions are possible as rare values may exist.
List of this constraint violations: Database reports/Constraint violations/P286#Allowed qualifiers, SPARQL, SPARQL (new)

ListsEdit

Lists of properties which are set allowed qualifiers constraint.