Class Violation


  • public class Violation
    extends Object
    • Field Detail

      • entity

        public org.semanticweb.owlapi.model.OWLEntity entity
      • subject

        public String subject
      • entityStatements

        public Map<org.semanticweb.owlapi.model.OWLEntity,​List<org.semanticweb.owlapi.model.OWLEntity>> entityStatements
      • literalStatements

        public Map<org.semanticweb.owlapi.model.OWLEntity,​List<String>> literalStatements
    • Constructor Detail

      • Violation

        public Violation​(org.semanticweb.owlapi.model.OWLEntity subject)
        Create a new Violation object about an OWL entity.
        Parameters:
        subject - OWLEntity that is the subject of the violation
      • Violation

        public Violation​(String subject)
        Create a new Violation object about a String. This is used for blank nodes.
        Parameters:
        subject - String subject
    • Method Detail

      • addStatement

        public void addStatement​(org.semanticweb.owlapi.model.OWLEntity property,
                                 org.semanticweb.owlapi.model.OWLEntity value)
        Add a statement with an OWLEntity value to the Violation about the subject.
        Parameters:
        property - OWLEntity property
        value - OWLEntity value
      • addStatement

        public void addStatement​(org.semanticweb.owlapi.model.OWLEntity property,
                                 String value)
        Add a literal statement to the Violation about the subject.
        Parameters:
        property - OWLEntity property
        value - String literal value
      • addStatement

        @Deprecated
        public void addStatement​(String property,
                                 String value)
        Deprecated.
        String properties are no longer recommended; create an OWLEntity for the property instead
        Parameters:
        property - String property
        value - String value
      • addStatement

        @Deprecated
        public void addStatement​(org.semanticweb.owlapi.model.OWLEntity property,
                                 org.semanticweb.owlapi.model.OWLObject object)
        Deprecated.
        OWLObjects are no longer supported; use OWLEntity or String literal instead
        Parameters:
        property - String property
        object - OWLObject value