startQueryIterator() ;
// Prefixes for result
insertPrefixesInto(model) ;
Template template = query.getConstructTemplate() ;
// Build each template substitution as triples.
for ( ; queryIterator.hasNext() ; )
{
Set<Triple> set = new HashSet<Triple>() ;
Map<Node, Node> bNodeMap = new HashMap<Node, Node>() ;
Binding binding = queryIterator.nextBinding() ;
template.subst(set, bNodeMap, binding) ;
// Convert and merge into Model.
for ( Iterator<Triple> iter = set.iterator() ; iter.hasNext() ; )
{
Triple t = iter.next() ;