[redland-dev] Slight Bug or Enhancement Request to the parser
Dave Beckett
dave at dajobe.org
Thu Mar 15 06:34:34 UTC 2007
Benno Blumenthal wrote:
> 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.
Yeah, although raptor itself (such as in rapper, raptor_parse_uri)
does this, it wasn't duplicated in redland. Here's a patch that should
do it, untested.
Dave
-------------- next part --------------
A non-text attachment was scrubbed...
Name: www-accept.patch
Type: text/x-patch
Size: 863 bytes
Desc: not available
Url : http://lists.usefulinc.com/pipermail/redland-dev/attachments/20070314=
/e10fce61/www-accept.bin
More information about the redland-dev
mailing list