Re: #rdf-containers-syntax-ambiguity, #rdf-containers-syntax-vs-schema

Dan Connolly wrote:
> 
> Brian McBride wrote:
> [...]
> > I think therefore there is a case to be made for simplifying this aspect of
> > the proposal so that rdf:li elements within a description are translated to
> > rdf:_nnn where nnn starts at 1 and is incremented by one for each rdf:li
> > encountered.
> 
> Yes, no more special cases than that, please.
> 
> In particular, this rule can be implemented straightforwardly
> using XPath; something like: count(previous-sibling::rdf:li).
> 
> > This the example given above:
> >
> >   <rdf:Bag>
> >     <rdf:li>1</rdf:li>
> >     <rdf:_10>10</rdf:li>
> >     <rdf:li>11</rdf:li>
> >   </rdf:Bag>
> >
> > would generate:
> >
> >   _:genid <rdf:type> <rdf:Bag>.
> >   _:genid <rdf:_1>   "1" .
> >   _:genid <rdf:_10>  "10" .
> >   _:genid <rdf:_11>  "2" .
> >

oops... no, it should generate

   _:genid <rdf:type> <rdf:Bag>.
   _:genid <rdf:_1>   "1" .
   _:genid <rdf:_10>  "10" .
   _:genid <rdf:_2>  "2" .

right?

(details details...)

--  
Dan Connolly, W3C http://www.w3.org/People/Connolly/

Received on Wednesday, 13 June 2001 12:49:30 UTC