public Collection<? extends IndexedClassEntity> getTestEntitites() { if (isTriviallyConsistent_) { return Collections.emptyList(); } int size = pruneToDo(); // since getting the size of the queue is a linear operation, // use the computed size return Operations.getCollection(toDoEntities_, size); }
public Collection<? extends IndexedClassEntity> getTestEntitites() { if (isTriviallyConsistent_) { return Collections.emptyList(); } int size = pruneToDo(); // since getting the size of the queue is a linear operation, // use the computed size return Operations.getCollection(toDoEntities_, size); }
public Collection<? extends IndexedClassEntity> getTestEntitites() { if (isTriviallyConsistent_) { return Collections.emptyList(); } int size = pruneToDo(); // since getting the size of the queue is a linear operation, // use the computed size return Operations.getCollection(toDoEntities_, size); }
/** * Returns collection that contains at least all classes that are in * taxonomy, but either are removed from ontology or their context became * not saturated. * * @return collection that contains at least all classes that are in * taxonomy, but either are removed from ontology or their context * became not saturated. */ Collection<IndexedClass> getToRemove() { final int size = pruneToRemove(); /* * since getting the size of the queue is a linear operation, use the * computed size */ return Operations.getCollection(toRemove_, size); }
@Override public ElkAxiom visit(final ElkNamedIndividual ind) { return factory.getSameIndividualAxiom( new ArrayList<ElkNamedIndividual>( Operations.getCollection( Operations.filter(equivalent, ElkNamedIndividual.class), equivalent.size()))); }
@Override public ElkAxiom visit(final ElkClass cls) { return factory.getEquivalentClassesAxiom( new ArrayList<ElkClass>(Operations.getCollection( Operations.filter(equivalent, ElkClass.class), equivalent.size()))); }
@Override public ElkAxiom visit(final ElkObjectProperty prop) { return factory.getEquivalentObjectPropertiesAxiom( new ArrayList<ElkObjectProperty>( Operations.getCollection( Operations.filter(equivalent, ElkObjectProperty.class), equivalent.size()))); }
@Override public ElkAxiom visit(final ElkClass cls) { return factory.getEquivalentClassesAxiom( new ArrayList<ElkClass>(Operations.getCollection( Operations.filter(equivalent, ElkClass.class), equivalent.size()))); }
@Override public ElkAxiom visit(final ElkNamedIndividual ind) { return factory.getSameIndividualAxiom( new ArrayList<ElkNamedIndividual>( Operations.getCollection( Operations.filter(equivalent, ElkNamedIndividual.class), equivalent.size()))); }
@Override public ElkAxiom visit(final ElkObjectProperty prop) { return factory.getEquivalentObjectPropertiesAxiom( new ArrayList<ElkObjectProperty>( Operations.getCollection( Operations.filter(equivalent, ElkObjectProperty.class), equivalent.size()))); }
@Override public ElkAxiom visit(final ElkClass cls) { return factory.getEquivalentClassesAxiom( new ArrayList<ElkClass>(Operations.getCollection( Operations.filter(equivalent, ElkClass.class), equivalent.size()))); }
@Override public ElkAxiom visit(final ElkNamedIndividual ind) { return factory.getSameIndividualAxiom( new ArrayList<ElkNamedIndividual>( Operations.getCollection( Operations.filter(equivalent, ElkNamedIndividual.class), equivalent.size()))); }
@Override public ElkAxiom visit(final ElkObjectProperty prop) { return factory.getEquivalentObjectPropertiesAxiom( new ArrayList<ElkObjectProperty>( Operations.getCollection( Operations.filter(equivalent, ElkObjectProperty.class), equivalent.size()))); }
/** * @return {@link IndexedContextRoot} that are needed to answer the * registered entailment queries and not saturated. */ Collection<IndexedContextRoot> getNotSaturatedPositivelyIndexedRoots() { int sizeUpper = 0; for (final QueryState state : queried_.values()) { if (state.indexed != null) { sizeUpper += state.indexed.getPositivelyIndexed().size(); } } final Iterable<IndexedContextRoot> result = Operations .concat(Operations.map(queried_.values(), POSITIVELY_INDEXED)); return Operations.getCollection(result, sizeUpper); }
@SuppressWarnings("unchecked") @Override public final Collection<? extends IndexedPropertyChain> getPropertyChains() { return Operations.getCollection( Operations.concat(cachedObjectProperties_, cachedBinaryPropertyChains_), cachedObjectProperties_.size() + cachedBinaryPropertyChains_.size()); }
@SuppressWarnings("unchecked") @Override public final Collection<? extends IndexedPropertyChain> getPropertyChains() { return Operations.getCollection( Operations.concat(cachedObjectProperties_, cachedBinaryPropertyChains_), cachedObjectProperties_.size() + cachedBinaryPropertyChains_.size()); }
@SuppressWarnings("unchecked") @Override public final Collection<? extends IndexedPropertyChain> getPropertyChains() { return Operations.getCollection( Operations.concat(cachedObjectProperties_, cachedBinaryPropertyChains_), cachedObjectProperties_.size() + cachedBinaryPropertyChains_.size()); }
@SuppressWarnings("unchecked") @Override public final Collection<? extends IndexedClassExpression> getClassExpressions() { return Operations.getCollection( Operations.concat(cachedClasses_, cachedIndividuals_, cachedComplexClassExpressions_), cachedClasses_.size() + cachedIndividuals_.size() + cachedComplexClassExpressions_.size()); }
@SuppressWarnings("unchecked") @Override public final Collection<? extends IndexedClassExpression> getClassExpressions() { return Operations.getCollection( Operations.concat(cachedClasses_, cachedIndividuals_, cachedComplexClassExpressions_), cachedClasses_.size() + cachedIndividuals_.size() + cachedComplexClassExpressions_.size()); }
@SuppressWarnings("unchecked") @Override public final Collection<? extends IndexedClassExpression> getClassExpressions() { return Operations.getCollection( Operations.concat(cachedClasses_, cachedIndividuals_, cachedComplexClassExpressions_), cachedClasses_.size() + cachedIndividuals_.size() + cachedComplexClassExpressions_.size()); }