On Tue, 2011-02-15 at 09:54 +0100, Ingo Roderfeld wrote:
> Hi,
>
> I'm trying to search in (and manipulate) a large ontology that is stored
> in a TDB. At first I'm fetching the Jena model from the TDB with the command
>
> Model tdbModel = TDBFactory.createModel("/some/path/to/NCI-Thesaurus");
>
> I than want to convert it into an OntModel, because of the convenience
> functions this model offers:
>
> OntModel ontModel = ModelFactory.createOntologyModel(
> OntModelSpec.OWL_DL_MEM_RDFS_INF, tdbModel);
The reasoners pull all the data they are working with, and more, into
memory.
Use a plain no-inference OntModelSpec such as OWL_MEM.
If you need some inference closure then it is best to create that at
ingest time for such large models. TDB does have some support for RDFS
closure.
Dave