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 Detail

      • 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

        java.lang.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