I am running Pellet with Jena as the following:
public void storeInferredModel(Data data) {
System.out.println("creating inferred dataset ");
Dataset dataset = TDBFactory.createDataset(data.getInferredResultsPath());
System.out.println("creating OntModel ");
OntModel Infmodel = ModelFactory.createOntologyModel(
PelletReasonerFactory.THE_SPEC,
dataset.getNamedModel(this.URL));
System.out.println("adding schema (OWL) to OntModel");
Infmodel.add(this.owl);
System.out.println("adding data (RDF) to OntModel ");
Infmodel.add(data.tdb);
System.out.println("creating ModelExtractor ");
ModelExtractor ext = new ModelExtractor(Infmodel);
System.out.println("replacing OntModel by the Extracted Model");
dataset.replaceNamedModel(this.URL, ext.extractModel());
System.out.println("saving inferred model");
Infmodel.close();
System.out.println("closing inferred dataset");
dataset.close();
}
I had the previous post under Pellet Reasoner with Jena. My TDB or the raw data is 2.7G. I have been running the reasoner against the TDB but I got the problem of “PermGen spaces java” though I give the program around 70G memory and the reasoner has taken only 30G and then crashed. In other words, it did not reached the Max of computer memory
I am running Linux and Java 64 bit and I have 83 G memory in the server. I have been stuck with that for a week.