@rdfc/sparql-ingest-processor-ts
Version:
SPARQL Update function to be within RDF-Connect pipelines
36 lines (35 loc) • 1.04 kB
TypeScript
import type { Stream, Writer } from "@rdfc/js-runner";
import { RdfStore } from "rdf-stores";
export type ChangeSemantics = {
changeTypePath: string;
createValue: string;
updateValue: string;
deleteValue: string;
};
export type TransactionConfig = {
transactionIdPath: string;
transactionEndPath: string;
};
export type PerformanceConfig = {
name: string;
outputPath: string;
queryTimeout?: number;
failureIsFatal?: boolean;
};
export type IngestConfig = {
memberIsGraph: boolean;
memberShapes?: string[];
changeSemantics?: ChangeSemantics;
targetNamedGraph?: string;
transactionConfig?: TransactionConfig;
graphStoreUrl?: string;
forVirtuoso?: boolean;
accessToken?: string;
measurePerformance?: PerformanceConfig;
};
export type TransactionMember = {
memberId: string;
transactionId: string;
store: RdfStore;
};
export declare function sparqlIngest(memberStream: Stream<string>, config: IngestConfig, sparqlWriter?: Writer<string>): Promise<void>;