مساعدة:بوابة قيود الخواص/إحدى - Wikidata


Article Images

Other languages:

This is the documentation page for a particular constraint type. See Help:Property constraints portal for a general overview of property constraints.

يحدد one-of constraint (Q21510859) أنه لا يُسمَح إلا بقيم معينة لخاصية. عكسها هو none-of constraint (Q52558054).

على سبيل المثال، القيم الصالحة الوحيدة لـdriving side (P1622) هي left (Q13196750) وright (Q14565199).

إذا لم يتم تحديد constraint scope (P4680)، فسيتم فحص هذا القيد في كل مكان.

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 driving side (P1622) statement will see the allowed values (left (Q13196750), right (Q14565199)) as suggestions. (Other values can still be added by searching for them or pasting their item IDs.)

الإجراءات الممكنة

هناك عدة طرق ممكنة لمعالجة انتهاك هذا القيد:

  • من الممكن أن تكون القيمة خاطئة، ويجب استخدام إحدى القيم المسموح بها بدلا من ذلك، على سبيل المثال left (Q13196750) (اتجاه) بدلا من left-wing (Q164597) (مصطلح سياسي، له نفس التسمية في بعض اللغات).
  • من الممكن أن يكون البيان غير صحيح وتجب إزالته.
  • من الممكن أن يكون هذا البند استثناء نادرا لكن شرعيا للقيود، ولا يجب فعل أي شيء.

الوسائط

لهذا القيد وسيط إلزامي واحد:

item of property constraint (P2305)
يحتوي على القيم المسموح بها، يتم تفسير no value Help وunknown value Help حرفيا، مثل أية قيمة عادية (يُسمَح باستخدام بياناتno value Help أو unknown value Help فقط إذا تم إعطاء هذه القيم الخاصة أيضا في القيم المسموح بها).

Examples

Example 1

Example setting for driving side (P1622).

property constraint
  one-of constraint edit
item of property constraint left
right
constraint status mandatory constraint

0 reference

add reference

add value

Example 2

Example setting for disabled accessibility (P2846).

property constraint
  one-of constraint edit
item of property constraint wheelchair accessible
wheelchair accessible with help
wheelchair inaccessible

0 reference

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.

One of left (Q13196750), right (Q14565199): value must be one of the specified items. Please expand list if needed. (Help)

List of violations of this constraint: Database reports/Constraint violations/P1622#One of, values statistics, hourly updated report, SPARQL

Lists

Lists of properties which are set one-of constraint.

 
Popular
Others
Constraint violation
Complex constraints