Package com.complexible.stardog.icv

# Interface Constraint

All Superinterfaces:
  `Copyable<Constraint>`

public interface Constraint extends Copyable<Constraint>

Interface to represent an integrity constraint.

Since:
  0.7
Version:
  6.0
Author:
  Michael Grove

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `supportsViolationExplanation()`
  Returns `true` if explaining this constraint is supported.
  `String`
  `toString(Namespaces theNamespaces)`
  Returns the string representation of this constraint using the given namespaces.

  ### Methods inherited from interface com.complexible.common.base.Copyable

  `copy`

- ## Method Details

  - ### supportsViolationExplanation

    boolean supportsViolationExplanation()
    Returns `true` if explaining this constraint is supported. Explanations are supported for constraints expressed as OWL axioms but not for SPARQL constraints.

  - ### toString

    String toString(Namespaces theNamespaces)
    Returns the string representation of this constraint using the given namespaces. Depending on the type of the constraint (OWL axiom, SWRL rule, SPARQL query) the namespaces might be ignored.
    Parameters:
      `theNamespaces` - prefixes to be used for namespaces
    Returns:
      string representation of this constraint