SPARQLStore / Fix Namespace query support

Fixes #374 
Most of the above stuff could probably go into some `private function newQueryWithSomeSpecificAttributes`, making the test a lot easier to read