W3C home > Mailing lists > Public > public-lod@w3.org > May 2010

Re: dbpedia lite

From: mike amundsen <mamund@yahoo.com>
Date: Wed, 19 May 2010 08:36:01 -0400
Message-ID: <AANLkTinOTTS4lNfYzVASgD3x0i4AztkayJsAql_ybyw7@mail.gmail.com>
To: Nicholas Humfrey <nicholas.humfrey@bbc.co.uk>
Cc: Ted Thibodeau Jr <tthibodeau@openlinksw.com>, Kingsley Idehen <kidehen@openlinksw.com>, public-lod@w3.org
Nicholas:

Check out the MimeParse project on GoogleCode for a nice set of
language bindings (including Ruby) that does a very good job of
following the RFC2616 (sec 14.1) for content-negotiation:
http://code.google.com/p/mimeparse/

mca
http://amundsen.com/blog/




On Wed, May 19, 2010 at 05:20, Nicholas Humfrey
<nicholas.humfrey@bbc.co.uk> wrote:
> On 14/05/2010 20:43, "Ted Thibodeau Jr" <tthibodeau@openlinksw.com> wrote:
>
>> Nick --
>>
>> On May 14, 2010, at 12:33 PM, Kingsley Idehen wrote:
>>
>>> Nicholas Humfrey wrote:
>>>> There is RDFa already there for the Thing pages. Is there something missing?
>>>> Is it Void type stuff that you want me to add to the RDFa?
>>>
>>> Hmm, I get:
>>> http://linkeddata.uriburner.com/about/html/http/dbpedialite.org/things/52780
>>>
>>> Which returns:
>>> Unable to retrieve RDF data from "http://dbpedialite.org/things/52780":
>>> HTTP/1.0 400 Bad Request
>>
>>
>>
>> Something seems to be broken in the dbpedialite.org server's
>> content negotiation.
>>
>> Try these curl commands (which should all get the same output --
>> I'm not changing any values, just the order of the MIME types) --
>>
>> curl -i -H "Accept: application/rdf+xml; q=0.9, application/xhtml+xml; q=1.0,
>> text/rdf+n3; q=0.8, application/rdf+turtle; q=0.7, application/x-turtle;
>> q=0.6, application/turtle; q=0.5, application/xml; q=0.2, */*; q=0.1"
>> http://dbpedialite.org/things/52780
>>
>> curl -i -H "Accept: text/rdf+n3; q=0.8, application/xhtml+xml; q=1.0,
>> application/rdf+xml; q=0.9, application/rdf+turtle; q=0.7,
>> application/x-turtle; q=0.6, application/turtle; q=0.5, application/xml;
>> q=0.2, */*; q=0.1" http://dbpedialite.org/things/52780
>>
>> curl -i -H "Accept: application/rdf+turtle; q=0.7, application/xhtml+xml;
>> q=1.0, application/rdf+xml; q=0.9, text/rdf+n3; q=0.8, application/x-turtle;
>> q=0.6, application/turtle; q=0.5, application/xml; q=0.2, */*; q=0.1"
>> http://dbpedialite.org/things/52780
>>
>> curl -i -H "Accept: application/x-turtle; q=0.6, application/xhtml+xml; q=1.0,
>> application/rdf+xml; q=0.9, text/rdf+n3; q=0.8, application/rdf+turtle; q=0.7,
>> application/turtle; q=0.5, application/xml; q=0.2, */*; q=0.1"
>> http://dbpedialite.org/things/52780
>>
>> curl -i -H "Accept: application/xhtml+xml; q=1.0, application/rdf+xml; q=0.9,
>> text/rdf+n3; q=0.8, application/rdf+turtle; q=0.7, application/x-turtle;
>> q=0.6, application/turtle; q=0.5, application/xml; q=0.2, */*; q=0.1"
>> http://dbpedialite.org/things/52780
>>
>>
>> Note that the result for each is based on the first MIME type in
>> the list -- no matter that it supports a later listed type, nor
>> that a later listed type has a higher quality rating -- and that
>> all but the last gets an error.
>
>
> Hello Ted,
>
> Indeed there a very basic implementation of content negotiation at the
> moment - it only looks at the first item in the accept header list.
>
> The RDF.rb guys are working on proper content negotiation, so I am going to
> wait for that, rather than implementing it myself.
>
> Additionally there is currently no pure-ruby RDF/XML or Turtle
> implementation for RDF.rb. This is also something that is being worked on.
>
>
> nick.
>
>
> http://www.bbc.co.uk/
> This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
> Please note that the BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
>
>
>
Received on Wednesday, 19 May 2010 13:00:52 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:29:48 UTC