View Requests¶
Dydra extends the W3C SPARQL HTTP Protocol to permit a request to include a reference to a SPARQL query rather than including it as the request content. The facility permits a GET request to refer to any query defined in a repository’s web interface under
http://dydra.com/<account-name>/<repository-name>/@query
An immediate request is a GET request with the view as the location
GET¶
A GET request to the view endpoint executes the view query against the repository and
returns the results as the response.
This request form specifies the view name instead of sparql
as the path end:
http://dydra.com/<account-name>/<repository-name>/<view-name>.<type>
If a revision is specified, the response contains those present as of that revision. A request without a revision operates on the latest revision.
Headers¶
Accept: specifies the RDF response document media type.Revision: specifies the target revision
If a request specifies the media type application/sparql-query
, the request returns the query text as the response content.
Query Arguments¶
$<parameter-name>: <argument-value>
Any statement pattern variable in a SPARQL view can be constrained with a request argument. These arguments begin with a `$`character. Each parameter establishes a dynamic binding for the duration of the query execution, that is a binding with indefinite scope and dynamic extent (Binding).
Other request parameters are available to govern query execution. See “HTTP Request Parameters” for the complete list.