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

RE: N-Triples for empty collection?

From: Joshua Allen <joshuaa@microsoft.com>
Date: Thu, 12 Jun 2003 11:00:38 -0700
Message-ID: <4F4182C71C1FDD4BA0937A7EB7B8B4C1097A9FEA@red-msg-08.redmond.corp.microsoft.com>
To: "Jos De_Roo" <jos.deroo@agfa.com>
Cc: <www-rdf-interest@w3.org>

I was afraid it would be the latter.  It seems a bit inconsistent for
the URI of a collection to have to change depending on whether or not it
has members (or looking another way, it's impossible to assign your own
identity to a list that has no members).  But I can live with it.

Thanks,
Joshua

-----Original Message-----
From: Jos De_Roo [mailto:jos.deroo@agfa.com] 
Sent: Thursday, June 12, 2003 2:30 AM
To: Jos De_Roo
Cc: Joshua Allen; www-rdf-interest@w3.org;
www-rdf-interest-request@w3.org
Subject: Re: N-Triples for empty collection?


oops... you also need <> around the uri's

--
Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/


 

                    Jos De_Roo

                                         To:     "Joshua Allen"
<joshuaa@microsoft.com>@AGFASMTP                   
                    2003-06-12           cc:
www-rdf-interest@w3.org, www-rdf-interest-request@w3.org          
                    11:18 AM             Subject:     Re: N-Triples for
empty collection?(Document link: Jos       
                                         De_Roo)

 




http://www.w3.org/1999/02/22-rdf-syntax-ns#nil denotes the
empty list so it's the latter.
the middle one is saying that the empty list (as an individual)
is a contributor (of course, you could have meant that ;-)
and the former is similar, although there could be other
contributors.

--
Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/

PS it's rdf:rest instead of rdf:last
   and the object of rdf:rest is a list


 

                    "Joshua Allen"

                    <joshuaa@microsoft.co       To:
<www-rdf-interest@w3.org>                                         
                    m>                          cc:

                    Sent by:                    Subject:     N-Triples
for empty collection?                              
                    www-rdf-interest-requ

                    est@w3.org

 

 

                    2003-06-12 08:40 AM

 

 






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 14:00:52 GMT

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