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","."]
code: def concept_coocurence(self, c1, c2):
      s1, t1 = self.type_of_thing(c1, "s1")
      s2, t2 = self.type_of_thing(c2, "s2")
      t3 = self.v_triple(s1, "p", s2)
      t4 = self.v_triple(s2, "p", s1)
      count_1 = self.count_query("p", t1 + t2 + t3)
      count_2 = self.count_query("p", t1 + t2 + t4)
      return int(count_1) + int(count_2)
  
imports: from __future__ import print_function
  from SPARQLWrapper import SPARQLWrapper, JSON
  from rdflib import RDF, RDFS, OWL
label_desc: Use image node_id 4 for calling the StatSPARQL obj's underlying member method code with example usage: obj.concept_coocurence(c1, c2) and returns: unknown