Slot: unique_keys
A collection of named unique keys for this class. Such unique keys may be spread over several slots, which is why they 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.
- Names in code:
uniqueKeys(Scala, Java),unique_keys(TypeScript, Python, Rust, GraphQL) - URI:
linkml:unique_keys(https://w3id.org/linkml/unique_keys) - Range: unique_key
- Cardinality: 0..*
- Inlined: yes
- Exact mappings:
owl:hasKey - See also:
https://linkml.io/linkml/schemas/constraints.html#unique-keys,linkml:key,linkml:identifier - Subsets: SpecificationSubset, BasicSubset, RelationalModelProfile
Where you can use it
Section titled “Where you can use it”- In a class, under:
Classes
Section titled “Classes”Classes that have this slot, with the range and cardinality it has in each.
| Class | Range | Cardinality |
|---|---|---|
| class_definition | unique_key | 0..* |