Class

RDFDatabase

RDFDatabase(name, location, authentication, optionsopt)

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>

View Source rdf-database.js, line 19

Extends

Methods

createObjectStore()

Given an name, create an object store and register it with that name

Inherited From:

View Source graph-database.js, line 342

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:

View Source rdf-database.js, line 89

findObjectStore()

Returned the object store registerd with that name

Inherited From:

View Source graph-database.js, line 366

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.

View Source rdf-database.js, line 71

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:

View Source rdf-database.js, line 36

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:

View Source rdf-database.js, line 51

abstract put()

Inherited From:

View Source graph-database.js, line 445

transaction()

Create and return an new transaction associated with the given object store(s)

Inherited From:

View Source graph-database.js, line 403