/** * Given an ontology, an annotation property, and a set, recursively fill the set with the * ancestors of the annotation property. * * @param ontology OWLOntology to get ancestors from * @param property OWLAnnotationProperty to get ancestors of * @param ancestors Set of OWLObjects to fill with ancestors */ private static void selectAnnotationPropertyAncestors( OWLOntology ontology, OWLAnnotationProperty property, Set<OWLObject> ancestors) { for (OWLAnnotationProperty superProperty : EntitySearcher.getSuperProperties(property, ontology)) { ancestors.add(superProperty); if (!superProperty.isTopEntity()) { selectAnnotationPropertyAncestors(ontology, superProperty, ancestors); } } }
OWLAnnotationProperty sub = ax.getSubProperty(); if (sub.isBottomEntity() || sub.isTopEntity() || sup.isBottomEntity() || sub.isTopEntity()) { error("SubAnnotationProperties using Top or Bottom entites are not supported in OBO."); return;
protected void tr(OWLSubAnnotationPropertyOfAxiom ax) { OWLAnnotationProperty sup = ax.getSuperProperty(); OWLAnnotationProperty sub = ax.getSubProperty(); if (sub.isBottomEntity() || sub.isTopEntity() || sup.isBottomEntity() || sup .isTopEntity()) { error("SubAnnotationProperties using Top or Bottom entites are not supported in OBO.", false);
protected void tr(OWLSubAnnotationPropertyOfAxiom ax) { OWLAnnotationProperty sup = ax.getSuperProperty(); OWLAnnotationProperty sub = ax.getSubProperty(); if (sub.isBottomEntity() || sub.isTopEntity() || sup.isBottomEntity() || sup .isTopEntity()) { error("SubAnnotationProperties using Top or Bottom entites are not supported in OBO.", false);
protected void tr(OWLSubAnnotationPropertyOfAxiom ax) { OWLAnnotationProperty sup = ax.getSuperProperty(); OWLAnnotationProperty sub = ax.getSubProperty(); if (sub.isBottomEntity() || sub.isTopEntity() || sup.isBottomEntity() || sup .isTopEntity()) { error("SubAnnotationProperties using Top or Bottom entites are not supported in OBO.", false);
protected void tr(OWLSubAnnotationPropertyOfAxiom ax) { OWLAnnotationProperty sup = ax.getSuperProperty(); OWLAnnotationProperty sub = ax.getSubProperty(); if (sub.isBottomEntity() || sub.isTopEntity() || sup.isBottomEntity() || sup .isTopEntity()) { error("SubAnnotationProperties using Top or Bottom entites are not supported in OBO.", false);