Class ConstraintViolation


  • public class ConstraintViolation
    extends Object
    A class that represents a constraint violation in an RDF graph.
    • Constructor Detail

      • ConstraintViolation

        public ConstraintViolation​(IRI constraint,
                                   Triple triple)
        Create a new constraint violation.
        Parameters:
        constraint - the constraint IRI
        triple - the triple
      • ConstraintViolation

        public ConstraintViolation​(IRI constraint,
                                   List<Triple> triples)
        Create a new constraint violation.
        Parameters:
        constraint - the constraint IRI
        triples - the triples
    • Method Detail

      • getConstraint

        public IRI getConstraint()
        Get the constraint IRI for this violation.
        Returns:
        the constraint IRI
      • getTriples

        public List<Triple> getTriples()
        Get the triples causing the constraint violation.
        Returns:
        the triples