Help:Ограничения свойств/Требуемое утверждение для целевого значения

From Wikidata
Jump to navigation Jump to search
This page is a translated version of the page Help:Property constraints portal/Target required claim and the translation is 52% complete.

Значение «value-requires-statement constraint (Q21510864)» указывает, что элементы значений для этого свойства должны содержать некоторые другие утверждения. Эквивалент ограничения для элемента, «содержащего» утверждение — требуемое утверждение для элемента.

Например, в качестве значений для свойства «screenwriter (P58)» могут использоваться только элементы, у которых задано свойство «sex or gender (P21)», а также имеется утверждение occupation (P106)screenwriter (Q28389).

Если constraint scope (P4680) не определена, это ограничение проверяется везде.

Возможные действия

На нарушение этого ограничения можно реагировать одним из следующих способов:

  • Наиболее вероятный случай — когда к элементу, на который указывает значение, должны быть добавлены недостающие утверждения.
  • Возможно, текущий элемент вообще не должен содержать такого утверждения, и это утверждение следует удалить.
  • It’s possible that the wrong value item was chosen, e.g. The Beatles (Q3295515) instead of The Beatles (Q1299), and that the statement should be updated.
  • Возможно, что элемент является редким, но обоснованным исключением из ограничения, и нет необходимости что-либо делать.


Параметры

Это ограничение имеет один обязательный и один необязательный параметр:

property (P2306)
Contains the property of the missing statement. Must contain exactly one property (no value Help or unknown value Help is not permitted). To add multiple required statements, add multiple constraints of this type.
item of property constraint (P2305)
Optional; contains the allowed values. no value Help and unknown value Help are interpreted literally, like any normal value (statements with no value Help or unknown value Help are only allowed if these special values are also given in the allowed values).
If this parameter is missing, the constraint only requires that a statement with the given property exists, but places no restriction on the value of that statement.

Examples

Example setting for film editor (P1040).

property constraint
Normal rank value-requires-statement constraint
property sex or gender
0 references
add reference
Normal rank value-requires-statement constraint
property occupation
item of property constraint film editor
video editor
0 references
add reference


add value

Template

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.

Property “sex or gender (P21)” declared by target items of “PROPERTY CONSTRAINTS PORTAL/TARGET REQUIRED CLAIM/RU (Property constraints portal/Target required claim/ru): If [item A] has this property with value [item B], [item B] is required to have property “sex or gender (P21)”. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). Known exceptions: Cum Sexy Cum (Q111364989)
List of violations of this constraint: Database reports/Constraint violations/P1040#Target required claim P21, SPARQL, SPARQL (by value)

Lists

Lists of properties which are set value requires statement constraint.