Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ldkit/mod.ts>QueryContext

LDkit - Linked Data query toolkit for TypeScript developers
Latest
type alias QueryContext
Re-export
import { type QueryContext } from "https://deno.land/x/ldkit@2.0.0/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);
definition: RDF.QueryStringContext & RDF.QuerySourceContext<IDataSource> & IQueryContextCommon