Title

Global

Members

onmessage

Define the handlers for Websocket messages specific to the message content type

To Do:
  • Shift these to the instance property

View Source graph-database.js, line 479

Methods

bytesToUuid()

Convert array of 16 byte values to UUID string format of the form: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

View Source uuid-v1.js, line 16

copyUUID(uuid)

Copy a UUID

Parameters:
Name Type Description
uuid Array

View Source revision-identifier.js, line 49

createBlankNode(labelopt)

Create a new BlankNode

Parameters:
Name Type Attributes Description
label string <optional>

View Source rdf-environment.js, line 511

createGraph(statements, optionsopt)

Parameters:
Name Type Attributes Description
statements array
options Object <optional>

View Source rdf-environment.js, line 628

createLiteral(value, language, datatype)

Create a Literal instance. Given the appropriate arguments creates either a LangString a typed Literal or a SimpleString

Parameters:
Name Type Description
value string
language string | null
datatype string | null

View Source rdf-environment.js, line 852

createNamedNode(lexicalForm, baseIRIopt)

Parameters:
Name Type Attributes Description
lexicalForm string
baseIRI string <optional>

The IRI to combine with a laxicalForm which is relative.

View Source rdf-environment.js, line 419

createPatch(optionsopt)

Instantiate a new Patch given the delete, post, and put constituents.

Parameters:
Name Type Attributes Description
options Object <optional>

Provide delete, post, and put constituent arrays.

View Source rdf-environment.js, line 973

createQuad(subject, predicate, object, graphopt)

The function createQuad combines terms into a Quad instance.

Parameters:
Name Type Attributes Description
subject Node
predicate NamedNode
object Term
graph Node <optional>

View Source rdf-environment.js, line 755

createStatement(subject, predicate, object, graphopt)

Given subject, predicate, object and graph terns, construct and return a statement

Parameters:
Name Type Attributes Description
subject Node
predicate NamedNode
object Term
graph Node <optional>

View Source rdf-environment.js, line 689

createTriple(subject, predicate, object)

Parameters:
Name Type Description
subject Node
predicate NamedNode
object Term

View Source rdf-environment.js, line 727

decode()

The static function decode accepts a document string, a media type, and a continuation. It decodes the string as n RDF term and delegates to the continuation. The implementation are indexed bx media type in the dictionary which is bound to the decode symbol.

View Source rdf-environment.js, line 1020

encode()

The static function encode accepts an object, a media type, and a continuation. It encodes the data as a string and delegates to the continuation. Numbers and strings are encoded in-line while objects delegate to the respective method.

View Source rdf-environment.js, line 1108

makeUUID(options, buffer)

Encode a ZUUID given a millisecond timestamp and a buffer. The current time is used as the default timestamp. Given a null buffer, return a hex-string-encoded UUD.

Parameters:
Name Type Description
options Object
msec number

the Date value to encode as millisecnds

buffer Array | null

an array into which to store the UUID

View Source revision-identifier.js, line 32

makeUUIDString()

Return a hex-string-encoded version 1 UUID for the current time.

View Source revision-identifier.js, line 40

predicateLeaf(url) → {string}

Given an IRI return the last element of its path.

Parameters:
Name Type Description
url string | URL

View Source graph-environment.js, line 297

string

setUUIDState(uuid, state)

Parameters:
Name Type Description
uuid Array
state UUIDStateEnun

View Source revision-identifier.js, line 142

UUIDState(uuid)

Return (UUIDStateEnum.delete : UUIDStateEnum.insert ) as oer the UUID state.

Parameters:
Name Type Description
uuid Array

View Source revision-identifier.js, line 92

UUIDTimestamp()

Extract the uuid timestamp

View Source revision-identifier.js, line 100

v1()

Compute a v1 UUID Given a buffer use that to construct the value and return it. Absent a buffer, create a temporarx for construction, but translate the result into hex-encoded-string and return that.

View Source uuid-v1.js, line 85

Type Definitions

Object

Context

View Source graph-environment.js, line 3