- From: Matthew Wilson <matthew@mjwilson.demon.co.uk>
- Date: Tue, 08 Jan 2008 17:51:42 +0000
- To: www-annotation@w3.org
Hi,
I'm finally getting round to implementing the Reply protocols in
Annozilla, and I'm having a few problems. One is that Amaya seems to be
pretty crash-happy at the moment, but I suppose that's best for another
list.
Anyway, looking at
http://www.w3.org/2002/12/AnnoteaProtocol-20021219#ReplyProtocol I find
a few typos.
1. Figure 3.1 has a typo with a colon instead of an equals sign:
xmlns:rt:"http://www.w3.org/2001/12/replyType"
(The rt namespace doesn't seem to be used in the sample anyway.)
2. Figure 3.1 also has a mismatched "</a>" tag in the annotation body.
3. Figure 3.3 specifies the query parameter as "w3c_reply_tree", where
"w3c_replyTree" seems to be what is implemented.
With these corrected, I'm trying to perform a simple POST, containing
more or less the same content as the sample, but I don't get the
expected response back. If I add "Accept: text/rdf" to the request, then
the response I get is a 404 error with
<?xml version="1.0"?>
<!-- session-id 1199813896.488673" -->
<r:RDF
xmlns:r="<a
href="http://www.w3.org/1999/02/22-rdf-syntax-ns#">http://www.w3.org/1999/02/22-rdf-syntax-ns#</a>">
</pre>
<h3>error: found no annotation or reply.</h3>
<pre class="printAnnotation_plainText">ARRAY(0x8b633c4)
The RDF submitted is listed below.
<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:tr="http://www.w3.org/2001/03/thread#"
xmlns:h="http://www.w3.org/1999/xx/http#"
xmlns:rt="http://www.w3.org/2001/12/replyType">
<r:Description>
<r:type r:resource="http://www.w3.org/2001/03/thread#Reply"/>
<r:type r:resource="http://www.w3.org/2001/12/replyType#Agree"/>
<tr:root
r:resource="http://annotest.w3.org/annotations/annotation/1199813022.945436"/>
<tr:inReplyTo
r:resource="http://annotest.w3.org/annotations/annotation/1199813022.945436"/>
<d:title>Annotation of Sample Page</d:title>
<d:creator>Matthew Wilson</d:creator>
<a:created>1999-10-14T12:10Z</a:created>
<d:date>1999-10-14T12:10Z</d:date>
<a:body>
<r:Description>
<h:ContentType>text/html</h:ContentType>
<h:Body r:parseType="Literal">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Matthew\'s Reply</title>
</head>
<body>
<p>I agree with Ralph. What would be the next step?.</p>
</body>
</html>
</h:Body>
</r:Description>
</a:body>
</r:Description>
</r:RDF>
Matthew Wilson
Received on Tuesday, 8 January 2008 17:52:15 UTC