/** * Compute the set of exclusive descendants of a class. Exclusive process: * the focused vertex will NOT be included in the set of descendants. * * @param v the vertex of interest * @return the exclusive set of descendants of the concept (empty set if * any). */ public Set<URI> getDescendantsExc(URI v) { return getRV(v); }
/** * Compute the set of exclusive descendants of a class. Exclusive process: * the focused vertex will NOT be included in the set of descendants. * * @param v the vertex of interest * @return the exclusive set of descendants of the concept (empty set if * any). */ public Set<URI> getDescendantsExc(URI v) { return getRV(v); }
/** * Compute the set of inclusive descendants of a class. * The focused vertex will be included in the set of descendants. * * @param v the vertex of interest * @return the exclusive set of descendants of the concept (empty set if * any). */ public Set<URI> getDescendantsInc(URI v) { Set<URI> set = getRV(v); set.add(v); return set; }
/** * Compute the set of inclusive descendants of a class. * The focused vertex will be included in the set of descendants. * * @param v the vertex of interest * @return the exclusive set of descendants of the concept (empty set if * any). */ public Set<URI> getDescendantsInc(URI v) { Set<URI> set = getRV(v); set.add(v); return set; }
/** * NOT_CACHED * * @param a * @param b * @return all subclasses of the superclass, of the given classes, which are * not shared. */ public Set<URI> getHypoAncEx(URI a, URI b) { Set<URI> anc_a = getAncestorsInc(a); Set<URI> anc_b = getAncestorsInc(b); Set<URI> unionAncestors = SetUtils.union(anc_a, anc_b); Set<URI> interAncestors = SetUtils.union(anc_a, anc_b); Set<URI> ancsEx = unionAncestors; unionAncestors.removeAll(interAncestors); Set<URI> hypoAncsEx = new HashSet<URI>(); for (URI v : ancsEx) { Set<URI> descCurAnc = descGetter.getRV(v); hypoAncsEx = SetUtils.union(hypoAncsEx, descCurAnc); } return hypoAncsEx; } }