Pairs a lexical form with the IRI of its XSD (or user-defined) datatype. Per RDF 1.1, a literal with no
datatype IRI is interpreted as xsd:string; datatype is therefore optional and may be omitted for plain
strings. A non-string scalar is coerced to its lexical form via String(). The returned record is frozen.
Parameters
text: Scalar
The lexical form of the literal, as a Scalar coerced to a string via String()
Optionaldatatype: string
The IRI of the literal datatype, or omitted for an xsd:string literal
Constructs a datatype-Typed Term.
Pairs a lexical form with the IRI of its XSD (or user-defined) datatype. Per RDF 1.1, a literal with no datatype IRI is interpreted as
xsd:string;datatypeis therefore optional and may be omitted for plain strings. A non-string scalar is coerced to its lexical form viaString(). The returned record is frozen.