1. Cleaned up code
2. Removed debug prints.
This commit is contained in:
parent
8a5e0ed793
commit
57c954bf2b
2 changed files with 2 additions and 36 deletions
|
@ -141,7 +141,7 @@ public class VisualizationRequestHandler {
|
||||||
imageQueryHandler.getResultSet(),
|
imageQueryHandler.getResultSet(),
|
||||||
fieldLabelToOutputFieldLabel);
|
fieldLabelToOutputFieldLabel);
|
||||||
|
|
||||||
System.out.println("thumbnail access URL " + thumbnailAccessURL);
|
// System.out.println("thumbnail access URL " + thumbnailAccessURL);
|
||||||
prepareVisualizationQueryResponse(thumbnailAccessURL);
|
prepareVisualizationQueryResponse(thumbnailAccessURL);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -54,41 +54,7 @@ public class GenericQueryHandler {
|
||||||
this.log = log;
|
this.log = log;
|
||||||
|
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
private GenericQueryMap createJavaValueObjects(ResultSet resultSet) {
|
|
||||||
|
|
||||||
GenericQueryMap queryResultVO = new GenericQueryMap();
|
|
||||||
|
|
||||||
while (resultSet.hasNext()) {
|
|
||||||
QuerySolution solution = resultSet.nextSolution();
|
|
||||||
|
|
||||||
|
|
||||||
RDFNode predicateNode = solution.get(QueryFieldLabels.PREDICATE);
|
|
||||||
RDFNode objectNode = solution.get(QueryFieldLabels.OBJECT);
|
|
||||||
|
|
||||||
if (predicateNode != null && objectNode != null) {
|
|
||||||
queryResultVO.addEntry(predicateNode.toString(),
|
|
||||||
objectNode.toString());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
for (String currentOutputFieldLabel : this.fieldLabelToOutputFieldLabel.values()) {
|
|
||||||
|
|
||||||
RDFNode currentFieldNode = solution.get(currentOutputFieldLabel);
|
|
||||||
if (currentFieldNode != null) {
|
|
||||||
// biboDocument.setDocumentBlurb(currentFieldNode.toString());
|
|
||||||
|
|
||||||
TupleSet
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
return queryResultVO;
|
|
||||||
}
|
|
||||||
|
|
||||||
*/
|
|
||||||
private ResultSet executeQuery(String queryText,
|
private ResultSet executeQuery(String queryText,
|
||||||
String resultFormatParam,
|
String resultFormatParam,
|
||||||
String rdfResultFormatParam,
|
String rdfResultFormatParam,
|
||||||
|
@ -139,7 +105,7 @@ public class GenericQueryHandler {
|
||||||
|
|
||||||
sparqlQuery.append("}\n");
|
sparqlQuery.append("}\n");
|
||||||
|
|
||||||
System.out.println("GENERIC QEURY >>>>> " + sparqlQuery);
|
// System.out.println("GENERIC QEURY >>>>> " + sparqlQuery);
|
||||||
|
|
||||||
return sparqlQuery.toString();
|
return sparqlQuery.toString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue