fixes to sparql endpoint pagination query wrapping