Open
Description
the following command
shex-to-json https://www.wikidata.org/wiki/Special:EntitySchemaText/E233
fails with this error:
aborting: Error: error parsing JSON https://www.wikidata.org/wiki/Special:EntitySchemaText/E233: SyntaxError: Unexpected token P in JSON at position 0
at parseShExJ (/some/project/node_modules/shex/lib/ShExLoader.js:274:14)
at /some/project/node_modules/shex/lib/ShExLoader.js:103:14
at tryCatcher (/some/project/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (/some/project/node_modules/bluebird/js/main/promise.js:510:31)
at Promise._settlePromiseAt (/some/project/node_modules/bluebird/js/main/promise.js:584:18)
at Promise._settlePromises (/some/project/node_modules/bluebird/js/main/promise.js:700:14)
at Async._drainQueue (/some/project/node_modules/bluebird/js/main/async.js:123:16)
at Async._drainQueues (/some/project/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues (/some/project/node_modules/bluebird/js/main/async.js:15:14)
at processImmediate (internal/timers.js:461:21)
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?
Metadata
Metadata
Assignees
Labels
No labels