Add missing prefix declaration to SPARQL query