eclipse-esmf / esmf-semantic-aspect-meta-model

Formal and textual specification of the Semantic Aspect Meta Model (SAMM)
https://eclipse-esmf.github.io/samm-specification/snapshot/index.html
Mozilla Public License 2.0
47 stars 9 forks source link

[BUG] `samm:curie` + `samm-c:UnitReference`: Explicitly specify how prefixes are interpreted #252

Closed atextor closed 9 months ago

atextor commented 1 year ago

Describe the bug The samm:curie data type refers to the CURIE specification, which allows definition of CURIES in the form foo:bar, :bar and also bar (i.e., without prefix and colon).

Generally, when samm:curie is used, it is currently not explicitly defined how the curie is resolved (at run time). The spec needs to make clear that the runtime value is to be interpreted as if it appears in the context of the model. It needs to define how leaving out the prefix is to be interpreted (since @base and relative IRIs are not used in Aspect Models), or if it is disallowed altogether.

Specifically, for the samm-c:UnitReference Characteristic, currently only references to SAMM's Unit catalog are allowed:

The runtime payload refers to the unit using its samm:curie, i.e., the unit’s URN’s element name prefixed with unit:.

This information should be made more obvious.

chris-volk commented 12 months ago

@michelu89 , can you please check in the Aspect Model Editor?