From 05854a33546788cf0a332da784d7514f8b497230 Mon Sep 17 00:00:00 2001 From: j2blake Date: Wed, 3 Dec 2014 16:36:46 -0500 Subject: [PATCH] VIVO-778 Connect the plumbing properly. Make TBoxReasonerModule a module on the Application. Make the reasoner status available through the module. Initialize it in startup_listeners.txt Create a concrete class for PelletTBoxReasonerModule, and configure it in applicationSetup.n3 Get rid of PelletReasonerSetup. Make it so the ExecutorService in BasicTBoxReasonerDriver uses a VitroBackgroundThread., --- config/applicationSetup.n3 | 31 +++++++++++-------- .../WEB-INF/resources/startup_listeners.txt | 2 +- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/config/applicationSetup.n3 b/config/applicationSetup.n3 index 8f7ccf8e..46ee736c 100644 --- a/config/applicationSetup.n3 +++ b/config/applicationSetup.n3 @@ -3,33 +3,38 @@ :application a , ; - :hasSearchEngine :searchEngineWrapper ; - :hasImageProcessor :imageProcessor ; - :hasFileStorage :fileStorage ; - :hasContentTripleSource :contentTripleSource ; - :hasConfigurationTripleSource :configurationTripleSource . + :hasSearchEngine :instrumentedSearchEngineWrapper ; + :hasImageProcessor :jaiImageProcessor ; + :hasFileStorage :ptiFileStorage ; + :hasContentTripleSource :sdbContentTripleSource ; + :hasConfigurationTripleSource :tdbConfigurationTripleSource ; + :hasTBoxReasonerModule :pelletTBoxReasonerModule . -:imageProcessor +:jaiImageProcessor a , . -:fileStorage +:ptiFileStorage a , . -:searchEngineWrapper +:instrumentedSearchEngineWrapper a , ; - :wraps :searchEngine . + :wraps :solrSearchEngine . -:searchEngine +:solrSearchEngine a , . -:contentTripleSource +:sdbContentTripleSource a , . -:configurationTripleSource +:tdbConfigurationTripleSource a , - . \ No newline at end of file + . + +:pelletTBoxReasonerModule + a , + . \ No newline at end of file diff --git a/productMods/WEB-INF/resources/startup_listeners.txt b/productMods/WEB-INF/resources/startup_listeners.txt index 1e6108d0..9601fe7b 100644 --- a/productMods/WEB-INF/resources/startup_listeners.txt +++ b/productMods/WEB-INF/resources/startup_listeners.txt @@ -37,7 +37,7 @@ edu.cornell.mannlib.vitro.webapp.servlet.setup.FileGraphSetup # Invokes process to perform updates to align with ontology changes if needed --> edu.cornell.mannlib.vitro.webapp.servlet.setup.UpdateKnowledgeBase -edu.cornell.mannlib.vitro.webapp.servlet.setup.PelletReasonerSetup +edu.cornell.mannlib.vitro.webapp.application.ApplicationImpl$ReasonersSetup edu.cornell.mannlib.vitro.webapp.servlet.setup.SimpleReasonerSetup edu.cornell.mannlib.vitro.webapp.servlet.setup.TBoxReasonerSmokeTest