Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | import * as vscode from 'vscode';
import { SparqlConnection } from './sparql-connection';
import { ComunicaEndpoint } from './sparql-endpoint';
/**
* Builds Comunica-compatible query sources for SPARQL connections and documents.
*/
export interface ISparqlQuerySourceFactory {
/**
* Gets a Comunica-compatible query source for a document or notebook cell. Uses the
* document-level inference setting if set, otherwise falls back to the connection setting.
* @param documentUri The URI of the document or notebook cell.
* @returns A promise that resolves to a Comunica source configuration.
*/
getQuerySourceForDocument(documentUri: vscode.Uri): Promise<ComunicaEndpoint>;
/**
* Gets a Comunica-compatible query source for a specific connection.
* @param connection The SPARQL connection.
* @param inferenceEnabled Optional inference override; defaults to the connection's persisted setting.
* @returns A promise that resolves to a Comunica source configuration.
*/
getQuerySourceForConnection(connection: SparqlConnection, inferenceEnabled?: boolean): Promise<ComunicaEndpoint>;
}
|