Class: StatementPayload

(abstract) StatementPayload()

Abstract class for constructing a statement payload consisted of:

  • subject
  • predicate
  • object
  • context or contexts

Constructor

(abstract) new StatementPayload()

Instantiates new statement payload.

Author:
  • Mihail Radkov
  • Svilen Velikov
Source:

Methods

get() → {Object}

Get the payload object.

Source:
Returns:
Type
Object

getContext() → {string}

Source:
Returns:

context

Type
string

getObject() → {string}

Source:
Returns:

object

Type
string

getPredicate() → {string}

Source:
Returns:

predicate

Type
string

getSubject() → {string}

Source:
Returns:

subject

Type
string

setContext(contextopt) → {StatementPayload}

Parameters:
Name Type Attributes Description
context string | Array.<string> <optional>
Source:
Returns:
Type
StatementPayload

setObject(objectopt) → {StatementPayload}

Parameters:
Name Type Attributes Description
object string <optional>
Source:
Returns:
Type
StatementPayload

setPredicate(predicateopt) → {StatementPayload}

Parameters:
Name Type Attributes Description
predicate string <optional>
Source:
Returns:
Type
StatementPayload

setSubject(subjectopt) → {StatementPayload}

Parameters:
Name Type Attributes Description
subject string <optional>
Source:
Returns:
Type
StatementPayload