Earl, 404 checks and Annotea.

HI,

I've taken, the 404 checklink suggestion, as I felt this was a nice
simple place to start with an EARL client implementation that built on
top of Annotea which allows people to share the 404 notices. (one thing
on this though, is that an annotatea check is more resource intensive
than performing your own 404 checks for the majority of pages, so it's
probably a bit silly :-)

So anyway the first thing I need to do is to get the 404 report into
EARL, but I'm not completly understanding RDF yet (and am much more able
to hack around something that works than understand the technical specs
initially.) so I've tried to hack something together:

<rdf:RDF xmlns="http://www.w3.org/2001/03/earl/0.95#"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
 <rdf:Description>
  <asserts rdf:parseType="Resource">
   <rdf:subject rdf:parseType="Resource">
    <testCase
rdf:resource="http://jibbering.com/404.html#xpointer(/html[1]/body[1]/p[1
]/a[2])" />
    <testMode rdf:resource="http://www.w3.org/2001/03/earl/0.95#Auto" />
    <testSuite rdf:resource="http://jibbering.com/fillyjonk/" />
    <date>Sat, 27 Aug 2001 19:27:52 GMT</date>
    <note>Link is a 404</note>
   </rdf:subject>
   <rdf:predicate rdf:resource="http://jibbering.com/fillyjonk/#404" />
  </asserts>
  </rdf:Description>
</rdf:RDF>

Is this right?    Fillyjonk[1] is the tool that will check for 404's it's
not at the url yet, and will generally be built in to Snufkin, rather
than standalone.

So how do I then include this with annotea, this is what I think I want
to submit:

<r:RDF xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
       xmlns:a="http://www.w3.org/2000/10/annotation-ns#"
       xmlns:d="http://purl.org/dc/elements/1.1/"
       xmlns:earl="http://www.w3.org/2001/03/earl/0.95#">
 <r:Description>
  <r:type resource="http://www.w3.org/2000/10/annotation-ns#Annotation"/>
  <r:type resource="http://jibbering.com/fillyjonk/#linkreport"/>
  <a:annotates r:resource="http://jibbering.com/404.html"/>
  <a:context
r:resource="http://jibbering.com/404.html#xpointer(/html[1]/body[1]/p[1]/
a[2])"/>
  <d:creator r:resource="http://jibbering.com/fillyjonk/"/>
  <a:created></a:created>
  <d:date></d:date>
  <a:body>
  <r:Description>
  <earl:asserts r:parseType="Resource">
  <r:subject r:parseType="Resource">
   <earl:testCase
r:resource="http://jibbering.com/404.html#xpointer(/html[1]/body[1]/p[1]/
a[2])" />
   <earl:testMode r:resource="http://www.w3.org/2001/03/earl/0.95#Auto"
/>
   <earl:testSuite r:resource="http://jibbering.com/fillyjonk/" />
   <earl:date>Sat, 27 Aug 2001 19:27:52 GMT</earl:date>
  </r:subject>
  <r:predicate r:resource="http://jibbering.com/fillyjonk/#404" />
 </earl:asserts>
 </r:Description>
  </a:body>
 </r:Description>
</r:RDF>

but Annotea doesn't consider this properly - it ignores my <r:type
resource="http://jibbering.com/fillyjonk/#linkreport"/> link treating it
exactly the same as the normal comment namespace (it seems)  so is this
not the way to go, I think a type other than a comment would make
querying the annotations easier, but what is the correct approach?

Jim.

Received on Friday, 26 October 2001 12:25:56 UTC