elk-reasoner/src/main/java/org/semanticweb/elk/reasoner/Reasoner.java
public synchronized Set<? extends Node<ElkNamedIndividual>> getInstancesQuietly(
			ElkClassExpression classExpression, boolean direct)
			throws ElkException {
		try {
			return getInstances(classExpression, direct);
		} catch (final ElkInconsistentOntologyException e) {
			// All classes are equivalent to each other, so also to owl:Nothing.
			final TypeNode<ElkClass, ElkNamedIndividual> node = getInstanceTaxonomyQuietly()
					.getBottomNode();
			return direct ? node.getDirectInstanceNodes()
					: node.getAllInstanceNodes();
		}
	}
public synchronized Set<? extends Node<ElkNamedIndividual>> getInstancesQuietly(
			ElkClassExpression classExpression, boolean direct)
			throws ElkException {
		try {
			return getInstances(classExpression, direct);
		} catch (final ElkInconsistentOntologyException e) {
			// All classes are equivalent to each other, so also to owl:Nothing.
			final TypeNode<ElkClass, ElkNamedIndividual> node = getInstanceTaxonomyQuietly()
					.getBottomNode();
			return direct ? node.getDirectInstanceNodes()
					: node.getAllInstanceNodes();
		}
	}
public synchronized Set < ? extends Node < ElkNamedIndividual > > getInstancesQuietly ( ElkClassExpression classExpression , boolean direct ) throws ElkException { try { return getInstances ( classExpression , direct ) ; } catch ( final ElkInconsistentOntologyException e ) { // All classes are equivalent to each other, so also to owl:Nothing. final TypeNode < ElkClass , ElkNamedIndividual > node = getInstanceTaxonomyQuietly ( ) . getBottomNode ( ) ; return direct ? node . getDirectInstanceNodes ( ) : node . getAllInstanceNodes ( ) ; } }
Return the (direct or indirect) instances of the given
{@link ElkClassExpression} as specified by the parameter. The method
returns a set of {@link Node}s, each of which representing an equivalent
class of instances. Calling of this method may trigger the computation of
the realization, if it has not been done yet.

@param classExpression
the {@link ElkClassExpression} for which to return the
instances {@link Node}s
@param direct
if {@code true}, only direct instances are returned
@return the set of {@link Node}s for direct or indirect instances of the
given {@link ElkClassExpression} according to the specified
parameter
@throws ElkException
if the result cannot be computed
Return the ( direct or indirect ) instances of the given { @link ElkClassExpression } as specified by the parameter . The method returns a set of { @link Node } s each of which representing an equivalent class of instances . Calling of this method may trigger the computation of the realization if it has not been done yet .