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

Content negotiation for Turtle files

From: Bernard Vatant <bernard.vatant@mondeca.com>
Date: Wed, 6 Feb 2013 00:49:02 +0100
Message-ID: <CAK4ZFVFyAK5aYMahULuXwx-xeWt1skQFe2py2Wvfuxsn9jwpqw@mail.gmail.com>
To: Linking Open Data <public-lod@w3.org>
Hello all

Back in 2006, I thought had understood with the help of folks around here,
how to configure my server for content negotiation at lingvoj.org.
Both vocabulary and instances were published in RDF/XML.

I updated the ontology last week, and since after years of happy living
with RDF/XML people eventually convinced that it was a bad, prehistoric and
ugly syntax, I decided to be trendy and published the new version in Turtle
at http://www.lingvoj.org/ontology_v2.0.ttl

The vocabulary URI is still the same : http://www.lingvoj.org/ontology, and
the namespace  http://www.lingvoj.org/ontology# (cool URI don't change)

Then I turned to Vapour to test this new publication, and found out that to
be happy with the vocabulary URI it has to find some answer when requesting
application/rdf+xml. But since I have no more RDF/XML file for this
version, what should I do?
I turned to best practices document at http://www.w3.org/TR/swbp-vocab-pub,
but it does not provide examples with Turtle, only RDF/XML.

So I blindly put the following in the .htaccess : AddType
application/rdf+xml .ttl
I found it a completely stupid and dirty trick ... but amazigly it makes
Vapour happy.

But now Firefox chokes on http://www.lingvoj.org/ontology_v2.0.ttl because
it seems to expect a XML file. Chrome has not this issue.
The LOV-Bot says there is a content negotiation issue and can't get the
file. So does Parrot.

I feel dumb, but I'm certainly not the only one, I've stumbled upon a
certain number of vocabularies published in Turtle for which the conneg
does not seem to be perfectly clear either.

What do I miss, folks? Should I forget about it, and switch back to good
ol' RDF/XML?


*Bernard Vatant
Vocabularies & Data Engineering
Tel :  + 33 (0)9 71 48 84 59
Skype : bernard.vatant
Blog : the wheel and the hub <http://blog.hubjects.com/>
*Mondeca**          **                   *
3 cité Nollez 75018 Paris, France
Follow us on Twitter : @mondecanews <http://twitter.com/#%21/mondecanews>

Meet us at Documation <http://www.documation.fr/> in Paris, March 20-21
Received on Tuesday, 5 February 2013 23:49:51 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:16:29 UTC