Skip to content

Commit

Permalink
Corrected compile error #49
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane Campinas committed May 15, 2014
1 parent 6fe0e60 commit f97bd08
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import java.io.IOException;
import java.io.StringWriter;
import java.util.List;

import org.openrdf.query.MalformedQueryException;
import org.openrdf.sindice.query.parser.sparql.ast.ASTConstraint;
Expand Down Expand Up @@ -65,16 +64,12 @@ public String getDGSQueryWithLimit(int limit, ASTConstraint... contraints)
public String getDGSQuery(ASTConstraint... contraints)
throws DGSException {
if (dgsQuery == null) {
try {
if (contraints != null && contraints.length != 0) {
// TODO: add possible constraints to the query
ast.getQuery().getWhereClause();
}
writer.getBuffer().setLength(0);
dgsQuery = mustache.execute(writer, dgs.getRecommendationQuery()).toString();
} catch (IOException e) {
throw new DGSException(e);
if (contraints != null && contraints.length != 0) {
// TODO: add possible constraints to the query
ast.getQuery().getWhereClause();
}
writer.getBuffer().setLength(0);
dgsQuery = mustache.execute(writer, dgs.getRecommendationQuery()).toString();
}
return dgsQuery;
}
Expand Down

0 comments on commit f97bd08

Please sign in to comment.