class_docstr: This class implements basic sparql patterns.
class_docstr_tok: ["This","class","implements","basic","sparql","patterns","."]
code: def union(self, triples):
      triples = map(lambda x: """{ %s }""" % x, triples)
      return "\n UNION ".join(triples)
  
imports: from __future__ import print_function
  from SPARQLWrapper import SPARQLWrapper, JSON
  from rdflib import RDF, RDFS, OWL
label_desc: Use image node_id 10 for calling the BaseSPARQL obj's underlying member method code with example usage: obj.union(triples) and returns: str