Class ConstraintFactory


  • public final class ConstraintFactory
    extends java.lang.Object

    Factory to simplify creating constraint objects.

    Since:
    0.7
    Version:
    6.0
    Author:
    Michael Grove
    • Method Detail

      • constraint

        public static Constraint constraint​(java.lang.Iterable<Statement> theStatements)
        Create an integrity constraint from a collection of statements. The statements must be equal to a single OWL axiom.
        Parameters:
        theStatements - the axiom as statements
        Returns:
        the new IC
        Throws:
        java.lang.IllegalArgumentException - if the graph of the statements does not contain a single owl axiom, or contains more than one.