comunica / comunica-feature-link-traversal

📬 Comunica packages for link traversal-based query execution
Other
8 stars 11 forks source link

Failed to run the command line `comunica-sparql-link-traversal-solid` #34

Closed phochste closed 2 years ago

phochste commented 2 years ago

Issue type:


Description:

When trying the install and use the example code, comunica-sparql-link-traversal-solid complains about:

Error: Cannot find module '@comunica/actor-rdf-metadata-extract-hydra-count'

Steps:

and execute:

npx comunica-sparql-link-traversal-solid  --idp https://solidcommunity.net/ \
  https://hochstenbach.solidcommunity.net/ \
  "SELECT DISTINCT * WHERE {
      ?s ?p ?o .
   }" --lenient

Environment:

software version
Comunica Init Actor 1.22.3
node v16.13.2
npm 8.1.2
yarn 1.22.10
Operating System darwin (Darwin 21.2.0)

Crash log:

https://pastebin.com/Ltcgjz5N

github-actions[bot] commented 2 years ago

Thanks for reporting!

rubensworks commented 2 years ago

This might be due to only alpha releases being available for this package on npm so far. Could you try installing for version 0.0.2-alpha.e74249a.0?

The following should then work: npm install @comunica/actor-init-sparql-link-traversal-solid@0.0.2-alpha.e74249a.0

phochste commented 2 years ago

This got me a step further, but still I get the same error. I tried to execute npx comunica-sparql-link-traversal-solid which also asked me other dependencies. I've installed them all https://pastebin.com/ByMxA5yp.

Still I get the Error: Cannot find module '@comunica/actor-rdf-metadata-extract-hydra-count' when I want to execute the full command comunica-sparql-link-traversal-solid --idp https://solidcommunity.net/ \ https://hochstenbach.solidcommunity.net/ "SELECT DISTINCT * WHERE { ?s ?p ?o . }" --lenient

rubensworks commented 2 years ago

Could you check what happens if you checkout the code from GH, and try to run manually?

phochste commented 2 years ago

I could get the code working using two dependencies in a package.json and use yarn instead of npm:

 "dependencies": {
    "@comunica/actor-init-sparql-link-traversal-solid": "^0.0.2-alpha.e74249a.0",
    "@comunica/actor-optimize-query-operation-set-seed-sources-quadpattern-iris": "^0.0.2-alpha.e74249a.0"
  }
rubensworks commented 2 years ago

I'll try to look into fixing this soon (probably after Comunica 2.x is done).

rubensworks commented 2 years ago

After updating to Comunica 2, this seems to work fine again. You may want to use @comunica/query-sparql-link-traversal-solid from now on (see README).