مساعدة:بوابة قيود الخواص/بند

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

تحدد item-requires-statement constraint (Q21503247) أن العناصر التي تستخدم هذه الخاصية يجب أن تحتوي على بيان آخر معين، القيد المكافئ للقيمة لبيان هو قيمة تتطلب ادعاء.

على سبيل المثال، يجب أن تحتوي العناصر التي تحتوي على بيان killed by (P157) أيضا على بيانات لـplace of death (P20) وdate of death (P570)، بالإضافة إلى البيان manner of death (P1196)homicide (Q149086).

إذا لم يتم تحديد constraint scope (P4680)، يتم فحص هذا القيد فقط على القيمة الرئيسية لبيان، هذا هو أيضا النطاق الوحيد المدعوم حاليا.

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

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

  • والحالة الأكثر احتمالا هي أن البيانات المفقودة يجب أن تُضَاف إلى البند.
  • من المحتمل ألا يحتوي هذا العنصر على البيان مطلقا، وأنه تجب إزالة البيان.
  • من الممكن أن يكون هذا البند استثناء نادرا لكن شرعيا للقيود، ولا يجب فعل أي شيء.

الوسائط

لهذا القيد وسيط اختياري واحد وواحد إجباري:

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

Examples

Example 1

Example setting for killed by (P157).

property constraint
Normal rank item-requires-statement constraint
property place of death
0 reference
add reference
Normal rank item-requires-statement constraint
property date of death
0 reference
add reference
Normal rank item-requires-statement constraint
property manner of death
item of property constraint homicide
0 reference
add reference


add value

Example 2

Example setting for Quebec cultural heritage directory ID (P633) which is identifier for the cultural heritage of Quebec. So if certain item has this identifier, the item should be in Canada.

Automatic violations fix

KrBot automatically fixes this constraint violations in the following case:

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.

constraint “item-requires-statement constraint (Q21503247)” declaration error: “Module:Constraints/search:24: attempt to index a nil value”.

Lists

Lists of properties which are set item requires statement constraint.