Import QUDV ISO-80000-1 libraries [message #1503411] |
Mon, 08 December 2014 07:42  |
Eclipse User |
|
|
|
In order to comply to ISO-80000-1 data structure, I tried to import the XMI provided on the omg SysML site. See the non-normative section on http://www.omg.org/spec/SysML/1.3/.
Unfortunately, I don't see any way to import these in Papyrus.
I followed this strategy:
* Download
* Rename from xmi to uml
* Rightclick them in a Papyrus project and create a "Papyrus model" from them
Tried several fixes, such as correcting the \n\r on which the SAX parser gets stuck. None helped.
Anybody successfully did this?
Johan
|
|
|
Re: Import QUDV ISO-80000-1 libraries [message #1504500 is a reply to message #1503411] |
Tue, 09 December 2014 05:01   |
Eclipse User |
|
|
|
Hi Johan,
Eclipse/UML2 supports various formats for UML documents:
- Normative XMI files: File extension = *.xmi, UML Namespace = http://www.omg.org/spec/UML/20110701
- Eclipse UML files: File extension = *.uml, UML Namespace = http://www.eclipse.org/uml2/5.0.0/UML
So, if you change the file extension, you need to also change the xmlns:uml Namespace (xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML"). After that, it works (Well, partially, because there are still some missing dependencies, but the model can be loaded in Papyrus)
Regards,
Camille
|
|
|
Re: Import QUDV ISO-80000-1 libraries [message #1505087 is a reply to message #1504500] |
Tue, 09 December 2014 15:42   |
Eclipse User |
|
|
|
From your reply, I conclude that it should be possible to directly import the normative XMIs without issue into Papyrus, except for some "missing dependencies".
Unfortunately, I tried following steps:
* download http://www.omg.org/spec/SysML/20120401/ISO-80000-1-QUDV.xmi
* right-click it, select New | Papyrus model
I end up with a model, but the model explorer remains empty.
Is this because of the "missing dependencies" that you mention?
I looked at http://wiki.eclipse.org/MDT/UML2/UML2_4.0_Migration_Guide (the QUDV.xmi still seems to be written with 2.4.1 XMI). I see that there is quite a bit of difference between the URIs for Eclipse UML2 and those that are used by OMG. No problem for the "dumb end-user", since making this mapping is exactly what an XMI importer is all about, no? The end-user should not be patching XMI files by hand, imho.
In that sense, we can't blame Papyrus of course, since you only use the Eclipse UML2 import facilities. Would you agree that this is a shortcoming on the Eclipse UML2 importer? Or do I misjudge this?
Thanks,
Johan
|
|
|
|
|
|
Re: Import QUDV ISO-80000-1 libraries [message #1505697 is a reply to message #1505665] |
Wed, 10 December 2014 03:31  |
Eclipse User |
|
|
|
Hi Johan,
I forgot to mention that, although the UML2 project properly supports Eclipse/UML and OMG/XMI files, Papyrus only supports *.uml files as its semantics model (i.e. main model, the one from which you create DI/Notation). So, you actually need to change the file extension, *and* the namespace, for Papyrus to be able to handle it.
OMG/XMI models are supposed to be importable in Papyrus (Via Package-import for example). However, I checked yesterday, and they weren't properly supported:
454546: [UML Import] Can't import UML resources if they don't have the *.uml file extension
https://bugs.eclipse.org/bugs/show_bug.cgi?id=454546
I've now fixed this bug on Mars/Nightly (Papyrus 1.1.0 Nightly). But this still only provides a partial support of OMG/XMI models, and you still need to rename these models to UML (+ Namespace) to have a full support from Papyrus
Regards,
Camille
|
|
|
Powered by
FUDForum. Page generated in 0.04693 seconds