Hey,
To try if the AssociationRole concept works with the RDF-queries I've
updated the RDF indexer to understand them. The resulting RDF looks like
this (only the RDF for a ManyAssociation is shown):
<manyAssociationRole xmlns="urn:qi4j:entity:org.qi4j.rest.TestEntity:">
<rdf:Bag>
<rdf:li>
<associationrole xmlns="http://www.qi4j.org/rdf/model/1.0/type#">
<association
xmlns="http://www.qi4j.org/rdf/module/1.0/"rdf:resource="urn:qi4j:entity:org.qi4j.rest.TestEntity/test1"/>
<role
xmlns="http://www.qi4j.org/rdf/module/1.0/"rdf:resource="urn:qi4j:entity:org.qi4j.rest.TestRole/6de45cbd-e8b8-42db-8de6-af8055e88ecc-0"/>
</associationrole>
</rdf:li>
</rdf:Bag>
</manyAssociationRole>
Essentially the reference to an Entity is replaced with a blank node of
type "associationrole". This then has two statements about what the
association and role is, respectively. This should be quite easy to
query, but I have not yet implemented this.
/Rickard
--
Rickard Öberg
Jayway
email: [EMAIL PROTECTED]
phone: +46-70-3385304
begin:vcard
fn;quoted-printable:Rickard =C3=96berg
n;quoted-printable:=C3=96berg;Rickard
org:Jayway
adr;quoted-printable:;;Olaigatan 1B;=C3=96rebro;;703 61;Sweden
email;internet:[EMAIL PROTECTED]
title:Software developer
tel;work:+46-70-3385304
tel;cell:+46-70-3385304
x-mozilla-html:FALSE
url:http://www.jayway.se
version:2.1
end:vcard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev