@Override
protected Iteration<? extends Statement, ? extends RepositoryException> createIteration() throws RepositoryException {
try {
return databaseConnection.listTriples(rsubj, rpred, robj, context, includeInferred, false);
} catch (SQLException e) {
throw new RepositoryException("database error while listing triples",e);
}
}
});
}
} else {
iterations.add(new DelayedIteration<Statement, RepositoryException>() {
@Override
protected Iteration<? extends Statement, ? extends RepositoryException> createIteration() throws RepositoryException {
try {
return databaseConnection.listTriples(rsubj, rpred, robj, null, includeInferred, true);
} catch (SQLException e) {
throw new RepositoryException("database error while listing triples",e);
}
}
});
}