مساعدة:بوابة قيود الخواص/بند
This is the documentation page for a particular constraint type. See Help:Property constraints portal for a general overview of property constraints. |
تحدد 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 |
| ||||||||||||||||||||||||||||||||||||
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.
property constraint |
| ||||||||||||||||
add value |
Automatic violations fix
KrBot automatically fixes this constraint violations in the following case:
- constraint has single value of property item of property constraint (P2305);
- constraint status (P2316) is set to mandatory constraint (Q21502408);
- fixed item does not have some other values of the property.
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.
List of violations of this constraint: Database reports/Constraint violations/P635#Item P625, SPARQL
Lists
Lists of properties which are set item requires statement constraint.
- Category:Properties with constraints on items using them
- SPARQL query - click the execute button at the linked page to see the query result.