Class JFactTBoxReasoner
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.tboxreasoner.impl.jfact.JFactTBoxReasoner
-
- All Implemented Interfaces:
TBoxReasoner
public class JFactTBoxReasoner extends Object implements TBoxReasoner
An implementation of the JFact reasoner for the TBox. It maintains a model of all the assertions it has been given, adding or removing statements as change sets are received. Each time a change is received, it will create a fresh ontology from the assertions model, and apply a reasoner to that ontology. A model of inferences is built by querying the reasoner. The assertions and inferences are combined into an OntModel, which is kept to answer queries. ----------------- This class it not thread-safe.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface edu.cornell.mannlib.vitro.webapp.tboxreasoner.TBoxReasoner
TBoxReasoner.Status
-
-
Constructor Summary
Constructors Constructor Description JFactTBoxReasoner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.apache.jena.rdf.model.Statement>filterResults(List<ReasonerStatementPattern> patternList)List all of the statements that satisfy any of these patterns, after updating and reasoning.List<org.apache.jena.ontology.DatatypeProperty>listDatatypeProperties()List all of the DatatypeProperties from the reasoner model, after updating and reasoning.List<org.apache.jena.ontology.ObjectProperty>listObjectProperties()List all of the ObjectProperties from the reasoner model, after updating and reasoning.List<org.apache.jena.ontology.Restriction>listRestrictions()List all of the restrictions in the reasoner model, after updating and reasoning.TBoxReasoner.StatusperformReasoning()Chew on it and create the inferences.voidupdateReasonerModel(TBoxChanges changes)Add the additions and remove the removals.
-
-
-
Method Detail
-
updateReasonerModel
public void updateReasonerModel(TBoxChanges changes)
Description copied from interface:TBoxReasonerAdd the additions and remove the removals.- Specified by:
updateReasonerModelin interfaceTBoxReasoner
-
performReasoning
public TBoxReasoner.Status performReasoning()
Description copied from interface:TBoxReasonerChew on it and create the inferences. Report status.- Specified by:
performReasoningin interfaceTBoxReasoner
-
listObjectProperties
public List<org.apache.jena.ontology.ObjectProperty> listObjectProperties()
Description copied from interface:TBoxReasonerList all of the ObjectProperties from the reasoner model, after updating and reasoning.- Specified by:
listObjectPropertiesin interfaceTBoxReasoner
-
listDatatypeProperties
public List<org.apache.jena.ontology.DatatypeProperty> listDatatypeProperties()
Description copied from interface:TBoxReasonerList all of the DatatypeProperties from the reasoner model, after updating and reasoning.- Specified by:
listDatatypePropertiesin interfaceTBoxReasoner
-
listRestrictions
public List<org.apache.jena.ontology.Restriction> listRestrictions()
Description copied from interface:TBoxReasonerList all of the restrictions in the reasoner model, after updating and reasoning.- Specified by:
listRestrictionsin interfaceTBoxReasoner
-
filterResults
public List<org.apache.jena.rdf.model.Statement> filterResults(List<ReasonerStatementPattern> patternList)
Description copied from interface:TBoxReasonerList all of the statements that satisfy any of these patterns, after updating and reasoning.- Specified by:
filterResultsin interfaceTBoxReasoner
-
-