- From: Robert Casties <casties@mpiwg-berlin.mpg.de>
- Date: Tue, 09 Jun 2015 10:39:20 +0200
- To: public-annotation@w3.org
- Message-ID: <5576A638.4020906@mpiwg-berlin.mpg.de>
On 08.06.15 19:01, Ivan Herman wrote: >> On 08 Jun 2015, at 16:21 , Benjamin Young <bigbluehat@hypothes.is> wrote: >> Where things fall down for me (at least) are with the protocol specification--which, being based on LDP (which is otherwise quite fabulous) comes with the requirement that: >> http://www.w3.org/TR/ldp/#h4_ldprs-HTTP_GET >>> ...MUST respond with a Turtle representation...when the request includes an Accept header specifying text/turtle >>> ...SHOULD respond with a text/turtle...whenever the Accept request header is absent. >>> ...MUST respond with a application/ld+json representation...when the request includes an Accept header specifying application/ld+json >> >> What this means practically (afaik) is that an Annotation API server MUST be able to transform their stored info into both Turtle and JSON-LD (regardless of which was sent in). >> >> There aren't (that I've found) terribly many Turtle-to-JSON-LD transformation libraries. I've used this one (recently relicensed to Apache License 2.0) with varied success: >> https://github.com/warpr/turtle-to-jsonld > > I will ask around. I think if we allow for non-Javascript converters, too, then there are more. I know there is a JSON-LD module to RDFLib, so it is fairly easy to write a Python program to convert from one format to the other. Gregg Kellogg has a similar tool for Ruby. I think both are fairly good; the JSON-LD part was written by people from the JSON-LD group itself. I may get more info (from Gregg) As the author of a (very simple, non-RDF-based) annotation server with an Annotator.js API, I admit that handling just the JSON part seems a lot easier to me than also having to handle Turtle. I see the attraction of being part of the LDP-cloud but to me that is a secondary concern to talking to my annotation clients that speak JSON. From this admittedly selfish perspective I would prefer Turtle to be optional ;-) Best Robert Casties -- Dr. Robert Casties -- Information Technology Group Max Planck Institute for the History of Science Boltzmannstr. 22, D-14195 Berlin Tel: +49/30/22667-342 Fax: -299
Received on Tuesday, 9 June 2015 08:51:25 UTC