Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ldkit/rdf.ts>toRdf

LDkit - Linked Data query toolkit for TypeScript developers
Go to Latest
function toRdf
import { toRdf } from "https://deno.land/x/ldkit@v0.6.0/rdf.ts";

Convert the given JavaScript primitive to an RDF literal.

Parameters

value: any

A JavaScript primitive value.

optional
options: IToRdfOptions | RDF.DataFactory

Options for RDF conversion. May also be a data factory.

Returns

An RDF literal value.