UNPKG

@jahed/sparql-engine

Version:

SPARQL query engine for servers and web browsers.

16 lines (15 loc) 830 B
import type { BGPCache } from "../engine/cache/types.ts"; import ExecutionContext from "../engine/context/execution-context.ts"; import type { PipelineStage } from "../engine/pipeline/pipeline-engine.ts"; import BGPStageBuilder from "../engine/stages/bgp-stage-builder.ts"; import { Bindings } from "../rdf/bindings.ts"; import Graph from "../rdf/graph.ts"; import type { EngineTriple } from "../types.ts"; /** * Evaluate a Basic Graph pattern on a RDF graph using a cache * @param bgp - Basic Graph pattern to evaluate * @param graph - RDF graph * @param cache - Cache used * @return A pipeline stage that produces the evaluation results */ export declare function cacheEvalBGP(patterns: EngineTriple[], graph: Graph, cache: BGPCache, builder: BGPStageBuilder, context: ExecutionContext): Promise<PipelineStage<Bindings>>;