Class

Statement

Statement(subject, predicate, object, graphopt)

The abstract class Statement comprises Triple and Quad speciaizations

Constructor

new Statement(subject, predicate, object, graphopt)

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

View Source rdf-environment.js, line 645

Methods

encode(mediaType, continuationopt)

Given a media type, encode the statement as a string which represents each term with its lexical form. return that value or delegate to the continuation.

Parameters:
Name Type Attributes Description
mediaType string
continuation function <optional>

If present, invoke with the encoded value and return that result.

View Source rdf-environment.js, line 676

equals(other) → {boolean}

Returns true for a Statement with equal terms

Parameters:
Name Type Description
other any

View Source rdf-environment.js, line 664

boolean