Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
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 Go to next message
Sergey Metcherin is currently offline Sergey MetcherinFriend
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? Smile

Or to make it simple, anyone had positive experience with UML2OWL and how shoud I use it?
Re: Can't launch UML2OWL on ATL 3.1 [message #658880 is a reply to message #658808] Thu, 10 March 2011 09:48 Go to previous message
Guillaume Doux is currently offline Guillaume DouxFriend
Messages: 56
Registered: July 2009
Member
Hello Sergey,

This looks more like an ATL problem than an AM3 problem.

The error looks like an ATL exception so there is may be an error in the transformation.

I suggest you to post in the ATL section.

Best regards,

Guillaume Doux
Previous Topic:Injection and EMF generated API
Next Topic:[AM3] AM3 perspective in Eclipse Helios
Goto Forum:
  


Current Time: Wed Apr 24 20:28:04 GMT 2024

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

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

Back to the top