Interface SPARQLRequest

All Superinterfaces:
DataRetrievalRequest
All Known Subinterfaces:
BGPRequest, TPFRequest, TriplePatternRequest, WrapperRequest
All Known Implementing Classes:
BGPRequestImpl, SPARQLRequestImpl, TPFRequestImpl, TriplePatternRequestImpl

public interface SPARQLRequest extends DataRetrievalRequest
  • Method Summary

    Modifier and Type
    Method
    Description
    convertToQuery(SPARQLGraphPattern pattern, Set<org.apache.jena.sparql.core.Var> projectionVars, boolean distinctRequired)
     
    boolean
    Returns true if this request explicitly requires that the requested result is duplicate free.
    Set<org.apache.jena.sparql.core.Var>
    Returns the set of variables that should be projected in the result, or null if no projection is specified for this request.
    default SPARQLQuery
    Returns the SPARQL query for which solutions should be requested.
    Returns the graph pattern for which solutions should be requested, or null if this request is based on an actual SPARQL query (to be accessed via the method getQuery().

    Methods inherited from interface se.liu.ida.hefquin.federation.access.DataRetrievalRequest

    getExpectedVariables, toString
  • Method Details

    • getQueryPattern

      SPARQLGraphPattern getQueryPattern()
      Returns the graph pattern for which solutions should be requested, or null if this request is based on an actual SPARQL query (to be accessed via the method getQuery().
    • getProjectionVars

      Set<org.apache.jena.sparql.core.Var> getProjectionVars()
      Returns the set of variables that should be projected in the result, or null if no projection is specified for this request.

      If a non-null set is returned (including the empty set), then projection is considered an explicit part of this request and must be respected by components that can support it.

      Deciding whether such a projection can be safely applied or pushed into a request is the responsibility of the query planning and rewriting logic, not of this interface or its implementations.

    • getDistinctRequired

      boolean getDistinctRequired()
      Returns true if this request explicitly requires that the requested result is duplicate free.
      Returns:
      true if duplicate elimination is requested; false otherwise
    • getQuery

      default SPARQLQuery getQuery()
      Returns the SPARQL query for which solutions should be requested.
    • convertToQuery

      static SPARQLQuery convertToQuery(SPARQLGraphPattern pattern, Set<org.apache.jena.sparql.core.Var> projectionVars, boolean distinctRequired)