Encodes scalars as datatype-typed literals.
The scalar value(s) to encode, stringified to their lexical form
Optional
The IRI of the literal datatype; omitted for plain xsd:string literals
xsd:string
The encoded typed literals
RangeError On a lexical form holding an isolated UTF-16 surrogate code point, or on a relative or otherwise malformed datatype IRI
Encodes scalars as datatype-typed literals.