Re: Test 0218 : empty lists

On Apr 30, 2012, at 7:01 PM, Alex Milowski wrote:

> I don't see how you get the triple:
> 
>   <> rdf:value rdf:nil .
> 
> from the content
> 
> <div about="">
>    <p rel="rdf:value" inlist="">
>  </p></div>
> 
> In step 14, of Section "7.5 Sequence", the algorithm has you
> generating blank nodes for each item in the list.  You have nothing in
> your list so you generate no blank nodes.
> 
> Then the last triple is the subject, the full IRI of the local list
> mapping associated with this list, and the first item of your blank
> node array.  Since you have no items, there is nothing to map.  Step
> 14 says nothing about using rdf:nil it that situation.
> 
> That said, using rdf:nil would make sense.  To do so, the object should say:
> 
>   "first item of the ‘bnode’ array or, if that does not exist,
> http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"

This is implied in the previous step where it says "next item in the ‘bnode’ array or, if that does not exist, http://www.w3.org/1999/02/22-rdf-syntax-ns#nil". You're right that it's not spelled out explicitly.

Gregg

> -- 
> --Alex Milowski
> "The excellence of grammar as a guide is proportional to the paucity of the
> inflexions, i.e. to the degree of analysis effected by the language
> considered."
> 
> Bertrand Russell in a footnote of Principles of Mathematics
> 

Received on Tuesday, 1 May 2012 03:36:18 UTC