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 executed
query
- The query to be evaluated
acceptHeader
- needed to find the best response format.
defaultGraphUri
- see Dataset.getDefaultGraphs()
namedGraphUris
- see Dataset.getNamedGraphs()
- Throws:
MalformedQueryException
- If the supplied query is malformed.
IOException
- if there is a problem with the EvaluateResult.getOutputstream()
IllegalStateException
- if no acceptHeader is present