create wrapper for the sparql service that handles some issues