Skip to content

Commit

Permalink
docs: updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jenspots committed Mar 30, 2024
1 parent 1339f80 commit 0a103a2
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,19 @@

[![Build and tests with Node.js](https://github.com/rdf-connect/shacl-processor-ts/actions/workflows/build-test.yml/badge.svg)](https://github.com/rdf-connect/shacl-processor-ts/actions/workflows/build-test.yml)

Validate datastreams using SHACL.
Validate data streams using SHACL.

## Functions

### [validate](./src/index.ts)

Validate an incoming data stream using SHACL. If the incoming data is valid, it is sent unchanged into the outgoing stream. Otherwise, the SHACL validation report is sent into an optional `report` channel for further investigation.

- `path`: a local file path which points to a SHACL definition.
- `incoming`: channel which is used as the data source.
- `outgoing`: channel into which valid data is written.
- `report`: an optional channel into which the SHACL reports of invalid input data is written. (default: `null`)

## Limitations

At the time of writing, all files are read and serialized in the Turtle format. Additional options may be available in the future.

0 comments on commit 0a103a2

Please sign in to comment.