Skip to main content
Go to Latest
interface RDF.Literal
import { type RDF } from "";
const { Literal } = RDF;

An RDF literal, containing a string with an optional language tag and/or datatype.


termType: "Literal"

Contains the constant "Literal".

value: string

The text value, unescaped, without language or type (example: Brad Pitt).

language: string

the language as lowercase BCP47 string (examples: en, en-gb) or an empty string if the literal has no language.

datatype: NamedNode

A NamedNode whose IRI represents the datatype of the literal.


equals(other: Term | null | undefined): boolean