class_docstr: This class implements basic sparql patterns.
class_docstr_tok: ["This","class","implements","basic","sparql","patterns","."]
code: def __init__(self, url="http://dbpedia.org/sparql", limit=5000):
      self._url = url
      self._sparql = SPARQLWrapper(url)
      self._sparql.setReturnFormat(JSON)
      self._tpl = (
          """SELECT DISTINCT %s WHERE {\n\t%s\n} LIMIT """ + str(limit)
      )
      self._count_tpl = """SELECT %s WHERE {\n\t%s\n} LIMIT """ + str(
          limit
      )
      self._text_tpl = (
          """SELECT DISTINCT %s, ?label, ?abstract WHERE {\n\t%s\n} LIMIT """
          + str(limit)
      )
  
imports: from __future__ import print_function
  from SPARQLWrapper import SPARQLWrapper, JSON
  from rdflib import RDF, RDFS, OWL
label_desc: Use image node_id 1 to create a new BaseSPARQL object  with example: obj = BaseSPARQL(url, limit)