Created
September 26, 2014 15:20
-
-
Save no-reply/cb8b85b6c9f4a9897997 to your computer and use it in GitHub Desktop.
Marmotta SPARQL Direct Post Queries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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