elk-reasoner/src/main/java/org/semanticweb/elk/reasoner/Reasoner.java
protected InstanceNode<ElkClass, ElkNamedIndividual> getInstanceNode(
			ElkNamedIndividual elkNamedIndividual) throws ElkException {
		final InstanceTaxonomy<ElkClass, ElkNamedIndividual> instanceTaxonomy = getInstanceTaxonomy();
		final InstanceNode<ElkClass, ElkNamedIndividual> node = instanceTaxonomy
				.getInstanceNode(elkNamedIndividual);
		if (node != null)
			return node;
		// else
		if (allowFreshEntities)
			return new FreshInstanceNode<ElkClass, ElkNamedIndividual>(
					elkNamedIndividual, instanceTaxonomy);
		// else
		throw new ElkFreshEntitiesException(elkNamedIndividual);
	}
protected InstanceNode<ElkClass, ElkNamedIndividual> getInstanceNode(
			ElkNamedIndividual elkNamedIndividual) throws ElkException {
		final InstanceTaxonomy<ElkClass, ElkNamedIndividual> instanceTaxonomy = getInstanceTaxonomy();
		final InstanceNode<ElkClass, ElkNamedIndividual> node = instanceTaxonomy
				.getInstanceNode(elkNamedIndividual);
		if (node != null)
			return node;
		// else
		if (allowFreshEntities)
			return new FreshInstanceNode<ElkClass, ElkNamedIndividual>(
					elkNamedIndividual, instanceTaxonomy);
		// else
		throw new ElkFreshEntitiesException(elkNamedIndividual);
	}
protected InstanceNode < ElkClass , ElkNamedIndividual > getInstanceNode ( ElkNamedIndividual elkNamedIndividual ) throws ElkException { final InstanceTaxonomy < ElkClass , ElkNamedIndividual > instanceTaxonomy = getInstanceTaxonomy ( ) ; final InstanceNode < ElkClass , ElkNamedIndividual > node = instanceTaxonomy . getInstanceNode ( elkNamedIndividual ) ; if ( node != null ) return node ; // else if ( allowFreshEntities ) return new FreshInstanceNode < ElkClass , ElkNamedIndividual > ( elkNamedIndividual , instanceTaxonomy ) ; // else throw new ElkFreshEntitiesException ( elkNamedIndividual ) ; }
Helper method to get an {@link InstanceNode} from the taxonomy.

@param elkNamedIndividual
@return the {@link InstanceNode} for the given {@link ElkNamedIndividual}
@throws ElkException
if the result cannot be computed
Helper method to get an { @link InstanceNode } from the taxonomy .