A processor for the RDF Connect framework that writes an incoming stream to disk and later reads it into the output stream.
The WriteReplication
processor can be configured using the following parameters:
incoming
: The data stream which must be written to the text file.append
: Whether the data must be appended to the file or not. Default is false.savePath
: The path to the text file which must be written.max
: The maximum number of members to write to the file. If 0, all members are written. Default is 0.
The ReadReplication
processor can be configured using the following parameters:
outgoing
: The data stream into which the data from the text file is written.savePath
: The path to the text file which must be read.
npm install
npm run build
Or install from NPM:
npm install @rdfc/replication-processor-ts
An example configuration of the processor can be found in the example
directory.
You can run this example by executing the following command:
npx js-runner example/write-pipeline.ttl
npx js-runner example/read-pipeline.ttl
To enable all debug logs, add DEBUG=*
before the command:
DEBUG=* npx js-runner example/write-pipeline.ttl
DEBUG=* npx js-runner example/read-pipeline.ttl