Mappings & transformations
Models built on different standards describe the same subject matter in different ways. A transformation converts a model from one standard into another, and a mapping is the set of rules that does it. This page explains what mappings are and where you meet transformations in ModelDesk.
What a mapping is
Section titled “What a mapping is”A mapping is a reusable set of rules for turning a model built on one metamodel (and standard) into a model built on another. Its rules describe, for example:
- which element type in the target corresponds to a given element type in the source,
- how each attribute value carries across, and
- how relations between elements are reproduced on the other side.
ModelDesk ships with a set of mappings between supported standards, so you do not write mapping rules yourself: you pick a mapping and run it. The rules select source elements using path expressions, a small language for navigating a model. See Path expressions for the details, and Supported standards & formats for the transformations that are available.
Where transformations happen
Section titled “Where transformations happen”Transform on export
Section titled “Transform on export”The most direct way to transform a model is when you export it. In the export dialog you can choose a mapping to convert the model to another standard, then choose a format to download the result in. If you leave the mapping set to None, the model is exported as-is in its own standard.
This produces files. It does not change your model or create a new one in ModelDesk. For the steps, see Transform a model to another standard and Export a model.
Map to a new model
Section titled “Map to a new model”You can also keep the transformed result inside ModelDesk as a model in its own right. The Map action in the Model editor runs a mapping over your model and saves the outcome as a new model in your workspace, built on the target standard.
Mapping is a one-time conversion: after it, the new model and the source are independent models, each with its own history. Use it when you want to continue working on the converted model in ModelDesk, rather than just downloading files. For the steps, see Map a model to a new model.
Related pages
Section titled “Related pages”- Metamodels & standards: the standards a mapping moves between.
- Transform a model to another standard: transform on export, step by step.
- Map a model to a new model: keep the transformed result as a model.
- Path expressions: the language that mapping rules use to select elements.