Skip to content

Slot: unique_keys

A collection of named unique keys for this class. Such unique keys may be spread over several slots, which is why there are also called "compound keys". A unique key uniquely identifies instances of the class within a given container, meaning there cannot be two (or more) instances of the class with the same values for all the slots that make up the unique key.

URI: linkml:unique_keys

Applicable Classes

Name Description Modifies Slot
ClassDefinition an element whose instances are complex objects that may have slot-value assig... no

Properties

Type and Range

Property Value
Range UniqueKey
Domain ClassDefinition
Domain Of ClassDefinition

Cardinality and Requirements

Property Value
Multivalued Yes

In Subsets

Comments

  • Not to be confused with a "singular unique key", which is defined by means of the key slot, or with an "identifier", which is defined by means of the "identifier" slot. Compound keys, singular unique keys, and identifiers all create a unicity constraint, but singular unique keys and identifiers have additional effects that compound keys do not have.

See Also

Identifier and Mapping Information

Schema Source

Mappings

Mapping Type Mapped Value
self linkml:unique_keys
native linkml:unique_keys
exact owl:hasKey

LinkML Source

name: unique_keys
description: A collection of named unique keys for this class. Such unique keys may
  be spread over several slots, which is why there are also called "compound keys".
  A unique key uniquely identifies instances of the class within a given container,
  meaning there cannot be two (or more) instances of the class with the same values
  for all the slots that make up the unique key.
comments:
- 'Not to be confused with a "singular unique key", which is defined by means of the
  `key` slot, or with an "identifier", which is defined by means of the "identifier"
  slot. Compound keys, singular unique keys, and identifiers all create a unicity
  constraint, but singular unique keys and identifiers have additional effects that
  compound keys do not have.

  '
in_subset:
- SpecificationSubset
- BasicSubset
- RelationalModelProfile
from_schema: https://w3id.org/linkml/meta
see_also:
- https://linkml.io/linkml/schemas/constraints.html#unique-keys
- linkml:key
- linkml:identifier
exact_mappings:
- owl:hasKey
rank: 1000
domain: class_definition
domain_of:
- class_definition
range: unique_key
multivalued: true
inlined: true