- From: Chris Ridpath <chris.ridpath@utoronto.ca>
- Date: Wed, 27 Apr 2005 06:50:41 -0400
- To: "Charles McCathieNevile" <charles@sidar.org>, <public-wai-ert@w3.org>
> This seems feasible to me,except that on the call I think we went in the > directionof definig a class earl:Location (instead of earl:thing in yur > code). > I've modified the "location" from my previous example so it looks like this: <earl:Location> <rdf:Bag> <rdf:li rdf:parseType="Resource"> <dc:title>anchor</dc:title> <earl:line>8</earl:line> <earl:xpath>/html/body/p/a[@href="dogs.html"]</earl:xpath> <earl:column>57</earl:column> <earl:linktext>click here</earl:linktext> </rdf:li> <rdf:li rdf:parseType="Resource"> <dc:title>text</dc:title> <earl:line>8</earl:line> <earl:column>57</earl:column> <earl:md5>a4ea91cd0d1ea33d8113457644dd6157</earl:md5> <earl:text>click here</earl:text> </rdf:li> </rdf:Bag> </earl:Location> I've added a title to describe what the things are instead of using the rdf:about attribute as you suggested. It's valid RDF and I think it means the same as what you suggested. In this example I need to store info about the anchor and the link text because the accessibility test requires that the link text describe the link destination. I've created 2 new earl elements called earl:md5 and earl:text but I don't think this is quite right. We're going to need more of these things but I'm not sure how to put them in the location properly. Here's a link to the complete example: http://checker.atrc.utoronto.ca/test197-earl2.html Chris ----- Original Message ----- From: "Charles McCathieNevile" <charles@sidar.org> To: "Chris Ridpath" <chris.ridpath@utoronto.ca>; <public-wai-ert@w3.org> Sent: Tuesday, April 26, 2005 1:30 PM Subject: Re: correct RDF Re: Locating In EARL Example > This seems feasible to me,except that on the call I think we went in the > directionof definig a class earl:Location (instead of earl:thing in yur > code). > > You could also have > > ... > <r:Bag> > <r:li> > <e:Location r:about="#firstThing"> > <!- properties describing the location --> > </e:Location> > </r:li> > <r:li> > <e:Location r:about="#secondThing"> > <!- properties describing the location --> > </e:Location> > </r:li> > <r:li> > <e:Location r:about="#anotherThing"> > <!- properties describing the location --> > </e:Location> > </r:li> > </r:Bag> > > cheers > > Chaals > > On Tue, 12 Apr 2005 16:27:13 +0200, Chris Ridpath > <chris.ridpath@utoronto.ca> wrote: > >> <rdf:Bag rdf:about="#foo"> >> Getting closer but this is not quite right. I'm trying to identify each >> of the rdf:li elements within the rdf:Bag. Putting a dc:title or a >> rdf:about attribute on the rdf:li won't work. >> I'm thinking of something like (note the 2 earl:thing elements >> referenced within the earl:location collection): >> <?xml version="1.0" encoding="UTF-8"?> >> <rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" >> xmlns:earl="http://www.w3.org/WAI/ER/ >> EARL/nmg-strawman#" >> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> >> <earl:WebContent rdf:about="#subject"> >> <earl:reprOf >> rdf:resource="http://tile-cridpath.atrc.utoronto.ca/acheck/checks/testfiles/ >> 197-5.html"/> >> <dc:date >> rdf:datatype="http://www.w3.org/2001/XMLSchema#gDateTime">2005-04-08T04:38:43- >> 0400</dc:date> >> </earl:WebContent> >> <earl:Tool rdf:about="#assertor"> >> <dc:title>ATRC Accessibility Checker</dc:title> >> <dc:source>http://tile-cridpath.atrc.utoronto.ca/acheck/servlet/ShowCheck</dc:source> >> <dc:version>0.6.4</dc:version> >> </earl:Tool> >> <earl:thing rdf:about="#image"> >> <earl:line>9</earl:line> >> <earl:xpath>/html/body/p/a/img</earl:xpath> >> <earl:alt>image</earl:alt> >> <earl:src>more.gif</earl:src> >> </earl:thing> >> <earl:thing rdf:about="#anchor"> >> <earl:line>9</earl:line> >> <earl:href>spending.html</earl:href> >> <earl:xpath>/html/body/p/a</earl:xpath> >> </earl:thing> >> <earl:Assertion> >> <dc:date >> rdf:datatype="http://www.w3.org/2001/XMLSchema#gDateTime">2005-04-08T04:38:43- >> 0400</dc:date> >> <earl:Subject rdf:resource="#subject"/> >> <earl:location> >> <rdf:Bag> >> <rdf:li rdf:resource="#image"/> >> <rdf:li rdf:resource="#anchor"/> >> </rdf:Bag> >> </earl:location> >> <earl:testCase >> rdf:resource="http://www.w3.org/WAI/GL/WCAG20/tests/test197.html"/> >> <earl:result rdf:parseType="Resource"> >> <earl:validity >> rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#fail"/> >> <earl:confidence >> rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#low"/> >> <earl:message rdf:parseType="Literal" xml:lang="en">Anchor text may not >> identify the link destination.</earl:message> >> </earl:result> >> <earl:Assertor rdf:resource="#assertor"/> >> <earl:mode >> rdf:resource="http://www.w3.org/WAI/ER/EARL/nmg-strawman#automatic"/> >> </earl:Assertion> >> </rdf:RDF> >> This shows that the 2 things "image" and "anchor" are used to locate >> the accessibility error. I'm not sure this is 100% correct and would >> appreciate any comments. >> > > > > -- > Charles McCathieNevile Fundacion Sidar > charles@sidar.org +61 409 134 136 http://www.sidar.org
Received on Wednesday, 27 April 2005 10:50:57 UTC