Re: Question about qnames vs curies

> 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