EARL 1.0: trying it with hypertext instead of reification

Some rough notes on EARL

---------- Forwarded message ----------
Date: Thu, 13 Dec 2001 14:48:23 GMT

Notes on EARL.

http://infomesh.net/2001/earl1.0/ version 2001-12-09

I'm trying to understand the details of the EARL 1.0 proposal, and the
way it uses RDF reification (statements about statements). This
(below) is an experiment in breakout an EARL document down into a
collection of documents, where some documents describe agents/tests
that make the claim(s) encoded in the latter documents.

work in progress. may be totally wrong!

danbri@w3.org

-----


EARL Example (from EARL 1.0 draft) using RDF reification:

<rdf:RDF xmlns="http://www.w3.org/2001/03/earl/1.0-test#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<Assertor>
 <email rdf:resource="mailto:bob@example.org"/>
 <name>Bob B. Bobbington</name>
 <asserts rdf:parseType="Resource">
   <rdf:subject rdf:parseType="Resource">
     <rdf:type
       rdf:resource="http://www.w3.org/2001/03/earl/1.0-test#WebContent"/>
     <reprOf rdf:resource="http://example.org/net/bob/"/>
     <date>2001-05-07</date>
   </rdf:subject>
   <rdf:predicate rdf:resource="http://www.w3.org/2001/03/earl/1.0-test#passes"/>
   <rdf:object rdf:parseType="Resource">
     <testCriteria rdf:parseType="Resource">
       <label>WCAG Single A Compliance Test</label>
       <suite rdf:resource="http://www.w3.org/TR/WCAG10/"/>
       <level rdf:resource="http://www.w3.org/TR/WCAG10/#wc-priority-1"/>
       <note>All Priority 1 checkpoints => WCAG Single-A compliance</note>
     </testCriteria>
  </rdf:object>
   <testMode
    rdf:resource="http://www.w3.org/2001/03/earl/1.0-test#Manual"/>
 </asserts> <!-- hmm, testmode should be property of the asserter? -->
</Assertor>
</rdf:RDF>


EARL Example (modified) using hypertext / multiple documents:

First, making the subject/predicate/object more explicit...

(removed parseType="Resource" for readability; added in rdfs:Resource
for resources not given a more specific RDF type)

<rdf:RDF xmlns="http://www.w3.org/2001/03/earl/1.0-test#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<Assertor>
 <email rdf:resource="mailto:bob@example.org"/>
 <name>Bob B. Bobbington</name>
 <asserts> <!-- some claims made by Bob... -->

   <rdf:Statement> <!-- an RDF statement has three parts... annotated
					    here to provide detail of the tests -->

    <rdf:subject>
     <rdfs:Resource>
      <rdf:type rdf:resource="http://www.w3.org/2001/03/earl/1.0-test#WebContent"/>
      <reprOf rdf:resource="http://example.org/net/bob/"/>
      <date>2001-05-07</date>
     </rdfs:Resouce>
    </rdf:subject>

    <rdf:predicate rdf:resource="http://www.w3.org/2001/03/earl/1.0-test#passes"/>

    <rdf:object>
     <rdfs:Resource>
      <testCriteria rdf:parseType="Resource">
        <label>WCAG Single A Compliance Test</label>
       <suite rdf:resource="http://www.w3.org/TR/WCAG10/"/>
       <level rdf:resource="http://www.w3.org/TR/WCAG10/#wc-priority-1"/>
       <note>All Priority 1 checkpoints => WCAG Single-A compliance</note>
     </testCriteria>
    </rdfs:Resource>
   </rdf:object>
  </rdf:Statement>

 </asserts>

 <testMode rdf:resource="http://www.w3.org/2001/03/earl/1.0-test#Manual"/>
 <!-- testMode here is a property of the Assertor -->

</Assertor>
</rdf:RDF>


Now, we try taking out the reification by putting the
quoted content into a separate document:


[doc1.rdf] Document 1 is about the assertor and their test

<rdf:RDF xmlns="http://www.w3.org/2001/03/earl/1.0-test#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<Assertor>
 <email rdf:resource="mailto:bob@example.org"/>
 <name>Bob B. Bobbington</name>
 <asserts rdf:resource="doc2.rdf"/>
 <testMode rdf:resource="http://www.w3.org/2001/03/earl/1.0-test#Manual"/>
</Assertor>
</rdf:RDF>


[doc2.rdf] Document 2 is the content of what we're asserting.

<rdf:RDF xmlns="http://www.w3.org/2001/03/earl/1.0-test#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:earl="http://www.w3.org/2001/03/earl/1.0-test#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

<!-- we've unpacked the reified statement -->

<earl:WebContent>
 <reprOf rdf:resource="http://example.org/net/bob/"/>
 <date>2001-05-07</date>
 <earl:passes>
  <rdfs:Resource>
    <earl:testCriteria>
     <label>WCAG Single A Compliance Test</label>
     <suite rdf:resource="http://www.w3.org/TR/WCAG10/"/>
     <level rdf:resource="http://www.w3.org/TR/WCAG10/#wc-priority-1"/>
     <note>All Priority 1 checkpoints => WCAG Single-A compliance</note>
    </earl:testCriteria>
  </rdfs:Resource>
 </earl:passes>
</earl:WebContent>

</rdf:RDF>


Issues:

Am I misunderstanding EARL? I moved testMode into doc1 as it wasn't
clear what it was attached to.

Note that bits of the RDF weren't reified ("scare quoted") in the
first place: the original RDF file claims that there exists some
webcontent with a date, reprOf property etc. What we've done here
is in effect more conservative than the original RDF, since the
date/reprOf etc content ascribed to the WebContent is written in our
2nd RDF file, which is where we've put the stuff that "Bob says...".
In the original, the main RDF file makes these assertions without
any qualification or quoting.


Comments?

Received on Thursday, 13 December 2001 09:41:07 UTC