مساعدة:بوابة قيود الخواص/قيمة فريدة
This is the documentation page for a particular constraint type. See Help:Property constraints portal for a general overview of property constraints. |
يحدد 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 |
| ||||||||||
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.
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.
- Category:Properties with single value constraints
- SPARQL query - click the execute button at the linked page to see the query result.
Notes
- ↑ Help:Property_constraints_portal#Constraint_parameters → exception to constraint (P2303)
- ↑ Help_talk:Property_constraints_portal/Archive_1#separator_for_distinct_values_constraint
- ↑ Wikidata_talk:WikiProject_property_constraints/Archive_2#Distinct_best_value_constraint
- ↑ Wikidata_talk:WikiProject_property_constraints/Archive_2#Distinct_case-insensitive_values
- ↑ Help:Property_constraints_portal#Constraint_parameters → constraint scope (P4680)
- ↑ Help talk:Property constraints portal/Unique value#Unique value per namespace