Re: Expressing collections in RDF

In message <g6kg+URVhwTLFwoJ@light.demon.co.uk>, Richard Light 
<richard@light.demon.co.uk> writes
>
>I'm developing my nascent Turtle parser, and working through the Turtle 
>examples [1].  Since my objective is to generate RDF from the parsed 
>Turtle source, I need guidance on whether to implement Collections 
>(test 07) as a linked list of blank nodes, as suggested by the output 
>from test 07, or by the rather nicer rdf:parseType="Collection" 
>construct given in the RDF Primer [2].

Follow-up question: if I did want to use the rdf:parseType="Collection" 
construct in my RDF/XML output, how would I do so for the example given, 
where the collection is a collection of strings?

@prefix : <http://example.org/stuff/1.0/> .
:a :b ( "apple" "banana" ) .

Richard

-- 
Richard Light

Received on Thursday, 14 January 2010 12:21:20 UTC