Help:Property constraints portal/Qualifiers
This is the documentation page for a particular constraint type. See Help:Property constraints portal for a general overview of property constraints. |
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 |
| ||||||||||||
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 |
| ||||||||||||
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.
Qualifiers “start time (P580), end time (P582), end cause (P1534), duration (P2047), replaces (P1365), replaced by (P1366), point in time (P585), together with (P1706), series ordinal (P1545), object has role (P3831), sport (P641), reason for deprecation (P2241), reason for preferred rank (P7452), nature of statement (P5102), latest start date (P8555), earliest date (P1319), earliest end date (P8554), latest date (P1326)”: this property should be used only with the listed qualifiers. (Help) 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.
- Category:Properties with qualifiers constraints
- SPARQL query - click the execute button at the linked page to see the query result.