@Override public boolean isDeprecatedIRIAnnotation() { return axiom.isDeprecatedIRIAssertion(); }
/** * Checks if entity is deprecated. * * @param ontology the OWLOntology to check * @param entity the OWLEntity to check * @return true if entity is deprecated */ public static boolean isDeprecated(OWLOntology ontology, OWLEntity entity) { for (OWLOntology o : ontology.getImportsClosure()) { for (OWLAnnotationAssertionAxiom a : o.getAnnotationAssertionAxioms(entity.getIRI())) { if (a.isDeprecatedIRIAssertion()) { OWLLiteral value = a.getValue().asLiteral().orNull(); if (value != null && value.parseBoolean()) { return true; } } } } return false; }