On 17/10/14 08:09, Andrea Scarpino wrote:
Thanks for the reply.
2014-10-16 22:26 GMT+02:00 Andy Seaborne <[email protected]>:
You could do a streaming pass over the data to find the required naing
info them load.
Do you mean something like this?
Model model = ModelFactory.createDefaultModel();
model.read(inputstream);
String version = fetchVersion(model);
dataset.addNamedModel(model, version);
I guess this loads the whole ontology into RAM, I'm right? If so, I'd like
to avoid that.
See StreamRDF - the event interface to the parsers. You can write your
own StreamRDF and build up a chain of stream operations.
Here, parser to a StreamRDF that notes the name information but
otherwise does nothing with the data.
http://jena.apache.org/documentation/io/streaming-io.html
Cheers