Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface Literal
Re-export
import { type Literal } from "https://deno.land/x/ldkit@v0.5.0/rdf.ts";

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

Properties

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.

Methods

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