eclipse-esmf / esmf-aspect-model-editor

Manage Aspect Models visually — create, validate, create artefacts, persist file based
https://eclipse-esmf.github.io/ame-guide/introduction.html
Mozilla Public License 2.0
22 stars 7 forks source link

[Task] Allow loading model with broken/missing references to same namespace #108

Open chris-volk opened 1 year ago

chris-volk commented 1 year ago

When loading an aspect model that includes missing references to the same namespace, prompt the user "References x,y,z to same namespace are missing. Cancel loading the model to include the models with the missing references in workspace/package first and then try again. Or Truncate&Proceed if you are sure that you want to remove these references from the model and recreate these manually. (Warning, this will change your aspect model, it will no longer be based on the defined references.) [Cancel | Truncate&Proceed(!)]

Truncate shall EITHER remove the references OR (caution with integration afterwards) add stub elements with the provided names in the references resulting in e.g.

<<<:position a samm:Property ; samm:preferredName "position"@en ; samm:description "Indicates a position"@en .

OR

<<<:position a samm:Property ; samm:preferredName "position"@en ; samm:description "Indicates a position"@en . :SpatialPositionCharacteristic a samm:Characteristic .

chris-volk commented 1 year ago

The concern with realizing this issue is that users may just truncate and not read the caveat and notification message, resulting in multiple versions of Aspect Models that use AND don't use references to elements that shall be reused across entire models. This feature may hence lead to a segregated landscape of Aspect Models and thereby reduce the quality of the namespaces.