[redland-dev] Slight Bug or Enhancement Request to the parser

Benno Blumenthal benno at iri.columbia.edu
Mon Mar 5 20:29:43 UTC 2007


At the moment, I am running a sesame2 alpha at

http://iridl.ldeo.columbia.edu/sesame2/repositories/function-rdf

If one just hits the url, it returns the entire repository.   Tricky 
part is, the format varies (I think according to the Accepts: header)

If I hit it with mozilla, it returns text/plain  ntriples
If I hit it with wget, it returns rdfxml.

If I hit it with redland, it returns rdfxml.     Even if I told redland 
to expect ntriples.     This is obviously a bit tricky for the user, so it
would be nice if Redland either set it Accepts header according to what 
it has been told, or if it looked at the content-type to make sure
it is parsing things correctly.  Accepts allows multiple items, so just 
putting the preferred format first would suffice.

Benno

Log lines:

1173113433.364    563 129.236.111.138 TCP_MISS/200 1403183 GET 
http://libby.ldeo.columbia.edu:8180/sesame2/repositories/function-rdf - 
DIRECT/129.236.112.70 text/plain [Host: 
libby.ldeo.columbia.edu:8180\r\nUser-Agent: Mozilla/5.0 (X11; U; Linux 
i686; en-US; rv:1.7.7) Gecko/20050414\r\nAccept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5\r\nAccept-Language: 
en-us,en;q=0.5\r\nAccept-Encoding: gzip,deflate\r\nAccept-Charset: 
ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nKeep-Alive: 300\r\nProxy-Connection: 
keep-alive\r\n] [HTTP/1.1 200 OK\r\nServer: 
Apache-Coyote/1.1\r\nContent-Type: text/plain\r\nDate: Mon, 05 Mar 2007 
16:50:32 GMT\r\nConnection: close\r\n\r]
1173124692.357   4402 129.236.112.70 TCP_MISS/200 1673668 GET 
http://iridl3p.ldeo.columbia.edu/sesame2/repositories/function-rdf - 
ROUNDROBIN_PARENT/libby.ldeo.columbia.edu application/rdf+xml [Host: 
iridl3p.ldeo.columbia.edu\r\nPragma: no-cache\r\nAccept: */*;q=0.1\r\n] 
[HTTP/1.1 200 OK\r\nServer: Apache-Coyote/1.1\r\nContent-Type: 
application/rdf+xml\r\nDate: Mon, 05 Mar 2007 19:58:07 
GMT\r\nConnection: close\r\n\r]
1173125177.016   3189 129.236.112.70 TCP_MISS/200 1673668 GET 
http://iridl3p.ldeo.columbia.edu/sesame2/repositories/function-rdf - 
ROUNDROBIN_PARENT/libby.ldeo.columbia.edu application/rdf+xml 
[User-Agent: Wget/1.10.2 (Red Hat modified)\r\nAccept: */*\r\nHost: 
iridl3p.ldeo.columbia.edu\r\nConnection: Keep-Alive\r\n] [HTTP/1.1 200 
OK\r\nServer: Apache-Coyote/1.1\r\nContent-Type: 
application/rdf+xml\r\nDate: Mon, 05 Mar 2007 20:06:13 
GMT\r\nConnection: close\r\n\r]




-- 
Dr. M. Benno Blumenthal          benno at iri.columbia.edu
International Research Institute for climate and society
The Earth Institute at Columbia University
Lamont Campus, Palisades NY 10964-8000   (845) 680-4450








More information about the redland-dev mailing list