Help:Ограничения свойств/Обязательные квалификаторы
This is the documentation page for a particular constraint type. See Help:Property constraints portal for a general overview of property constraints. |
required qualifier constraint (Q21510856) specifies that some qualifier is required 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 required qualifiers must also be listed as permitted qualifiers there.
Это ограничение проверяется только для основного значения элемента. Если определена любая другая constraint scope (P4680), выводится сообщение об ошибке.
Возможные действия
На нарушение этого ограничения можно реагировать одним из следующих способов:
- 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.
- Возможно, что элемент является редким, но обоснованным исключением из ограничения, и нет необходимости что-либо делать.
Параметры
У этого ограничения один обязательный параметр:
- 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.
Примеры
Пример 1
Example setting for population (P1082).
property constraint |
| ||||||||||||
add value |
Пример 2
Example setting for solubility (P2177).
property constraint |
| |||||||||||||||||||||||
add value |
Шаблон
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/P1082#mandatory qualifier, SPARQL
Списки
Lists of properties which are set item required qualifier constraint.
- Category:Properties with required qualifiers constraints
- SPARQL query - click the execute button at the linked page to see the query result.