Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » ATL transformation that its input ecore model(ATL transformation that its input ecore model references another ecore model)
ATL transformation that its input ecore model [message #555446] Thu, 26 August 2010 15:46 Go to next message
Esin Karabacakoglu is currently offline Esin KarabacakogluFriend
Messages: 11
Registered: May 2010
Location: Turkey
Junior Member
Hello all,

I have an ATL transformation that its input model is an ecore model. This input ecore model references another ecore model (I have used the "Load Resource..." action). In this situation, ATL does not transform the ecore object which references to other model.

My transformation rule is like that :


rule EReference2ObjectProperty {
	from
		ref : ECORE!EReference
	to
		d : OWL!OWLObjectProperty (
			uriRef <- u,
			domain <- ref.eContainingClass,
			range <- ref.eReferenceType
		),
		u : OWL!URIReference ( fragmentIdentifier <- l, uri <- uri ),
		l : OWL!LocalName ( name <- ref.eContainingClass.name + '.' + ref.name ),
		uri : OWL!UniformResourceIdentifier ( name <- ref.eContainingClass.name + '.' + ref.name )
		
	do {
		...........
	}
	}
}





It works on the same main ecore model ereference transformations, but for the referenced objects of the referenced model, it does not work.

Could anyone help me?

[Updated on: Thu, 26 August 2010 15:47]

Report message to a moderator

Re: ATL transformation that its input ecore model [message #555473 is a reply to message #555446] Thu, 26 August 2010 16:59 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Esin,

Comments below.

esin wrote:
> Hello all,
>
> I have an ATL transformation that its input model is an ecore model.
> This input ecore model references another ecore model (I have used
> the "Load Resource..." action). In this situation, ATL does not
> transform the ecore object which references to other model.
>
> My transformation rule is like that :
>
>
>
> rule EReference2ObjectProperty {
> from
> ref : ECORE!EReference
> to
> d : OWL!OWLObjectProperty (
> uriRef <- u,
> domain <- ref.eContainingClass,
> range <- ref.eReferenceType
> ),
> u : OWL!URIReference ( fragmentIdentifier <- l, uri <- uri ),
> l : OWL!LocalName ( name <- ref.eContainingClass.name + '.' +
> ref.name ),
> uri : OWL!UniformResourceIdentifier ( name <-
> ref.eContainingClass.name + '.' + ref.name )
>
> do {
> ...........
> }
> }
> }
>
>
>
>
>
> It works on the same main ecore model ereference transformations, but
> for the referenced objects of the referenced model, it does not work.
It's likely best to ask on the ATL newsgroup. The primary problem for
references failing to work is failing to use an absolute URI for the
initially loaded resource which cases relative references in that
resource to fail.
>
> Could anyone help me?
What URI is ATL using the load the initial resource?


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:ChangeCommand: canUndo before execute always false
Next Topic:How to create a custom RAP interface backed by EMF
Goto Forum:
  


Current Time: Fri Apr 26 21:22:00 GMT 2024

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

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

Back to the top