Re: test case 0011

Hi Ivan,

Just to put some more meat on the bones of my other email:

>  [snip]
>
>  Then the generated RDF can either be:
>
>  <> <dc:title> "<span xmlns="http://www.w3.org/1999/xhtml" class="bla">E
>
> = mc<sup>2</sup>: The Most Urgent Problem of Our
>
> Time</span>"^^xsd:XMLLiteral
>
>  but it could also be:
>
>  <> <dc:title> "<span xmlns="http://www.w3.org/1999/xhtml" class="bla">E
>  = mc<sup xmlns="http://www.w3.org/1999/xhtml>2</sup>: The Most Urgent
>  Problem of Our Time</span>"^^xsd:XMLLiteral
>
>  which is, from an XML point of view, identical. The problem is that I am
>  simply not sure whether the SPARQL engines compare XML Literals
>  textually or 'semantically', so to say...

This is ok, as it happens, since it's covered by Exclusive
Canonicalisation [1]. You should *always* get:

  <> <dc:title> "<n0:span xmlns:n0=\"http://www.w3.org/1999/xhtml\"
    class=\"bla\">E = mc<n0:sup>2</n0:sup>: The Most Urgent Problem
    of Our Time</n0:span>"^^xsd:XMLLiteral

(And note that Exclusive Canonicalisation is what is referred to in
RDF Concepts.)

Regards,

Mark

[1] <http://www.w3.org/TR/xml-exc-c14n/>

-- 
  Mark Birbeck

  mark.birbeck@x-port.net | +44 (0) 20 7689 9232
  http://www.x-port.net | http://internet-apps.blogspot.com

  x-port.net Ltd. is registered in England and Wales, number 03730711
  The registered office is at:

    2nd Floor
    Titchfield House
    69-85 Tabernacle Street
    London
    EC2A 4RR

Received on Wednesday, 5 March 2008 11:26:01 UTC