- From: Toby Inkster <tai@g5n.co.uk>
- Date: Wed, 24 Feb 2010 10:16:56 -0000
- 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:
<div
xmlns:google="http://www.google"
xmlns:ex="http://example.com/">
<span about="[google:.com/search?q=Foo]">
<span property="ex:ns#searchTerm">Foo</span>
</span>
</div>
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.
-Toby
Received on Wednesday, 24 February 2010 10:17:29 UTC