W3C home > Mailing lists > Public > w3c-wai-er-ig@w3.org > October 2003

Re: EARL And Validator

From: Charles McCathieNevile <charles@w3.org>
Date: Tue, 28 Oct 2003 15:12:29 -0500 (EST)
To: Chris Ridpath <chris.ridpath@utoronto.ca>
Cc: WAI ER IG List <w3c-wai-er-ig@w3.org>
Message-ID: <Pine.LNX.4.55.0310281446510.16527@homer.w3.org>

Hi Chris,

you're using the 0.95 namespace - you should be using the nmg-strawman
namespace (this isn't really clear from the spec, it would be nice if there
was a chartered working group which would enable a republishing of the spec
as a Working Draft).

here is an exmaple of some earl from that spec, generated by my Xforms
interview tool - http://www.w3.org/2001/sw/Europe/200305/axforms/readme for
more info...

Note that it defines the common bits once (subject, assertor) and uses a
made-up namespace interpretation of WCAG.

For the Testcase I have added a dc:title - otherwise I could have simplified
it somewhat. (The info comes from a file I generated as an input to my
Xform).

<?xml version="1.0" encoding="ISO-8859-1"?>
<rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/"
         xmlns:earl="http://www.w3.org/WAI/ER/EARL/nmg-strawman#"
         xmlns:foaf="http://xmlns.com/foaf/0.1/"
         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:wcag="http://www.w3.org/TR/WCAG10/#">

  <earl:WebContent rdf:about="#subject">
    <earl:reprOf rdf:resource="http://example.org/"/>
    <earl:date>2003-10-28T20:59:01-01:00</earl:date>
  </earl:WebContent>

  <earl:Assertor rdf:about="#assertor">
      <rdf:type><foaf:Person/></rdf:type>
      <earl:name>Your Name</earl:name>
      <earl:email rdf:resource="mailto:you@your.email.address"/>
  </earl:Assertor>

  <earl:Assertion rdf:about="#wcag1cp1.1">
   <earl:subject rdf:resource="#subject"/>
   <earl:message>an example of something listed as passing</earl:message>
    <earl:result
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#pass"/>
    <earl:mode
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#manual"/>
    <earl:testcase>
      <earl:TestCase
rdf:about="http://www.w3.org/TR/WCAG10/#tech-text-equivalent">
        <wcag:priority
rdf:resource="http://www.w3.org/TR/WCAG10/#wc-priority-1"/>
        <dc:title>1.1  Provide a text equivalent for every non-text element
</dc:title>
      </earl:TestCase>
    </earl:testcase>
    <earl:assertedBy rdf:resource="#assertor"/>
  </earl:Assertion>

  <earl:Assertion rdf:about="#wcag1cp1.2">
   <earl:subject rdf:resource="#subject"/>
   <earl:message>in this case it is set up to fail</earl:message>
   <earl:result
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#fail"/>
    <earl:mode
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#manual"/>
    <earl:testcase>
      <earl:TestCase
rdf:about="http://www.w3.org/TR/WCAG10/#tech-redundant-server-links">
        <wcag:priority
rdf:resource="http://www.w3.org/TR/WCAG10/#wc-priority-1"/>
        <dc:title>1.2  Provide redundant text links for each active region of
a server-side image map. </dc:title>
      </earl:TestCase>
    </earl:testcase>
    <earl:assertedBy rdf:resource="#assertor"/>
  </earl:Assertion>
</rdf:RDF>

cheers

Chaals

On Tue, 28 Oct 2003, Chris Ridpath wrote:

>
>I've created a Java servlet that checks a web page for accessibility
>problems and I would like it to output EARL, as well as HTML.
>
>The program is still in the alpha stage but is progressing quickly. You can
>access it from:
>http://www.aprompt.ca/oac/submit.html
>
>For testing purposes, enter the file 'http://www.aprompt.ca/junk1.htm' in
>the URL field.
>
>Select the 'Output EARL' radio button to view the EARL output.
>
>My questions about the EARL output are:
>
>Where do I express the line number (and x-path expression) where the error
>occurred?
>How do I express the guidelines that I've used in the checking?
>Is my use of the 'Testcase' and 'testId' correct?
>
>If you spot any errors or questionable use of the EARL, please let me know.
>
>If you click the 'output HTML' radio button then you can see my
>transformation of the EARL into HTML.
>
>Chris
>
>

Charles McCathieNevile  http://www.w3.org/People/Charles  tel: +61 409 134 136
SWAD-E http://www.w3.org/2001/sw/Europe         fax(france): +33 4 92 38 78 22
 Post:   21 Mitchell street, FOOTSCRAY Vic 3011, Australia    or
 W3C, 2004 Route des Lucioles, 06902 Sophia Antipolis Cedex, France
Received on Tuesday, 28 October 2003 15:12:55 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.30 : Thursday, 9 June 2005 12:10:42 GMT