Structured Primitives
The StructuredPrimitive stereotype is used to mark model classes that represent structured value containers. These classes group multiple primitive attributes (e.g., strings, numbers, enumerations) into a cohesive structure, typically for the purpose of expressing a concept such as a value with unit, a localized string, or a categorized length.
StructuredPrimitives are semantically like primitive types in that:
- They are used as attribute types in other model elements.
- They are not independently identifiable.
- They shall not be referenced from other parts of the model.
- They shall not be an ExtendableElement.
Since they are not independently identifiable and shall not be referenced from other parts of the model, the following is true:
- StructuredPrimitives are compared by value in a diff- or change-scenario and not by ID. Meaning, if all attributes are the same, the object is the same.
- They do not require an object identity in an overall scenario (no IRI/URI).
- In RDF representations those objects can be represented as BNodes.