Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Launch UML2OWL on Mars
Launch UML2OWL on Mars [message #1700474] Thu, 02 July 2015 18:42
Mohcine Madkour is currently offline Mohcine MadkourFriend
Messages: 1
Registered: July 2015
Junior Member
I have installed the needed tools for UML2OWL, namely EMF v4.x.x, UML2, ATL 3.x. I used the specifications of ATL 3.x instead of AM3 with ATL.2.x, So I didn't install AM3.

This is the code after moidfication:


<project name="UML2OWL" default="transfo">

<!-- Change this value if you want to use another input model -->
<property name="model" value="Museum"/>

<target name="transfo" depends="loadModels">

<atl.loadModel name="umlModel" metamodel="UML" path="UML2OWL/Samples/UMLModels/${model}.uml"/>

<atl.launch path="UML2OWL/UML2OWL.asm">
<inModel name="IN" model="umlModel"/>
<inModel name="UML" model="UML"/>
<inModel name="OWL" model="OWL"/>
<outModel name="OUT" model="owlModel" metamodel="OWL"/>
</atl.launch>

<atl.saveModel model="owlModel" path="UML2OWL/Samples/OWLModels/${model}-OWL.ecore"/>

<atl.launch path="UML2OWL/OWL/XmlSyntax/OWL2XML.asm">
<inModel name="IN" model="owlModel"/>
<inModel name="OWL" model="OWL"/>
<inModel name="XML" model="XML"/>
<outModel name="OUT" model="xmlModel" metamodel="XML"/>
</atl.launch>

<atl.saveModel model="xmlModel" path="/UML2OWL/Samples/OWLFiles/${model}.owl">
<extractor name="xml"/>
</atl.saveModel>
</target>

<target name="loadModels">
<!-- Load UML 2.0 metamodel-->
<atl.loadModel modelHandler="EMF" name="UML" metamodel="MOF" nsuri="http://www.eclipse.org/uml2/2.0.0/UML"/>
<!-- Load OWL metamodel-->
<atl.loadModel modelHandler="EMF" name="OWL" metamodel="MOF" path="UML2OWL/OWL/OWL.ecore"/>
<!-- Load XML metamodel-->
<atl.loadModel modelHandler="EMF" name="XML" metamodel="MOF" path="UML2OWL/AMMACore/XML.ecore"/>
</target>
</project>


When I launch the build.xml

It gives me the following message:

Model UML has already been registered
Cannot set feature owlUniverse to value

can someone help please?


Previous Topic:ATL Transformation Rule
Next Topic:Transformation from BPEL to BPMN
Goto Forum:
  


Current Time: Sat Apr 27 02:22:59 GMT 2024

Powered by FUDForum. Page generated in 0.02768 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top