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

Describe query not working when url is encoded #48

Open
GCHQDeveloper81 opened this issue Nov 29, 2024 · 0 comments
Open

Describe query not working when url is encoded #48

GCHQDeveloper81 opened this issue Nov 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@GCHQDeveloper81
Copy link
Member

GCHQDeveloper81 commented Nov 29, 2024

When IRI is encoded (e.g. has URL encoding applied) then the describe query in the explore pages stops returning results.

Steps to reproduce the behavior:

Import the following graph as a local data source.

@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://www.example.com/Bob> foaf:knows <http://www.example.com/Alice> .
<http://www.example.com/Bob%20Smith> foaf:knows <http://www.example.com/Alice%20Jones> .

Click Show / Sample data - you can see that both triples are in the local store.

  • Click through to Bob - you can see that they know Alice
  • Click thorugh to Bob%20Smith - the property about them knowing Alice%20Jones does not exist.

The latter should show that Bob%20Smith knows Alice%20Jones.

This is probably caused by the fact that the IRI being described is stored in the querystring of the DESCRIBE page's URL and being decoded incorrectly - needs investigation.

Fix should be accompanied by appropriate unit/e2e tests.

@GCHQDeveloper81 GCHQDeveloper81 added the bug Something isn't working label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant