W3C home > Mailing lists > Public > public-rdfa@w3.org > February 2010

Re: Question about qnames vs curies

From: Toby Inkster <tai@g5n.co.uk>
Date: Wed, 24 Feb 2010 10:16:56 -0000
Message-ID: <94473157cd258970ccb4dc5659f95f12.squirrel@goddamn.co.uk>
To: "Celso Fontes" <celsowm@gmail.com>
Cc: public-rdfa@w3.org, "Maria Claudia Cavalcanti" <maryoko@gmail.com>, "AnaMaria Moura" <anamaria.moura@gmail.com>
> How is the real and pratical difference of Qname and CURIE ?
> I read this:
> http://www.xml.com/pub/a/2007/04/04/introducing-rdfa-part-two.html?page=1
> And i conclude that only advantage is allow numeric names, like
> "[ime:2224445]"

CURIEs allow a lot of characters that cannot be used in QNames. For example:

  <span about="[google:.com/search?q=Foo]">
    <span property="ex:ns#searchTerm">Foo</span>

Produces the following triple:

<http://www.google.com/search?q=Foo> <http://example.com/ns#searchTerm>
"Foo" .

The characters '/', '?', '=' and '#' could not be used in QNames, and I
don't think the "localname" component of a QName can begin with a leading
'.' either.

Received on Wednesday, 24 February 2010 10:17:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:04:45 UTC