while (results.hasNext()) {
QuerySolution soln = results.nextSolution();
RDFNode node = soln.get("project");
if (node.isResource()) {
projects.add(new Project((com.hp.hpl.jena.rdf.model.Resource) node));
}
}
} catch (QueryException e) {
String message = "QueryException when trying to SPARQLquery projects with query: " + queryStr;
LOGGER.warn(message + "; message: " + e.getMessage());