Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ldkit/rdf.ts>fromRdf

LDkit - Linked Data query toolkit for TypeScript developers
Go to Latest
function fromRdf
import { fromRdf } from "https://deno.land/x/ldkit@v0.6.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.