JSON-LD blank node to nested object in Apache Jena

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

I have the following example Turtle document:

@prefix dct:    .
@prefix rdf:   <         


        
3条回答
  •  独厮守ぢ
    2021-01-19 03:55

    You need to re-frame the graph as the top-level object. You can use either:

    {
      "@context": ...,
      "@type": "dcat:Distribution"
    }
    

    or

    {
      "@context": ...,
      "@id": "http://example.com/datasets/1"
    }
    

    or

    {
      "@context": ...,
      "example:props": {}
    }
    

    (i.e. object that contains any "example:props").

提交回复
热议问题