Members
onmessage
Define the handlers for Websocket messages specific to the message content type
- To Do:
-
- Shift these to the instance property
Methods
bytesToUuid()
Convert array of 16 byte values to UUID string format of the form: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
createBlankNode(labelopt)
Create a new BlankNode
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
label |
string |
<optional> |
createGraph(statements, optionsopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
statements |
array | ||
options |
Object |
<optional> |
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 |
createNamedNode(lexicalForm, baseIRIopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
lexicalForm |
string | ||
baseIRI |
string |
<optional> |
The IRI to combine with a laxicalForm which is relative. |
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. |
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> |
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> |
createTriple(subject, predicate, object)
Parameters:
Name | Type | Description |
---|---|---|
subject |
Node | |
predicate |
NamedNode | |
object |
Term |
createUUID()
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.
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.
formatUUID()
isDeleteUUID()
isInsertUUID()
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 |
makeUUIDString()
Return a hex-string-encoded version 1 UUID for the current time.
predicateLeaf(url) → {string}
Given an IRI return the last element of its path.
Parameters:
Name | Type | Description |
---|---|---|
url |
string | URL |
resetUUIDState()
UUIDState(uuid)
Return (UUIDStateEnum.delete : UUIDStateEnum.insert ) as oer the UUID state.
Parameters:
Name | Type | Description |
---|---|---|
uuid |
Array |
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.