On 11/08/14 20:03, Jim Balhoff wrote:
Hi,

I am trying to output a Model as JSON-LD. It's working fine, but now
I would like to make some changes to how the output is structured.
For example, I'd like to define a @reverse property in the @context
so that I can output certain triples in the reverse direction. Is it
possible to influence the output of the JSON-LD writer? I have not
found a way.

Thank you, Jim


Jena uses java-jsonld to do the JSON-LD reading and writing. If there is a way to control java-jsonld to do that then it can be added (and I expect there is - I just don't know what it is). There is a way to pass writer specific configuration details. Currently, nothing is done but an obvious feature is to pass in the context setup.

The Jena apart of the JSON writer is in org.apache.jena.riot.out.JsonLDWriter

Would you like to have a look?

        Andy


Reply via email to