return createTemplateRepresentation(variant.getMediaType(), dataModel);
}
private Representation queryResultRepresentation(Variant variant) throws ResourceException {
Map<String, Object> dataModel = new HashMap<String, Object>();
Answer answer = graphApplication.answerQuery(graphName, queryString, maxRows);
dataModel.put("query", queryString);
dataModel.put(GRAPH_NAME, graphName);
dataModel.put("timeTaken", graphApplication.getTimeTaken());
dataModel.put("tooManyRows", graphApplication.isTooManyRows());
dataModel.put("maxRows", graphApplication.getMaxRows());