W3C home > Mailing lists > Public > www-rdf-interest@w3.org > August 2002

How do Schemas support RDF collections?

From: Seth Ladd <seth@brivo.net>
Date: Fri, 09 Aug 2002 12:20:20 -0400
Message-ID: <3D53EBC4.4080007@brivo.net>
To: www-rdf-interest@w3.org
Hello,

How do RDF schemas (DAML+OIL, RDFS, even OWL) support RDF collections 
(bag, seq, alt)?  I have a hole in my understanding of how to write 
OWL/DAML+OIL schemas that support Bags.

For instance, if I want to say:

User hasMemberships is a Bag.
Group hasMemberships is a Bag.
Bag is collection of Group resource URIs.

How would I use a Transitive Property in OWL for this:

If Bob hasMembership of Group X,
And Group X hasMembership of Group Y
THEN Bob is a member of Group Y.

(creating hierarchy of groups)

If create an explicit property hasMembership for users and groups, then 
it becomes easy.  Once I make hasMembership plural, then I'm getting 
lost as to how to specify those handy relationships when the resource 
I'm talking about is now a Bag.

Should the APIs for programming to these models make these collections 
transparent?  It makes it harder for me to ask questions when I have to 
manually check inside a Bag.

I'd like to have the APIs turn this:

User hasMembership Bag (content, content, content)

into

User hasMembership content.
User hasMembership content.
User hasMembership content.

That would make programming against the model graph a lot simpler.

What am I missing?  Am I making this too hard?

Any ideas or help would be greatly appreciated.  I'm using Jena and 
redland currently.

thanks very much,
Seth

Received on Friday, 9 August 2002 12:19:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:55 GMT