def _load(self, graph, source):
try:<EOL><INDENT>return graph.load(source)<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>return graph.load(source, format='<STR_LIT>')<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>return graph.load(source, format='<STR_LIT>')<EOL><DEDENT>except:<EOL><INDENT>raise Exception("<STR_LIT>".format(source))<EOL><DEDENT>
from https://rdflib.readthedocs.io/en/stable/_modules/rdflib/plugins/sparql/sparql.html