Home » Archived » AM3 » Can't launch UML2OWL on ATL 3.1
Can't launch UML2OWL on ATL 3.1 [message #658808] |
Wed, 09 March 2011 21:00 |
Sergey Metcherin Messages: 14 Registered: February 2011 |
Junior Member |
|
|
Good day, colleagues!
I'm trying to launch build.xml ANT script (UML2OWL project) on ATL 3.1. I've changed build.xml to make it conform to ATL 3.1 this way:
<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>
Models are loaded well, but on transform phase I got error:
Model UML has already been registered
Cannot set feature owlUniverse to value [org.eclipse.emf.ecore.impl.DynamicEObjectImpl@f1df56 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@1095197 (name: OWLClass) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@16c6746 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@1095197 (name: OWLClass) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@420970 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@1095197 (name: OWLClass) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@f3e54b (eClass: org.eclipse.emf.ecore.impl.EClassImpl@1095197 (name: OWLClass) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1d2523b (eClass: org.eclipse.emf.ecore.impl.EClassImpl@1095197 (name: OWLClass) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@7ccb74 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@1095197 (name: OWLClass) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@c79769 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@1095197 (name: OWLClass) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.uml2.uml.internal.impl.AssociationImpl@189193f (name: Association1, visibility: <unset>) (isLeaf: false, isAbstract: true) (isDerived: false), org.eclipse.uml2.uml.internal.impl.AssociationImpl@19ea44c (name: Association2, visibility: <unset>) (isLeaf: false, isAbstract: false) (isDerived: false), org.eclipse.uml2.uml.internal.impl.AssociationImpl@1c4b9a5 (name: Association3, visibility: <unset>) (isLeaf: false, isAbstract: false) (isDerived: false), org.eclipse.uml2.uml.internal.impl.AssociationImpl@13e877 (name: Association4, visibility: <unset>) (isLeaf: false, isAbstract: false) (isDerived: false), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@f39ae5 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@7b8f42 (name: Individual) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@819912 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@7b8f42 (name: Individual) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1959415 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@7b8f42 (name: Individual) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1a497e2 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@7b8f42 (name: Individual) (instanceClassName: null) (abstract: false, interface: false)), org.eclipse.emf.ecore.impl.DynamicEObjectImpl@1a1cb1 (eClass: org.eclipse.emf.ecore.impl.EClassImpl@7b8f42 (name: Individual) (instanceClassName: null) (abstract: false, interface: false))], inter-model references are forbidden. Configure launching options to allow them.
How can I fix it?
Or to make it simple, anyone had positive experience with UML2OWL and how shoud I use it?
|
|
| |
Goto Forum:
Current Time: Wed Feb 05 15:04:15 GMT 2025
Powered by FUDForum. Page generated in 0.03598 seconds
|