Make the SPARQL and access function better.