class_docstr: This class implement basic query graph patterns which can query type of things, and a type entity pattern.
class_docstr_tok: ["This","class","implement","basic","query","graph","patterns","which","can","query","type","of","things",",","and","a","type","entity","pattern","."]
code: def type_query(self, concepts, lang="en", show_query=False):
      triples = map(
          lambda x: self.po_triple(RDF.type, x, "s"), concepts
      )
      t1 = [t for v, t in triples]
      t1 = self.union(t1)
      v, t2 = self.thing("s")
      return self.text_query(v, t1 + t2, lang, 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 2 for calling the QueryGraph obj's underlying member method code with example usage: obj.type_query(concepts, lang, show_query) and returns: self