Help:Property constraints portal/Property Scope Constraint
This is the documentation page for a particular constraint type. See Help:Property constraints portal for a general overview of property constraints. |
property scope constraint (Q53869507) specifies how to use the property: for the main value of a statement, in a reference or as qualifier. You can specify single usage, for example for the main value of a statement only. Or multiple usage, for example: for the main value and in reference section.
This constraint applies to most properties, e. g. head of government (P6), father (P22), mother (P25), Freebase ID (P646), etc.
Possible actions
[edit]There are several possible ways to address a violation of this constraint:
- It is possible that.... (Someone please write this part)
- It is possible that....
Parameters
[edit]This constraint has one mandatory parameter:
- property scope (P5314)
- Acceptable values are as main value (Q54828448), as qualifier (Q54828449) and as reference (Q54828450). You can specify one or multiple values.
Note Help:Property_constraints_portal#When_constraints_aren’t_checked.
Examples
[edit]Example 1
[edit]property constraint |
| ||||||||||||
add value |
Example 2
[edit]In case where property should only be used as qualifier or in references. This constraint fails only when the property is used directly on items.
property constraint |
| ||||||||||||||
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.
List of violations of this constraint: Database reports/Constraint violations/P1065#Scope, SPARQL
Lists
[edit]Lists of properties which are set scope constraint.
- Category:Properties with scope constraints
- SPARQL query - click the execute button at the linked page to see the query result.
- Worklist of up to 100 properties that are currently missing property scope constraint (Q53869507)