Initializes a literal
The literal's lexical value
Optional
language: null | stringThe language for the literal. Defaults to ''.
Optional
datatype: anyThe literal's datatype as a named node. Defaults to xsd:string.
The class order for this node
The literal's datatype as a named node
The language for the literal
The type of node
The node's value
Static
toJSThe language for the literal
use {language} instead
Compares this node with another
The other node
to check if two nodes are equal
Compares whether this node is the same as the other one
Another node
Static
fromStatic
fromStatic
fromStatic
fromStatic
toNTSerializes a literal to an N-Triples string
An RDF literal, containing some value which isn't expressed as an IRI.
Link
https://rdf.js.org/data-model-spec/#literal-interface