W3C home > Mailing lists > Public > w3c-wai-er-ig@w3.org > June 2002

Re: Devising a schema for accessibility testing

From: Nick Kew <nick@webthing.com>
Date: Sun, 30 Jun 2002 21:10:11 +0100 (BST)
To: <w3c-wai-er-ig@w3.org>
Message-ID: <20020630204255.G1187-100000@fenris.webthing.com>


I've been hacking on this today.  I have some valid RDF that
seems to do the job.  I haven't made any effort to reuse
anyone's terms, so any suggestions in that area (and others)
much appreciated.

Does this lot make sense?

Is anyone interested in thinking about generalising it
beyond Valet?

<!-- A test suite defines the set of tests to be applied -->

<valet:testsuite rdf:ID="WCAG1">

<!-- Properties of the testsuite -->

  <valet:url rdf:resource="http://www.w3.org/TR/WCAG10/"/>
  <valet:description>
	Web Content Accessibility Guidelines, level A
  </valet:description>
  <rdf:domain rdf:resource="earl:webcontent"/>

<!-- the testsuite applies one or more test -->
  <valet:applies>

<!-- We define an imaginary - but not too far off real - test -->
    <valet:test rdf:ID="test001" >

<!-- The test has some basic properties, as discussed for EARL at the f2f
-->
      <valet:message>Provide a text alternative</valet:message>
      <valet:confidence>Certain</valet:confidence>
      <valet:severity>Error</valet:severity>


<!-- The subject of a test definition is one or more Guideline -->
      <rdf:subject rdf:parseType="Resource">
        <valet:url
rdf:resource="http://www.w3.org/TR/WCAG10/#tech-text-equivalent" />
       </rdf:subject>

<!-- The test applies some action to the guideline.  In Valet's
     implementation, this is a C++ class derived from an abstract base
     class "Test".  Classes define a method "fails", that returns true or
     false, and that will be applied to each DOM node where the test is
     defined as applicable.   Tests may have other parameters -
     prototyping to-be-defined elsewhere.
-->
       <rdf:predicate>
         <valet:code
rdf:about="http://valet.webthing.com/testdefs#hasTextContent">
           <cpp:class>hasTextContent</cpp:class>
           <cpp:params rdf:parseType="Resource">
             <cpp:param>alt</cpp:param>
             <cpp:param>false</cpp:param>
           </cpp:params>
        </valet:code>
      </rdf:predicate>


<!--    The test is applied to one or more HTML element or attribute
        An instance of the element in question will be the EARL subject
        when we apply the test.
-->
      <rdf:object rdf:parseType="Resource">
        <html:element>img</html:element>
        <html:element>object</html:element>
        <html:element>applet</html:element>
      </rdf:object>
    </valet:test>
  </valet:applies>
</valet:testsuite>

</rdf:RDF>



-- 
Nick Kew

Available for contract work - Programming, Unix, Networking, Markup, etc.
Received on Sunday, 30 June 2002 16:10:27 GMT

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