}
public Representation represent(final String query,
final Map<String, String> args) throws ResourceException {
try {
return new SparqlQueryRepresentation(query, sail, readLimit(args), SparqlTools.SparqlResultFormat.JSON.getMediaType());
} catch (QueryException e) {
throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, e);
} catch (SailException e) {
throw new ResourceException(Status.SERVER_ERROR_INTERNAL, e);
} catch (Exception e) {