Re: dbpedia lite

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 09:21:15 UTC