import { Dataset, Literal, NamedNode, Quad, Term } from "@rdfjs/types"; import { SPARQLEndpoint, TripleStore } from "./triplestore-client.js"; import { KBChange } from "./changemgmt.js"; export declare class SparqlClient { readonly readEndpoint: string; readonly updateEndpoint: string; readonly options: {}; constructor(readEndpoint: string, updateEndpoint?: string, options?: {}); select(query: string): Promise>; update(query: string): Promise; } export declare class SPARQLProtocolClient implements TripleStore, SPARQLEndpoint { readonly endpointUrl: string; readonly updateUrl: string; client: SparqlClient; graphs: Set; propertyFilter: ((n: NamedNode) => Boolean); valueFilter: ((l: Term) => Boolean); private n3_format; jsonToTerm(x: object): Literal | NamedNode; constructor(endpointUrl: string, updateUrl?: string); withGraph(graphName: NamedNode): SPARQLProtocolClient; basicAuthentication(user: string, password: string): SPARQLProtocolClient; fetch(...subjects: Array): Promise; sparqlSelect(query: { queryString: string; }): Promise>; modify(changes: KBChange[]): Promise<{ ok: boolean; error?: string; }>; } export default SPARQLProtocolClient;