class_docstr: This class implements basic sparql patterns.
class_docstr_tok: ["This","class","implements","basic","sparql","patterns","."]
docstr: execute query to return resources
docstr_tok: ["execute","query","to","return","resources"]
code: def resource_query(self, variable, triples, show_query=False):
      """execute query to return resources"""
      return self.execution_template(
          variable,
          self.q_mark(variable),
          triples,
          self._tpl,
          show_query,
      )
  
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 BaseSPARQL obj's underlying member method code with example usage: obj.resource_query(variable, triples, show_query) and returns: self