@Override public Collection<OWLObjectPropertyExpression> getParents( OWLObjectPropertyExpression child) { if (child.isBottomEntity()) { return Collections.emptySet(); } Set<OWLObjectPropertyExpression> propertyExpressions = sub2Super.get(child); if (propertyExpressions == null) { return Collections.emptySet(); } else { return new HashSet<>(propertyExpressions); } }
public Collection<OWLObjectPropertyExpression> getParents(OWLObjectPropertyExpression child) { if(child.isBottomEntity()) { return Collections.emptySet(); } Set<OWLObjectPropertyExpression> propertyExpressions = sub2Super.get(child); if(propertyExpressions == null) { return Collections.emptySet(); } else { return new HashSet<OWLObjectPropertyExpression>(propertyExpressions); } }
public Collection<OWLObjectPropertyExpression> getParents(OWLObjectPropertyExpression child) { if (child.isBottomEntity()) { return Collections.emptySet(); } Set<OWLObjectPropertyExpression> propertyExpressions = sub2Super.get(child); if (propertyExpressions == null) { return Collections.emptySet(); } else { return new HashSet<OWLObjectPropertyExpression>(propertyExpressions); } }
@Override public Collection<OWLObjectPropertyExpression> getParents( OWLObjectPropertyExpression child) { if (child.isBottomEntity()) { return Collections.emptySet(); } Set<OWLObjectPropertyExpression> propertyExpressions = sub2Super.get(child); if (propertyExpressions == null) { return Collections.emptySet(); } else { return new HashSet<>(propertyExpressions); } }
@Override public Collection<OWLObjectPropertyExpression> getParents( OWLObjectPropertyExpression child) { if (child.isBottomEntity()) { return Collections.emptySet(); } Set<OWLObjectPropertyExpression> propertyExpressions = sub2Super.get(child); if (propertyExpressions == null) { return Collections.emptySet(); } else { return new HashSet<>(propertyExpressions); } }
@Override public Collection<OWLObjectPropertyExpression> getParents(OWLObjectPropertyExpression child) { if(child.isBottomEntity()) { return Collections.emptySet(); } Set<OWLObjectPropertyExpression> propertyExpressions = sub2Super.get(child); if(propertyExpressions == null) { return Collections.emptySet(); } else { return new HashSet<>(propertyExpressions); } }
@Override public Collection<OWLObjectPropertyExpression> getParents( OWLObjectPropertyExpression child) { if (child.isBottomEntity()) { return Collections.emptySet(); } Set<OWLObjectPropertyExpression> propertyExpressions = sub2Super.get(child); if (propertyExpressions == null) { return Collections.emptySet(); } else { return new HashSet<>(propertyExpressions); } }
private void tr(OWLSubObjectPropertyOfAxiom ax){ OWLObjectPropertyExpression sup = ax.getSuperProperty(); OWLObjectPropertyExpression sub = ax.getSubProperty(); if (sub.isBottomEntity() || sub.isTopEntity() || sup.isBottomEntity() || sub.isTopEntity()) { error("SubProperties using Top or Bottom entites are not supported in OBO."); return; } if(sub instanceof OWLObjectProperty && sup instanceof OWLObjectProperty){ String supId = this.getIdentifier(sup); if(supId.startsWith("owl:")){ return; } Frame f = getTypedefFrame((OWLObjectProperty) sub); Clause clause = new Clause(OboFormatTag.TAG_IS_A, supId); f.addClause(clause); addQualifiers(clause, ax.getAnnotations()); }else{ error(ax); } }
private void trNaryPropertyAxiom(OWLNaryPropertyAxiom<OWLObjectPropertyExpression> ax, String tag){ Set<OWLObjectPropertyExpression> set = ax.getProperties(); if(set.size()>1){ boolean first = true; OWLObjectProperty prop = null; String disjointFrom = null; for(OWLObjectPropertyExpression ex: set){ if (ex.isBottomEntity() || ex.isTopEntity()) { error(tag+" using Top or Bottom entities are not supported in OBO.", ax); return; } if(first){ first = false; if(ex instanceof OWLObjectProperty) { prop = (OWLObjectProperty)ex; } }else{ disjointFrom = this.getIdentifier(ex); //getIdentifier(ex); } } if( trObjectProperty(prop, tag, disjointFrom, ax.getAnnotations()) ){ return; } } error(ax); }
protected void tr(OWLSubObjectPropertyOfAxiom ax) { OWLObjectPropertyExpression sup = ax.getSuperProperty(); OWLObjectPropertyExpression sub = ax.getSubProperty(); if (sub.isBottomEntity() || sub.isTopEntity() || sup.isBottomEntity() || sup .isTopEntity()) { error("SubProperties using Top or Bottom entites are not supported in OBO.", false); return; } if (sub.isOWLObjectProperty() && sup.isOWLObjectProperty()) { String supId = checkNotNull(getIdentifier(sup)); if (supId.startsWith("owl:")) { return; } Frame f = getTypedefFrame((OWLObjectProperty) sub); Clause clause = new Clause(OboFormatTag.TAG_IS_A, supId); f.addClause(clause); addQualifiers(clause, ax.annotations()); } else { error(ax, true); } }
protected void tr(OWLSubObjectPropertyOfAxiom ax) { OWLObjectPropertyExpression sup = ax.getSuperProperty(); OWLObjectPropertyExpression sub = ax.getSubProperty(); if (sub.isBottomEntity() || sub.isTopEntity() || sup.isBottomEntity() || sup .isTopEntity()) { error("SubProperties using Top or Bottom entites are not supported in OBO.", false); return; } if (sub.isOWLObjectProperty() && sup.isOWLObjectProperty()) { String supId = checkNotNull(getIdentifier(sup)); if (supId.startsWith("owl:")) { return; } Frame f = getTypedefFrame((OWLObjectProperty) sub); Clause clause = new Clause(OboFormatTag.TAG_IS_A, supId); f.addClause(clause); addQualifiers(clause, ax.annotations()); } else { error(ax, true); } }
protected void tr(OWLSubObjectPropertyOfAxiom ax) { OWLObjectPropertyExpression sup = ax.getSuperProperty(); OWLObjectPropertyExpression sub = ax.getSubProperty(); if (sub.isBottomEntity() || sub.isTopEntity() || sup.isBottomEntity() || sup .isTopEntity()) { error("SubProperties using Top or Bottom entites are not supported in OBO.", false); return; } if (sub.isOWLObjectProperty() && sup.isOWLObjectProperty()) { String supId = checkNotNull(getIdentifier(sup)); if (supId.startsWith("owl:")) { return; } Frame f = getTypedefFrame((OWLObjectProperty) sub); Clause clause = new Clause(OboFormatTag.TAG_IS_A, supId); f.addClause(clause); addQualifiers(clause, ax.annotations()); } else { error(ax, true); } }
protected void tr(OWLSubObjectPropertyOfAxiom ax) { OWLObjectPropertyExpression sup = ax.getSuperProperty(); OWLObjectPropertyExpression sub = ax.getSubProperty(); if (sub.isBottomEntity() || sub.isTopEntity() || sup.isBottomEntity() || sup .isTopEntity()) { error("SubProperties using Top or Bottom entites are not supported in OBO.", false); return; } if (sub.isOWLObjectProperty() && sup.isOWLObjectProperty()) { String supId = checkNotNull(getIdentifier(sup)); if (supId.startsWith("owl:")) { return; } Frame f = getTypedefFrame((OWLObjectProperty) sub); Clause clause = new Clause(OboFormatTag.TAG_IS_A, supId); f.addClause(clause); addQualifiers(clause, ax.annotations()); } else { error(ax, true); } }
final OWLObjectPropertyExpression exp2 = list.get(1); if (exp1.isBottomEntity() || exp1.isTopEntity() || exp2.isBottomEntity() || exp2.isTopEntity()) { error("Property chains using Top or Bottom entities are not supported in OBO.", ax); return;
String disjointFrom = null; for (OWLObjectPropertyExpression ex : set) { if (ex.isBottomEntity() || ex.isTopEntity()) { error(tag + " using Top or Bottom entities are not supported in OBO.", ax, false);
if (exp1.isBottomEntity() || exp1.isTopEntity() || exp2.isBottomEntity() || exp2 .isTopEntity()) { error("Property chains using Top or Bottom entities are not supported in OBO.", ax,
String disjointFrom = null; for (OWLObjectPropertyExpression ex : set) { if (ex.isBottomEntity() || ex.isTopEntity()) { error(tag + " using Top or Bottom entities are not supported in OBO.", ax, false);
String disjointFrom = null; for (OWLObjectPropertyExpression ex : set) { if (ex.isBottomEntity() || ex.isTopEntity()) { error(tag + " using Top or Bottom entities are not supported in OBO.", ax, false);
if (exp1.isBottomEntity() || exp1.isTopEntity() || exp2.isBottomEntity() || exp2 .isTopEntity()) { error("Property chains using Top or Bottom entities are not supported in OBO.", ax,
String disjointFrom = null; for (OWLObjectPropertyExpression ex : set) { if (ex.isBottomEntity() || ex.isTopEntity()) { error(tag + " using Top or Bottom entities are not supported in OBO.", ax, false);