admin-shell-io / questions-and-answers

This repository aims for providing answers to often asked questions in the context of the Asset Administration Shell.
https://admin-shell-io.github.io/questions-and-answers/
Creative Commons Attribution 4.0 International
25 stars 6 forks source link

Why is it possible to provide multiple keys in a ModelReference, e.g. when referencing a submodel from the AssetAdministrationShell? #99

Closed JoergNeidig closed 9 months ago

JoergNeidig commented 1 year ago

What does it mean, if a ModelReference has multiple keys? Is there one "main" key? If so, is it the first one in the list? Usually keys/ids are used to identify an element. Does it even make sense to have more than one (sometimes it might make sense if the reference stores semantic information and no IDs)?

StenGruener commented 1 year ago

maybe Section 5.3.10.4 Constraints is relevant

arnoweiss commented 9 months ago

For referencing a Submodel from an AAS, you indeed just need one key. However, if referring to a SubmodelElement from a ReferenceElement, you need to concatenate more keys to the unique id to construct the path to the desired SubmodelElement. See example

A bunch of the examples online are wrong unfortunately and the whole referencing mechanism in the AAS is at best clumsy.

StenGruener commented 9 months ago

@JoergNeidig 2024-01-15 is ist sill relevant, or can it be merged with #103

JoergNeidig commented 9 months ago

Topic is still relevant, but should be merged with #103, because good examples could answer both questions.

StenGruener commented 9 months ago

Goes into #103