W3C home > Mailing lists > Public > www-rdf-comments@w3.org > January to March 2003

rdf:nodeID and rdf:parseType="Collection"

From: Garret Wilson <garret@globalmentor.com>
Date: Sun, 12 Jan 2003 09:46:00 -0800
Message-ID: <3E21A9D8.7020203@globalmentor.com>
To: www-rdf-comments@w3.org

I earlier complained of having rdf:nodeID without a separate 
rdf:nodeIDRef. I'm now trying to use rdf:nodeID with 
rdf:parseType="Collection".

The primer contains (I'll ignore rdf:resource versus rdf:about for 
now---see my separate message):

<rdf:Description rdf:about="http://example.edu/courses/6.001">
   <s:students rdf:parseType="Collection" >
     <s:student rdf:resource="http://example.edu/students/Amy"/>
     <s:student rdf:resource="http://example.edu/students/Tim"/>
     <s:student rdf:resource="http://example.edu/students/John"/>
   </s:students>
</rdf:Description>

But what if the original description of each student is a blank node 
identified by a nodeID? Can I do this?

<rdf:Description rdf:about="http://example.edu/courses/6.001">
   <s:students rdf:parseType="Collection" >
     <s:student rdf:nodeID="amy"/>
     <s:student rdf:nodeID="tim"/>
     <s:student rdf:nodeID="john"/>
   </s:students>
</rdf:Description>

And then what if I don't want them typed? Can I do this?

<rdf:Description rdf:about="http://example.edu/courses/6.001">
   <s:students rdf:parseType="Collection" >
     <rdf:Description rdf:nodeID="amy"/>
     <rdf:Description rdf:nodeID="tim"/>
     <rdf:Description rdf:nodeID="john"/>
   </s:students>
</rdf:Description>

My earlier question of whether this is rdf:about or rdf:resource brings 
up my other earlier comment relating to the name of rdf:nodeID---I think 
this should really be:

<rdf:Description rdf:about="http://example.edu/courses/6.001">
   <s:students rdf:parseType="Collection" >
     <rdf:Description rdf:nodeIDRef="amy"/>
     <rdf:Description rdf:nodeIDRef="tim"/>
     <rdf:Description rdf:nodeIDRef="john"/>
   </s:students>
</rdf:Description>

Garret
Received on Sunday, 12 January 2003 13:32:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 21 September 2012 14:16:31 GMT