View Management¶
Dydra extends the W3C SPARQL HTTP Protocol to include two resources ancillary to each SPARQL endpoint to manage the endpoint’s views. For an endpoint,
http://dydra.com/<account-name>/<repository-name>/sparql
resources are available to return the query text and metadata as well as a list of defined views.
Single View Operations¶
GET¶
A GET request to the view management location retrieves the view expression with its metadata. This request form specifies the view metadata location :
http://dydra.com/system/accounts/<account-name>/repositories/<repository-name>/views/<view>
Headers¶
Accept: specifies the response document media type.application/sparql-results : results variants yield the full metadata including the textapplication/sparql-query : returns just the query text
PUT¶
A PUT request to the view management location sets the view expression. This request form specifies the view metadata location :
http://dydra.com/system/accounts/<account-name>/repositories/<repository-name>/views/<view>
Headers¶
Accept: specifies the response document media type.application/sparql-results : results variants yield the full metadataContent-Type: specifies the query encoding in the request bodyapplication/sparql-query
Index Operations¶
GET¶
A GET request to the view index location retrieves a list of views. This request form specifies the view index location :
http://dydra.com/system/accounts/<account-name>/repositories/<repository-name>/views
Headers¶
Accept: specifies the response document media type.application/sparql-results : results variants yields the full metadata including the text