import { OPTIONAL } from "https://deno.land/x/ldkit@2.0.0/sparql.ts";
SPARQL OPTIONAL expression fluent interface
Examples
Example 1
Example 1
import { OPTIONAL } from "ldkit/sparql";
const query = OPTIONAL`?s ?p ?o`.build();
console.log(query); // OPTIONAL { ?s ?p ?o }
type
(strings: TemplateStringsArray, ...values: SparqlValue[]) => unknown