Re: dbpedia lite

2010-05-20 Thread Nicholas Humfrey
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/ Thanks, I will keep that in mind. nick.

Re: dbpedia lite

2010-05-20 Thread Nicholas Humfrey
On 19/05/2010 13:25, Ross Singer rossfsin...@gmail.com wrote: Nicholas, Given that you're using Sinatra, you might want use http://github.com/mbklein/rack-conneg for your content negotiation (not sure why RDF.rb would be involved in that layer, anyway) and use either rdf-raptor or

Re: dbpedia lite

2010-05-20 Thread Nicholas Humfrey
Nicholas Humfrey wrote: Re. http://dbpedialite.org/, any chance that you could add link rel=alternate .../ links in head/ such that the HTML based Descriptor Docs are associated with alternative Descriptor Docs in different formats (JSON, N3 etc..). Yes, certainly. I have put this on

Re: dbpedia lite

2010-05-20 Thread Ivan Herman
On May 20, 2010, at 10:51 , Nicholas Humfrey wrote: I also tried curl -i -H Accept: text/turtle http://dbpedialite.org/things/52780 and it said: unsupported format: text/turtle (text/turtle is the media type defined in [1]) But when running the RDFa distiller (or any similar

Java Framework for Content Negotiation

2010-05-20 Thread Angelo Veltens
Hello, I am just looking for a framework to do content negotiation in java. Currently I am checking the HttpServletRequest myself quickdirty. Perhaps someone can recommend a framework/library that has solved this already. Thanks in advance, Angelo

Re: Java Framework for Content Negotiation

2010-05-20 Thread Story Henry
There is the RESTlet framework http://www.restlet.org/ Henry On 20 May 2010, at 10:49, Angelo Veltens wrote: Hello, I am just looking for a framework to do content negotiation in java. Currently I am checking the HttpServletRequest myself quickdirty. Perhaps someone can recommend a

Re: Java Framework for Content Negotiation

2010-05-20 Thread Niklas Lindström
Hi Angelo, On Thu, May 20, 2010 at 11:49 AM, Angelo Veltens angelo.velt...@online.de wrote: Hello, I am just looking for a framework to do content negotiation in java. Currently I am checking the HttpServletRequest myself quickdirty. Perhaps someone can recommend a framework/library that has

Re: Java Framework for Content Negotiation

2010-05-20 Thread Dave Reynolds
On 20/05/2010 11:03, Story Henry wrote: There is the RESTlet framework http://www.restlet.org/ There's also Jersey [1] and, for a minimalist solution to just the content matching piece see Mimeparse [2]. Dave [1] https://jersey.dev.java.net/ [2] http://code.google.com/p/mimeparse/ On 20

Re: Java Framework for Content Negotiation

2010-05-20 Thread Michael Hausenblas
There's also Jersey [1] ... +1 to Jersey - had overall very good experience with it. If you want to have a quick look (not saying it's beautiful/exciting, but might helps to kick-start things) see [1] for my hacking with it. Cheers, Michael [1]

Re: Java Framework for Content Negotiation

2010-05-20 Thread Story Henry
On 20 May 2010, at 11:18, Michael Hausenblas wrote: There's also Jersey [1] ... +1 to Jersey - had overall very good experience with it. If you want to have a quick look (not saying it's beautiful/exciting, but might helps to kick-start things) see [1] for my hacking with it. Since this

Re: Java Framework for Content Negotiation

2010-05-20 Thread Angelo Veltens
On 20.05.2010 12:18, Michael Hausenblas wrote: There's also Jersey [1] ... +1 to Jersey - had overall very good experience with it. If you want to have a quick look (not saying it's beautiful/exciting, but might helps to kick-start things) see [1] for my hacking with it. Cheers,

Re: Java Framework for Content Negotiation

2010-05-20 Thread Michael Hausenblas
Angelo, I might have a non-information resource http://example.org/resource/foo I could place a REST-Webservice there and do content negotiation with @GET / @Produces Annotations. But this seems not correct to me, because it is a non-information resource and not a html or rdf/xml document.

Re: Java Framework for Content Negotiation

2010-05-20 Thread Richard Cyganiak
On 20 May 2010, at 10:49, Angelo Veltens wrote: I am just looking for a framework to do content negotiation in java. There's a reasonably stable and well-tested implementation that is used both in the Pubby and D2R Server codebases. See here:

Re: Java Framework for Content Negotiation

2010-05-20 Thread Richard Cyganiak
On 20 May 2010, at 13:38, Angelo Veltens wrote: I might have a non-information resource http://example.org/resource/ foo I could place a REST-Webservice there and do content negotiation with @GET / @Produces Annotations. But this seems not correct to me, because it is a non-information