VIVO-150 avoiding lock contention on login during inference rebuild
This commit is contained in:
parent
772cfe127e
commit
a74677dae4
1 changed files with 3 additions and 2 deletions
|
@ -87,11 +87,12 @@ public class SimpleReasonerSetup implements ServletContextListener {
|
|||
Dataset dataset = new RDFServiceDataset(rdfService);
|
||||
|
||||
Model rebuildModel = dataset.getNamedModel(JENA_INF_MODEL_REBUILD);
|
||||
Model scratchModel = dataset.getNamedModel(JENA_INF_MODEL_SCRATCHPAD);
|
||||
Model scratchModel = dataset.getNamedModel(JENA_INF_MODEL_SCRATCHPAD);
|
||||
Model inferenceModel = dataset.getNamedModel(JenaDataSourceSetupBase.JENA_INF_MODEL);
|
||||
|
||||
// the simple reasoner will register itself as a listener to the ABox assertions
|
||||
SimpleReasoner simpleReasoner = new SimpleReasoner(
|
||||
unionOms.getTBoxModel(), rdfService, inferencesOms.getABoxModel(), rebuildModel, scratchModel);
|
||||
unionOms.getTBoxModel(), rdfService, inferenceModel, rebuildModel, scratchModel);
|
||||
sce.getServletContext().setAttribute(SimpleReasoner.class.getName(),simpleReasoner);
|
||||
|
||||
StartupStatus ss = StartupStatus.getBean(ctx);
|
||||
|
|
Loading…
Add table
Reference in a new issue