Recommendation[] recoTable = set.toArray(new Recommendation[0]);
for(int i = 0; i<uriTable.length; i++) {
uriTable[i] = recoTable[i].getRecommendedBook();
}
QueryResultsTable foundTitlesAndAuthors = SesameWrapper.performTableQuery(Repository.JEROMEDL_REPOSITORY.getLocalRepository(),
QueryLanguage.SERQL, RecommendationQueries.TITLES_QUERY.titlesQuery(uriTable));
for(int i = 0; i<foundTitlesAndAuthors.getRowCount(); i++)
for(int j = 0; j<recoTable.length; j++) {
if(recoTable[j].getRecommendedBook().equals(foundTitlesAndAuthors.getValue(i, 0))) {
if(recoTable[j].getTitle() == null)
recoTable[j].setTitle(foundTitlesAndAuthors.getValue(i, 1).toString());
// if(recoTable[j].getAuthors() == null)
// recoTable[j].setAuthors(foundTitlesAndAuthors.getValue(i, 2).toString());
// else
// recoTable[j].addAuthor(foundTitlesAndAuthors.getValue(i, 2).toString());
}