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

x/ldkit/library/engine/types.ts

LDkit - Linked Data query toolkit for TypeScript developers
Latest
File
import type { IDataSource, IQueryContextCommon,} from "npm:@comunica/types@2.6.8";
import { RDF } from "../rdf.ts";
/** * A set of context entries that can be passed to a query engine, * such as data sources, fetch configuration, etc. * * @example * ```typescript * 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); * ``` */export type QueryContext = & RDF.QueryStringContext & RDF.QuerySourceContext<IDataSource> & IQueryContextCommon;
/** * Interface of a query engine compatible with LDkit */export type IQueryEngine = RDF.StringSparqlQueryable< RDF.SparqlResultSupport, QueryContext>;