Skip to content

[BUG] SAMM2AASX Generator: wrong generated semanticId for Submodel #794

@BirgitBoss

Description

@BirgitBoss

How: List of performed steps

A)

@prefix bp: <urn:samm:io.BatteryPass.Circularity:1.2.0#> .
@prefix : <urn:samm:io.admin-shell.idta.batterypass.circularity:1.2.0#> .

:Circularity a samm:Aspect ;

B)

@prefix : <urn:samm:io.admin-shell.idta.batterypass.circularity:1.2.0#> .
@prefix bp: <urn:samm:io.BatteryPass.Circularity:1.2.0#> .

:Circularity a samm:Aspect ;

Expected Result: in both cases the generated semanticId for the Submodel "Circularity" should be
urn:samm:io.admin-shell.idta.batterypass.circularity:1.2.0#Circulariy

The order of the @prefix is not relevant for the resulting semanticIds.

However, in case B) the generated semanticId is

urn:samm:io.BatteryPass.Circularity:1.2.0#Circularity

In general it does not seem to be the last @prefix but there seems to be another selection rule behind... perhaps the namespace of the first property that is declared in the samm:Aspect?

Used CLI:

samm-cli - Semantic Aspect Meta Model Command Line Tool
Version: 2.10.3
Build date: 2025-05-08T14:47:57Z
Git commit: 192116d12a1a4c9df4e03758a6b56dfa80132cf3

Metadata

Metadata

Assignees

No one assigned

    Labels

    acknowledgedHas been viewed by one of the maintainers and is ready for further work, discussion or other steps.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions