5 Module literal🔗ℹ

 (require rdf/core/literal) package: rdf-core

A literal in RDF is a three-part value, the Lexical Form, Datatype IRI, and Language Tag. The lexical form is a string representation of the value, and is the only required component (although the string may be empty). The datatype IRI is used to identify the type of the value, and therefore how to evaluate the lexical form to produce a final value. The language tag is used to identify the natural language used to write the string value in the lexical form.

Note, there is only a single case where both datatype IRI and language tag are present at the same time, when the language tag is present the value is by definition typed as rdf:langString.

    5.1 Literal Type

    5.2 Literal Predicates

    5.3 Conversion to Literal

    5.4 Predefined Literals