|
|
|
Re: UML2OWL transformation gives error [message #93867 is a reply to message #93837] |
Wed, 29 October 2008 17:19 |
Guillaume Hillairet Messages: 97 Registered: July 2009 |
Member |
|
|
Hi,
comments below,
Rocky Dunlap wrote:
> Hi Guillaume,
> Thanks for the update. A couple of questions:
> 1. You did not include an OWL2XML.atl file, although there is an
> OWL2XML.asm file. I'm not sure if I can run a launch configuration
> without the .atl file?
The presence of the .atl file is not necessary since there is an .asm
file. As you can see in the build.xml, this is the .asm that is called and
not the .atl. And I think you can also use the launch configuration with
an .asm file (if not i will add the .atl file to the project), but i
recommend you to use the ant script.
> 2. According to the ATL documentation I have read (some of which appears
> to be out of date) it says that compilation will happen automatically when
> an .atl file is saved (a .asm file will be generated). For some reason
> that is not happening for me. Any ideas why? Is there a way I can kick
> off the compilation manually?
This problem is surely due to the .project file. Try creating a new
UML2OWL project in your workspace. Then copy metamodels, transformations
files and build.xml in this new project. So the compilation process should
work fine again.
> Thanks,
> Rocky
> Guillaume Hillairet wrote:
>> Hello,
>> The version of UML2OWL available on the ATL use case is not up to date.
>> Try this version instead
>> http://perso.univ-lr.fr/ghillair/projects/UML2OWL.zip.
>> Regards,
>> Guillaume.
|
|
|
|
Re: UML2OWL transformation gives error [message #94441 is a reply to message #93880] |
Tue, 04 November 2008 10:35 |
Guillaume Hillairet Messages: 97 Registered: July 2009 |
Member |
|
|
Hi Rocky,
I've updated the UML2OWL project
(http://perso.univ-lr.fr/ghillair/projects/UML2OWL.zip), so now there is a
new version for the OWL metamodel, update in UML2OWL.atl file and i've
added the OWL2XML.atl file.
Concerning you're problem with the build.xml, you need to install AM3 for
ATL developers (see http://wiki.eclipse.org/AM3/How_Install_AM3_From_SVN)
so you can use specific am3 ant actions. You also need AM3 for the
serialization of the XML model (created by OWL2XML.atl) into a plain xml
file (owl/xml format).
Best Regards,
Guillaume.
Rocky Dunlap wrote:
>> The presence of the .atl file is not necessary since there is an .asm
>> file. As you can see in the build.xml, this is the .asm that is called and
>> not the .atl. And I think you can also use the launch configuration with
>> an .asm file (if not i will add the .atl file to the project), but i
>> recommend you to use the ant script.
> If possible, I would appreciate having the .atl file so I can see the
> rules. In addition to doing the transform, I have some research motives
> on the side, so seeing the rules would be beneficial.
> As far as I can see, the launch configuration only allows .atl files.
> When I attempt to use build.xml, ant gives me the following error. I have
> selected "Run in the same JRE as the workspace."
> Buildfile: C:Documents and SettingsRockyworkspace-atl2UML2OWLbuild.xml
> loadModels:
> BUILD FAILED
> C:Documents and SettingsRockyworkspace-atl2UML2OWLbuild.xml:34:
> Problem: failed to create task or type am3.loadModel
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/types have been declared.
> Action: Check that any <presetdef>/<macrodef> declarations have taken
> place.
>> This problem is surely due to the .project file. Try creating a new
>> UML2OWL project in your workspace. Then copy metamodels, transformations
>> files and build.xml in this new project. So the compilation process should
>> work fine again.
> Great! The issue was the .project file as you suggested. Compilation is
> working fine now.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.55375 seconds