Skip to content

Commit

Permalink
docs: included prefix limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
jenspots committed Mar 30, 2024
1 parent a0267a6 commit 82bd994
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@ Validate an incoming data stream using SHACL. If the incoming data is valid, it
## Limitations

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

Turtle prefixes are hard coded for the time being. Ideally, these should be based on the prefixes used in the input data, or omitted at the user's request.

```ts
const prefixes = new PrefixMapFactory().prefixMap();
prefixes.set("ex", rdf.namedNode("http://example.org#"));
prefixes.set("sh", rdf.namedNode("http://www.w3.org/ns/shacl#"));
```

0 comments on commit 82bd994

Please sign in to comment.