Class ABoxRecomputer
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.reasoner.ABoxRecomputer
-
public class ABoxRecomputer extends Object
-
-
Constructor Summary
Constructors Constructor Description ABoxRecomputer(org.apache.jena.ontology.OntModel tboxModel, org.apache.jena.ontology.OntModel aboxModel, RDFService rdfService, SimpleReasoner simpleReasoner, SearchIndexer searchIndexer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddInferenceStatementsFor(String individualUri, org.apache.jena.rdf.model.Model addTo)protected Queue<String>getAllIndividualURIs()protected voidgetIndividualURIs(String queryString, Queue<String> individuals)Set<String>getSameAsIndividuals(String individualURI)booleanisRecomputing()Returns true if the recomputer is in the process of recomputing all inferences.voidrecompute()Recompute all individualsvoidrecompute(Queue<String> individualURIs)Recompute inferences for specified collection of individual URIs, or all URIs if parameter is nullprotected voidrecomputeIndividuals(Queue<String> individuals, edu.cornell.mannlib.vitro.webapp.reasoner.ABoxRecomputer.TypeCaches caches)voidsetStopRequested()This is called when the application shuts down.protected voidupdateInferenceModel(org.apache.jena.rdf.model.Model rebuildModel, Collection<String> individuals)
-
-
-
Constructor Detail
-
ABoxRecomputer
public ABoxRecomputer(org.apache.jena.ontology.OntModel tboxModel, org.apache.jena.ontology.OntModel aboxModel, RDFService rdfService, SimpleReasoner simpleReasoner, SearchIndexer searchIndexer)- Parameters:
tboxModel- - input. This model contains both asserted and inferred TBox axiomsaboxModel- - input. This model contains asserted ABox statements
-
-
Method Detail
-
isRecomputing
public boolean isRecomputing()
Returns true if the recomputer is in the process of recomputing all inferences.
-
recompute
public void recompute()
Recompute all individuals
-
recompute
public void recompute(Queue<String> individualURIs)
Recompute inferences for specified collection of individual URIs, or all URIs if parameter is null
-
recomputeIndividuals
protected void recomputeIndividuals(Queue<String> individuals, edu.cornell.mannlib.vitro.webapp.reasoner.ABoxRecomputer.TypeCaches caches)
-
addInferenceStatementsFor
protected void addInferenceStatementsFor(String individualUri, org.apache.jena.rdf.model.Model addTo) throws RDFServiceException
- Throws:
RDFServiceException
-
updateInferenceModel
protected void updateInferenceModel(org.apache.jena.rdf.model.Model rebuildModel, Collection<String> individuals) throws RDFServiceException- Throws:
RDFServiceException
-
setStopRequested
public void setStopRequested()
This is called when the application shuts down.
-
-