W3C home > Mailing lists > Public > www-rdf-interest@w3.org > November 2001

Re: n3/n-triples syntax question

From: Sean B. Palmer <sean@mysterylights.com>
Date: Fri, 30 Nov 2001 20:19:45 -0000
Message-ID: <00f501c179dc$7c4a61a0$0b550150@localhost>
To: <timbl@w3.org>, "Sandro Hawke" <sandro@w3.org>
Cc: <www-rdf-interest@w3.org>
> [...] When you need one (eg for a [ ] construct), you
> can't just make one ("_:g57"), because the user might
> use the same identifier ("_:g57") later in the document.

I just change the one later in the document: building up a dictionary
of bNode labels used or generated so far within the document, and then
having a function which checks to see if the label has already been
interned, generating a new one with a random string generator
repeatedly until it finds a spare label.

Your suggestion is better though, because people will most likely want
their [] generated bNode labels to be any old thing, but may have
chosen their _:XXX node labels as a mnemonic. I don't think that
reserving new _:_XXX labels is a good idea; I would always advocate
making things easy for the user rather than the programmer (although
it appears that there is a lot of overlap!).

--
Kindest Regards,
Sean B. Palmer
@prefix : <http://webns.net/roughterms/> .
:Sean :hasHomepage <http://purl.org/net/sbp/> .
Received on Friday, 30 November 2001 15:20:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:33 UTC