class_docstr: This class implements exact name matching for entities. It queries entity resource
  from DBpedia through entity's names
class_docstr_tok: ["This","class","implements","exact","name","matching","for","entities",".","It","queries","entity","resource","from","DBpedia","through","entity","'s","names"]
code: def name2entities(self, name):
      s, t0 = self.thing("s")
      t1 = self.triple("?s", self.uri(RDFS.label), self.literal(name))
      t2 = self.triple(
          "?s", self.uri(RDFS.label), self.literal(name.title())
      )
      t3 = self.redirect(name)
      t4 = self.triple("?s", self.uri(self.demonym), self.literal(name))
      t5 = self.triple("?s", self.uri(self.acronym), self.literal(name))
      t = self.union([t1, t2, t3, t4, t5])
      return self.resource_filter(self.resource_query(s, t + t0))
  
imports: from __future__ import print_function
  from SPARQLWrapper import SPARQLWrapper, JSON
  from rdflib import RDF, RDFS, OWL
label_desc: Use image node_id 6 for calling the NameSPARQL obj's underlying member method code with example usage: obj.name2entities(name) and returns: self