public void prepare() { pm.reasonerTaskStarted("Computing " + name + " hierarchy"); pm.reasonerTaskBusy(); cycles.clear(); Map<T, Collection<T>> cache = new HashMap<T, Collection<T>>(); Set<T> processed = new HashSet<T>(); HashSet<Set<T>> result = new HashSet<Set<T>>(); Set<T> entities = new HashSet<T>(); for (OWLOntology ont : getRootOntology().getImportsClosure()) { entities.addAll(getEntities(ont)); } classificationSize = entities.size(); pm.reasonerTaskProgressChanged(0, classificationSize); computeCyclesForSignature(entities, cache, processed, result); addCycles(result); pm.reasonerTaskStopped(); }
public void computeHierarchy() { pm.reasonerTaskStarted("Computing " + name + " hierarchy"); pm.reasonerTaskBusy(); nodeCache.clear(); Map<T, Collection<T>> cache = new HashMap<T, Collection<T>>(); Set<T> entities = new HashSet<T>(); for (OWLOntology ont : getRootOntology().getImportsClosure()) { entities.addAll(getEntities(ont)); } classificationSize = entities.size(); pm.reasonerTaskProgressChanged(0, classificationSize); updateForSignature(entities, cache); pm.reasonerTaskStopped(); }