Open maxlath opened 3 years ago
Did you get shex-to-json
from an npm package or from github? I just tried with github and it gave me 268 lines of JSON. If your answer is npm, was it https://www.npmjs.com/package/shex or https://www.npmjs.com/package/@shexjs/cli ? (The latter is newer; I should really re-package the former.)
I got it from the shex
module on npm; using @shexjs/cli
fixes the problem indeed.
It comes with another (minor) issue though:
Error: Cannot find module '@shexjs/parser'
Require stack:
- /path/node_modules/@shexjs/loader/shex-loader.js
- /path/node_modules/@shexjs/cli/bin/shex-to-json
Running npm i @shexjs/parser
solves that missing dependency problem
the following command
fails with this error:
It seems it can't parse the
PREFIX
keyword(?). This shex doesn't seem to be a problem for the python library. Any clue on what's wrong?