@jahed/sparql-engine
Version:
SPARQL query engine for servers and web browsers.
17 lines (16 loc) • 892 B
TypeScript
import type { PipelineStage } from "../engine/pipeline/pipeline-engine.ts";
import type { QueryOutput } from "../engine/plan-builder.ts";
/**
* Formats query solutions (bindings or booleans) from a PipelineStage in W3C SPARQL CSV format
* @see https://www.w3.org/TR/2013/REC-sparql11-results-csv-tsv-20130321/
* @param source - Input pipeline
* @return A pipeline that yields results in W3C SPARQL CSV format
*/
export declare const csvFormatter: (source: PipelineStage<QueryOutput>) => PipelineStage<string>;
/**
* Formats query solutions (bindings or booleans) from a PipelineStage in W3C SPARQL TSV format
* @see https://www.w3.org/TR/2013/REC-sparql11-results-csv-tsv-20130321/
* @param source - Input pipeline
* @return A pipeline that yields results in W3C SPARQL TSV format
*/
export declare const tsvFormatter: (source: PipelineStage<QueryOutput>) => PipelineStage<string>;