added handling for submitting SPARQL queries to generate basic charts