Class

SPARQL

SPARQL()

The SPARQL class comprises the interface operators for the SPARQL Protocol

Constructor

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.

View Source rdf-graph-store.js, line 329

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.

View Source rdf-graph-store.js, line 395

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.

View Source rdf-graph-store.js, line 363