Class InvalidReferenceViolation


  • public class InvalidReferenceViolation
    extends Object
    Represents a reference violation

    TODO: we may want to make warnings if a class is slated for deprecation in the future: see https://github.com/information-artifact-ontology/ontology-metadata/issues/22

    Author:
    cjm
    • Method Detail

      • create

        public static InvalidReferenceViolation create​(org.semanticweb.owlapi.model.OWLAxiom axiom,
                                                       org.semanticweb.owlapi.model.OWLEntity referencedObject,
                                                       InvalidReferenceViolation.Category category)
        Parameters:
        axiom - the OWLAxiom containing invalid reference
        referencedObject - the OWLEntity that is dangling or deprecated
        category - the Category of violation (deprecated or dangling)
        Returns:
        new instance
      • getAxiom

        public org.semanticweb.owlapi.model.OWLAxiom getAxiom()
        Returns:
        the axiom that contains the invalid reference
      • getReferencedObject

        public org.semanticweb.owlapi.model.OWLEntity getReferencedObject()
        Returns:
        the referencedObject that is either deprecated or dangling