Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » XMI to UML
XMI to UML [message #1771545] Sun, 27 August 2017 14:26 Go to next message
Marija Matic is currently offline Marija MaticFriend
Messages: 9
Registered: August 2017
Junior Member
Hi, I have to create plugin in eclipse for reverse engineering from DDL script to UML schema relational database. I've used JSQLParser, created Java represation and XMI file. Now I have to generate UML schema from that XMI file. How can I do that?
Re: XMI to UML [message #1771622 is a reply to message #1771545] Mon, 28 August 2017 17:27 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

This was the newsgroup for the UML2 Tools graphical UML support. It is now pretty much dead; superseded by Papyrus. This is a model transformation question better suited to the MMT newsgroup.

Since you have converted your DDL script to XMI you presumably have a DDL model that you 'just' need to convert to a UML model. UML to RDBMS is the stock example for many M2M languages and papers. Unfortunately most implementations differ in their support for subtleties such as (multiple) inheritance, compound attributes, name clashes, ... so there is no standard implementation. You need the opposite direction and so you could use the inverse of the QVTr bidirectional exposition in the QVT specification or search the literature for a better exercised bidirectional version.

Regards

Ed Willink
Re: XMI to UML [message #1771833 is a reply to message #1771622] Thu, 31 August 2017 08:20 Go to previous messageGo to next message
Marija Matic is currently offline Marija MaticFriend
Messages: 9
Registered: August 2017
Junior Member
No Message Body

[Updated on: Thu, 31 August 2017 08:53]

Report message to a moderator

Re: XMI to UML [message #1771834 is a reply to message #1771622] Thu, 31 August 2017 08:21 Go to previous messageGo to next message
Marija Matic is currently offline Marija MaticFriend
Messages: 9
Registered: August 2017
Junior Member
Thank you for your answer
Re: XMI to UML [message #1771926 is a reply to message #1771622] Fri, 01 September 2017 08:28 Go to previous messageGo to next message
Marija Matic is currently offline Marija MaticFriend
Messages: 9
Registered: August 2017
Junior Member
I still haven't find the solution for this. So I'm gonna be more specific.

This is DDL script for example:

CREATE TABLE TABLE
(
Column1 VARCHAR COLLATE utf8_unicode_ci,
Column2 TINYINT UNSIGNED NOT NULL,
PRIMARY KEY (Column1)
);

and I've got this xml file:

<uml:Model xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmi:id="6fb3c342-4f98-4205-ad9d-3d1bafc5dad4" xmi:version="20131001">
<packagedElement name="Database" xmi:id="82a41c0a-8e79-43aa-b5f8-afd0f3d80ae8" xml:type="uml:Package"/>
<packagedElement name="TABLE" xmi:id="a74a1162-46d1-46a8-bfbb-d502cad593fa" xml:type="uml:Class">
<ownedAttribute name="Column1" xmi:id="4a5f62aa-ce54-4d01-90be-3a0eb71eca15" xml:type="7157ba11-e7a8-41d9-8854-cb6a6a52729e"/>
<ownedAttribute name="Column2" xmi:id="15c70181-dbf9-482c-aa8c-819bb1199150" xml:type="70970c80-ac38-441b-800c-6736c3eae035"/>
<ownedOperation name="PK" xmi:id="1edc5db7-3338-460a-acee-d552333d3106">
<ownedAtribute name="Column1" xmi:id="5449ae61-f297-42c0-bc18-2cc5e505bd1b" xml:type="7157ba11-e7a8-41d9-8854-cb6a6a52729e"/>
</ownedOperation>
</packagedElement>
</uml:Model>

I'm using Papyrus and I have to generate UML class diagram in Papyrus. Is there any way to do this?

[Updated on: Fri, 01 September 2017 08:33]

Report message to a moderator

Re: XMI to UML [message #1771928 is a reply to message #1771926] Fri, 01 September 2017 08:58 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Your initial question suggested that you had a schema model, when actually you already have a UML model except that it isn't.

There is an obvious "ownedAtribute" typo for a parameter and many other things look smelly; xml:type, Class not in Package, unresolved types, .... The UML Model editor hates it. I suggest you debug your UML generator or better generate a UML model in memory and then use the Eclipse UML serializer.

Once you have a valid UML model, opening it in Papyrus is pretty trivial. Use the Model Explorer menus.

Regards

Ed Willink
Re: XMI to UML [message #1771940 is a reply to message #1771928] Fri, 01 September 2017 11:05 Go to previous messageGo to next message
Marija Matic is currently offline Marija MaticFriend
Messages: 9
Registered: August 2017
Junior Member
How can I use Eclipse UML serializer?

Re: XMI to UML [message #1771941 is a reply to message #1771940] Fri, 01 September 2017 11:09 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

The UML serializer is used when you request a UMLResource to execute save().

Regards

Ed Willink
Previous Topic:news.eclipse.org is shutting down.
Next Topic:quality metrics for UML Class Diagram
Goto Forum:
  


Current Time: Fri Mar 29 13:26:08 GMT 2024

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

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

Back to the top