I've developed a basic XSLT 2.0 stylesheet transforming Jena's RDF/XML
into simple JSON-LD:
https://github.com/Graphity/graphity-browser/blob/master/src/main/resources/org/graphity/client/writer/rdfxml2json-ld.xsl
Graphity's JSONLDWriter can be used as a MessageBodyWriter<Model>
provider in a JAX-RS Application:
singletons.add(new
JSONLDWriter(getSource("org/graphity/client/writer/rdfxml2json-ld.xsl"),
DataManager.get()));
This provides content negotiation for JSON-LD.
Martynas
graphityhq.com
On Thu, Sep 5, 2013 at 4:12 PM, Adrian Gschwend <[email protected]> wrote:
> On 21.07.13 15:38, Andy Seaborne wrote:
>
> Hi guys,
>
>> Joachim brings up an issue that I've seen several times now - not
>> everything is table shaped - and CONSTRUCT is one way to address that.
>
> was just running into the same issue today, I want to make the
> DESCRIBE/CONSTRUCT queries available to classical web developers and
> JSON-LD seems to be the way to go now.
>
>> The only things missing are adding in the JSON_LD module and updating
>> Fuseki's content negotiation.
>
> sounds great, any progress on that one?
>
> regards
>
> Adrian
>
>