JSON-LD blank node to nested object in Apache Jena

前端 未结 3 1317
梦如初夏
梦如初夏 2021-01-19 03:36

I have the following example Turtle document:

@prefix dct:    .
@prefix rdf:   <         


        
3条回答
  •  醉梦人生
    2021-01-19 04:06

    Apache Jena uses jsonld-java for JSON-LD input and output.

    It is possible to setup the jsonld-java output as shown with:

    https://jena.apache.org/documentation/io/rdf-output.html#json-ld ==> https://github.com/apache/jena/blob/master/jena-arq/src-examples/arq/examples/riot/Ex_WriteJsonLD.java

    You'll need to consult jsonld-java as to whether the writer can do what you want.

提交回复
热议问题