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

Create a deep copy of the given term using this data factory.

Parameters

original: T

An RDF term.

Returns

(T extends RDF.NamedNode ? NamedNode : (T extends RDF.BlankNode ? BlankNode : (T extends RDF.Literal ? Literal : (T extends RDF.Variable ? Variable : (T extends RDF.DefaultGraph ? DefaultGraph : (T extends Q ? Q : unknown))))))

A deep copy of the given term.