afs commented on issue #2578: URL: https://github.com/apache/jena/issues/2578#issuecomment-2231749564
Hi @Ostrzyciel - thank you for the detailed report. your example code works fine on my machine. The JSON-LD is a plain old bug. The `quad.isTriple()` is not handled. The three choices have slightly different meanings: * `null` (constant `Quad.tripleInQuad`) is for sending triples where a quad is expected. It is internal. * `Quad.defaultGraphIRI` is the contract name of the default graph for applications. * `Quad.defaultGraphNodeGenerated` is an internal name (but not parsers) where a quad is for the default graph. The last two are covered by `Quad.isDefaultGraph(node)`. They are different (external/.internal) although only slightly so maybe it wasn't necessary to split the concepts. The other cases need tracking down and checking. The deserialized `Quad.defaultGraphIRI` is consequence of `DatasetGraph.find`, not the serialization/deserialization. The parser output goes to a `StreamRDF` where triples and quads have different handlers. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
