class_docstr: This class implements statistics for concepts and entities using SPARQL. It can be used to
  count concept frequency, entity relation frequency from DBpedia.
class_docstr_tok: ["This","class","implements","statistics","for","concepts","and","entities","using","SPARQL",".","It","can","be","used","to","count","concept","frequency",",","entity","relation","frequency","from","DBpedia","."]
docstr: select count(?s) where ?s is thing
docstr_tok: ["select","count","(","?","s",")","where","?","s","is","thing"]
code: def entity_N(self, cal=False, default=4298433):
      """select count(?s) where ?s is thing"""
      if cal:
          return int(self.count_query(*self.thing("s")))
      return default
  
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 StatSPARQL obj's underlying member method code with example usage: obj.entity_N(cal, default) and returns: default, int