public class LazyClassHierarchy extends ClassHierarchy
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
LazyClassHierarchy(AbstractReasonerComponent rc) |
| Modifier and Type | Method and Description |
|---|---|
LazyClassHierarchy |
clone() |
AbstractHierarchy<org.semanticweb.owlapi.model.OWLClassExpression> |
cloneAndRestrict(Set<? extends org.semanticweb.owlapi.model.OWLClassExpression> allowedEntities)
The method computes a new subsumption hierarchy, which is a copy of this
one, but only the specified entities are allowed to occur.
|
SortedSet<org.semanticweb.owlapi.model.OWLClassExpression> |
getSubClasses(org.semanticweb.owlapi.model.OWLClassExpression concept,
boolean direct)
Returns the all subclasses.
|
SortedSet<org.semanticweb.owlapi.model.OWLClassExpression> |
getSuperClasses(org.semanticweb.owlapi.model.OWLClassExpression concept,
boolean direct)
Returns the all superclasses for the given class.
|
void |
thinOutSubsumptionHierarchy()
This method modifies the subsumption hierarchy such that for each class,
there is only a single path to reach it via upward and downward
refinement respectively.
|
getBottomConcept, getDepth2Root, getMostGeneralClasses, getSiblingClasses, getSubClasses, getSuperClasses, getTopConcept, isSubclassOf, isSubclassOf, toOWLAxioms, toOWLAxiomscontains, getChildren, getChildren, getEntities, getHierarchyDown, getHierarchyUp, getMostGeneralEntities, getMostSpecialEntities, getParents, getParents, getRoots, getSiblings, isChildOf, isParentOf, precompute, setHierarchyDown, setHierarchyUp, toString, toStringpublic static org.slf4j.Logger logger
public LazyClassHierarchy(AbstractReasonerComponent rc)
public SortedSet<org.semanticweb.owlapi.model.OWLClassExpression> getSuperClasses(org.semanticweb.owlapi.model.OWLClassExpression concept, boolean direct)
ClassHierarchygetSuperClasses in class ClassHierarchyconcept - the classdirect - whether to return only direct superclasses or notpublic SortedSet<org.semanticweb.owlapi.model.OWLClassExpression> getSubClasses(org.semanticweb.owlapi.model.OWLClassExpression concept, boolean direct)
ClassHierarchygetSubClasses in class ClassHierarchyconcept - the classdirect - whether to return only direct subclasses or notpublic LazyClassHierarchy clone()
clone in class ClassHierarchypublic AbstractHierarchy<org.semanticweb.owlapi.model.OWLClassExpression> cloneAndRestrict(Set<? extends org.semanticweb.owlapi.model.OWLClassExpression> allowedEntities)
AbstractHierarchycloneAndRestrict in class AbstractHierarchy<org.semanticweb.owlapi.model.OWLClassExpression>allowedEntities - The entities, which are allowed to occur in the new
subsumption hierarchy.public void thinOutSubsumptionHierarchy()
AbstractHierarchythinOutSubsumptionHierarchy in class AbstractHierarchy<org.semanticweb.owlapi.model.OWLClassExpression>
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann