Re: Test Case #11 (v2): XMLLiteral

Manu,

look great to me! When and if you have lots of time, though... do you 
think it would be possible to

- add an extra comment field into the RDF graph for the tests including 
this text

- modify crazy ivan so that if the test fails, this comment is also 
displayed. Testers may not have the instinct to look at the SPARQL 
source to find such comments...

I know, you do have other fish to fry:-) but if...

Cheers

Ivan


Manu Sporny wrote:
> Per our discussion and resolution on 5/29:
> 
>    RESOLUTION: Add valid cases of XML Literals as requested by
>    implementers to TC 100-103 and add comments to tell other
>    implementors that the tests may fail due to XML Literal issues.
> 
> The following SPARQL returns TRUE for both PyRDFa and librdfa.
> 
> ====================== Test Case 11 =============================
> 
> ---------------------Test Case 11 XHTML--------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
> "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:dc="http://purl.org/dc/elements/1.1/">
>  <head>
>   <title>Test 0011</title>
>  </head>
>   <body>
>    <div about="">
>       Author: <span property="dc:creator">Albert Einstein</span>
>       <h2 property="dc:title">E = mc<sup>2</sup>: The Most Urgent
> Problem of Our Time</h2>
>  </div>
>   </body>
> </html>
> -----------------------------------------------------------------
> 
> ---------------------Test Case 11 SPARQL -----------------------
> # Some parsers may generate XML Literals that differ from the ones
> # shown below. The only requirement for XML Literal tests is that
> # the RDF graph that is generated is equivalent to the one expressed
> # in the XHTML (preservation of whitespace and namespaces that are
> # utilized in the XML Literal).
> 
> ASK WHERE {
> <http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0011.xhtml>
> <http://purl.org/dc/elements/1.1/creator> "Albert Einstein" .
> 
> {
> <http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0011.xhtml>
> <http://purl.org/dc/elements/1.1/title> "E = mc<sup
> xmlns=\"http://www.w3.org/1999/xhtml\"
> xmlns:dc=\"http://purl.org/dc/elements/1.1/\">2</sup>: The Most Urgent
> Problem of Our
> Time"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
> }
> UNION
> {
> <http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0011.xhtml>
> <http://purl.org/dc/elements/1.1/title> "E = mc<sup
> xmlns=\"http://www.w3.org/1999/xhtml\">2</sup>: The Most Urgent Problem
> of Our Time"^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral> .
> }
> }
> -----------------------------------------------------------------
> 
> -- manu
> 

-- 

Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
PGP Key: http://www.ivan-herman.net/pgpkey.html
FOAF: http://www.ivan-herman.net/foaf.rdf

Received on Sunday, 8 June 2008 07:56:30 UTC