Re: daml:collection is just Literal test: need help with details [was: current action list]

>>>Dan Connolly said:
> 
> On Thu, 2002-07-18 at 16:31, Brian McBride wrote:
> [...]
> > 2002-02-26#2 DanC Create test case for daml:collection behaves like Literal
> 
> Thanks for keeping that one from falling between the cracks.
> 
> 
> Here's a sketch; it's a parser test.
> 
> .rdf input:
> 
> 	<rdf:Description>
> 	  <ex:brothers rdf:parseType="daml:collection">
> 	    <rdf:Description rdf:about="http://example/#Fred"/>
> 	    <rdf:Description rdf:about="http://example/#Bob"/>
> 	  </ex:brothers>
>         </rdf:Description>
> 
> and the .nt has just one triple:
> 
>   _:something ex:brothers xml"<rdf:Description ...".
> 
> Sorry, I haven't managed to implement parseType="Literal",
> so I can't easily come up with the details.
> 
> Anybody out there got a parser that does xml"" stuff? DaveB?
> Would you please fill in the blanks for me?

I got

_:something <http://example.org/brothers> xml"\n    <rdf:Description rdf:about=\"http://example/#Fred\"></rdf:Description>\n    <rdf:Description rdf:about=\"http://example/#Bob\"></rdf:Description>\n  " .

modulo different numbers of spaces, tabs and newlines etc.

Dave

Received on Thursday, 18 July 2002 18:26:14 UTC