{
// we cancel the chain of iterators, however, we do *not* close the iterators.
// That happens after the cancellation is properly over.
if ( cancelAllowDrain && queryIterator instanceof QueryIteratorBase )
{
QueryIteratorBase qIter = (QueryIteratorBase)queryIterator ;
qIter.cancelAllowContinue() ;
}
else
// Normal case - correct SPARQL
queryIterator.cancel() ;
cancel = true ;