W3C home > Mailing lists > Public > www-rdf-interest@w3.org > June 2003

N-Triples for empty collection?

From: Joshua Allen <joshuaa@microsoft.com>
Date: Wed, 11 Jun 2003 23:40:21 -0700
Message-ID: <4F4182C71C1FDD4BA0937A7EB7B8B4C1061BAC7F@red-msg-08.redmond.corp.microsoft.com>
To: <www-rdf-interest@w3.org>

I am sure this is spec'd at http://www.w3.org/TR/rdf-syntax-grammar/#parseTypeCollectionPropertyElt, but I am having trouble understanding how to store an empty collection.  Which of the below three n-triples examples is correct?  Or if none, what would be correct for what I'm trying to do here?
 
Thanks!
Joshua
 
I am assuming something like:
 
http://www.foo.com/subject http://some.org/contributors _:genid1 .
_:genid1 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/1999/02/22-rdf-syntax-ns#List .
_:genid1 http://www.w3.org/1999/02/22-rdf-syntax-ns#first http://www.w3.org/1999/02/22-rdf-syntax-ns#nil .
 
The above is really what I want, but I could understand if there were some other convention.  For example, the following would be understandable:
 
http://www.foo.com/subject http://some.org/contributors _:genid1 .
_:genid1 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/1999/02/22-rdf-syntax-ns#List .
_:genid1 http://www.w3.org/1999/02/22-rdf-syntax-ns#first http://www.w3.org/1999/02/22-rdf-syntax-ns#nil .
_:genid1 http://www.w3.org/1999/02/22-rdf-syntax-ns#last http://www.w3.org/1999/02/22-rdf-syntax-ns#nil .
 
And so would (although annoying):
 
http://www.foo.com/subject http://some.org/contributors http://www.w3.org/1999/02/22-rdf-syntax-ns#nil .
 
 
 
 
Received on Thursday, 12 June 2003 02:40:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:59 GMT