@comunica/actor-init-query
Version:
A query init actor
31 lines (30 loc) • 1.21 kB
TypeScript
import type * as http from 'node:http';
import type { Writable } from 'node:stream';
import type * as RDF from '@rdfjs/types';
import type { QueryEngineBase } from '..';
/**
* A VoID metadata emitter that emits metadata used in VoID description of the HTTP service sparql endpoint.
*/
export declare class VoidMetadataEmitter {
private static readonly STRING_LITERALS;
private static readonly DATE_LITERALS;
readonly context: any;
cachedStatistics: RDF.Quad[];
constructor(context: any);
invalidateCache(): void;
/**
* Returns a list of all necessary VoID quads.
* @param {QueryEngineBase} engine A SPARQL engine.
* @param {module:stream.internal.Writable} stdout
* @param {module:http.IncomingMessage} request
* @param {module:http.ServerResponse} response
*/
getVoIDQuads(engine: QueryEngineBase, stdout: Writable, request: http.IncomingMessage, response: http.ServerResponse): Promise<RDF.Quad[]>;
private convertValue;
/**
* Fetches the necessary VoID statistics quads and assigns them to this.cachedStatistics
* @param {QueryEngineBase} engine A SPARQL engine.
* @private
*/
private fetchVoIDStatistics;
}