W3C home > Mailing lists > Public > public-lod@w3.org > January 2010

Re: Expressing collections in RDF

From: Richard Light <richard@light.demon.co.uk>
Date: Thu, 14 Jan 2010 12:20:38 +0000
Message-ID: <GKEpyISWwwTLFwOE@light.demon.co.uk>
To: Richard Light <richard@light.demon.co.uk>
Cc: public-lod@w3.org
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 Light
Received on Thursday, 14 January 2010 12:21:20 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:16:02 UTC