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 - The graphs that are embedded in the query with FROM Dataset.getDefaultGraphs()
namedGraphUris - The graphs that are embedded in the query with FROM NAMED 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