W3C home > Mailing lists > Public > www-rdf-interest@w3.org > May 2003

Re: What does r:Bag mean?

From: Thomas B. Passin <tpassin@comcast.net>
Date: Sun, 25 May 2003 00:42:23 -0400
To: www-rdf-interest@w3.org
Message-id: <009401c32278$08cdc9b0$6401a8c0@tbp1>

[Jimmy Cerra]>
> Say I have the following RDF [1]:
> <r:Bag r:about="theCommittee">
> <r:li r:resource="Jim" />
> <r:li r:resource="John" />
> <r:li r:resource="Jane" />
> <r:li r:resource="Jamie" />
> </r:Bag>
> The spec [2] says that r:Bag represents an unordered set of resource.
> Does this mean the theCommittee is a resource composed of several other
> resources as parts?  How do you represent subsets?  Say Jim is the
> treasurer.  How is that communicated in the serialization?

I do not think that you should model theCommittee as a bag.  It would be
better as the instance of some class (like Committee), with a property, say,
Membership.  Membership would be a bag of members.  Now the committee can
have a treasurer, who could be Jim, and that fact no longer has to get mixed
up with the bag.  These questions have suddenly become moot - at least, they
no longer arise for this example.


Tom P
Received on Sunday, 25 May 2003 00:41:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:42 UTC