public class ExecuteQuery extends Object implements ResourceRequest<ResourceResponse<QueryResultSet>>
Constructor and Description |
---|
ExecuteQuery(OslcClient client,
Query query)
Creates a new query execution instance.
|
Modifier and Type | Method and Description |
---|---|
ResourceResponse<QueryResultSet> |
call()
Executes the request and parse the response content in the specified format.
|
public ExecuteQuery(OslcClient client, Query query)
client
- the OSLC client to connect to the application.query
- the SPARQL query to execute.public ResourceResponse<QueryResultSet> call()
ResourceRequest
ClientWebException
in case the HTTP response status is not 20x
.call
in interface ResourceRequest<ResourceResponse<QueryResultSet>>
call
in interface Callable<ResourceResponse<QueryResultSet>>