LDkit

type alias QueryContext
import { type QueryContext } from "https://deno.land/x/ldkit/mod.ts";

A set of context entries that can be passed to a query engine, such as data sources, fetch configuration, etc.

Examples

Example 1

import { QueryContext, QueryEngine } from "ldkit";

const context: QueryContext = {
  sources: ["https://dbpedia.org/sparql"],
};

const engine = new QueryEngine();
await engine.queryBoolean("ASK { ?s ?p ?o }", context);