View Materialization

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 reference to any query defined in a repository’s web interface under

http://dydra.com/<account-name>/<repository-name>/@query

The view facility permits two request forms:

  • immediate

  • materialized

Immediate

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 instras 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

Query Arguments

$<parameter-name>: <argument-value>

(See “HTTP Request Parameters” for the complete list)

Materialized

An materialized request is a GET request to the view materialized cache.

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>/<source-repository-name>__<view-name>__view/sparql

The accept type should correspond to the form of the source query, which may be either a SELECT or and CONSTRUCT.

Headers

Accept: specifies the RDF response document media type.

Query Arguments

$<parameter-name>: <argument-value>