some sparql fixes