Package com.complexible.stardog.icv

# Interface ConstraintViolation<T>

public interface ConstraintViolation<T>
Interface to represent the violation of an integrity constraint. Specifies which IC was violated and provides an iterator over the violation.

Since:
  0.7
Version:
  6.0
Author:
  Michael Grove

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Collection<IRI>`
  `getActiveGraph()`
  The contexts where the constraint was violated
  `Constraint`
  `getConstraint()`
  The constraint which was violated
  `CloseableIterator<T>`
  `getViolations()`
  The set of violations of the constraint

- ## Method Details

  - ### getActiveGraph

    Collection<IRI> getActiveGraph()
    The contexts where the constraint was violated
    Returns:
      the contexts

  - ### getConstraint

    Constraint getConstraint()
    The constraint which was violated
    Returns:
      the constraint

  - ### getViolations

    CloseableIterator<T> getViolations() throws StardogException
    The set of violations of the constraint
    Returns:
      the violations
    Throws:
      `StardogException` - thrown if the violations could not be calculated