LDkit

variable DESCRIBE
import { DESCRIBE } from "https://deno.land/x/ldkit/sparql.ts";

SPARQL DESCRIBE query fluent interface

Examples

Example 1

import { DESCRIBE } from "ldkit/sparql";
import { DataFactory } from "ldkit/rdf";

const df = new DataFactory();
const node = df.namedNode("http://example.org/resource");

const query = DESCRIBE`${node}`.build();
console.log(query); // DESCRIBE <http://example.org/resource>

type

(strings: TemplateStringsArray, ...values: SparqlValue[]) => unknown