Class AbstractReasoningConnection
java.lang.Object
com.complexible.stardog.api.impl.DelegatingConnection
com.complexible.stardog.api.reasoning.AbstractReasoningConnection
- All Implemented Interfaces:
Connection,ReasoningConnection,AutoCloseable
public abstract class AbstractReasoningConnection
extends com.complexible.stardog.api.impl.DelegatingConnection
implements ReasoningConnection
- Since:
- 5.0
- Version:
- 6.0
- Author:
- Michael Grove
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StardogExplainerReturns aexplainerthat can be used to explain why the given statement is inferred.final StardogExplainerReturns aexplainerthat can be used to explain why the given statement is inferred.final Collection<IRI> Returns the collection of classes in the current KB.final Collection<IRI> Returns the collection of data properties in the current KB.final Collection<IRI> Returns the collection of object properties in the current KB.Returns the schema manager for the databasefinal Collection<IRI> Returns the collection of unsatisfiable classes in the current KB.final booleanChecks the consistency of the database with the current reasoning flag.final booleanisSatisfiable(IRI theClass) Checks whether the class is satisfiable with respect to the current KB and reasoning flagMethods inherited from class com.complexible.stardog.api.impl.DelegatingConnection
add, admin, as, ask, ask, begin, close, commit, currentStatus, export, generateModel, get, getConnection, getOption, getSchema, graph, graph, graphAliases, isOpen, isReasoningEnabled, name, namespaces, paths, paths, remove, rollback, select, select, selectPlan, selectPlan, size, transactions, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.complexible.stardog.api.Connection
add, admin, as, ask, ask, begin, close, commit, currentStatus, export, generateModel, get, getOption, getSchema, graph, graph, graphAliases, isOpen, isReasoningEnabled, name, namespaces, paths, paths, remove, rollback, select, select, selectPlan, selectPlan, size, transactions, update, updateMethods inherited from interface com.complexible.stardog.api.reasoning.ReasoningConnection
explain, exportSchema, isConsistent
-
Constructor Details
-
AbstractReasoningConnection
-
-
Method Details
-
explain
Returns aexplainerthat can be used to explain why the given statement is inferred.- Specified by:
explainin interfaceReasoningConnection- Parameters:
theStmt- the statement to be explained- Returns:
- An explainer for the inference.
-
explainInconsistency
Returns aexplainerthat can be used to explain why the given statement is inferred.- Specified by:
explainInconsistencyin interfaceReasoningConnection- Returns:
- An explainer for inconsistency.
-
isSatisfiable
Checks whether the class is satisfiable with respect to the current KB and reasoning flag- Specified by:
isSatisfiablein interfaceReasoningConnection- Parameters:
theClass- the class- Returns:
- true if the class is satisfiable, false otherwise
- Throws:
StardogException
-
getClasses
Returns the collection of classes in the current KB.- Specified by:
getClassesin interfaceReasoningConnection- Throws:
StardogException
-
getUnsatisfiableClasses
Returns the collection of unsatisfiable classes in the current KB.- Specified by:
getUnsatisfiableClassesin interfaceReasoningConnection- Throws:
StardogException
-
getObjectProperties
Returns the collection of object properties in the current KB.- Specified by:
getObjectPropertiesin interfaceReasoningConnection- Returns:
- the object properties
- Throws:
StardogException- if there was an error obtaining the properties
-
getDataProperties
Returns the collection of data properties in the current KB.- Specified by:
getDataPropertiesin interfaceReasoningConnection- Returns:
- the data properties
- Throws:
StardogException- if there was an error obtaining the properties
-
isConsistent
Checks the consistency of the database with the current reasoning flag. If the consistency check has been performed before and the database has not changed this function will return the previously computed result immediately. Besides this caching functionality, this function always returns the same result as theisConsistent(ContextSets.LOCAL)call.- Specified by:
isConsistentin interfaceReasoningConnection- Returns:
- true if the database is consistent, false otherwise
- Throws:
StardogException
-
getSchemaManager
Description copied from interface:ReasoningConnectionReturns the schema manager for the database- Specified by:
getSchemaManagerin interfaceReasoningConnection- Returns:
- the schema manager for the database
-