-
Notifications
You must be signed in to change notification settings - Fork 1
Home
|
|
- Introduction
UML (unified modelling language) provides a set of standardized diagrammatic notations to conceptualize a system design. UML can be extended through "profiles", allowing to customize basic UML notations for specific tasks. Profiles consist mainly of a collection of "stereotypes", used to tag UML elements, allowing to apply specific constraints to these elements.
An ontology can be modelled in a UML class diagram using the provided profile: classes, attributes and associations can be tagged using the stereotypes defined in the profile. These stereotypes are documented in the section "Supported stereotypes". Example models are provided in the directory test/testdata (see section "Prerequisites" for how to open the files).
- Installation
- Usage
- ODM Profile
Before you start modelling, you should load the profile in your UML editor.
e.g. in ArgoUML:
- Launch ArgoUML and go to Edit -> Settings -> Profiles (on OSX, this is ArgoUML -> Preferences -> Profiles)
- Click on Add and specify your _profiles_ directory.
- Click on "refresh list" (or close and relaunch ArgoUML and go back to Edit -> Settings -> Profiles)
- ArgoUML should have listed the new profile. Add it to the defaults profiles.
- You can now load one of the test ontologies provided in test/testdata/*.zargo
- Creating an ontology
Open ArgoUML and load the profile if you haven't done so already.
Create a new model and record the namespace of your ontology.
- Creating a class
Add a class. Make sure the class is selected. Open the "stereotypes" tab and apply the "OntClass" stereotype.
- Adding data properties
- Shortcut
- Adding data properties
- Adding object properties
- Inheritance
- Converting the model to an ontology
cd UML-ODM-to-OWL-XML
odm2owl.sh inputFile.zargo outputFile.rdfThe result is an ontology in RDF/XML format, that can be opened in e.g. Protege.
- Supported stereotypes
| UML Stereotype | UML Base Class | Transformed into OWL | | ------------------- | --------------------- | -------------------- | | OntClass | Class | owl:Class | | ObjectProperty | Class | owl:ObjectProperty | | DatatypeProperty | Class | owl:DatatypeProperty | | range | Association, Attribute | rdfs:range | | domain | Association, Attribute | rdfs:domain |
ODM1.xmi provides the following data types
- boolean
- dateOWL
- double
- integer
- string
- References
Gaševic, D., Djuric, D. and Devedžic, V., 2009. The Ontology UML Profile. In Model Driven Engineering and Ontology Development (pp. 235-243). Springer Berlin Heidelberg.
Object Management Group, 2009. Ontology Definition Metamodel. Available at http://www.omg.org/spec/ODM/1.1/ (accessed 14 September 2017)
Studer, R., Benjamins, V.R. and Fensel, D., 1998. Knowledge engineering: principles and methods. Data & knowledge engineering, 25(1-2), pp.161-197.