Class WrappedRESTEndpointImpl

All Implemented Interfaces:
FederationMember, RESTEndpoint, WrappedRESTEndpoint

public class WrappedRESTEndpointImpl extends RESTEndpointImpl implements WrappedRESTEndpoint
  • Field Details

  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class RESTEndpointImpl
    • equals

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

      public List<SolutionMapping> evaluatePatternOverRDFView(SPARQLGraphPattern pattern, String data)
      Description copied from interface: WrappedRESTEndpoint
      Assuming the given string is the content of a response retrieved when issuing a request to this REST endpoint, this method returns the result of evaluating the given graph pattern over an RDF view of this content.
      Specified by:
      evaluatePatternOverRDFView in interface WrappedRESTEndpoint
      Parameters:
      pattern - - the graph pattern to be evaluated over the RDF view of the given data
      data - - the content of a response retrieved via a successful request to this REST endpoint
      Returns:
      the result of evaluating the pattern over the RDF view, in the form of a sequence of solution mappings
    • convertResponseDataIntoRDF

      public org.apache.jena.query.Dataset convertResponseDataIntoRDF(String data, SPARQLGraphPattern pattern)
      Assuming the given string is the content of a response retrieved when issuing a request to this REST endpoint, this method returns an RDF view of this content.

      A SPARQL graph pattern can be passed as an optional parameter to let the wrapper know which pattern is intended to be evaluated over the returned data. Some wrapper implementations may use this pattern to reduce their effort of converting the retrieved data into RDF by considering only the conversion rules that may produce RDF triples relevant to the given pattern. Wrapper implementations that do so have to guarantee that this does not have any effect on the result of evaluating the given pattern over the returned RDF triples.

      Parameters:
      data - - the content of a response retrieved via a successful request to this REST endpoint
      pattern - - the pattern that is intended to be evaluated over the returned RDF data; may be null
      Returns:
      an RDF dataset that represents the given data