@Override public void visit(OWLObjectProperty op) { if(op.isTopEntity()){ renamedOWLObject = op; } else { OWLEntity newEntity = renaming.computeIfAbsent(op, k -> df.getOWLObjectProperty( getIRI(propertyVarQueue.poll()))); renamedOWLObject = newEntity; } }
@Override public void visit(OWLObjectProperty expr) { if (expr.isTopEntity() || expr.isBottomEntity()) { return; } vE(expr); }
@Override public void visit(OWLObjectProperty expr) { if (expr.isTopEntity() || expr.isBottomEntity()) { return; } vE(expr); }
@Override public void visit(OWLObjectProperty expr) { if (expr.isTopEntity() || expr.isBottomEntity()) { return; } vE(expr); }
@Override public void visit(OWLObjectProperty expr) { if (expr.isTopEntity() || expr.isBottomEntity()) { return; } vE(expr); }
@Override protected String toString(SortedMap<OWLObjectProperty, SortedSet<OWLObjectProperty>> hierarchy, OWLObjectProperty prop, int depth) { String str = ""; for (int i = 0; i < depth; i++) str += " "; str += prop.toString() + "\n"; Set<OWLObjectProperty> tmp; if(prop.isTopEntity()) { tmp = getMostGeneralRoles(); } else { tmp = hierarchy.get(prop); } if (tmp != null) { for (OWLObjectProperty c : tmp) str += toString(hierarchy, c, depth + 1); } return str; }
/** * Given an ontology, an object property, and a set, recursively fill the set with the ancestors * of the property. * * @param ontology OWLOntology to get ancestors from * @param property OWLObjectProperty to get ancestors of * @param ancestors Set of OWLObjects to fill with ancestors */ private static void selectObjectPropertyAncestors( OWLOntology ontology, OWLObjectProperty property, Set<OWLObject> ancestors) { for (OWLObjectPropertyExpression propertyExpression : EntitySearcher.getSuperProperties(property, ontology)) { if (!propertyExpression.isAnonymous()) { OWLObjectProperty superProperty = propertyExpression.getObjectPropertiesInSignature().iterator().next(); ancestors.add(superProperty); if (!superProperty.isTopEntity()) { selectObjectPropertyAncestors(ontology, superProperty, ancestors); } } else { ancestors.add(propertyExpression); } } }
Frame f = getTypedefFrame(p); if (p.isBottomEntity() || p.isTopEntity()) { error("Property chains using Top or Bottom entities are not supported in OBO.", ax); return;
if (p.isBottomEntity() || p.isTopEntity()) { error("Property chains using Top or Bottom entities are not supported in OBO.", ax, false);
if (p.isBottomEntity() || p.isTopEntity()) { error("Property chains using Top or Bottom entities are not supported in OBO.", ax, false);
if (p.isBottomEntity() || p.isTopEntity()) { error("Property chains using Top or Bottom entities are not supported in OBO.", ax, false);
if (p.isBottomEntity() || p.isTopEntity()) { error("Property chains using Top or Bottom entities are not supported in OBO.", ax, false);