Shared models
The concept of "shared models" has been introduced in the Aspect Model Editor to support you defining model parts, which can be reused in multiple other models.
In case you want to extract a part of an Aspect Model graph into a "shared model" please make sure to delete the Aspect element from the model. Creating "shared models" proves advantageous, particularly when developing broadly defined elements for use in various Aspect Models. |
After deleting the Aspect element, you can choose a new file name to describe the resulting "shared model". This file can then be saved in the workspace like any other ttl file.
As a result, you create a valid ttl file, which just does not contain the "Aspect" element. From all other points of view the lifecycle of such a model is similar with the one of an Aspect Model.
![shared model view](../_images/shared-model-view.png)
Such a model can be referenced from multiple other shared models and Aspect Models. As soon as you define such a reference the "shared model" it treated like a dependency from the Aspect Model’s perspective.
When using the "shared model", the process is the same as with references, see Use references.
![use shared models](../_images/use-shared-models.png)
In case you need to convert a "shared model" into an Aspect Model, simply add an Aspect element as the first element in the graph. |