elk-reasoner/src/main/java/org/semanticweb/elk/reasoner/Reasoner.java
public synchronized Set<? extends Node<ElkObjectProperty>> getSubObjectProperties(
			final ElkObjectProperty property, final boolean direct)
			throws ElkException {

		final TaxonomyNode<ElkObjectProperty> queryNode = getObjectPropertyNode(
				property);

		return (direct) ? queryNode.getDirectSubNodes()
				: queryNode.getAllSubNodes();
	}
public synchronized Set<? extends Node<ElkObjectProperty>> getSubObjectProperties(
			final ElkObjectProperty property, final boolean direct)
			throws ElkException {

		final TaxonomyNode<ElkObjectProperty> queryNode = getObjectPropertyNode(
				property);

		return (direct) ? queryNode.getDirectSubNodes()
				: queryNode.getAllSubNodes();
	}
Return the (direct or indirect) sub-properties of the given
{@link ElkObjectProperty} as specified by the parameter. The method
returns a set of {@link Node}s, each of which representing an equivalence
class of sub-properties. Calling of this method may trigger the
computation of the taxonomy, if it has not been done yet.

@param property
the {@link ElkObjectProperty} for which to return the
sub-property {@link Node}s
@param direct
if {@code true}, only direct sub-properties should be returned
@return the set of {@link Node}s for direct or indirect sub-properties of
the given {@link ElkObjectProperty} according to the specified
parameter
@throws ElkException
if the result cannot be computed