Skip to content
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

Web server displays incorrect data on specific SPARQL endpoints #192

Closed
mateofatas opened this issue Jul 1, 2024 · 2 comments
Closed

Web server displays incorrect data on specific SPARQL endpoints #192

mateofatas opened this issue Jul 1, 2024 · 2 comments

Comments

@mateofatas
Copy link

Issue Description:

When creating multiple SPARQL endpoints on the Corese web server (as explained on the Corse-server tutorial), the web-server at any endpoint will always display the default endpoint's data, and not the data which was assigned to that specific endpoint.

Bug Details:

For example, let us create two SPARQL endpoints, the default one which displays data 'graph.ttl' (some predetermined TURTLE file) and another endpoint 'graph2' which is meant to display some other file's data 'graph2.ttl'. When we open these two endpoints on the web server at http://localhost:8080/sparql and http://localhost:8080/graph2/sparql, we should see the data from graph.ttl and the data from graph2.ttl respectively. However, this is not the case. At both endpoints, the default data is shown.

If, however, you decide to get the data using http requests (either through python requests or curl) with SPARQL queries, the correct data is returned (e.g 'graph2.ttl' data is returned at http://localhost:8080/graph2/sparql). Therefore it is only an issue with what is displayed on the web server.

Steps to Reproduce:

  1. Create multiple endpoints by loading a profile into a local corese web server, as described in the corse-server tutorial.

Expected Behavior:

When visiting the different endpoints on the corese web server, you should be able to see the data that you assigned to that specific endpoint.

Actual Behavior:

At ALL endpoints, you see the data which was assigned to the default endpoint. The data which was assigned to specific endpoints is nowhere to be found.

Screenshots/Attachments:

Example Profile Code:
image

Corese web server at default endpoint (displaying correct data):
image

Corese web server at http://localhost:8080/graph2/sparql (data is identical to default endpoint):
image

Graph2.ttl (the data which should be displayed at the 'graph2' endpoint:
image

Python HTTP requests code for 'graph2' endpoint:
image

What the request returns (correct data which was never displayed on the corese web server):
image

@remiceres
Copy link
Collaborator

Matéo,

Thank you for your detailed issue report. We have reproduced the bug where all SPARQL endpoints display the default data on the web server, although HTTP requests return the correct data. We will work on a fix.

remiceres added a commit that referenced this issue Jul 5, 2024
Resolved the issue where the web server displayed incorrect data on specific SPARQL endpoints.

Closes #192
@remiceres
Copy link
Collaborator

Thank you for your report. The bug has been fixed and will be included in the next release of Corese. It is already available in the latest nightly build: Corese Releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants