Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-794

Writing JSON-LD causes a graph name of "urn:x-arq:DefaultGraphNode"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 2.12.0
    • Jena 2.13.0
    • RIOT
    • None

    Description

          Graph g = GraphFactory.createGraphMem() ;
          g.add(SSE.parseTriple("(:s :p :o)")) ;
          RDFDataMgr.write(System.out, g, Lang.JSONLD) ;
      

      outputs

      {
        "@graph" : [ {
          "@id" : "http://example/s",
          "p" : "http://example/o"
        } ],
        "@id" : "urn:x-arq:DefaultGraphNode",
        "@context" : {
          "p" : {
            "@id" : "http://example/p",
            "@type" : "@id"
          }
        }
      }
      

      Attachments

        Activity

          People

            andy Andy Seaborne
            andy Andy Seaborne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: