Closed mrkvon closed 2 years ago
Thanks for reporting!
Running npm run prepare
to recompile the config fixes the issue - so I think a new build would fix it
EDIT: To test, I tried it in my node_modules\@comunica\query-sparql-link-traversal
directory
I just tried to clone this repository, yarn
, and run
node engines/query-sparql-link-traversal/bin/query.js https://mrkvon.solidcommunity.net/profile/card "
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX mypod: <https://mrkvon.solidcommunity.net/profile/card#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?interest ?label
WHERE {
mypod:me foaf:topic_interest ?interest.
?interest rdfs:label ?label.
FILTER(lang(?label)='en')
}" --lenient
And it does perform the link traversal as expected. π
So perhaps the issue is specific to the particular package version (@comunica/query-sparql-link-traversal v0.0.2-alpha.2.0), or to usage in node...
@Maximvdw That's awesome. This npm run prepare
fixes my issue, too. π
When a new package version is released, let me know, I can test it and then this may be good to close. π
Running
npm run prepare
to recompile the config fixes the issue - so I think a new build would fix itEDIT: To test, I tried it in my
node_modules\@comunica\query-sparql-link-traversal
directory
With this fix, I can use the library in React, too. π
@mrkvon new alpha build released: 0.0.2-alpha.3.0
Thanks for testing @Maximvdw!
Issue type:
Description:
When importing
QueryEngine
from @comunica/query-sparql-link-traversal v0.0.2-alpha.2.0 in a minimal Node (v17.9.0) + Typescript project, the link traversal doesn't work. I.e. only the sources that are provided beforehand get visited.On the other hand, when we set up the engine as follows, the link traversal works as expected:
Environment:
@comunica/query-sparql-link-traversal v0.0.2-alpha.2.0 (installed with
yarn add @comunica/query-sparql-link-traversal
Node v17.9.0 Arch LinuxWhat else do you need to know?