Changes for 2.0: added parameters for query, added methods for SPARQL update.