W3C home > Mailing lists > Public > semantic-web@w3.org > November 2008

RDF/XML syntax question - parseType="Collection" plus nodeID

From: Toby A Inkster <tai@g5n.co.uk>
Date: Fri, 21 Nov 2008 16:14:08 +0000
Message-Id: <8F5040EB-4F17-4D8D-AC8D-3FAD7D74D7FF@g5n.co.uk>
To: Semantic Web <semantic-web@w3.org>

Little question about using two features of RDF/XML in conjunction.  
Say I have the following RDF/XML:

<rdf:Description>
   <ex:foo>
     <rdf:List rdf:nodeID="theList">
       <rdf:_1><rdf:Description rdf:about="#i1" /></rdf:_1>
       <rdf:_2><rdf:Description rdf:about="#i2" /></rdf:_2>
       <rdf:_3><rdf:Description rdf:about="#i3" /></rdf:_3>
     </rdf:List>
   </ex:foo>
</rdf:Description>

Now, this can be simplified, removing the rdf:List and rdf:_n stuff,  
using parseType="Collection":

<rdf:Description>
   <ex:foo rdf:parseType="Collection">
     <rdf:Description rdf:about="#i1" />
     <rdf:Description rdf:about="#i2" />
     <rdf:Description rdf:about="#i3" />
   </ex:foo>
</rdf:Description>

But note now that the nodeID for the list no longer has an element  
upon which to be hung. If I want to refer to the same list again, I  
can't reference it as a named node. Is there a way around it? Can I  
use, for instance, rdf:nodeID on the <ex:foo/> element?

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Friday, 21 November 2008 16:15:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:36:44 GMT