UNPKG

@rdfc/sparql-ingest-processor-ts

Version:
36 lines (35 loc) 1.04 kB
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>;