java.lang.Object
org.apache.jena.fuseki.servlets.SPARQLProtocol
Support functions for the SPARQL protocol (SPARQL Query, SPARQL Update)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
countParamOccurences
(jakarta.servlet.http.HttpServletRequest request, String param) static org.apache.jena.sparql.core.DatasetDescription
getDatasetDescription
(HttpAction action, org.apache.jena.query.Query query) Given an action (protocol request) and a query, decide the DatasetDescription, if any.static org.apache.jena.sparql.core.DatasetDescription
static org.apache.jena.sparql.core.DatasetDescription
getQueryDatasetDescription
(org.apache.jena.query.Query query) static String
messageForException
(org.apache.jena.query.QueryException ex) Form a message from aQueryException
.static String
messageForParseException
(org.apache.jena.query.QueryParseException ex) Form a message from aQueryParseException
.
-
Constructor Details
-
SPARQLProtocol
public SPARQLProtocol()
-
-
Method Details
-
messageForException
Form a message from aQueryException
. -
messageForParseException
Form a message from aQueryParseException
. -
getDatasetDescription
public static org.apache.jena.sparql.core.DatasetDescription getDatasetDescription(HttpAction action, org.apache.jena.query.Query query) Given an action (protocol request) and a query, decide the DatasetDescription, if any.- Parameters:
action
- Action details - may be null.query
- The query - may be null.- Returns:
- DatasetDescription or null
-
getProtocolDatasetDescription
public static org.apache.jena.sparql.core.DatasetDescription getProtocolDatasetDescription(HttpAction action) -
getQueryDatasetDescription
public static org.apache.jena.sparql.core.DatasetDescription getQueryDatasetDescription(org.apache.jena.query.Query query) -
countParamOccurences
public static int countParamOccurences(jakarta.servlet.http.HttpServletRequest request, String param)
-