On 02/01/17 13:53, George News wrote:
On 02/01/2017 14:43, Andy Seaborne wrote:


On 02/01/17 12:37, George News wrote:
Are there any kind of models available in current Jena version? I was
storing the Dataset using TDB. Then I call getNamedModel() on the
dataset and work with it or just with the in-memory.

These don't need closing either.  A graph is a stateless projection of
the dataset.

I call OntModel close on local models vars. But each time I'm creating a
new model, so don't understand why it's being closed.

Presumably because things within that OntModel are shared.

    Andy



By removing the close() on any Model/OntModel in the code it seems that
the exception is not risen. Is it ok not to close the instances? If so,
I will keep it as it is. I'm afraid I will have memory issues in the future.

For in-memory and in-memory intermediate structures, the GC will deal with memory.


Jorge

Reply via email to