W3C home > Mailing lists > Public > public-cwm-talk@w3.org > January to March 2010

Re: Simplifying things

From: Henry Story <henry.story@gmail.com>
Date: Tue, 19 Jan 2010 10:22:03 +0000
Cc: baetle@googlegroups.com
Message-Id: <4508B810-5002-4335-92F3-562943982D34@gmail.com>
To: public-cwm-talk@w3.org

On 12 Jan 2010, at 22:51, Toby Inkster wrote:

> On Tue, 2010-01-12 at 14:59 +0100, Henry Story wrote:
>> Not sure if this is a bug in cwm...
> 
> cwm sends:
> 
> 	Accept: application/rdf+xml, text/rdf+n3,
> 	  application/sparql-results+xml
> 
> The server only offers "text/n3". Given the many different media types
> Turtle and N3 are sent under, not sure of the best way to approach this.
> Does anyone know if Apache can be easily configured to treat different
> media types as equivalent?
> 
> I tend to use "text/n3" and "text/turtle" as per:
> 
> 	http://www.w3.org/2008/01/rdf-media-types


You are right. The default on the W3 CVS seems to be to serve this up in text/n3 

$ curl -I http://www.w3.org/ns/auth/cert.n3  
HTTP/1.1 200 OK
Date: Tue, 19 Jan 2010 09:24:04 GMT
Server: Apache/2
Last-Modified: Tue, 19 Jan 2010 09:03:42 GMT
ETag: "1c66-47d80bf15b780"
Accept-Ranges: bytes
Content-Length: 7270
Cache-Control: max-age=21600
Expires: Tue, 19 Jan 2010 15:24:04 GMT
P3P: policyref="http://www.w3.org/2001/05/P3P/p3p.xml"
Connection: close
Content-Type: text/n3; qs=0.89


and running

cwm http://bblfish.net/people/henry/card.n3

 does indeed produce the following request 

GET /people/henry/card.n3 HTTP/1.1
Accept-Encoding: identity
Host: bblfish.net
Connection: close
Accept: text/rdf+n3,application/rdf+xml
User-Agent: Python-urllib/2.6






> 
> -- 
> Toby A Inkster
> <mailto:mail@tobyinkster.co.uk>
> <http://tobyinkster.co.uk>
> -- 
> You received this message because you are subscribed to the Google Groups "baetle" group.
> To post to this group, send email to baetle@googlegroups.com.
> To unsubscribe from this group, send email to baetle+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/baetle?hl=en.
> 
> 
Received on Tuesday, 19 January 2010 14:01:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 January 2010 14:01:50 GMT