private NodeSet<OWLNamedIndividual> getIndividualNodeSetByName( Collection<OWLNamedIndividual> individuals ) {
Set<Node<OWLNamedIndividual>> instances = new HashSet<Node<OWLNamedIndividual>>();
for( OWLNamedIndividual ind : individuals ) {
for ( OWLNamedIndividual equiv : reasoner.getSameIndividuals( ind ) ) {
instances.add( new OWLNamedIndividualNode( equiv ) );
}
}
return new OWLNamedIndividualNodeSet( instances );
}