Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » Help with KDM transformation
Help with KDM transformation [message #1007297] Tue, 05 February 2013 12:27 Go to next message
Rafael Durelli is currently offline Rafael DurelliFriend
Messages: 72
Registered: September 2012
I have two metamodel a SQL Model and a KDM Data package. The former contains three metaclasses DataBase, Table and Column. The latter represents the artifacts related to persistent data, such as indexed files, relational databases, and other kinds of data storage.

In this context, I would like to transform the first metamodel (SQL Model) to the KDM Data package. Thus, I have created the following atl code.

-- @path MM=/SQLMODEL/model/sqlmodel.ecore
-- @nsURI MM1=
-- @nsURI MM1=

module teste;
create OUT : MM1 from IN : MM;

rule dataBase2RelationalSchema {
		t : MM!Database
		r : MM1!RelationalSchema (
			name <-,
			dataElement <- t.tables

rule table2RelationalTable {
		t : MM!Table
		r : MM1!RelationalTable (
			name <-,
		 	dataElement <- t.columns

rule column2ColumnSet {
		t : MM!Column
		r : MM1!ColumnSet (
			name <-,
			itemUnit <- item
		item : MM1!ItemUnit (
			type <- type
		type : MM1!Datatype (
			name <- t.type

However it is not complete all Datatype is been generated without an id. Someone has an example ?

Thanks in advance.
Re: Help with KDM transformation [message #1007316 is a reply to message #1007297] Tue, 05 February 2013 13:55 Go to previous message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
Registered: July 2009
Senior Member
Similarly to, what do you mean by "it is not complete all Datatype is been generated without an id"?


Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
Previous Topic:How to specifiy query parameters in the Query Executions view?
Next Topic:How to process my KDM models
Goto Forum:

Current Time: Wed Jan 27 05:26:25 GMT 2021

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

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

Back to the top