sparql-engine icon indicating copy to clipboard operation
sparql-engine copied to clipboard

JsonFormat not valid when no results

Open stuarthendren opened this issue 2 years ago • 0 comments

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.

stuarthendren avatar Jan 11 '24 09:01 stuarthendren