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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | import * as rdfjs from '@rdfjs/types';
import { SparqlConnection } from './sparql-connection';
export type ComunicaEndpoint = SparqlEndpoint | QuadStoreEndpoint;
/**
* A Comunica-compatible source configuration for a SPARQL endpoint.
*/
interface SparqlEndpoint {
/**
* Indicates that this endpoint is managed using the SPARQL protocol.
*/
type: 'sparql';
/**
* The URL of the SPARQL endpoint.
*/
value: string;
/**
* The SPARQL connection used for communicating with the endpoint.
*/
connection: SparqlConnection;
/**
* The connection headers used for authentication and MIME type management.
*/
headers?: Record<string, string>;
/**
* The resolved inference setting used to create this source. Carried on the source so the
* query executor can apply store-specific query-text rewriting at execution time.
*/
inferenceEnabled?: boolean;
}
/**
* A Comunica-compatible source configuration for an in-memory RDF/JS store.
*/
interface QuadStoreEndpoint {
/**
* Indicates that this endpoint is managed using the RDFJS Quad Source API.
*/
type: 'rdfjs';
/**
* The RDF/JS Quad Source API.
*/
value: rdfjs.Source<rdfjs.Quad>;
} |