ATL transformation that its input ecore model [message #555446] |
Thu, 26 August 2010 15:46 |
Esin Karabacakoglu 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 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.03231 seconds