Re: [Recipes] Puzzle with HTTP Accept, Firefox header plug-in and RDF

Hi Antoine,

It may be that the User-Agent header is causing the Accept header to
be overridden. 

I don't have access to the config for the 2008/05 namespace, but it's
probably using some variant of [recipe 3]. There have been some minor
changes to this recipe since I worked on it, so I'm not sure exactly
how it will behave with both an Accept: application/rdf+xml header and
a User-Agent: Mozilla/... header, you'd have to ask diego. Ralph can
confirm the .htaccess rules that are in place.

Cheers,

Alistair

[recipe 3] http://www.w3.org/TR/swbp-vocab-pub/#recipe3 

On Thu, Feb 12, 2009 at 04:39:02PM +0100, Antoine Isaac wrote:
>
> Hi everyone,
>
> Related to getting the SKOS RDF file by it default URI (or at least to test that ability), I wanted to change my browser's headers so that it asks for RDF data and not HTML anymore.
> Following Sean's advice, I have installed the ModifyHeader plug-in for Firefox (I'm still at version 2.0).
>
> I now have the following problem.
> I have changed the Accept header sent by my Firefox to application/rdf+xml (only)
> On dbPedia, when it queries [1] , Firefox gets redirected to the RDF file [2]. Perfect!
> But when it queries for the SKOS 2008 file [3], Firefox gets redirected to [4] and not to [5].
>
> How come? What is puzzling is that Vapour [6] reports that everything is ok with both URIs [1] and [3], even though the behaviours differ when there is no content negociation. Interestingly, Vapour itself recognizes my Accept headers: when I activate the application/rdf+xml only, it sends its reports in RDF, while it sends the HTML if I do nothing.
>
> Is there something more than Accept header involved? Has my plug-in bugs, or am I just too dumb to think of myself playing with that kind of stuff?
>
> Thanks for any feedback,
>
> Antoine
>
>
> [1] http://dbpedia.org/resource/William_Shakespeare
> [2] http://dbpedia.org/data/William_Shakespeare.rdf
> [3] http://www.w3.org/2008/05/skos
> [4] http://www.w3.org/TR/2008/WD-skos-reference-20080829/skos.html
> [5] http://www.w3.org/TR/2008/WD-skos-reference-20080829/skos.rdf
> [6] http://validator.linkeddata.org/
>
> ========================
>
> http://www.w3.org/2008/05/skos
>
> GET /2008/05/skos HTTP/1.1
> Host: www.w3.org
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20
> Accept: application/rdf+xml
> Accept-Language: fr,en-us;q=0.8,fr-fr;q=0.5,en;q=0.3
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
>
> HTTP/1.x 303 See Other
> Date: Thu, 12 Feb 2009 15:13:21 GMT
> Server: Apache/2
> Location: http://www.w3.org/TR/2008/WD-skos-reference-20080829/skos.html
> Cache-Control: max-age=21600
> Expires: Thu, 12 Feb 2009 21:13:21 GMT
> Content-Length: 269
> Connection: close
> Content-Type: text/html; charset=iso-8859-1
>
>
>

-- 
Alistair Miles
Senior Computing Officer
Image Bioinformatics Research Group
Department of Zoology
The Tinbergen Building
University of Oxford
South Parks Road
Oxford
OX1 3PS
United Kingdom
Web: http://purl.org/net/aliman
Email: alistair.miles@zoo.ox.ac.uk
Tel: +44 (0)1865 281993

Received on Friday, 13 February 2009 14:26:03 UTC