def METHOD_NAME(self, str):
    def literal2TLit(sparqlres):
        if 'results' not in sparqlres:
            return
        for row in sparqlres['results']['bindings']:
            for name,value in row.items():
                if value['type'] == 'literal' and 'datatype' in value:
                    value['type'] = 'typed-literal'
    #print('requesting @ '+self.address+" with query:")
    #print(str)
    resp = requests.get(self.address, params = {'query':str}, timeout = 1500, headers = {'user-agent': 'my-app/0.0.1'})
    #print('raw resp:')
    #print(resp.json())
    result = resp.json()
    literal2TLit(result)
    #print('literal to typed-literal')
    #print(result)
    qres = jsresult.JSONResult(result)#json decoded
    #print('after parse:')
    #print(qres)
    return qres