Small bug creating a sparql query to the local store