use of org.geneontology.minerva.json.InferenceProvider in project minerva by geneontology.
the class CachingInferenceProviderCreatorImpl method create.
@Override
public InferenceProvider create(final ModelContainer model) throws OWLOntologyCreationException, InterruptedException, IOException {
synchronized (model.getAboxOntology()) {
InferenceProvider inferenceProvider = inferenceCache.get(model);
if (inferenceProvider == null) {
addMiss();
inferenceProvider = super.create(model);
model.registerListener(new ModelChangeListenerImplementation(model));
inferenceCache.put(model, inferenceProvider);
} else {
addHit();
}
return inferenceProvider;
}
}
Aggregations