rdf to-jelly: implement the GRAPHS stream type#104
Conversation
|
@adanilenka requesting confirmation that it works for your use case |
|
the build: https://github.com/Jelly-RDF/cli/actions/runs/14759611428/artifacts/3039362901 was tested with the following set of sample N-quads input file (coming from pos_005 quads test), featuring a mix of graphs in a variety of forms (but not generalized RDF): the file was serialized in the following modes:
and validated compared to the input file with --compare-ordered=true So far, no critical issues have been detected. The only tiny thing is that the logical type is set to undefined, which is okay from the specification POV but can be "perfected" later. |
|
Ah, the logical stream type should be set to something by default, good catch. I'll add it in a sec. |
| override def triple(triple: Triple): Unit = | ||
| handleGraph(Quad.defaultGraphIRI) | ||
| encoder.addTripleStatement(triple) | ||
| if opt.delimited && buffer.size >= opt.frameSize then flushBuffer() |
There was a problem hiding this comment.
this logic could be moved to a separate method (to make sure both conditions are always correctly checked in the if)
There was a problem hiding this comment.
Eh, that's how it is in the Jena original. Let's keep it as-is.
Issue: #101