Ayuda: portal de restricciones de propiedad/valor único

From Wikidata
Jump to navigation Jump to search
This page is a translated version of the page Help:Property constraints portal/Unique value and the translation is 45% complete.

La distinct-values constraint (Q21502410) especifica que los valores de esta propiedad deben ser únicos en todos los Wikidata, y ningún otro elemento debe tener el mismo valor en una declaración para esta propiedad.

Casi todas las propiedades del identificador (externo) tienen una restricción de este tipo, ya que ISBN-13 (P212) o Freebase ID (P646) deben identificar de forma única a una entidad. Otros ejemplos incluyen flag (P163) y anthem (P85). También Commons category (P373) debe ser única, puesto que, normalmente, esas categorías tienen un único enlace de sitio a Commons.

Las propiedades con esta restricción usualmente también tienen single-value constraint (Q19474404)

Si no se especifica constraint scope (P4680), esta restricción solo se verifica en el valor principal de una declaración.

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

Posibles acciones

Hay varias formas posibles de abordar una violación de esta restricción:

  • Es posible que los elementos en conflicto sean duplicados y se deban combinar.
  • Es posible que el valor de la propiedad sea erróneo en uno de los elementos en conflicto (por ejemplo, un error tipográfico, dígitos transpuestos accidentalmente, etc.) y debería ser fijo.
  • 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.
  • Es posible que los elementos en conflicto sean una excepción rara, pero legítima a la restricción, y no se debe hacer nada.

Parámetros

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.

Ejemplo

property constraint
Normal rank distinct-values constraint
0 references
add reference


add value

Plantilla

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

Listas

Lists of properties which are set distinct values constraint.

Notes