Constructor
new SPARQL()
Methods
static get(location, query, optionsopt, continuationopt)
SPARQL.get Execute a SPARQL query given a location and a query text. The request URL combines the location, the SPARQL endpoint suffix and the url-encoded query text. A promise is created. Given a continuation, it is supplied to the promise, otherwise the active promise is returned.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
location |
string | the host and target repository name |
|
query |
string | the request content |
|
options |
Object |
<optional> |
|
authorization |
string | the basic authentication string |
|
accept |
string | the media type for the response document |
|
continuation |
function |
<optional> |
if supplied, used to invoke the fetch promise. |
static post()
SPARQL.post Execute a SPARQL query given a location and a query text. The request URL combines the location and the SPARQL endpoint suffix. The query text is sent a the request body. A promise is created. Given a continuation, it is supplied to the promise, otherwise the active promise is returned.
static view()
SPARQL.view Execute a SPARQL query given a location and a view name The request URL combines the location, the SPARQL endpoint suffix and the view name. A promise is created. Given a continuation, it is supplied to the promise, otherwise the active promise is returned.