Class TriplePatternRequestImpl

java.lang.Object
se.liu.ida.hefquin.engine.federation.access.impl.req.TriplePatternRequestImpl
All Implemented Interfaces:
DataRetrievalRequest, SPARQLRequest, TriplePatternRequest
Direct Known Subclasses:
TPFRequestImpl

public class TriplePatternRequestImpl extends Object implements TriplePatternRequest
  • Field Details

  • Constructor Details

    • TriplePatternRequestImpl

      public TriplePatternRequestImpl(TriplePattern tp)
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getQueryPattern

      public TriplePattern getQueryPattern()
      Description copied from interface: SPARQLRequest
      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 SPARQLRequest.getQuery().
      Specified by:
      getQueryPattern in interface SPARQLRequest
      Specified by:
      getQueryPattern in interface TriplePatternRequest
    • getExpectedVariables

      public ExpectedVariables getExpectedVariables()
      Description copied from interface: DataRetrievalRequest
      Returns the query variables for which this data retrieval request aims to fetch data (if any), where some of these variables may be 'certain variables' whereas others are 'possible variables'. For the distinction between these two types of variables, refer to ExpectedVariables.getCertainVariables() and to {@link ExpectedVariables#getPossibleVariables())}. For instance, if this request is about fetching triples that match a given triple pattern, then the variables of that triple pattern would be returned here as certain variables. Note that the method may also return null (which would be the case for types of data retrieval requests for which this method is not applicable in any reasonable way).
      Specified by:
      getExpectedVariables in interface DataRetrievalRequest
    • toString

      public String toString()
      Specified by:
      toString in interface DataRetrievalRequest
      Overrides:
      toString in class Object