Matthew Wilson | 8 Jan 18:51
Picon
Picon

Reply protocols


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

&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;!-- session-id 1199813896.488673&quot; --&gt;
(Continue reading)

Urs Holzer | 10 Jan 11:11

Re: Reply protocols


Hi Matthew

>    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.

Amaya has always been like this ;-)
As far as I know, there is still a problem with Annotations in Amaya. It 
crashes at the next http request after loading Annotations. :-(

>    Anyway, looking at
> http://www.w3.org/2002/12/AnnoteaProtocol-20021219#ReplyProtocol I
> find a few typos.
>
> [...]
>
> 3. Figure 3.3 specifies the query parameter as "w3c_reply_tree",
> where "w3c_replyTree" seems to be what is implemented.

Good you mention that. In my own server software I implemented 
w3c_reply_tree. It seems I have to accept w3c_replyTree too.

> 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
> [...]

(Continue reading)

Matthew Wilson | 10 Jan 20:37
Picon
Picon

Re: Reply protocols


Urs Holzer wrote:
> Hi Matthew
> 
>>    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.
> 
> Amaya has always been like this ;-)
> As far as I know, there is still a problem with Annotations in Amaya. It 
> crashes at the next http request after loading Annotations. :-(

I found an earlier version (around 8.5 I think) which seemed to work OK.

>>    Anyway, looking at
>> http://www.w3.org/2002/12/AnnoteaProtocol-20021219#ReplyProtocol I
>> find a few typos.
>>
>> [...]
>>
>> 3. Figure 3.3 specifies the query parameter as "w3c_reply_tree",
>> where "w3c_replyTree" seems to be what is implemented.
> 
> Good you mention that. In my own server software I implemented 
> w3c_reply_tree. It seems I have to accept w3c_replyTree too.
> 
>> 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,
(Continue reading)

Urs Holzer | 11 Jan 12:13

Re: Reply protocols


Matthew Wilson wrote:
> I think the problem is in the RDF posted. By observing Amaya, I found
> a form of RDF content which worked. It seemed to need an
> "<a:context>" describing the portion of the annotation body being
> replied to, and, strangely, to need a Dublin Core 1.0 namespace
> instead of 1.1.

Does it reject all posts containing properties (from namespaces) it does 
not know or does it only expect some properties to be present? 

> Also, in retrieving replies, the documentation shows retrieval of
> /Annotation?w3c_reply_tree=<url>, but the server seems to need
> /Annotation?w3c_annotates=<url>&w3c_replyTree=<url>.

The second one is for retrieving annotations that annotate the 
annotation <url> and replies to the annotation <url> in one request. 
w3c_reply_tree (or w3c_replyTree) does only get the replies to an 
annotation. So I'm puzzled why the server always needs both of them.

Crazy. However, I ask myself when the server code was last updated. I am 
not from the W3C, so I can not tell, but I believe the software is 
quite outdated. I recommend we stick to 
http://www.w3.org/2001/Annotea/User/Protocol.html
In Annozilla, the exact behaviour should be configurable on a per server 
basis in order to work with the w3c's annotea server.

Do you have any other annotea servers you can test against? My own 
server is not running right now (some library dependency problems). But 
if you want, I can get it running again next week and send you username 
(Continue reading)

Matthew Wilson | 12 Jan 17:32
Picon
Picon

Re: Reply protocols


Urs Holzer wrote:
> Matthew Wilson wrote:
>> I think the problem is in the RDF posted. By observing Amaya, I found
>> a form of RDF content which worked. It seemed to need an
>> "<a:context>" describing the portion of the annotation body being
>> replied to, and, strangely, to need a Dublin Core 1.0 namespace
>> instead of 1.1.
> 
> Does it reject all posts containing properties (from namespaces) it does 
> not know or does it only expect some properties to be present? 

I'm not sure. It seems to accept a post with DC1.1, but not to retrieve 
it again.

>> Also, in retrieving replies, the documentation shows retrieval of
>> /Annotation?w3c_reply_tree=<url>, but the server seems to need
>> /Annotation?w3c_annotates=<url>&w3c_replyTree=<url>.
> 
> The second one is for retrieving annotations that annotate the 
> annotation <url> and replies to the annotation <url> in one request. 
> w3c_reply_tree (or w3c_replyTree) does only get the replies to an 
> annotation. So I'm puzzled why the server always needs both of them.
> 
> Crazy. However, I ask myself when the server code was last updated. I am 
> not from the W3C, so I can not tell, but I believe the software is 
> quite outdated. I recommend we stick to 
> http://www.w3.org/2001/Annotea/User/Protocol.html

I tend to treat the W3C Server and Amaya as a reference implementation.
(Continue reading)

Urs Holzer | 12 Jan 20:04

Re: Reply protocols


Matthew Wilson wrote:
> I tend to treat the W3C Server and Amaya as a reference
> implementation.

True, they are reference implementations, however even reference 
implementations can have quirks. But you are right, it is important 
that our software can interoperate with Amaya and the W3C annotea 
server. I know that there is at least one other server implementation. 
Perhaps we should take a look at that one too? We also could contact 
the developers/admins of the W3C annotea server. We also have to get 
the Amaya developers to fix those crashes.

> > In Annozilla, the exact behaviour should be configurable on a per
> > server basis in order to work with the w3c's annotea server.
>
> That sounds like too much of an effort to put on the user, to expect
> them to know the exact behaviour of the server they're using.

You are right about that. Perhaps we can sort out these problems 
somehow. (But never mind, I will adapt my own server code so that it 
works with Annozilla anyway.)

I will be able help (as far as I can) in two weeks. Right now I don't 
have enough time.

By the way, is there someone else reading this Mailinglist? I would 
really like to hear more opinions.

(Continue reading)


Gmane