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
Static
fromStatic
fromStatic
fromStatic
fromStatic
toNTGenerated using TypeDoc
An RDF literal, containing some value which isn't expressed as an IRI.
Link
https://rdf.js.org/data-model-spec/#literal-interface