rewriting run-method so that different prefix is used (sparql/update)
depending on the kind of Keyword that starts the query
Issue: this will not work in case PREFIX-Statements are used

module at the beginning was taken from stackoverflow