Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » QVTO metamodel location
QVTO metamodel location [message #453193] Sat, 01 August 2009 15:07 Go to next message
Omran  is currently offline Omran Friend
Messages: 21
Registered: July 2009
Junior Member
Dears,

I trying to understand the QVTO example "simple uml to rdb"
I wondering where is the exact file's location in filesystem for the input
and output metmodel?

based on my basic understanding the following two line are the location of
metamodel; but where I can physically locate them on filesystem?

modeltype UML uses
' http://www.eclipse.org/qvt/1.0.0/Operational/examples/simple uml';
modeltype RDB
uses 'http://www.eclipse.org/qvt/1.0.0/Operational/examples/rdb';

and why we use such format
thanks for any help.

regards,
Omran badarneh
Re: QVTO metamodel location [message #455711 is a reply to message #453193] Sat, 01 August 2009 21:05 Go to previous messageGo to next message
Sergey Boyko is currently offline Sergey BoykoFriend
Messages: 171
Registered: July 2009
Senior Member
Hi Omran ,

Replies are in-lined below.

Regards,
Sergey

Omran wrote:
> Dears,
>
> I trying to understand the QVTO example "simple uml to rdb"
> I wondering where is the exact file's location in filesystem for the
> input and output metmodel?

QVTo is not interested in actual location of metamodel. Moreover
metamodel can be dynamically defined without persistence presentation.
The only requirement is that metamodel should be reachable in
EPackage.Registry.INSTANCE registry by NsURI (string used in modeltype
declaration).

Additionally to EPackage registry QVTo project allows to define custom
mappings by means of Project Properties/QVT Settings/Metamodel Mappings.

>
> based on my basic understanding the following two line are the location
> of metamodel; but where I can physically locate them on filesystem?

In Operational Mappings these declarations indicate what metamodels are
being used (see 8.1.2 in QVT Spec).
In QVTo these declarations define modeltype as metamodel consists of
given EPackage specified by it's NsURI string.

>
> modeltype UML uses
> ' http://www.eclipse.org/qvt/1.0.0/Operational/examples/simple uml';
> modeltype RDB uses
> 'http://www.eclipse.org/qvt/1.0.0/Operational/examples/rdb';

"SimpleUML to RDB" example uses generated metamodels that are registered
in org.eclipse.m2m.qvt.oml.samples/plugin.xml as follwos:

<extension point="org.eclipse.emf.ecore.generated_package">
<package
uri =
" http://www.eclipse.org/qvt/1.0.0/Operational/examples/simple uml"
class = "simpleuml.SimpleumlPackage" />
</extension>

<extension point="org.eclipse.emf.ecore.generated_package">
<package
uri = "http://www.eclipse.org/qvt/1.0.0/Operational/examples/rdb"
class = "rdb.RdbPackage" />
</extension>

As well this plug-in contains .ecore models being used for generation.

>
> and why we use such format
> thanks for any help.
>
> regards,
> Omran badarneh
>
Re: QVTO metamodel location [message #464131 is a reply to message #455711] Sun, 02 August 2009 18:17 Go to previous messageGo to next message
Omran  is currently offline Omran Friend
Messages: 21
Registered: July 2009
Junior Member
Dear Sergey,

Thank you very much for your inputs.

Execume me if you see some non-profisional questions; this because I am
practicing the first steps in QVTO and in eclipse technology.

1-I could not reach the metamodel...How can I see the content of the QVTO
metamodel and update it if needed? please help.

2-Does buidling QVTO project need a knowledge in "building eclipse plugin"?

3-Is there step by step instructions on how to build QVTO projects?

regards,
Omran badarneh
Re: QVTO metamodel location [message #467979 is a reply to message #464131] Mon, 03 August 2009 13:42 Go to previous messageGo to next message
Sergey Boyko is currently offline Sergey BoykoFriend
Messages: 171
Registered: July 2009
Senior Member
Hi Omran ,

See some replies in-line, below.

Regards,
Sergey

Omran wrote:
> Dear Sergey,
>
> Thank you very much for your inputs.
>
> Execume me if you see some non-profisional questions; this because I am
> practicing the first steps in QVTO and in eclipse technology.
>
> 1-I could not reach the metamodel...How can I see the content of the
> QVTO metamodel and update it if needed? please help.

There's view "Operational QVT / Metamodel Explorer" available from menu
"Window / Show View / Other...". It helps in exploring available
metamodels from platform (EPackage registry) and from workspace.

Basically, metamodels from platform should be considered as read-only.
Workspace metamodels as far they are persisted as .ecore model may be
considered for modifications.

>
> 2-Does buidling QVTO project need a knowledge in "building eclipse plugin"?

It's much more easy actually :) Just open menu "File / New /
Project..." and choose "Model to Model Transformation / Operational QVT
Project" wizard. Fill project name, press "Next>" twice and choose
"Create artifacts in ..". That's way you'll obtain new QVTo project with
transformation skeleton.

In order to launch transformation choose menu "Run / Run
Configurations...". Here create "Operational QVT Iterpreter"
configuration and run it.


>
> 3-Is there step by step instructions on how to build QVTO projects?

There's no one. All essential info is described above ;)

>
> regards,
> Omran badarneh
>
>
Re: QVTO metamodel location [message #468108 is a reply to message #467979] Tue, 04 August 2009 07:51 Go to previous message
Omran  is currently offline Omran Friend
Messages: 21
Registered: July 2009
Junior Member
Dear Sergey,

Thank you very much, I could browse the source and target metamodels.
also I found the org.eclipse.m2m.qvt.oml.samples_2.0.0.v20090608-1830.jar
which contain the .ecore and .genmodel files and extract them to be able
to add or update them.

Now I have an eclipse and QVTO setup that is free of problems; so we can
drill down into QVTO more and more.

again many thanks for your instant support.

Best Regards,
Omran
Previous Topic:[QVTO] global variables
Next Topic:Problem: No resource found, unable to extract..
Goto Forum:
  


Current Time: Wed Feb 05 05:53:53 GMT 2025

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

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

Back to the top