Bug #208

Subqueries not supported via REST

Added by Eric Kobrin - over 9 years ago. Updated over 9 years ago.

Status:New Start date:
Priority:High Due date:
Assignee:Paula Gearon % Done:


Category:HTTP interface
Target version:-


When making a TQL REST request containing subqueries, StreamedSparqlJSONAnswer throws an exception due to addBinding() not supporting @TransactionalAnswer@s.


Updated by Eric Kobrin - over 9 years ago

I have a patch in place locally that makes this work, but required changing the AbstractStreamedAnswer@s to accept @Writer@s rather than @OutputStream@s so that nested answers could be created by instantiating a new @StreamedSparqlJSONAnswer (or other AbstractStreamedAnswer as appropriate).

A better fix along the same lines would be to replace the multiple constructors with a builder that can take either a stream or a Writer.

An alternative (but more involved) fix would be to allow one AbstractStreamedAnswer to handle nested answers by not treating the variable list, variable list length, and OutputStreamWriter as instance data.

Also available in: Atom PDF