PrimaryKey
CDIFDataStructure::Classes::PrimaryKey
Definition
Documentation
Original
Reference
cdi:PrimaryKey
Definition
Definition
Role of a set of data structure components for content linkage purposes
Explanatory notes
Equivalent to primary key in the relational model. A primary key essentially indicates which data structure components correspond to key members. It can also be used in conjunction with foreign key to link data structures and their related datasets.
CDIF
Definition
set of Variables that uniquely identify a data instance, expressed as an ordered list of cdi:ComponentPosition wrappers (unified with cdifKey's cdi:ComponentPosition model).
Scope
Role of an ordered set of cdi:RepresentedVariables that uniquely identify each data instance. Position is implicit in cdif:isComposedOf array order; each membership carries a cdif:position integer.
Diagram
Inheritance
No generalization relationships.
Attributes
| Name | Type | Multiplicity | Description |
|---|---|---|---|
| identifier | XsdAnyUri | [0..1] | DocumentationOriginalReferenceschema:identifier DefinitionThe identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details. ScopeDomain: Thing (https://schema.org/Thing). Range: PropertyValue (https://schema.org/PropertyValue), Text (https://schema.org/Text), URL (https://schema.org/URL). CDIFDefinitionIdentifier for objects requiring short- or long-lasting referencing and management. Scope@id - resolvable URI for this primary key. |
Associations
| Role | Target | Multiplicity | Kind |
|---|---|---|---|
| hasPrimaryKey | ← DataStructure | [0..1] | composition |
| hasPrimaryKey | ← DimensionalDataStructure | [0..1] | composition |
| hasPrimaryKey | ← LongDataStructure | [0..1] | composition |
| hasPrimaryKey | ← WideDataStructure | [0..1] | composition |
| isComposedOf | → RepresentedVariable | [1..*] | association |
| references | ← ForeignKey | [0..1] | association |