Class SPARQLProtocol

java.lang.Object
org.apache.jena.fuseki.servlets.SPARQLProtocol

public class SPARQLProtocol extends Object
Support functions for the SPARQL protocol (SPARQL Query, SPARQL Update)
  • Constructor Details

    • SPARQLProtocol

      public SPARQLProtocol()
  • Method Details

    • messageForException

      public static String messageForException(org.apache.jena.query.QueryException ex)
      Form a message from a QueryException.
    • messageForParseException

      public static String messageForParseException(org.apache.jena.query.QueryParseException ex)
      Form a message from a QueryParseException.
    • 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)