Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [rdf4j-dev] potential iterator leak in repository handling?



On Wed, 5 Apr 2023, at 23:19, Matthew Nguyen via rdf4j-dev wrote:

It may very well be that I don't understand how models initializes itself into a queryable state (it must use the repository interface no?).  Is the intent to load all models into a memorystore prior to use? If so, is that something rdf4j should do prior to using them since it has an opinion on the approach? 

What exactly do you mean with "a queryable state"? RDF4J Models are just Java collections (like a HashSet or an ArrayList) - they are in-memory data structures, not backed by a database. You can 'query' them by getting elements from them or iterating over them (same as you can do with an ArrayList), but they don't support anything like SPARQL execution. 

Generally speaking, for a Model, there is no danger of a memory leak, because the entire thing is in memory anyway.

Jeen


Back to the top