Interface WrappedRESTEndpoint
- All Superinterfaces:
FederationMember,RESTEndpoint
- All Known Implementing Classes:
WrappedRESTEndpointImpl
This interface represents a REST endpoint for which HeFQUIN has a wrapper
via which it is possible evaluate SPARQL graph patterns over an RDF view
of the data obtained from this endpoint.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface se.liu.ida.hefquin.federation.members.RESTEndpoint
RESTEndpoint.Parameter -
Method Summary
Modifier and TypeMethodDescriptionevaluatePatternOverRDFView(SPARQLGraphPattern pattern, String data) 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.Methods inherited from interface se.liu.ida.hefquin.federation.FederationMember
getID, isSupportedPattern, supportsMoreThanTriplePatternsMethods inherited from interface se.liu.ida.hefquin.federation.members.RESTEndpoint
getNumberOfParameters, getParameterByName, getParameters, getURLTemplate
-
Method Details
-
evaluatePatternOverRDFView
List<SolutionMapping> evaluatePatternOverRDFView(SPARQLGraphPattern pattern, String data) throws WrappedRESTEndpoint.DataConversionException 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.- Parameters:
pattern- - the graph pattern to be evaluated over the RDF view of the given datadata- - 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
- Throws:
WrappedRESTEndpoint.DataConversionException- if the conversion into RDF fails
-