Fixes to make SemMap produce Jena ARQ compatible queries.