MDE:Main
From Semantic Multimedia Wiki
Mapping OWL 2 DL to UML 2
UML2 is a very popular graphical language in the world of software architecture and model-driven developement. With the Ontology Definition Metamodel (ODM) the Object Management Group (OMG), the organization behind UML2, has released and extension to the UML2 Class Diagram for graphical ontology design. The ODM provides metamodels for multiple ontology languages like OWL, Common Logic (CL) or Topicmaps (TM). All these extensions are realized as UML2 Profiles providing stereotype to denote the ontology language nature of the single UML2 elements of a model. We want to use such a extension to use OWL 2 in a model-driven development process for ontology APIs. The current version of the ODM is capable of representing OWL 1 DL ontologies for OWL 2 DL ontologies an extension is needed. Serveral OWL expression have no direct counterpart in UML2, for that the ODM provides more complex models to represent such OWL expressions. Some of these models in the ODM are not suitable for the intended model-driven development process. We will provide mapping for the full OWL 2 DL vocabulary as far as it is useful in a model-driven development process and provide new models for those not suitable to our process.
| OWL 2 Expression | UML 2 Ontology Model | Comment |
|---|---|---|
| owl:AllDifferent | <<allDifferent>> stereotyped UML::constraint | |
| owl:AllValuesFrom | UML::GeneralizationSet and property redefinition | like in the ODM |
| owl:Annotation | <<annotation>> stereotyped UML::Element | |
| owl:AnnotationProperty | <<annotationProperty>> stereotyped UML::Class or UML::Association | |
| owl:backwardCompatible | <<backwardCompatible>> stereotyped UML::Constraint | |
| owl:cardinality | multiplicities on UML::Properties or UML::Associations | |
| owl:Class | <<owlClass>> stereotyped UML::Class | |
| owl:complementOf | <<complementOf>> stereotyped UML::Constraint |

