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

This page is a translated version of the page Help:Property constraints portal/Unique value and the translation is 35% complete.

يحدد distinct-values constraint (Q21502410) أن قيم هذه الخاصية يجب أن تكون فريدة عبر كل ويكي بيانات، ولا يجب أن تكون لأي عنصر آخر نفس القيمة في بيان لهذه الخاصية.

تقريبا كل خصائص المعرفات لديها مثل هذا القيد; حيث يجب أن يحدد ISBN-13 (P212) أو Freebase ID (P646) بشكل فريد كيانا، تشمل الأمثلة الأخرى flag (P163) وanthem (P85).

عادةً ما يكون للخواص التي تتضمن هذا القيد $19474404.

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

A qualifier can be defined as separator (P4155). This allows the same value on multiple entities as long as the separator qualifier is different.

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

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

  • من المحتمل أن تكون العناصر المتعارضة مكررة ويجب دمجها.
  • من الممكن أن تكون قيمة الخاصية خاطئة على أحد العناصر المتضاربة (مثل خطأ مطبعي، وأرقام متحولة بطريق الخطأ، وما إلى ذلك) ويجب إصلاحها.
  • It is possible that a separator (P4155) (or several of them) should be defined for the constraint, to declare that multiple items sharing a value are acceptable as long as they have certain different qualifiers.
  • من الممكن أن يكون هذا البند استثناء نادرا لكن شرعيا للقيود، ولا يجب فعل أي شيء.

الوسائط

This constraint has one optional parameter:

separator (P4155): Contains the separators. May contain one or more properties. If specified, multiple statements with the same value do not constitute a violation of this constraint as long as they have different qualifiers for the properties specified here.

Example

property constraint
  distinct-values constraint
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.

Distinct values: this property likely contains a value that is different from all other items. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P236#Unique value, SPARQL (every item), SPARQL (by value)

Exceptions

Cases where uniqueness should or could be evaluated differently and ways to handle such exceptions:

  • list exceptions as such on property constraints: available [1]
  • indicate that an identifier is shared with another item: not available [2]
  • indicate that an identifier was reassigned: not available
  • distinct best value constraint: not available [3]
  • distinct case insensitive: not available, handling attempted by normalizing values [4]
  • distinct value including uses in references: available [5]
  • define uniqueness per namespace: not available [6]
  • define uniqueness per entity type (e.g. lexeme and item): not available

Lists

Lists of properties which are set distinct values constraint.

Notes