Re: Crazy Ivan can now generate EARL Reports

On Tue, 2008-04-01 at 10:46 -0400, Manu Sporny wrote:
> Dan Connolly wrote:
> > On Mon, 2008-03-31 at 09:07 +0200, Hausenblas, Michael wrote:
> >> Thanks Manu! Looking great to me. Maybe DanC has some further comments?
> > 
> > Is there a specific question directed to me? I tend to get
> > confused by top-posting.
> 
> Specific question: Do you see anything wrong or out of place with the
> attached EARL report? Is there any information that is missing?

OK.. ugh... I re-installed this ubuntu box and getting rdflib running
on it took some fidgeting around...

http://chatlogs.planetrdf.com/swig/2008-04-01#T15-32-55
http://chatlogs.planetrdf.com/swig/2008-04-01#T17-04-23

So now I have earlsum.py* running again; I'm attaching the output I get.

And yes, I see some odd stuff... I'm still debugging some of it;
meanwhile, I'm attaching crazyIvanEarl as .rdf in hopes of
getting the mime type right...


* earlsum.py in http://www.w3.org/2001/sw/grddl-wg/td/
for context, see http://www.w3.org/2001/sw/grddl-wg/td/test_results.html

> -- manu
> 
> plain text document attachment (crazyIvanEarl.txt)
> <rdf:RDF xmlns:earl="http://www.w3.org/ns/earl#"
>  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>  xmlns:dc="http://purl.org/dc/elements/1.1/"
>  xmlns:foaf="http://xmlns.com/foaf/0.1/">
> 
> <earl:Software rdf:about="http://rdfa.digitalbazaar.com/rdfa-test-harness">
>  <dc:title>Crazy Ivan</dc:title>
>  <dc:description>The W3C RDFa Test Harness</dc:description>
>  <foaf:homepage rdf:resource="http://rdfa.digitalbazaar.com/rdfa-test-harness" />
> </earl:Software>

Er... http://rdfa.digitalbazaar.com/rdfa-test-harness is a homepage
*and* a piece of software? That seems a little odd, but never mind...
the only software that earlsum.py is interested in is
the subject of the test assertions; in this case, it seems to be...

> <earl:TestCase 
> rdf:about="http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/Test0095">
>  <dc:title>Test Case #95</dc:title>
>  <dc:description>No triples with two nested @rel</dc:description>
> </earl:TestCase>
> <earl:Assertion 
> rdf:about="http://rdfa.digitalbazaar.com/rdfa-test-harness#unit-test-assertion-95">
>  <earl:assertedBy rdf:resource="http://rdfa.digitalbazaar.com/rdfa-test-harness"/>

hmm... the test harness page is the party making the assertions?
That twists my brain a little bit. Usually it's a person or
a group... but I guess a web page can be an agent.

>  <earl:subject rdf:resource="http://www.w3.org/2007/08/pyRdfa/extract?uri="/>

^ that one, i.e. http://www.w3.org/2007/08/pyRdfa/extract?uri=

so an DC.title or RDFS.label or FOAF.name or something
for that test subject would make the earlsum.py output nicer.

Labels for the test cases would be nice too; hmm... they
seem to be there; I wonder why earlsum.py isn't picking
them up.

I tried mixin in the manifest...

$ python earlsum.py crazyIvanEarl.txt
http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/rdfa-xhtml1-test-manifest.rdf >,rdfa2.html


Hmm... the RDFa test manifest seems to use a different convention
for approval status than earlsum.py expects...

        <reviewStatus
rdf:resource="http://www.w3.org/2006/03/test-description#approved"/>

vs.

    <t:approval
rdf:resource="http://lists.w3.org/Archives/Public/public-grddl-wg/2007Apr/0248.html"/>
from http://www.w3.org/2001/sw/grddl-wg/td/grddl-tests.rdf 


>  <earl:test 
> rdf:resource="http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/Test0095"/>
>  <earl:result rdf:parseType="Resource">
>   <rdf:type rdf:resource="http://www.w3.org/ns/earl#TestResult"/>
>   <earl:outcome rdf:resource="http://www.w3.org/ns/earl#pass"/>
>  </earl:result>
> </earl:Assertion>
> 
> <earl:TestCase 
> rdf:about="http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/Test0097">
>  <dc:title>Test Case #97</dc:title>
>  <dc:description>No triples with four nested @rel</dc:description>
> </earl:TestCase>
> <earl:Assertion 
> rdf:about="http://rdfa.digitalbazaar.com/rdfa-test-harness#unit-test-assertion-97">
>  <earl:assertedBy rdf:resource="http://rdfa.digitalbazaar.com/rdfa-test-harness"/>
>  <earl:subject rdf:resource="http://www.w3.org/2007/08/pyRdfa/extract?uri="/>
>  <earl:test 
> rdf:resource="http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/Test0097"/>
>  <earl:result rdf:parseType="Resource">
>   <rdf:type rdf:resource="http://www.w3.org/ns/earl#TestResult"/>
>   <earl:outcome rdf:resource="http://www.w3.org/ns/earl#fail"/>
>  </earl:result>
> </earl:Assertion>
> 
> </rdf:RDF>
-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
gpg D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E

Received on Tuesday, 1 April 2008 17:49:56 UTC