graphql-ld-sparqlendpoint
Version:
A GraphQL-LD engine that is backed by a SPARQL endpoint
13 lines (12 loc) • 527 B
TypeScript
import { ISparqlEndpointFetcherArgs } from "fetch-sparql-endpoint";
import { IQueryEngine } from "graphql-ld/lib/IQueryEngine";
import { Algebra } from "sparqlalgebrajs";
/**
* Allows a SPARQL endpoint to be used by URL as a GraphQL-LD query engine.
*/
export declare class QueryEngineSparqlEndpoint implements IQueryEngine {
private readonly fetcher;
private readonly url;
constructor(url: string, fetcherOptions?: ISparqlEndpointFetcherArgs);
query(query: Algebra.Operation, options?: any): Promise<any>;
}