Creates a new blank node with the given identifier. If no identifier is provided, a unique one will be generated.
Optionalvalue: stringOptional blank node identifier.
A new BlankNode instance.
Returns the singleton default graph instance.
The default graph instance.
Creates a copy of an existing quad.
The quad to copy.
A new quad instance with the same values.
Creates a new literal with the given value and optional language tag or datatype.
The lexical value of the literal.
OptionallanguageOrDatatype: string | NamedNode<string>Either a language tag (string) or a datatype (NamedNode).
A new Literal instance.
Creates a new quad with the given subject, predicate, object, and optional graph.
The subject of the quad.
The predicate of the quad.
The object of the quad.
Optionalgraph: Quad_GraphThe graph of the quad (defaults to the default graph).
A new Quad instance.
Resets the blank node counter. Useful for testing.
Creates a new variable with the given name.
The name of the variable (without the leading '?').
A new Variable instance.
An RDF/JS compliant DataFactory implementation.
This factory provides methods to create RDF terms (named nodes, blank nodes, literals, variables) and quads according to the RDF/JS specification.
See
https://rdf.js.org/data-model-spec/