Am 02.04.2012 um 11:39 schrieb [email protected]: > Hi Marco and hi all, > > sorry to bother you. I have restarted the ontology population trying not to > use a reasoner. > So, instead of using this instruction: > > model = ModelFactory.createOntologyModel(org.mindswap.pellet.jena. > PelletReasonerFactory.THE_SPEC, null); > > I'm using this one: > > model = ModelFactory.createOntologyModel(); > > but, after some hours of population, it seems to me that the performances are > slowing down again.
Using this method, the returned model still has a reasoner attached (which deduces basic RDFS entailments). This should explain the slowdown for larger models (apart from the case that main memory gets exhausted and the OS starts swapping). If you want to create a main memory model that does not has a reasoner attached then use model = ModelFactory.createOntologyModel(com.hp.hpl.jena.ontology.OntModelSpec.OWL_MEM); Once the model is loaded completely you can then attach a reasoner (if needed) and start evaluating queries. Note that if you make changes to a model that has a reasoner attached then the reasoner needs to catch up with every change, which, depending on the actual reasoner used and the expressivity of the model, implies more or less extensive work. Thorsten
