code: def find_entity(self, x):
          
  
          qstr = self.prefixes + """
              SELECT ?x WHERE {{
                  ?x rn:hasName "{0}" .
              }}
              """.format(x)
          res = self.graph.query(qstr)
          if list(res):
              en = list(res)[0][0].toPython()
              return en
          else:
              return None
docs: Get the entity that has the specified name (or synonym).
  
          Parameters
          ----------
          x : string
              Name or synonym for the target entity.