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

RE: N-Triples for empty collection?

From: Jos De_Roo <jos.deroo@agfa.com>
Date: Fri, 13 Jun 2003 01:34:20 +0200
To: joshuaa@microsoft.com
Cc: www-rdf-interest@w3.org, www-rdf-interest-request@w3.org
Message-ID: <OF40B436F4.E5D83F1F-ONC1256D43.00801EEF-C1256D43.00817CCC@agfa.be>


Well, you can always say

<http://www.foo.com/subject> <http://some.org/contributors>
<http://your.org/collection> .

and find out later that

<http://your.org/collection> <http://www.w3.org/2002/07/owl#sameAs>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .

hope this helps...

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


                                                                                                                          
                    "Joshua Allen"                                                                                        
                    <joshuaa@microsoft.co       To:     Jos De_Roo/AMDUS/MOR/Agfa-NV/BE/BAYER@AGFA                        
                    m>                          cc:     <www-rdf-interest@w3.org>                                         
                    Sent by:                    Subject:     RE: N-Triples for empty collection?                          
                    www-rdf-interest-requ                                                                                 
                    est@w3.org                                                                                            
                                                                                                                          
                                                                                                                          
                    2003-06-12 08:00 PM                                                                                   
                                                                                                                          
                                                                                                                          





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 19:35:15 GMT

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