Constructor
new SparqlEndpointResponseProvider(configSparqlServer)
Creates a SPARQL Endpoint Provider
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
configSparqlServer | object | The sparqlModule configuration. Properties
|
Classes
Methods
getFetch(full_url, query, options) → {Promise.<Response>}
Get the fetch request in function of the SPARQL endpoint query type.
Name | Type | Description |
---|---|---|
full_url | string | The full URL for the SPARQL endpoint. |
query | string | The query content to be sent to the SPARQL endpoint. |
options | object | optional fetch options. |
The fetch request.
- Type:
- Promise.<Response>
getFullUrl(query) → {string}
Get the full URL for the SPARQL endpoint in function of the SPARQL endpoint query type.
Name | Type | Description |
---|---|---|
query | string | The query to be sent to the SPARQL endpoint. |
the full URL for the SPARQL endpoint.
- Type:
- string
(async) querySparqlEndpointService(query, options) → {Promise.<object>|null}
Perform a SPARQL Query. Cache and return the response
Name | Type | Description |
---|---|---|
query | string | The query to be sent to the SPARQL endpoint. |
options | object | optional fetch options |
If the request is not successful, it throws an error. If successful, it returns the request.
- Type:
- Promise.<object> |
null