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

JsonFormat not valid when no results #84

Open
stuarthendren opened this issue Jan 11, 2024 · 0 comments
Open

JsonFormat not valid when no results #84

stuarthendren opened this issue Jan 11, 2024 · 0 comments

Comments

@stuarthendren
Copy link

Describe the bug

The JsonFormat produces {]}} if there are no results.

To Reproduce
Steps to reproduce the behavior:

Just use any query (e.g. "SELECT * WHERE { ?s ?p ?o }")) to a dataset with no data and apply the JsonFormat.

Expected behavior

It would ideally produce the expected W3C formatted result, however I realise that you can't produce the bindings with the current set up as the first result is used, but it would be good if it would at least be valid JSON so the JSON.parse doesn't throw.

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

No branches or pull requests

1 participant