UNPKG

@jahed/sparql-engine

Version:

SPARQL query engine for servers and web browsers.

11 lines (10 loc) 559 B
import type { PipelineStage } from "../../engine/pipeline/pipeline-engine.ts"; import { Bindings } from "../../rdf/bindings.ts"; /** * A AskOperator output True if a source iterator has solutions, false otherwise. * results are outputed following the SPARQL XML results format * @see {@link https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#ask} * @param source - Source {@link PipelineStage} * @return A {@link PipelineStage} that evaluate the ASK modifier */ export default function ask(source: PipelineStage<Bindings>): PipelineStage<boolean>;