-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to setup link-traversal query-engine #150
Comments
Hi @tfrancart, At first glance, your config looks correct to me, and should follow LDP links in Solid pods. So if I understand correctly, if you execute your query using https://comunica.github.io/comunica-feature-link-traversal-web-clients/builds/solid-single-pod/ it gives the expected results, but not when using your custom compiled engine? If so, the first low-effort thing you could try is bumping to Comunica v4 instead of v3, as this would be the only difference I see atm between your setup and the web client. |
Thanks for looking into our question !
Correct, and that is our problem.
We will try to do that however the demo page in v3 did work also for us. Here is the screenshot from the demo page showing the request cascades. Resources starting with "Personal_xxxx" are fetched from the Solid Pod (whose source URI ends with "spoty/"): We see the query returns some results (the query joins between the Solid POD and one of the other file source). The same with our demo page: The request cascade shows that only the "spoty" Solid POD request is made (with a success, indicating correct login), with the other 2 sources, but no other resources are fetched from the LDP container, we don't see any fetch for "Personal_xxxx" resources Thanks again for your help |
@pchampin FYI |
I had another look at https://github.com/sparna-git/spoty/blob/main/custom_pacckage/package.json, and it looks like you're missing a dependency on |
This link in default config get error : And if I change version to 0.1, 0.2, 0.3, 0.4 0.5 0.6, I have for all the same error when I run npm run build:engine : dependencies installed :
|
You can ignore that one.
This error can occur if the dependency injection framework is unable to find this package ( In any case, I recommend using the latest version for all packages, to avoid conflicting dependency versions. |
Hello, thanks for th e help, checking all dependencies and don't see where is the error and tryed with last version. I see a difference whith the demo https://comunica.github.io/comunica-feature-link-traversal-web-clients/builds/solid-default/ We try to use it has js browser client. Are we realy in a good way for this ? |
Good evening I finally found I was inspired by the demo code and reproduced part of the code to implement the service worker. |
@antoine37120 Do I understand correctly that everything works now for you? The worker should not be required, but can be useful if you want to run queries in the background without blocking the main/render thread too much. |
Not completly good, |
Those examples are a bit outdated, so I would not rely on those too much. |
Issue type:
Question:
Dear @rubensworks this is following a previous discussion at comunica/comunica#1438
How can I package a query engine using the same link traversal feature as the demo at https://comunica.github.io/comunica-feature-link-traversal-web-clients/builds/solid-single-pod/ ?
Despite our efforts together with @antoine37120, we are unable to achieve the same behavior. In the demo page we query 3 sources, one of them being a Solid pod requiring Solid authentication.
We have compiled our own engine with the following config file : https://github.com/sparna-git/spoty/blob/main/custom_pacckage/config/config-default.json. the config is identical to the one we see at https://github.com/comunica/comunica-feature-link-traversal/blob/master/engines/config-query-sparql-link-traversal/config/config-solid-single-pod.json (except we sticked with v3, not v4).
Can you confirm this config will traverse the links in the LDP container of the Solid POD ?
(The complete compiled engine you can see at https://github.com/sparna-git/spoty/blob/main/custom_pacckage, and the test code is at https://github.com/sparna-git/spoty/blob/main/src/index.ts, where you can see how we call the engine)
What we observe in our integration is that the request is made to the Solid pod, the response from the query looks identical to the one we get from the demo page, but the LDP resources in the contained are not "followed".
Could we benefit from a little of your expertise to help us on this ? We are probably missing something.
Many many many thanks
The text was updated successfully, but these errors were encountered: