Re: Locating In EARL Example

Shadi Abou-Zahra wrote:

> This means, each earl:location describes one occurrence of the result in a subject but there could be any number of occurrences in a single assertion. An occurrence could also be composed of more than one part, for example image maps was suggested.

Just to make this clear: My proposal was

* for each instance of error/warning/etc. create one location
* if an instance of error/warning/etc. needs more than one locating 
thing, use a Seq

In order to use rdf:parseType="Collection", it may be necessary to write

     <earl:locations rdf:parseType="Collection">
       <earl:location>
         <earl:line>3</earl:line>
         <earl:column>19</earl:column>
         <earl:xpath>/html[1]/body[1]/p[1]/map[1]/area[2]</earl:xpath>
         <earl:near rdf:parseType="Literal"><![CDATA[<area 
href="foo.jpg" alt="foo">]]></earl:near>
       </earl:location>
       <earl:location>
         <earl:line>24</earl:line>
         <earl:column>67</earl:column>
         <earl:xpath>/html[1]/body[1]/ol[1]/li[2]/a[1]</earl:xpath>
         <earl:near rdf:parseType="Literal"><![CDATA[<li><a 
href="foo.html">foo</a></li>]]></earl:near>
       </earl:location>
     </earl:locations>

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

Received on Wednesday, 6 April 2005 14:36:33 UTC