Help:Property constraints portal/Property Scope Constraint

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
  property scope constraint
property scope as main value
0 references
add reference
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.

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.

Scope is as qualifier (Q54828449), as reference (Q54828450): the property must be used by specified way only (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P1065#Scope, SPARQL

Lists

edit

Lists of properties which are set scope constraint.