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 resource_filter(self, data):
      result = [
          d
          for d in data
          if d.__contains__("http://dbpedia.org/resource/")
      ]
      # remove categories
      result = [
          d
          for d in result
          if not d.__contains__("http://dbpedia.org/resource/Category")
      ]
      new_result = []
      for res in result:
          redirect = self.check_redirect(res)
          if redirect:
              new_result.append(redirect[0])
          else:
              new_result.append(res)
      return list(set(new_result))
  
imports: from __future__ import print_function
  from SPARQLWrapper import SPARQLWrapper, JSON
  from rdflib import RDF, RDFS, OWL
label_desc: Use image node_id 5 for calling the NameSPARQL obj's underlying member method code with example usage: obj.resource_filter(data) and returns: list