Skip to main content
Go to Latest
function fromRdf
import { fromRdf } from "https://deno.land/x/ldkit@v0.5.0/rdf.ts";

Convert the given RDF literal to an JavaScript primitive.

Parameters

literal: RDF.Literal

An RDF literal value.

optional
validate: boolean

If the literal value should be validated against the datatype.

Returns

any

A JavaScript primitive value.