Interface ReasoningConnection
- All Superinterfaces:
AutoCloseable,Connection
- All Known Implementing Classes:
AbstractReasoningConnection
SNARL Connection which exposes reasoning specific functionality such as explanations and consistency checking.
- Since:
- 0.7.3
- Version:
- 6.0
- Author:
- Michael Grove, Hector Perez-Urbina
-
Method Summary
Modifier and TypeMethodDescriptionReturns aexplainerthat can be used to explain why the given expression is inferred.Returns aexplainerthat can be used to explain why the given statement is inferred.Returns aexplainerthat can be used to explain why the given statement is inferred.Returns the contents of the currentlyselected schema.Returns the collection of classes in the current KB.Returns the collection of data properties in the current KB.Returns the collection of object properties in the current KB.Returns the schema manager for the databaseReturns the collection of unsatisfiable classes in the current KB.booleanChecks the consistency of the database with the current reasoning flag.booleanisConsistent(Collection<IRI> theActiveGraphs) Checks the consistency of the specified named graphs with the current reasoning flag.booleanisSatisfiable(IRI theClass) Checks whether the class is satisfiable with respect to the current KB and reasoning flagMethods 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, update
-
Method Details
-
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.- Returns:
- true if the database is consistent, false otherwise
- Throws:
StardogException
-
isConsistent
Checks the consistency of the specified named graphs with the current reasoning flag. The consistency results for arbitrary set of named graphs are not cached so this function will perform a new consistency check over at each invocation.- Returns:
- true if the database is consistent, false otherwise
- Throws:
StardogException
-
isSatisfiable
Checks whether the class is satisfiable with respect to the current KB and reasoning flag- 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.- Throws:
StardogException
-
getUnsatisfiableClasses
Returns the collection of unsatisfiable classes in the current KB.- Throws:
StardogException
-
getObjectProperties
Returns the collection of object properties in the current KB.- 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.- Returns:
- the data properties
- Throws:
StardogException- if there was an error obtaining the properties
-
explain
Returns aexplainerthat can be used to explain why the given statement is inferred.- Parameters:
theStmt- the statement to be explained- Returns:
- An explainer for the inference.
-
explain
Returns aexplainerthat can be used to explain why the given expression is inferred.- Parameters:
theExpr- the expression to be explained- Returns:
- An explainer for the inference.
-
explainInconsistency
StardogExplainer explainInconsistency()Returns aexplainerthat can be used to explain why the given statement is inferred.- Returns:
- An explainer for inconsistency.
-
exportSchema
Returns the contents of the currentlyselected schema.- Returns:
- the contents of the schema
- Throws:
StardogException
-
getSchemaManager
SchemaManager getSchemaManager()Returns the schema manager for the database- Returns:
- the schema manager for the database
-