Skip to content

A processor for the RDF Connect framework that writes an incoming stream to disk and later reads it into the output stream.

License

Notifications You must be signed in to change notification settings

rdf-connect/replication-processor-ts

Repository files navigation

replication-processor-ts

Build and tests with Node.js npm

A processor for the RDF Connect framework that writes an incoming stream to disk and later reads it into the output stream.

Configuration

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.

Installation

npm install
npm run build

Or install from NPM:

npm install @rdfc/replication-processor-ts

Example

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

About

A processor for the RDF Connect framework that writes an incoming stream to disk and later reads it into the output stream.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published