W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > March 2008

Re: test case 0011

From: Mark Birbeck <mark.birbeck@x-port.net>
Date: Wed, 5 Mar 2008 11:25:46 +0000
Message-ID: <a707f8300803050325m7a43103fmbcf0d4317e84f87e@mail.gmail.com>
To: "Ivan Herman" <ivan@w3.org>
Cc: "Johannes Koch" <koch@w3development.de>, public-rdf-in-xhtml-tf@w3.org

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:01:55 UTC