Loading RDF files using TDB

Italo Pereira Source

I'm using Apache Jena TDB to load many files for future reference, when I load using the getDefaultModel method (default model), everything happens normally, but when I try to use a named model the process gets very slow and the CPU reaches 100%, sometimes memory overflow occurs.

Can anyone tell me the difference between the default model and the named model?

I can not understand the difference and I think they should have the same behavior.

model = dataset.getDefaultModel();
TDBLoader.loadModel(model, file.getAbsolutePath());

Vs

public static final String ALL_STORAGE = "http://instance/allstorage";
model = dataset.getNamedModel(ALL_STORAGE) ;
TDBLoader.loadModel(model, file.getAbsolutePath());
javardfjenatriplestoretdb

Answers

comments powered by Disqus