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

Re: [closed] hendler-01 literals in parsetype collection

From: Brian McBride <bwm@hplb.hpl.hp.com>
Date: Thu, 27 Mar 2003 13:33:59 +0000
Message-Id: <5.1.0.14.0.20030327132620.2c4b0168@localhost>
To: Jim Hendler <hendler@cs.umd.edu>, Dave Beckett <dave.beckett@bristol.ac.uk>
Cc: www-rdf-comments@w3.org, Bijan Parsia <bparsia@isr.umd.edu>

Thanks for the confirmation Jim.


At 07:58 27/03/2003 -0500, Jim Hendler wrote:

[...]


>>>If I use current RDF constructs I have no way to produce this as a 
>>>closed list.
>>
>>You might want to amend this statement.  I think your point is that the 
>>syntax required is ugly, not that it can't be done, Right?
>
>Sorry, what I meant to say in this sentence was
>
>If I use the other current RDF list constructs (i.e. not including 
>collection) then I cannot produce this as a closed list.

I'm sorry, but I don't think that is right.  You cannot use the 
rdf:parseType syntax to create the list, but you can spell out the 
structure explicitly, e.g.:

<rdf:Description>
   <foo:listValuedProp>
     <rdf:List rdf:nodeID="head"/>
   </foo:listValuedProp>
</rdf:Description>

<rdf:List rdf:nodeID="head">
   <rdf:first>first</rdf:first>
   <rdf:rest>
     <rdf:List rdf:nodeID="l2"/>
   </rdf:rest>
</rdf:List>

<rdf:List rdf:nodeID="l2">
   <rdf:first>second</rdf:first>
   <rdf:rest>
     <rdf:List rdf:nodeID="l3"/>
   </rdf:rest>
</rdf:List>

<rdf:List rdf:nodeID="l3">
   <rdf:first>first</rdf:first>
   <rdf:rest>
     <rdf:nil/>
   </rdf:rest>
</rdf:List>

Brian
Received on Thursday, 27 March 2003 08:33:23 GMT

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