Class QueryResponder
java.lang.Object
org.eclipse.rdf4j.http.server.readonly.QueryResponder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sparqlGet
(String defaultGraphUri, String namedGraphUri, String query, String acceptHeader, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) void
sparqlPostURLencoded
(String defaultGraphUri, String namedGraphUri, String query, String acceptHeader, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
Constructor Details
-
QueryResponder
-
-
Method Details
-
sparqlPostURLencoded
@RequestMapping(value="/sparql", method=POST, consumes="application/x-www-form-urlencoded") public void sparqlPostURLencoded(@RequestParam(value="default-graph-uri",required=false) String defaultGraphUri, @RequestParam(value="named-graph-uri",required=false) String namedGraphUri, @RequestParam("query") String query, @RequestHeader("Accept") String acceptHeader, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException - Throws:
IOException
-
sparqlGet
@RequestMapping(value="/sparql", method=GET) public void sparqlGet(@RequestParam(value="default-graph-uri",required=false) String defaultGraphUri, @RequestParam(value="named-graph-uri",required=false) String namedGraphUri, @RequestParam("query") String query, @RequestHeader("Accept") String acceptHeader, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException - Throws:
IOException
-