W3C home > Mailing lists > Public > www-tag@w3.org > June 2006

Re: CURIEs: A proposal

From: Dan Connolly <connolly@w3.org>
Date: Wed, 14 Jun 2006 15:23:19 -0400
Message-Id: <5ddc2d9aea33aabf4c6843cee2785e5e@w3.org>
Cc: www-tag@w3.org, newsml-2@yahoogroups.com, public-rdf-in-xhtml-tf@w3.org
To: Misha Wolf <Misha.Wolf@reuters.com>

On Jun 13, 2006, at 6:01 PM, Misha Wolf wrote:
> [...]
>>> The option I favour is:
>>>   vocabIRI          = http://sic.org/vocab1
>>>   prefix            = sic
>>>   suffix (aka code) = 0070
>>>   CURIE             = sic:0070
>>>   construction rule = <vocabIRI> & "#_" & <code>
>>>   codeIRI           = http://sic.org/vocab1#_0070
>
>> That looks reasonable as far as I can tell.

In today's discussion[1], we realized airport:LGA in NewsML 2
wouldn't work like airport:LGA in, say, SPARQL. We also
realized that if an RDF user copied a namespace URI
ending with a # to a NewsML document, that construction
rule would result in a bogus URI with two ##s.

What do you think of this...?

construction-rule =
   if vocabURI ends with a #, s1 = '' (empty string) else s1 = '#'
   if code does not start with a name-start character, s2 = '_' else s2 
= ''
   return <vocabURI> + s1 + s2 + <code>

3 examples:

   vocabIRI          = http://sic.org/vocab1
   prefix            = sic
   suffix (aka code) = 0070
   CURIE             = sic:0070
   codeIRI           = http://sic.org/vocab1#_0070

   vocabIRI          = http://sic.org/vocab2#
   prefix            = sic
   suffix (aka code) = 0070
   CURIE             = sic:0070
   codeIRI           = http://sic.org/vocab2#_0070

   vocabIRI          = http://sic.org/vocab3
   prefix            = country
   suffix (aka code) = canada
   CURIE             = country:canada
   codeIRI           = http://sic.org/vocab3#canada


[1] minutes of TAG ftf Wed 14 Jun, to appear

-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
Received on Wednesday, 14 June 2006 19:23:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:47:40 GMT