Keeping xmi:id for migration [message #1719406] |
Thu, 07 January 2016 11:43  |
Eclipse User |
|
|
|
Dear all,
I am new to the QVTo world.
I am facing a difficulty in the SysML composant of Eclipse papyrus project.
I would like to develop a qvto for migrating my initial sysml model in SysML1.1 metamodel into SysML1.4.
First at all: XMI:ID and URI
I would like to keep the initial xmi:id / uri of my initial elements? or do I need to implement a blackbox?
Secundly: switching namespace
The majority elements of the source metamodel have a direct linked with the target metamodel. The only differences is the namespace uri...
So if I have initial element of type Requierement in the namespace SysML 1.1,
is their a qvto transformation/function to switch it directly into a second namespace, (also Requirement but in SysML 1.4 namespace), keeping everything else?
Thanks for your idea.
Francois
|
|
|
|
|
Re: Keeping xmi:id for migration [message #1719539 is a reply to message #1719507] |
Fri, 08 January 2016 12:35  |
Eclipse User |
|
|
|
Hi
Your problem is quite common.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=485439 raised.
Regards
Ed Willink
On 08/01/2016 13:22, Francois Le Fevre wrote:
> Thanks a lot for your quick answer.
> I will take time to understand everything since I am newbie.
>
> Nevertheless I have huge difficulty to understand that xmi:id are not
> part of the model.
>
> If I have two models, MA and MB, store in two xmi file MA.xmi and
> MB.xmi, where inside MB, bObject references a aObject.
> The serialzation will put in MB.xmi a reference to the aObject through
> its xmi:id , isn't it?
> So for me xmi:id were key elements...because they ensure unicity across
> models.
>
> So My concern is :
>
> if I made a qvto to transform any model of sysml11 metamodel to a
> compliant sysml14 metamodel without managing xmi:ids, and if people used
> it to transformat a initial set X11 of sysml11 models into a X14 set of
> models in sysml14 at a given time.
> then a second group of people Y with a secund set of sysml11 models that
> reference the initial set of sysml11 models, their models will not work
> ever even if they use the qvto transformation. because I cannot ensure
> that xmi:id are not the same...
>
> I will look deeply into your code links.
>
> Francois
>
|
|
|
Powered by
FUDForum. Page generated in 0.04045 seconds