This is going to be integrated to the story about storing annotations in http://www.w3.org/Team/1999/06/annotation/put.html
Content-Type: application/xml
<r:RDF xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:a="http://www.w3.org/1999/xx/annotation-ns#" xmlns:d="http://purl.org/dc/elements/1.0/"> <r:Description> <xlink:href rdf:resource="|#"/> <d:creator>ralph</d:creator> <d:date>date</d:date> <a:body> <r:Description> <http:ContentType>text/html</http:ContentType> <http:Body r:parseType="Literal"> <html xmlns="http://www.w3.org/2000/xhtml"> <head> <title>file:/home/amaya/.amaya/annotations/annotOwWMiQ.html</title> </head> <body> <p>test</p> <p>test</p> <p>more</p> </body> </html> </http:Body> </r:Description/> </a:body> </r:Description> </r:RDF>
<r:RDF xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:a="http://www.w3.org/1999/xx/annotation-ns#" xmlns:d="http://purl.org/dc/elements/1.0/"> <r:Description about="URI of annot"> <a:body r:resource="URI of body"/> </r:Description> </r:RDF>
N.B.: Eric can send back whatever is easier for him (i.e. OK to return the same thing that GET would return), but the above thing is the minimal.
GET /annot-service?uri=uri of my document (xlink href)
Accept: application/xml
Accept: text/plain
(message/rfc822 for Jose)
<r:RDF xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:a="http://www.w3.org/1999/xx/annotation-ns#" xmlns:d="http://purl.org/dc/elements/1.0/"> <r:Description about="URI of annot a"> <xlink:href rdf:resource="|#"/> <d:creator>ralph</d:creator> <d:date>date</d:date> <a:body r:resource="URI of body"/> </r:Description> <r:Description about="URI of annot b"> <xlink:href rdf:resource="|#"/> <d:creator>ralph</d:creator> <d:date>date</d:date> <a:body r:resource="URI of body"/> </r:Description> <r:Description about="URI of annot c"> <xlink:href rdf:resource="|#"/> <d:creator>ralph</d:creator> <d:date>date</d:date> <a:body r:resource="URI of body"/> </r:Description> </r:RDF>
Jose & Ralph & Marja