@netwerk-digitaal-erfgoed/ld-workbench
Version:
LDWorkbench is a Linked Data Transformation tool designed to use only SPARQL as transformation language.
38 lines • 1.13 kB
TypeScript
/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
import File from './file.js';
import { QueryEngine } from '@comunica/query-sparql';
import EventEmitter from 'node:events';
import type { NamedNode } from '@rdfjs/types';
interface Events {
imported: [numOfTriples: number];
end: [numOfTriples: number];
}
export declare class Importer extends EventEmitter<Events> {
private readonly store;
readonly file: File;
private readonly queryEngine;
readonly graph: NamedNode;
constructor(store: GraphStore, file: File, queryEngine?: QueryEngine);
run(): Promise<void>;
/**
* Wait for data to be available in the SPARQL store.
*/
private dataLoaded;
importWithGraphStoreProtocol(url: URL): Promise<void>;
get url(): URL;
}
export declare class GraphStore {
readonly options: {
queryUrl: URL;
storeUrl?: URL;
updateUrl?: URL;
};
constructor(options: {
queryUrl: URL;
storeUrl?: URL;
updateUrl?: URL;
});
}
export {};
//# sourceMappingURL=import.d.ts.map