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
|
@ -88,10 +88,11 @@ public class SimpleReasonerSetup implements ServletContextListener {
|
||||||
|
|
||||||
Model rebuildModel = dataset.getNamedModel(JENA_INF_MODEL_REBUILD);
|
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
|
// the simple reasoner will register itself as a listener to the ABox assertions
|
||||||
SimpleReasoner simpleReasoner = new SimpleReasoner(
|
SimpleReasoner simpleReasoner = new SimpleReasoner(
|
||||||
unionOms.getTBoxModel(), rdfService, inferencesOms.getABoxModel(), rebuildModel, scratchModel);
|
unionOms.getTBoxModel(), rdfService, inferenceModel, rebuildModel, scratchModel);
|
||||||
sce.getServletContext().setAttribute(SimpleReasoner.class.getName(),simpleReasoner);
|
sce.getServletContext().setAttribute(SimpleReasoner.class.getName(),simpleReasoner);
|
||||||
|
|
||||||
StartupStatus ss = StartupStatus.getBean(ctx);
|
StartupStatus ss = StartupStatus.getBean(ctx);
|
||||||
|
|
Loading…
Add table
Reference in a new issue