مساعدة:بوابة محددات الخواص/يتضارب مع

This page is a translated version of the page Help:Property constraints portal/Conflicts with and the translation is 48% complete.

يحدد conflicts-with constraint (Q21502838) أن العناصر التي تستخدم هذه الخاصية لا ينبغي أن تحتوي على بيان آخر معين.العكس الصحيح هو item-requires-statement constraint (Q21503247).

على سبيل المثال، البنود بauthor (P50) لا ينبغي أن تحتوي على بيانات sex or gender (P21) أو instance of (P31)human (Q5).

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

Historically, a “conflicts with” constraint with the same property and a certain set of items was sometimes used to disallow those items. This has been superseded by the “none of” constraint type, which is easier to understand and works not just on statements but also on qualifiers and references.

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

هناك العديد من السبل الممكنة للتصدي لانتهاك هذا القيد:

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

وسائط

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

property (P2306)
يحتوي على خاصية البيان المتعارض، يجب أن يحتوي على خاصية واحدة بالضبط (لا يُسمَح بـno value Help أو unknown value Help is)، لإضافة بيانات متضاربة متعددة; أضف قيودا متعددة من هذا النوع.
item of property constraint (P2305)
اختياريا، يحتوي على القيم المتضاربة، يتم تفسير no value Help وunknown value Help حرفيا، مثل أية قيمة عادية (لا يُسمَح بالبيانات مع no value Help أو unknown value Help إذا تم إعطاء هذه القيم الخاصة أيضًا في القيم المسموح بها).
إذا كان هذا الوسيط مفقودا، فإن القيد لا يسمح بأي بيان بخاصية معينة، بغض النظر عن قيمة البيان.
replacement property (P6824)
Optional; contains a single property that should have been used instead of all properties listed by item of property constraint (P2305), or no value Help if no alternative property should exist..
If there are multiple properties specified by item of property constraint (P2305) which should have different values for replacement property (P6824) then this constraint will need to be split into multiple statements.
replacement value (P9729)
Optional; specifies a single alternative value that should be used, or no value Help if no alternative value should exist.
If there are multiple values specified by item of property constraint (P2305) which should have different values for replacement value (P9729) then this constraint will need to be split into multiple statements.


Examples

Example 1

Example setting for author (P50). Meaning of this setting is as follows:

  • Item which has author (P50) statement is generally about book, scientific paper and so on. So such item is not instance of human.
  • On WikiData, sometimes it is difficult to distinguish item of Wikimedia disambiguation page and "actual" item page, from label alone. This setting prevents such confusion.
  • In software items, generally developer (P178) is used, instead of author (P50).
property constraint
  conflicts-with constraint
property instance of
item of property constraint human
Wikimedia disambiguation page
software
0 reference
add reference


add value

Example 2

Example setting for MusicBrainz instrument ID (P1330). This property is for identifiers about music instruments. So the item which has this property statement is about music instrument (piano, guitar), is not item about artist (Mariah Carey, John Denver). So such item should not have MusicBrainz artist ID (P434).

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 “conflicts-with constraint (Q21502838)” declaration error: “Module:Constraints/search:24: attempt to index a nil value”.

Lists

Lists of properties which are set conflicts-with constraint.