String msg = "Cannot parse the SPARQL while trying to retrieve the enhancements of the ContentItem";
log.error(msg, e);
throw new StoreException(msg, e);
}
ResultSet resultSet = tcManager.executeSparqlQuery(selectQuery,
this.getEnhancementGraph());
MGraph metadata = new SimpleMGraph();
while (resultSet.hasNext()) {
SolutionMapping mapping = resultSet.next();
UriRef ref = (UriRef) mapping.get("enhID");
Iterator<Triple> tripleItr = this.getEnhancementGraph().filter(ref,
null, null);
while (tripleItr.hasNext()) {
Triple triple = tripleItr.next();