private Set<OWLClass> getFirstClassesNoTopBottom(NodeSet<OWLClass> nodeSet) { Set<OWLClass> concepts = new HashSet<>(); for (Node<OWLClass> node : nodeSet) { if(!node.isBottomNode() && !node.isTopNode()){ concepts.add(node.getRepresentativeElement()); } } return concepts; }
private void dumpClassHierarchy(Node<OWLClass> cls, int level, boolean showBottomNode) { if (!showBottomNode && cls.isBottomNode()) { return; } printIndent(level); OWLClass representative = cls.getRepresentativeElement(); System.out.println(getEquivalentClasses(representative)); for (Node<OWLClass> subCls : getSubClasses(representative, true)) { dumpClassHierarchy(subCls, level + 1, showBottomNode); } }
private void dumpClassHierarchy(Node<OWLClass> cls, int level, boolean showBottomNode) { if (!showBottomNode && cls.isBottomNode()) { return; } printIndent(level); OWLClass representative = cls.getRepresentativeElement(); System.out.println(getEquivalentClasses(representative)); for (Node<OWLClass> subCls : getSubClasses(representative, true)) { dumpClassHierarchy(subCls, level + 1, showBottomNode); } }
private void dumpObjectPropertyHierarchy(Node<OWLObjectPropertyExpression> cls, int level, boolean showBottomNode) { if (!showBottomNode && cls.isBottomNode()) { return; } printIndent(level); OWLObjectPropertyExpression representative = cls.getRepresentativeElement(); System.out.println(getEquivalentObjectProperties(representative)); for (Node<OWLObjectPropertyExpression> subProp : getSubObjectProperties(representative, true)) { dumpObjectPropertyHierarchy(subProp, level + 1, showBottomNode); } }
private void dumpObjectPropertyHierarchy(Node<OWLObjectPropertyExpression> cls, int level, boolean showBottomNode) { if (!showBottomNode && cls.isBottomNode()) { return; } printIndent(level); OWLObjectPropertyExpression representative = cls.getRepresentativeElement(); System.out.println(getEquivalentObjectProperties(representative)); for (Node<OWLObjectPropertyExpression> subProp : getSubObjectProperties(representative, true)) { dumpObjectPropertyHierarchy(subProp, level + 1, showBottomNode); } }
private void dumpDataPropertyHierarchy(Node<OWLDataProperty> cls, int level, boolean showBottomNode) { if (!showBottomNode && cls.isBottomNode()) { return; } printIndent(level); OWLDataProperty representative = cls.getRepresentativeElement(); System.out.println(getEquivalentDataProperties(representative)); for (Node<OWLDataProperty> subProp : getSubDataProperties(representative, true)) { dumpDataPropertyHierarchy(subProp, level + 1, showBottomNode); } }
private void dumpClassHierarchy(Node<OWLClass> cls, int level, boolean showBottomNode) { if (!showBottomNode && cls.isBottomNode()) { return; } printIndent(level); OWLClass representative = cls.getRepresentativeElement(); System.out.println(getEquivalentClasses(representative)); for (Node<OWLClass> subCls : getSubClasses(representative, true)) { dumpClassHierarchy(subCls, level + 1, showBottomNode); } }
private void dumpObjectPropertyHierarchy(Node<OWLObjectPropertyExpression> cls, int level, boolean showBottomNode) { if (!showBottomNode && cls.isBottomNode()) { return; } printIndent(level); OWLObjectPropertyExpression representative = cls.getRepresentativeElement(); System.out.println(getEquivalentObjectProperties(representative)); for (Node<OWLObjectPropertyExpression> subProp : getSubObjectProperties(representative, true)) { dumpObjectPropertyHierarchy(subProp, level + 1, showBottomNode); } }
private void dumpDataPropertyHierarchy(Node<OWLDataProperty> cls, int level, boolean showBottomNode) { if (!showBottomNode && cls.isBottomNode()) { return; } printIndent(level); OWLDataProperty representative = cls.getRepresentativeElement(); System.out.println(getEquivalentDataProperties(representative)); for (Node<OWLDataProperty> subProp : getSubDataProperties(representative, true)) { dumpDataPropertyHierarchy(subProp, level + 1, showBottomNode); } }
private void dumpClassHierarchy(Node<OWLClass> cls, int level, boolean showBottomNode) { if (!showBottomNode && cls.isBottomNode()) { return; } printIndent(level); OWLClass representative = cls.getRepresentativeElement(); System.out.println(getEquivalentClasses(representative)); for (Node<OWLClass> subCls : getSubClasses(representative, true)) { dumpClassHierarchy(subCls, level + 1, showBottomNode); } }
private void dumpDataPropertyHierarchy(Node<OWLDataProperty> cls, int level, boolean showBottomNode) { if (!showBottomNode && cls.isBottomNode()) { return; } printIndent(level); OWLDataProperty representative = cls.getRepresentativeElement(); System.out.println(getEquivalentDataProperties(representative)); for (Node<OWLDataProperty> subProp : getSubDataProperties(representative, true)) { dumpDataPropertyHierarchy(subProp, level + 1, showBottomNode); } }
private void dumpDataPropertyHierarchy(Node<OWLDataProperty> cls, int level, boolean showBottomNode) { if (!showBottomNode && cls.isBottomNode()) { return; } printIndent(level); OWLDataProperty representative = cls.getRepresentativeElement(); System.out.println(getEquivalentDataProperties(representative)); for (Node<OWLDataProperty> subProp : getSubDataProperties(representative, true)) { dumpDataPropertyHierarchy(subProp, level + 1, showBottomNode); } }
private void dumpDataPropertyHierarchy(Node<OWLDataProperty> cls, int level, boolean showBottomNode) { if (!showBottomNode && cls.isBottomNode()) { return; } printIndent(level); OWLDataProperty representative = cls.getRepresentativeElement(); System.out.println(getEquivalentDataProperties(representative)); for (Node<OWLDataProperty> subProp : getSubDataProperties(representative, true)) { dumpDataPropertyHierarchy(subProp, level + 1, showBottomNode); } }
private void dumpObjectPropertyHierarchy(Node<OWLObjectPropertyExpression> cls, int level, boolean showBottomNode) { if (!showBottomNode && cls.isBottomNode()) { return; } printIndent(level); OWLObjectPropertyExpression representative = cls.getRepresentativeElement(); System.out.println(getEquivalentObjectProperties(representative)); for (Node<OWLObjectPropertyExpression> subProp : getSubObjectProperties(representative, true)) { dumpObjectPropertyHierarchy(subProp, level + 1, showBottomNode); } }
private void dumpObjectPropertyHierarchy(Node<OWLObjectPropertyExpression> cls, int level, boolean showBottomNode) { if (!showBottomNode && cls.isBottomNode()) { return; } printIndent(level); OWLObjectPropertyExpression representative = cls.getRepresentativeElement(); System.out.println(getEquivalentObjectProperties(representative)); for (Node<OWLObjectPropertyExpression> subProp : getSubObjectProperties(representative, true)) { dumpObjectPropertyHierarchy(subProp, level + 1, showBottomNode); } }
private void populateClasses(OWLReasoner r, Model m) { OWLClass bottom = r.getBottomClassNode().getRepresentativeElement(); for (OWLClass c : r.getSuperClasses(bottom, false).getFlattened()) { populateClass(c, r, m); } }
private void dumpClassHierarchy(Node<OWLClass> cls, int level, boolean showBottomNode) { if (!showBottomNode && cls.isBottomNode()) { return; } printIndent(level); OWLClass representative = cls.getRepresentativeElement(); // System.out.println(getEquivalentClasses(representative)); for (Node<OWLClass> subCls : getSubClasses(representative, true)) { dumpClassHierarchy(subCls, level + 1, showBottomNode); } }
private void dumpObjectPropertyHierarchy(Node<OWLObjectPropertyExpression> cls, int level, boolean showBottomNode) { if (!showBottomNode && cls.isBottomNode()) { return; } printIndent(level); OWLObjectPropertyExpression representative = cls.getRepresentativeElement(); // System.out.println(getEquivalentObjectProperties(representative)); for (Node<OWLObjectPropertyExpression> subProp : getSubObjectProperties(representative, true)) { dumpObjectPropertyHierarchy(subProp, level + 1, showBottomNode); } }
private void dumpSubClasses(Node<OWLClass> node, LogAdapter pw, int depth, boolean includeBottomNode) { if (includeBottomNode || !node.isBottomNode()) { IntStream.range(0, depth).forEach(n -> pw.print(" ")); pw.print(node).println(); getSubClasses(node.getRepresentativeElement(), true) .forEach(sub -> dumpSubClasses(sub, pw, depth + 1, includeBottomNode)); } }
private void populateDataProperties(OWLReasoner r, Model m) { OWLDataProperty bottom = r.getBottomDataPropertyNode() .getRepresentativeElement(); populateDataProperty(bottom, r, m); for (OWLDataProperty dp : r.getSuperDataProperties(bottom, false) .getFlattened()) { populateDataProperty(dp, r, m); } }