@rdfc/sparql-ingest-processor-ts
Version:
SPARQL Update function to be within RDF-Connect pipelines
27 lines (26 loc) • 805 B
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 IngestConfig = {
memberIsGraph: boolean;
memberShapes?: string[];
changeSemantics?: ChangeSemantics;
targetNamedGraph?: string;
transactionConfig?: TransactionConfig;
graphStoreUrl?: string;
};
export type TransactionMember = {
memberId: string;
transactionId: string;
store: RdfStore;
};
export declare function sparqlIngest(memberStream: Stream<string>, config: IngestConfig, sparqlWriter?: Writer<string>): Promise<void>;