Skip to content

Instantly share code, notes, and snippets.

@no-reply
Created September 26, 2014 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save no-reply/cb8b85b6c9f4a9897997 to your computer and use it in GitHub Desktop.
Save no-reply/cb8b85b6c9f4a9897997 to your computer and use it in GitHub Desktop.
Marmotta SPARQL Direct Post Queries
/**
* Single endpoint for direct post queries (not yet implemented)
*
* @param request
* @return
*/
@POST
public Response post(@Context HttpServletRequest request) {
//String query = CharStreams.toString(request.getReader());
//TODO: introspect the query to determine the operation type
String msg = "impossible to determine which type of operation (query/update) the request contains";
log.error(msg);
return Response.status(Response.Status.CONFLICT).entity(msg).build();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment