public final class EmbeddedICVConnection extends AbstractICVConnection implements ICVConnection
| Modifier and Type | Class and Description |
|---|---|
static class |
EmbeddedICVConnection.View |
LOGGER| Constructor and Description |
|---|
EmbeddedICVConnection(KernelDatabaseConnection theConnection,
com.complexible.stardog.icv.ConstraintDbProvider theConstraintDbProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearConstraints()
Remove all IC's defined for this database
|
String |
convertConstraint(Collection<IRI> theActiveGraphs,
Constraint theConstraint)
Returns the SPARQL query representation for this constraint over the given named graphs.
|
protected KernelDatabaseConnection |
getConnection() |
Set<Constraint> |
getConstraints()
Return all of the constraints in the database
|
StatementIterator |
getValidationReport(Collection<IRI> theActiveGraphs,
Constraint... theConstraints)
Returns the SHACL validation report for the given SHACL constraints in the specified set of named graphs.
|
CloseableIterator<ConstraintViolation<BindingSet>> |
getViolationBindings(Collection<IRI> theActiveGraphs,
Constraint... theConstraints)
Returns the violations for the given integrity constraints in the specified set of named graphs as binding sets.
|
protected void |
handleConstraintChange(Change<com.complexible.stardog.api.impl.ConnectionChangeType,StatementSource> theConstraints) |
boolean |
isValid(Collection<IRI> theActiveGraphs,
Constraint... theConstraints)
Returns
true if the given integrity constraints are violated in the specified set of named graphs. |
ValidationReporter |
reporter()
Returns a validation reporter that can be used to retrieve the SHACL validation reports.
|
addConstraint, addConstraints, assertOpen, explain, isValid, removeConstraint, removeConstraintsadd, admin, as, ask, ask, begin, close, commit, currentStatus, export, get, getOption, graph, graph, isOpen, isReasoningEnabled, name, namespaces, paths, paths, remove, rollback, select, select, size, transactions, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddConstraints, explain, removeConstraintsadd, admin, as, ask, ask, begin, close, commit, currentStatus, export, get, getOption, graph, graph, isOpen, isReasoningEnabled, name, namespaces, paths, paths, remove, rollback, select, select, size, transactions, update, updateaddConstraint, convertConstraint, getValidationReport, getViolationBindings, isValid, removeConstraintpublic EmbeddedICVConnection(KernelDatabaseConnection theConnection, com.complexible.stardog.icv.ConstraintDbProvider theConstraintDbProvider)
protected void handleConstraintChange(Change<com.complexible.stardog.api.impl.ConnectionChangeType,StatementSource> theConstraints) throws StardogException
handleConstraintChange in class AbstractICVConnectionStardogExceptionpublic boolean isValid(Collection<IRI> theActiveGraphs, Constraint... theConstraints) throws StardogException
true if the given integrity constraints are violated in the specified set of named graphs.
If no constraints are given then all the current constraints in the database are
used.isValid in interface ICValidatortheActiveGraphs - the contexts to use in the validation. If the default context is to be used then
ContextSets.DEFAULT_ONLY must be used. If all contexts are to be used, then
ContextSets.ALL must be usedtheConstraints - the constraints to check. If no constraints are given, the defined constraints will be used.StardogException - if there was an error while checking the validity of the data in the databasepublic StatementIterator getValidationReport(Collection<IRI> theActiveGraphs, Constraint... theConstraints) throws StardogException
ICValidatorin the database are used.
Non-SHACL constraints are ignored by this function.getValidationReport in interface ICValidatortheActiveGraphs - the contexts to use in the validation. If the default context is to be used then
ContextSets.DEFAULT_ONLY must be used. If all contexts are to be used, then
ContextSets.ALL must be usedtheConstraints - the SHACL constraints to validate. If no constraints are given, the constraints in the database will be used.StardogException - if there was an error calculating the violationspublic ValidationReporter reporter()
ICValidatorreporter in interface ICValidatorpublic CloseableIterator<ConstraintViolation<BindingSet>> getViolationBindings(Collection<IRI> theActiveGraphs, Constraint... theConstraints) throws StardogException
current constraints in the database are used.getViolationBindings in interface ICValidatortheActiveGraphs - the contexts to use in the validation. If the default context is to be used then
ContextSets.DEFAULT_ONLY must be used. If all contexts are to be used, then
ContextSets.ALL must be usedtheConstraints - the constraints to check. If no constraints are given, the current constraints will be used.StardogException - if there was an error calculating the violationspublic Set<Constraint> getConstraints() throws StardogException
getConstraints in interface ICValidatorStardogException - if there was an error obtaining the constraintspublic void clearConstraints()
throws StardogException
clearConstraints in interface ICValidatorStardogException - if there was an error while removing the constraintspublic String convertConstraint(Collection<IRI> theActiveGraphs, Constraint theConstraint) throws StardogException
convertConstraint in interface ICValidatorStardogExceptionprotected KernelDatabaseConnection getConnection()
getConnection in class AbstractICVConnectionCopyright © 2010-2016 Stardog Union. All Rights Reserved.