Skip to content

[QUESTION] What is a cannonical representation for SubmodelElementLists with property value = null? #146

@empwilli

Description

@empwilli

According to meta model, submodel element lists may have a value = null, as value has a cardinality of 0..* (https://industrialdigitaltwin.io/aas-specifications/IDTA-01001/v3.1/spec-metamodel/submodel-elements.html#submodel-element-list-attributes) and the spec additionally forbids e.g. empty json lists. Same holds for XML.

This raises two questions:

  1. For Submodel Instances: Consider a SMT with an optional SubmodelElementList, that may be empty, i.e., a SubmodelElementList with Qualifier SMT/Cardinality of value ZeroToOne with list elements with Qualifier SMT/Cardinality of value ZeroToMany.

If in my Submodel Instance this list is empty. Should I skip the SubmodelElementList element altogether from my submodel, or should I include it, but set its "value" to null?

  1. For Submodel Templates: given, that SubmodelElementLists include significant descriptive information about its item type (valueTypeListElement, typeValueListElement, semanticIdListElement), do I always have to specify a list item in my SMT or not? If I not, is there a "default" SMT/Cardinality qualifier supposed for the items?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions