private static void extractEvidenceIRIValues(OWLAnnotation annotation, final Set<IRI> iriSet) { if (annotation != null) { OWLAnnotationProperty property = annotation.getProperty(); if (HAS_EVIDENCE_IRI.equals(property.getIRI()) || HAS_EVIDENCE_IRI_OLD.equals(property.getIRI())){ annotation.getValue().accept(new OWLAnnotationValueVisitor() { @Override public void visit(OWLLiteral literal) { // ignore } @Override public void visit(OWLAnonymousIndividual individual) { // ignore } @Override public void visit(IRI iri) { iriSet.add(iri); } }); } } }
@Override public void accept(OWLAnnotationValueVisitor visitor) { visitor.visit(this); }