Files
natural-language-report-ser…/node_modules/rdf-data-factory/lib/Literal.d.ts
felix 4ef33c6417 WIP
2026-09-14 13:57:42 +02:00

15 lines
569 B
TypeScript

import type * as RDF from '@rdfjs/types';
/**
* A term that represents an RDF literal, containing a string with an optional language tag or datatype.
*/
export declare class Literal implements RDF.Literal {
readonly termType = "Literal";
readonly value: string;
readonly language: string;
readonly datatype: RDF.NamedNode;
static readonly RDF_LANGUAGE_STRING: RDF.NamedNode;
static readonly XSD_STRING: RDF.NamedNode;
constructor(value: string, languageOrDatatype?: string | RDF.NamedNode);
equals(other?: RDF.Term | null): boolean;
}