Problems to open a xmi file with Sample Reflective Ecore Model Editor [message #973556] |
Tue, 06 November 2012 07:39  |
Eclipse User |
|
|
|
I am using ATL to convert from UML to OWL.
I found the OWL metamodel in www. w3. org /2007/OWL/wiki/MOF-Based_Metamodel
So, I download this .ecore file and copy it into my project folder. And use it to do the transformation. The transformation is OK!
When I try to open the xmi generated file with the Sample Reflective Ecore Model Editor I got this error: PackageNotFoundException.
So, I opened the xmi generated file with text editor, and change the URI using: xmlns:owl="platform:/resource/Families2Persons/owl2.ecore" and this problem was solved.
How can I registry the owl2.ecore URI in Eclipse in order to open xmi files using this metamodel with the Sample Reflective Ecore Model Editor?
THE GENERATED FILE
<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http: // www. omg.org /XMI" xmlns:owl="http:// nemo .inf. ufes. br/ owl">
<owl:URI value="/Avô"/>
<owl:Class entityURI="/0"/>
<owl:URI value="/Bisavô"/>
<owl:Class entityURI="/2"/>
<owl:URI value="/Bisneto"/>
<owl:Class entityURI="/4"/>
<!-- many lines -->
<owl:URI value="Fiscal da ANTT"/>
<owl:Class entityURI="/104"/>
</xmi:XMI>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04651 seconds