Re: [ACTION] Warnings in EARL

Carlos Iglesias schrieb:
> For example a representation of typical CSS validator warnings could be as follows:
> 
> <earl:TestResult rdf:ID="result">
>   <earl:validity rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#pass"/>
>   <dc:title xml:lang="en">W3C CSS Validator Results</dc:title>
>   <dc:description rdf:parseType="Literal" xml:lang="en">
>     <div xmlns="http://www.w3.org/1999/xhtml">
>       <p>This document validates as CSS!</p>
>     </div>
>   </dc:description>
>   <earl:warning rdf:resource="#warning1"/>
>   <earl:warning rdf:resource="#warning2"/>
> </earl:TestResult>
> 
> <earl:Warning rdf:ID="warning1">
>   <dc:title xml:lang="en">Same color and background-color</dc:title>
>   <dc:description rdf:parseType="Literal" xml:lang="en">
>     <div xmlns="http://www.w3.org/1999/xhtml">
>       <p>Same colors for color and background-color in two contexts</p>
>     </div>
>   </dc:description>
>   <earl:instance rdf:resource="#instance1"/>
>   <earl:instance rdf:resource="#instance2"/>
> </earl:Warning>
> 
> <earl:Warning rdf:ID="warning2">
>   <dc:title xml:lang="en">Redefinition of property</dc:title>
>   <dc:description rdf:parseType="Literal" xml:lang="en">
>     <div xmlns="http://www.w3.org/1999/xhtml">
>       <p>Redefinition of margin-bottom</p>
>     </div>
>   </dc:description>
>   <earl:instance rdf:resource="#instanceN"/>
> </earl:Warning>

An alternative using subclasses would look like:

<earl:TestResult rdf:ID="result1">
   <earl:validity 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#passNonOptimal"/>
   <dc:title xml:lang="en">Same color and background-color</dc:title>
   <dc:description rdf:parseType="Literal" xml:lang="en">
     <div xmlns="http://www.w3.org/1999/xhtml">
       <p>Same colors for color and background-color in two contexts</p>
     </div>
   </dc:description>
   <earl:instance rdf:resource="#instance1"/>
   <earl:instance rdf:resource="#instance2"/>
</earl:TestResult>

<earl:TestResult rdf:ID="result2">
   <earl:validity 
rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#passNonOptimal"/>
   <dc:title xml:lang="en">Redefinition of property</dc:title>
   <dc:description rdf:parseType="Literal" xml:lang="en">
     <div xmlns="http://www.w3.org/1999/xhtml">
       <p>Redefinition of margin-bottom</p>
     </div>
   </dc:description>
   <earl:instance rdf:resource="#instanceN"/>
</earl:TestResult>

with ...#passNonOptimal being a subclass of ...#pass.

> <earl:PointerCollection rdf:about="#instance1">
>   <earl:LineCharLenPointer>
>     <earl:line>145</earl:line>
>     <earl:char>1</earl:char>
>   </earl:LineCharLenPointer>
> </earl:PointerCollection>
> 
> <earl:PointerCollection rdf:about="#instance2">
>   <earl:LineCharLenPointer>
>     <earl:line>154</earl:line>
>     <earl:char>1</earl:char>
>   </earl:LineCharLenPointer>
> </earl:PointerCollection>
> 
> <earl:PointerCollection rdf:about="#instanceN">
>   <earl:LineCharLenPointer>
>     <earl:line>193</earl:line>
>     <earl:char>1</earl:char>
>   </earl:LineCharLenPointer>
> </earl:PointerCollection>

-- 
Johannes Koch - Competence Center BIKA
Fraunhofer Institute for Applied Information Technology (FIT.LIFE)
Schloss Birlinghoven, D-53757 Sankt Augustin, Germany
Phone: +49-2241-142628    Fax: +49-2241-142065

Received on Tuesday, 5 December 2006 09:17:10 UTC