مساعدة:بوابة قيود الخواص/معكوس
This is the documentation page for a particular constraint type. See Help:Property constraints portal for a general overview of property constraints. |
يحدد inverse constraint (Q21510855) أن الخاصية لها خاصية عكسية، ويجب أن تحتوي قيم الخاصية على بيان بخاصية عكسية تشير إلى العنصر الأصلي.
على سبيل المثال، لـmother (P25) الخاصية العكسية child (P40): إذا كان البيان Jesus (Q302)mother (P25)Mary (Q345) موجودا، فيجب أيضا وجود البيان المعكوس Mary (Q345)child (P40)Jesus (Q302).
إذا لم يتم تحديد constraint scope (P4680)، يتم فحص هذا القيد فقط على القيمة الرئيسية لبيان، هذا هو أيضا النطاق الوحيد المدعوم حاليا.
الإجراءات الممكنة
هناك عدة طرق ممكنة لمعالجة انتهاك هذا القيد:
- تتمثل الحالة الأكثر ترجيحا في ضرورة إضافة البيان العكسي إلى العنصر الآخر، حيث يكون مفقودا، حيث قد يكون هناك العديد من مثل هذه الحالات، هناك طريقة متكررة للقيام بذلك بواسطة بوت.
- من المحتمل ألا يحتوي هذا العنصر على البيان مطلقا، وأنه تجب إزالة البيان.
- من الممكن أن يكون هذا البند استثناء نادرا لكن شرعيا للقيود، ولا يجب فعل أي شيء.
الوسائط
لهذا القيد وسيط إلزامي واحد:
- property (P2306)
- لها خاصية عكسية، يجب أن تحتوي على خاصية واحدة تماما (لا يُسمَح بـno value Help أو unknown value Help).
Example
Example setting for mother (P25).
property constraint |
| ||||||||||||
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.
if [item A] has this property (mother (P25)) linked to [item B],
then [item B] should also have property “child (P40)” linked to [item A]. (Help)
List of violations of this constraint: Database reports/Constraint violations/P25#inverse, SPARQL
Lists
Lists of properties which are set inverse constraint.
- Category:Properties with inverse constraints
- SPARQL query - click the execute button at the linked page to see the query result.