Protocol question

Hello

I tried to post annotations to the annotea test server with following 
two RDF/XML posts, the first one works the second one results in 
annotation with an invalid body. I think the two RDF/XML snippets 
serializes the identical RDF-graph and thus should cause the same 
result. Do I missunderstand the protocol?

this one works:
------
<rdf:RDF
   xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
   xmlns:NS0='http://www.w3.org/2000/10/annotation-ns#'
   xmlns:dc='http://purl.org/dc/elements/1.0/'
   xmlns:NS2='http://www.w3.org/1999/xx/http#'
  >
   <rdf:Description rdf:nodeID='A0'>
     <rdf:type 
rdf:resource='http://www.w3.org/2000/10/annotation-ns#Annotation'/>
     <rdf:type 
rdf:resource='http://www.w3.org/2000/10/annotationType#Comment'/>
     <NS0:annotates rdf:resource='http://www.example.org/'/>
     <NS0:context rdf:resource='http://www.example.org/'/>
     <dc:creator>Reto Bachmann</dc:creator>
     <dc:title>a test</dc:title>
     <NS0:created>2003-01-20T21:46Z</NS0:created>
     <dc:date>2003-01-20T21:46Z</dc:date>
     <NS0:body>
		<rdf:Description>
			<rdf:type rdf:resource='http://www.w3.org/1999/xx/http#http'/>
		    <NS2:ContentType>text/html</NS2:ContentType>
		    <NS2:ContentLength>101</NS2:ContentLength>
		    <NS2:Body xml:lang='en' rdf:parseType='Literal'>
		    	<html>
					<head>
						<title>
						a test
						</title>
					</head>
					<body>
					This is the content of the body
					</body>
				</html>
			</NS2:Body>
		</rdf:Description>
     </NS0:body>
   </rdf:Description>
</rdf:RDF>
-----


this one doesn't:
-----
<rdf:RDF
   xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
   xmlns:NS0='http://www.w3.org/2000/10/annotation-ns#'
   xmlns:dc='http://purl.org/dc/elements/1.0/'
   xmlns:NS2='http://www.w3.org/1999/xx/http#'
  >
   <rdf:Description rdf:nodeID='A0'>
     <rdf:type 
rdf:resource='http://www.w3.org/2000/10/annotation-ns#Annotation'/>
     <rdf:type 
rdf:resource='http://www.w3.org/2000/10/annotationType#Comment'/>
     <NS0:annotates rdf:resource='http://www.example.org/'/>
     <NS0:context rdf:resource='http://www.example.org/'/>
     <dc:creator>Reto Bachmann</dc:creator>
     <dc:title>a test</dc:title>
     <NS0:created>2003-01-20T21:46Z</NS0:created>
     <dc:date>2003-01-20T21:46Z</dc:date>
     <NS0:body rdf:nodeID='A1'/>
   </rdf:Description>
</rdf:RDF>
<rdf:Description rdf:nodeID='A1'>
	<rdf:type rdf:resource='http://www.w3.org/1999/xx/http#http'/>
     <NS2:ContentType>text/html</NS2:ContentType>
     <NS2:ContentLength>101</NS2:ContentLength>
     <NS2:Body xml:lang='en' rdf:parseType='Literal'>
     	<html>
			<head>
				<title>
				a test
				</title>
			</head>
			<body>
			This is the content of the body
			</body>
		</html>
	</NS2:Body>
</rdf:Description>
-----

cheers
Reto

Received on Monday, 20 January 2003 16:01:31 UTC