Workbench SPARQL Results XML should output results element for empty results sets

Description

SPARQL Results XML Writer outputs the results element in every case, as the specification requires. However, the second implementation of SPARQL Results XML writing in the workbench does not output a results element for an empty results set, by design.

https://bitbucket.org/openrdf/sesame/src/19e7e7308401c05774ae984b96aa4a3ea5041856/core/http/workbench/src/main/java/org/openrdf/workbench/util/TupleResultBuilder.java?at=master#cl-84

Solution looks to be to remove reliance on the "hasResults" variable for this purpose.

Environment

None

Status

Assignee

Peter Ansell

Reporter

Peter Ansell

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure