private void buildChildren(OWLClassExpression seed) { // Return the axioms that have the entity on the LHS List<OWLAxiom> result = asList(seed.signature().flatMap(this::getAxiomsByLHS)); usedAxioms.addAll(result); rootAxioms.addAll(result); buildChildren(result); }
private void buildChildren(OWLClassExpression seed) { // Return the axioms that have the entity on the LHS List<OWLAxiom> result = asList(seed.signature().flatMap(this::getAxiomsByLHS)); usedAxioms.addAll(result); rootAxioms.addAll(result); buildChildren(result); }
private void buildChildren(OWLClassExpression seed) { // Return the axioms that have the entity on the LHS List<OWLAxiom> result = asList(seed.signature().flatMap(this::getAxiomsByLHS)); usedAxioms.addAll(result); rootAxioms.addAll(result); buildChildren(result); }
private void buildChildren(OWLClassExpression seed) { // Return the axioms that have the entity on the LHS List<OWLAxiom> result = asList(seed.signature().flatMap(this::getAxiomsByLHS)); usedAxioms.addAll(result); rootAxioms.addAll(result); buildChildren(result); }
private void buildChildren(Set<OWLAxiom> axioms) { List<Set<OWLAxiom>> axiomChildren = new ArrayList<Set<OWLAxiom>>(); for (OWLAxiom ax : axioms) { Set<OWLAxiom> children = build(ax); for (OWLAxiom childAx : children) { index(ax, map, childAx); } axiomChildren.add(children); } for (Set<OWLAxiom> children : axiomChildren) { buildChildren(children); } }
private void createMap() { for (OWLAxiom ax : axioms) { OWLAxiomPartExtractor extractor = new OWLAxiomPartExtractor(); ax.accept(extractor); Set<OWLEntity> lhscollected = new HashSet<>(); OWLEntityCollector lhsCollector = new OWLEntityCollector(lhscollected); extractor.getLHS().forEach(l -> l.accept(lhsCollector)); lhscollected.forEach(l -> axiomsByLHS.put(l, ax)); } buildChildren(desc); }
private void createMap() { for (OWLAxiom ax : axioms) { OWLAxiomPartExtractor extractor = new OWLAxiomPartExtractor(); ax.accept(extractor); Set<OWLEntity> lhscollected = new HashSet<>(); OWLEntityCollector lhsCollector = new OWLEntityCollector(lhscollected); extractor.getLHS().forEach(l -> l.accept(lhsCollector)); lhscollected.forEach(l -> axiomsByLHS.put(l, ax)); } buildChildren(desc); }
private void createMap() { for (OWLAxiom ax : axioms) { OWLAxiomPartExtractor extractor = new OWLAxiomPartExtractor(); ax.accept(extractor); Set<OWLEntity> lhscollected = new HashSet<>(); OWLEntityCollector lhsCollector = new OWLEntityCollector(lhscollected); extractor.getLHS().forEach(l -> l.accept(lhsCollector)); lhscollected.forEach(l -> axiomsByLHS.put(l, ax)); } buildChildren(desc); }
private void createMap() { for (OWLAxiom ax : axioms) { OWLAxiomPartExtractor extractor = new OWLAxiomPartExtractor(); ax.accept(extractor); Set<OWLEntity> lhscollected = new HashSet<>(); OWLEntityCollector lhsCollector = new OWLEntityCollector(lhscollected); extractor.getLHS().forEach(l -> l.accept(lhsCollector)); lhscollected.forEach(l -> axiomsByLHS.put(l, ax)); } buildChildren(desc); }
private void buildChildren(OWLClassExpression seed) { // Return the axioms that have the entity on the LHS OWLEntityCollector collector = new OWLEntityCollector(); seed.accept(collector); Set<OWLAxiom> result = new HashSet<OWLAxiom>(); for (OWLEntity ent : collector.getObjects()) { Set<OWLAxiom> axs = getAxiomsByLHS(ent); for (OWLAxiom ax : axs) { result.add(ax); usedAxioms.add(ax); } } rootAxioms.addAll(result); buildChildren(result); }
private void createMap() { for (OWLAxiom ax : axioms) { OWLAxiomPartExtractor extractor = new OWLAxiomPartExtractor(); ax.accept(extractor); OWLEntityCollector rhsCollector = new OWLEntityCollector(); for (OWLObject rhsObject : extractor.getRHS()) { rhsObject.accept(rhsCollector); } for (OWLEntity rhsEntity : rhsCollector.getObjects()) { index(rhsEntity, axiomsByRHS, ax); } OWLEntityCollector lhsCollector = new OWLEntityCollector(); for (OWLObject lhsObject : extractor.getLHS()) { lhsObject.accept(lhsCollector); } for (OWLEntity lhsEntity : lhsCollector.getObjects()) { index(lhsEntity, axiomsByLHS, ax); } } buildChildren(desc); }