Skip to content

Commit

Permalink
update README with usage of npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
pheyvaer committed Oct 28, 2021
1 parent d858723 commit a6beed5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ generate SHACL shapes and vocabularies from [Mermaid class diagrams](https://mer

## Usage

- Install dependencies via `npm i`.
- Execute tool via `node bin/cli.js -f path/to/diagram -s path/to/jsonld`.
- Install via `npm i -g merweb`.
- Execute tool via `merweb -f path/to/diagram -s path/to/jsonld`.
You can try
```bash
node bin/cli.js -f examples/diagram.txt \
merweb -f examples/diagram.txt \
-s shapes.jsonld \
-b "sc=https://w3id.org/idlab/ns/supply-chain/#" \
-v "sc=https://w3id.org/idlab/ns/supply-chain/#" \
Expand All @@ -26,7 +26,7 @@ You can remove the annotations (lines starting with `@`) from diagrams via the `
The changed diagram is outputted to the terminal.

```bash
node bin/cli.js -f examples/diagram.txt -r
merweb -f examples/diagram.txt -r
```

## License
Expand Down

0 comments on commit a6beed5

Please sign in to comment.