Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » looking for an XML <-> EMF automatic bridge
looking for an XML <-> EMF automatic bridge [message #639785] Wed, 17 November 2010 19:02 Go to next message
Eclipse UserFriend
Originally posted by: ivanomalavolta.gmail.com

Hi all,
I have the following problem: I am considering an XML schema of XPDL and
a set of XML files conforming to that schema.
I need to manipulate those XML files with model driven tools like ATL,
AM3, etc..

So i was thinking to look for the XPDL metamodel in ecore (I already
found it) and to automatically transform the XML files into models
conforming to the XPDL.ecore metamodel.

I would like to automatically do this transformation, does anyone know a
solution for this problem?

Cheers,
Ivano
Re: looking for an XML <-> EMF automatic bridge [message #639790 is a reply to message #639785] Wed, 17 November 2010 19:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33217
Registered: July 2009
Senior Member
Ivano,

Comments below.

Ivano Malavolta wrote:
> Hi all,
> I have the following problem: I am considering an XML schema of XPDL
> and a set of XML files conforming to that schema.
> I need to manipulate those XML files with model driven tools like ATL,
> AM3, etc..
>
> So i was thinking to look for the XPDL metamodel in ecore (I already
> found it) and to automatically transform the XML files into models
> conforming to the XPDL.ecore metamodel.
>
> I would like to automatically do this transformation, does anyone know
> a solution for this problem?
Have a look at
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. emf.doc/tutorials/xlibmod/xlibmod.html
>
> Cheers,
> Ivano


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: looking for an XML <-> EMF automatic bridge [message #639903 is a reply to message #639790] Thu, 18 November 2010 10:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ivanomalavolta.gmail.com

dear Ed,
thank you very much for the answer, but my problem is kind of different:
I already have a set of XML files conforming to the schema, and I would
like to automatically transform each of them into a model conforming to
the generated metamodel.

Is there some way to automatically do that?

Cheers and sorry for the multiple post.
Ivano

Il 17/11/2010 20:08, Ed Merks ha scritto:
> Ivano,
>
> Comments below.
>
> Ivano Malavolta wrote:
>> Hi all,
>> I have the following problem: I am considering an XML schema of XPDL
>> and a set of XML files conforming to that schema.
>> I need to manipulate those XML files with model driven tools like ATL,
>> AM3, etc..
>>
>> So i was thinking to look for the XPDL metamodel in ecore (I already
>> found it) and to automatically transform the XML files into models
>> conforming to the XPDL.ecore metamodel.
>>
>> I would like to automatically do this transformation, does anyone know
>> a solution for this problem?
> Have a look at
> http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. emf.doc/tutorials/xlibmod/xlibmod.html
>
>>
>> Cheers,
>> Ivano
Re: looking for an XML <-> EMF automatic bridge [message #639974 is a reply to message #639903] Thu, 18 November 2010 15:20 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33217
Registered: July 2009
Senior Member
Ivano,

Comments below.

Ivano Malavolta wrote:
> dear Ed,
> thank you very much for the answer, but my problem is kind of different:
> I already have a set of XML files conforming to the schema, and I
> would like to automatically transform each of them into a model
> conforming to the generated metamodel.
>
> Is there some way to automatically do that?
Isn't that exactly what the tutorial is showing?
>
> Cheers and sorry for the multiple post.
> Ivano
>
> Il 17/11/2010 20:08, Ed Merks ha scritto:
>> Ivano,
>>
>> Comments below.
>>
>> Ivano Malavolta wrote:
>>> Hi all,
>>> I have the following problem: I am considering an XML schema of XPDL
>>> and a set of XML files conforming to that schema.
>>> I need to manipulate those XML files with model driven tools like ATL,
>>> AM3, etc..
>>>
>>> So i was thinking to look for the XPDL metamodel in ecore (I already
>>> found it) and to automatically transform the XML files into models
>>> conforming to the XPDL.ecore metamodel.
>>>
>>> I would like to automatically do this transformation, does anyone know
>>> a solution for this problem?
>> Have a look at
>> http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. emf.doc/tutorials/xlibmod/xlibmod.html
>>
>>
>>>
>>> Cheers,
>>> Ivano
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: looking for an XML <-> EMF automatic bridge [message #640025 is a reply to message #639974] Thu, 18 November 2010 17:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ivanomalavolta.gmail.com

Hi Ed,
the tutorial you pointed to does not solve my problem for two main reasons:

1) id does not keep all elements of the original schema,
2) XML fragments like this does not seem to be handled by EMF:

<WorkflowProcess Name="DailyProcess" Id="DailyProcess">
<ProcessHeader/>
<FormalParameters>
<FormalParameter Index='1' Id='v1' Mode='IN' IsArray='FALSE'>
<Description></Description>
<DataType>
<BasicType Type='STRING'></BasicType>
</DataType>
</FormalParameter>
</WorkflowProcess>
....

Correct me if I am wrong. I would be happy in that case, that means I
have a solution for my problem ;)

Cheers,
Ivano

Il 18/11/2010 16:20, Ed Merks ha scritto:
> Ivano,
>
> Comments below.
>
> Ivano Malavolta wrote:
>> dear Ed,
>> thank you very much for the answer, but my problem is kind of different:
>> I already have a set of XML files conforming to the schema, and I
>> would like to automatically transform each of them into a model
>> conforming to the generated metamodel.
>>
>> Is there some way to automatically do that?
> Isn't that exactly what the tutorial is showing?
>>
>> Cheers and sorry for the multiple post.
>> Ivano
>>
>> Il 17/11/2010 20:08, Ed Merks ha scritto:
>>> Ivano,
>>>
>>> Comments below.
>>>
>>> Ivano Malavolta wrote:
>>>> Hi all,
>>>> I have the following problem: I am considering an XML schema of XPDL
>>>> and a set of XML files conforming to that schema.
>>>> I need to manipulate those XML files with model driven tools like ATL,
>>>> AM3, etc..
>>>>
>>>> So i was thinking to look for the XPDL metamodel in ecore (I already
>>>> found it) and to automatically transform the XML files into models
>>>> conforming to the XPDL.ecore metamodel.
>>>>
>>>> I would like to automatically do this transformation, does anyone know
>>>> a solution for this problem?
>>> Have a look at
>>> http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. emf.doc/tutorials/xlibmod/xlibmod.html
>>>
>>>
>>>>
>>>> Cheers,
>>>> Ivano
>>
Re: looking for an XML <-> EMF automatic bridge [message #640027 is a reply to message #640025] Thu, 18 November 2010 17:07 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33217
Registered: July 2009
Senior Member
Ivano,

Comments below.

Ivano Malavolta wrote:
> Hi Ed,
> the tutorial you pointed to does not solve my problem for two main
> reasons:
>
> 1) id does not keep all elements of the original schema,
Yes it does.
> 2) XML fragments like this does not seem to be handled by EMF:
>
> <WorkflowProcess Name="DailyProcess" Id="DailyProcess">
> <ProcessHeader/>
> <FormalParameters>
> <FormalParameter Index='1' Id='v1' Mode='IN' IsArray='FALSE'>
> <Description></Description>
> <DataType>
> <BasicType Type='STRING'></BasicType>
> </DataType>
> </FormalParameter>
> </WorkflowProcess>
> ...
>
> Correct me if I am wrong.
As long as the fragments are well formed according to the schema, then
it will be handled.
> I would be happy in that case, that means I have a solution for my
> problem ;)
I'm not sure how you reached your conclusions...
>
> Cheers,
> Ivano
>
> Il 18/11/2010 16:20, Ed Merks ha scritto:
>> Ivano,
>>
>> Comments below.
>>
>> Ivano Malavolta wrote:
>>> dear Ed,
>>> thank you very much for the answer, but my problem is kind of
>>> different:
>>> I already have a set of XML files conforming to the schema, and I
>>> would like to automatically transform each of them into a model
>>> conforming to the generated metamodel.
>>>
>>> Is there some way to automatically do that?
>> Isn't that exactly what the tutorial is showing?
>>>
>>> Cheers and sorry for the multiple post.
>>> Ivano
>>>
>>> Il 17/11/2010 20:08, Ed Merks ha scritto:
>>>> Ivano,
>>>>
>>>> Comments below.
>>>>
>>>> Ivano Malavolta wrote:
>>>>> Hi all,
>>>>> I have the following problem: I am considering an XML schema of XPDL
>>>>> and a set of XML files conforming to that schema.
>>>>> I need to manipulate those XML files with model driven tools like
>>>>> ATL,
>>>>> AM3, etc..
>>>>>
>>>>> So i was thinking to look for the XPDL metamodel in ecore (I already
>>>>> found it) and to automatically transform the XML files into models
>>>>> conforming to the XPDL.ecore metamodel.
>>>>>
>>>>> I would like to automatically do this transformation, does anyone
>>>>> know
>>>>> a solution for this problem?
>>>> Have a look at
>>>> http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. emf.doc/tutorials/xlibmod/xlibmod.html
>>>>
>>>>
>>>>
>>>>>
>>>>> Cheers,
>>>>> Ivano
>>>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: looking for an XML <-> EMF automatic bridge [message #640324 is a reply to message #640027] Sat, 20 November 2010 15:39 Go to previous message
Eclipse UserFriend
Originally posted by: ivanomalavolta.gmail.com

Dear Ed,
I tried out the tutorial and everything worked pretty well.
I just got confused by the "type" suffixes appended at the end of
generated metaclasses.

Cheers,
Ivano


Il 18/11/2010 18:07, Ed Merks ha scritto:
> Ivano,
>
> Comments below.
>
> Ivano Malavolta wrote:
>> Hi Ed,
>> the tutorial you pointed to does not solve my problem for two main
>> reasons:
>>
>> 1) id does not keep all elements of the original schema,
> Yes it does.
>> 2) XML fragments like this does not seem to be handled by EMF:
>>
>> <WorkflowProcess Name="DailyProcess" Id="DailyProcess">
>> <ProcessHeader/>
>> <FormalParameters>
>> <FormalParameter Index='1' Id='v1' Mode='IN' IsArray='FALSE'>
>> <Description></Description>
>> <DataType>
>> <BasicType Type='STRING'></BasicType>
>> </DataType>
>> </FormalParameter>
>> </WorkflowProcess>
>> ...
>>
>> Correct me if I am wrong.
> As long as the fragments are well formed according to the schema, then
> it will be handled.
>> I would be happy in that case, that means I have a solution for my
>> problem ;)
> I'm not sure how you reached your conclusions...
>>
>> Cheers,
>> Ivano
>>
>> Il 18/11/2010 16:20, Ed Merks ha scritto:
>>> Ivano,
>>>
>>> Comments below.
>>>
>>> Ivano Malavolta wrote:
>>>> dear Ed,
>>>> thank you very much for the answer, but my problem is kind of
>>>> different:
>>>> I already have a set of XML files conforming to the schema, and I
>>>> would like to automatically transform each of them into a model
>>>> conforming to the generated metamodel.
>>>>
>>>> Is there some way to automatically do that?
>>> Isn't that exactly what the tutorial is showing?
>>>>
>>>> Cheers and sorry for the multiple post.
>>>> Ivano
>>>>
>>>> Il 17/11/2010 20:08, Ed Merks ha scritto:
>>>>> Ivano,
>>>>>
>>>>> Comments below.
>>>>>
>>>>> Ivano Malavolta wrote:
>>>>>> Hi all,
>>>>>> I have the following problem: I am considering an XML schema of XPDL
>>>>>> and a set of XML files conforming to that schema.
>>>>>> I need to manipulate those XML files with model driven tools like
>>>>>> ATL,
>>>>>> AM3, etc..
>>>>>>
>>>>>> So i was thinking to look for the XPDL metamodel in ecore (I already
>>>>>> found it) and to automatically transform the XML files into models
>>>>>> conforming to the XPDL.ecore metamodel.
>>>>>>
>>>>>> I would like to automatically do this transformation, does anyone
>>>>>> know
>>>>>> a solution for this problem?
>>>>> Have a look at
>>>>> http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. emf.doc/tutorials/xlibmod/xlibmod.html
>>>>>
>>>>>
>>>>>
>>>>>>
>>>>>> Cheers,
>>>>>> Ivano
>>>>
>>
Previous Topic:ECoreEditor dependencies
Next Topic:[Ecore Tools] Observe .ecore changes made via ecorediag
Goto Forum:
  


Current Time: Mon Sep 23 19:47:23 GMT 2024

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

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

Back to the top