PrimaryKey inherited from CDIFDataStructure
DiscoveryDataDescriptionStructure::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
Primary key of the dataset: a cdif:Key whose cdif:isComposedOf is an ordered list of ComponentPosition entries, each indexing the InstanceVariable at that position in the key.
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). CDIFDefinitionThe primary identifier for the dataset; other identifiers should be listed in the sameAs field. Schema.org has three ways of encoding identifiers-- a text description, a URL, or by using the schema:PropertyValue field. The Science on Schema.org guidance strongly recommends using the PropertyValue approach. see https://github.com/ESIPFed/science-on-schema.org .... Dataset.md#identifier. Ideally, for any given data provided they would provide identifiers either all as strings or all as identifier_type. Scope@id. |
Associations
| Role | Target | Multiplicity | Kind |
|---|---|---|---|
| hasPrimaryKey | ← Dataset | [0..1] | composition |
| isComposedOf | → ComponentPosition | [1..*] | composition |
| isComposedOf | → RepresentedVariable | [1..*] | association |
| hasPrimaryKey | ← DataStructure | [0..1] | composition |
| hasPrimaryKey | ← DimensionalDataStructure | [0..1] | composition |
| hasPrimaryKey | ← LongDataStructure | [0..1] | composition |
| hasPrimaryKey | ← WideDataStructure | [0..1] | composition |
| references | ← ForeignKey | [0..1] | association |