W3C home > Mailing lists > Public > public-lod@w3.org > February 2013

Re: Content negotiation for Turtle files

From: Ivan Herman <ivan@w3.org>
Date: Wed, 6 Feb 2013 12:13:42 +0100
Cc: chris@codex.net.au, Linking Open Data <public-lod@w3.org>
Message-Id: <F03AEA3A-9719-42C0-99DB-648CB5FEF71A@w3.org>
To: Bernard Vatant <bernard.vatant@mondeca.com>
Bernard,

On Feb 6, 2013, at 11:59 , Bernard Vatant <bernard.vatant@mondeca.com> wrote:

> Hi Chris
> 
> AND : there's NO rdf+xml file in that case, only text/turtle. And that's exactly the point : can/should one do that, or not? Do I have to pass the message to adopters : publish RDF in Turtle, it's a very cool an simple syntax (oh but BTW don't forget to add HTML documentation, and also RDF/XML, and JSON, and multilingual variants, and proper content negotiation ...) ... well, OK, let's be clear about it if we have to do that ... but it looks like a non-starter for adoption of Turtle. 
>  

I do not believe the .var mechanism is bound to the necessity of publishing both rdf/xml and turtle; I just described what we do. If you use it only for turtle, that should work, too.

B.t.w., you (and chris) asked for the curl outputs for the setup, I added it below. The default returns html; I think if the only thing you had was turtle, then that is fine, too.

Ivan

12:11 Desktop> curl --head http://www.w3.org/ns/r2rml/
HTTP/1.1 200 OK
Date: Wed, 06 Feb 2013 11:11:18 GMT
Server: Apache/2
Vary: accept
Last-Modified: Mon, 17 Sep 2012 15:21:58 GMT
ETag: "1818d-4c9e7559fb180;a0-4939a0734f380"
Accept-Ranges: bytes
Content-Length: 98701
Cache-Control: max-age=21600
Expires: Wed, 06 Feb 2013 17:11:18 GMT
P3P: policyref="http://www.w3.org/2001/05/P3P/p3p.xml"
Connection: close
Content-Type: text/html; charset=utf-8

12:11 Desktop> curl --head --header "Accept: text/turtle"  http://www.w3.org/ns/r2rml/
HTTP/1.1 200 OK
Date: Wed, 06 Feb 2013 11:11:45 GMT
Server: Apache/2
Vary: accept
Last-Modified: Mon, 30 Jul 2012 13:04:36 GMT
ETag: "5292-4c60bb4236100;a0-4939a0734f380"
Accept-Ranges: bytes
Content-Length: 21138
Cache-Control: max-age=21600
Expires: Wed, 06 Feb 2013 17:11:45 GMT
P3P: policyref="http://www.w3.org/2001/05/P3P/p3p.xml"
Connection: close
Content-Type: text/turtle; charset=utf-8

12:11 Desktop> curl --head --header "Accept: text/turtle, application/rdf+xml"  http://www.w3.org/ns/r2rml/
HTTP/1.1 200 OK
Date: Wed, 06 Feb 2013 11:12:16 GMT
Server: Apache/2
Vary: accept
Last-Modified: Mon, 30 Jul 2012 13:04:36 GMT
ETag: "5292-4c60bb4236100;a0-4939a0734f380"
Accept-Ranges: bytes
Content-Length: 21138
Cache-Control: max-age=21600
Expires: Wed, 06 Feb 2013 17:12:16 GMT
P3P: policyref="http://www.w3.org/2001/05/P3P/p3p.xml"
Connection: close
Content-Type: text/turtle; charset=utf-8

12:12 Desktop> 



----
Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
mobile: +31-641044153
FOAF: http://www.ivan-herman.net/foaf.rdf







Received on Wednesday, 6 February 2013 11:14:12 UTC

This archive was generated by hypermail 2.3.1 : Sunday, 31 March 2013 14:24:46 UTC