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.ICVLimit theICVLimit) |
Modifier and Type | Method and Description |
---|---|
protected KernelDatabaseConnection |
getConnection() |
Set<Constraint> |
getConstraints()
Return all of the constraints in the database
|
StatementIterator |
getValidationReport(Collection<IRI> theActiveGraphs,
Options theOptions,
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.
|
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.
|
assertOpen, isValid
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
close, getValidationReport, getValidationReport, getViolationBindings, isValid
public EmbeddedICVConnection(KernelDatabaseConnection theConnection, com.complexible.stardog.icv.ICVLimit theICVLimit)
public 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 ICValidator
theActiveGraphs
- 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.LOCAL
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, Options theOptions, Constraint... theConstraints) throws StardogException
ICValidator
in the database
are used.
Non-SHACL constraints are ignored by this function.getValidationReport
in interface ICValidator
theActiveGraphs
- 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.LOCAL
must be usedtheOptions
- the options used to tune the validation process.theConstraints
- 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()
ICValidator
reporter
in interface ICValidator
public CloseableIterator<ConstraintViolation<BindingSet>> getViolationBindings(Collection<IRI> theActiveGraphs, Constraint... theConstraints) throws StardogException
current constraints
in the database are used.getViolationBindings
in interface ICValidator
theActiveGraphs
- 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.LOCAL
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 ICValidator
StardogException
- if there was an error obtaining the constraintsprotected KernelDatabaseConnection getConnection()
getConnection
in class AbstractICVConnection
Copyright © 2010-2016 Stardog Union. All Rights Reserved.