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 wiki2dbpedia(self, wiki_uri):
      if wiki_uri.__contains__("https://en.wikipedia.org/wiki/"):
          wiki_uri = wiki_uri.replace("https:", "http:")
          q = self.triple(
              "?s",
              self.uri("http://xmlns.com/foaf/0.1/isPrimaryTopicOf"),
              self.uri(wiki_uri),
          )
          return self.resource_query("s", q)
      return []
  
imports: from __future__ import print_function
  from SPARQLWrapper import SPARQLWrapper, JSON
  from rdflib import RDF, RDFS, OWL
label_desc: Use image node_id 2 for calling the NameSPARQL obj's underlying member method code with example usage: obj.wiki2dbpedia(wiki_uri) and returns: list, self