Coming up with a better way to issue sparql queries...