Question about ID

10 views
Skip to first unread message

dpndeveloper

unread,
Apr 5, 2011, 5:23:47 AM4/5/11
to emftriple-discuss
Hello,
I found a different behaviour on an attribute with annotation ID when
i perform trasformation

To show my question, i reffer to example
http://svn.codespot.com/a/eclipselabs.org/emftriple/trunk/examples/emf4sw.rdf.examples

When i execute the trasformation using the model in the example, the
person with Id=1 is
<resources URI="http://eclipselabs.org/social/people/1" subjectOf="//
@triples.5 //@triples.6 //@triples.7 //@triples.8 //@triples.9"
objectOf="//@triples.3 //@triples.15"/>
using "http://eclipselabs.org/social/people/" as base of URI

If I modify the ecore and i set the attribute id as an ID (EMF
properties, by properties view)
the result is
<resources URI="http://eclipselabs.org/network#1" subjectOf="//
@triples.5 //@triples.6 //@triples.7 //@triples.8 //@triples.9"
objectOf="//@triples.3 //@triples.15"/>
using "http://eclipselabs.org/network" as base of URI

It seems the the annotation id on the attribute is ignored and it's
used the package annotation

Is it possible to use id annotation (and base value) on attribute that
is setted as an EMF ID?

Regards
Domenico

Guillaume Hillairet

unread,
Apr 5, 2011, 9:31:15 AM4/5/11
to emftriple-discuss
Hi Domenico,

That's a bug, I've open an issue for it
http://code.google.com/a/eclipselabs.org/p/emftriple/issues/detail?id=28.
Will fix it.

BRs

On Apr 5, 10:23 am, dpndeveloper <dpndevelo...@gmail.com> wrote:
> Hello,
> I found a different behaviour on an attribute with annotation ID when
> i perform trasformation
>
> To show my question, i reffer to examplehttp://svn.codespot.com/a/eclipselabs.org/emftriple/trunk/examples/em...
>
> When i execute the trasformation using the model in the example, the
> person with Id=1 is
> <resources URI="http://eclipselabs.org/social/people/1" subjectOf="//
> @triples.5 /...@triples.6 /...@triples.7 /...@triples.8 /...@triples.9"
> objectOf="/...@triples.3 /...@triples.15"/>
> using "http://eclipselabs.org/social/people/" as base of URI
>
> If I modify the ecore and i set the attribute id as an ID (EMF
> properties, by properties view)
> the result is
> <resources URI="http://eclipselabs.org/network#1" subjectOf="//
> @triples.5 /...@triples.6 /...@triples.7 /...@triples.8 /...@triples.9"
> objectOf="/...@triples.3 /...@triples.15"/>
Reply all
Reply to author
Forward
0 new messages