Interface SparqlQueryEvaluator
public interface SparqlQueryEvaluator
-
Method Summary
Modifier and TypeMethodDescriptionvoid
evaluate
(EvaluateResult result, Repository repository, String query, String acceptHeader, String defaultGraphUri, String[] namedGraphUris) Evaluates/Execute the passed query against the passed repository usimg the passed arguments.
-
Method Details
-
evaluate
void evaluate(EvaluateResult result, Repository repository, String query, String acceptHeader, String defaultGraphUri, String[] namedGraphUris) throws MalformedQueryException, IllegalStateException, IOException Evaluates/Execute the passed query against the passed repository usimg the passed arguments.- Parameters:
result
- in/out parameter for returning the contentType and the result stream.repository
- the repository against which the query is to be executedquery
- The query to be evaluatedacceptHeader
- needed to find the best response format.defaultGraphUri
- seeDataset.getDefaultGraphs()
namedGraphUris
- seeDataset.getNamedGraphs()
- Throws:
MalformedQueryException
- If the supplied query is malformed.IOException
- if there is a problem with theEvaluateResult.getOutputstream()
IllegalStateException
- if no acceptHeader is present
-