Constructor
new RDFDatabase(name, location, authentication, optionsopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name |
string | ||
location |
string | The connection url namestring |
|
authentication |
string | The authentication string |
|
options |
Object |
<optional> |
Extends
Methods
createObjectStore()
Given an name, create an object store and register it with that name
- Inherited From:
describe(keyObject, options, continuationopt)
Perform a SPARQL get on a describe query minted to reflect the state of the given key object.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
keyObject |
Object | ||
options |
Object | ||
continuation |
function | null |
<optional> |
- Overrides:
findObjectStore()
Returned the object store registerd with that name
- Inherited From:
get(options, continuationopt)
Perform a GSP get request. Decode the response content as per its content type. Return the continuation result, if supplied or the decoded cotent itself.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
Object | The request headers |
|
continuation |
function | null |
<optional> |
- Overrides:
- To Do:
-
- Allow an option to override the response content.
head(options, continuationopt)
Perform a GSP head request. Return the promise or its then result depending on the given continuation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
options |
Object | The request headers |
||
continuation |
function | null |
<optional> |
null |
- Overrides:
patch(patch, options, continuationopt)
Perform a GSP patch request. Return the promise or its then result depending on the given continuation. The given patch is encoded as a patch document and sent as the request body.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
patch |
Patch | the patch content |
|
options |
Object | The request headers |
|
continuation |
function | null |
<optional> |
- Overrides:
abstract put()
- Inherited From:
transaction()
Create and return an new transaction associated with the given object store(s)
- Inherited From: