On 12/01/16 12:28, Zak Mc Kracken wrote:
Hi all,
I guess the subject said it all already: I have to convert data to RDF
and I'd like to write triples on a file as they come in from the
converter. Is this possible in Jena? I've read about RDF streams
(https://jena.apache.org/documentation/io/streaming-io.html), but I'm
not sure it's what I'm looking for (the interfaces expects to start from
a model).
Thank you in advance,
Marco.
It sounds like it is the thing you want.
You can get a StreamRDF from StreamRDFWriter, then you can stream the
triples and quads in from your converter code. You need to work in
Triples and Nodes - Model/Resource is whole-graph centric.
Now sure about the part "the interfaces expects to start from a model"
-- model are holding a whole graph - it can be in-memory of a database.
Andy