Pairs the validated lexical form with the validated IRI of its XSD (or user-defined) datatype, defaulting
to the xsd:string IRI RDF 1.1 reads into an unannotated literal. A non-string scalar is coerced to its lexical
form via String(), and the coerced form is what gets validated. The returned record is frozen.
A frozen Typed record carrying the lexical form and the datatype
Throws
RangeError if the coerced text is not a well-formed Unicode string, that is if it holds an isolated
UTF-16 surrogate code point, or if datatype is a relative or otherwise malformed IRI
Creates an RDF typed literal.
Pairs the validated lexical form with the validated IRI of its XSD (or user-defined) datatype, defaulting to the
xsd:stringIRI RDF 1.1 reads into an unannotated literal. A non-string scalar is coerced to its lexical form viaString(), and the coerced form is what gets validated. The returned record is frozen.