Exemplo n.º 1
0
 def count(self, s, p, o, s_blank, o_l, o_blank, statement):
     if p == 'http://www.w3.org/2000/01/rdf-schema#label' and not dh.query_distinct_subject(
             s, 2):
         self.results['count'] += 1
         dh.set_distinct_subject(s, 2)
Exemplo n.º 2
0
 def count(self, s, p, o, s_blank, o_l, o_blank, statement):
     if p == 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type' and not dh.query_distinct_subject(
             s, 1):
         self.results['count'] += 1
Exemplo n.º 3
0
 def count(self, s, p, o, s_blank, o_l, o_blank, statement):
     if statement.subject.is_resource and not dh.query_distinct_subject(s, 0):
       self.results['count'] += 1
       dh.set_distinct_subject(s, 0)
Exemplo n.º 4
0
 def count(self, s, p, o, s_blank, o_l, o_blank, statement):
     if p == 'http://www.w3.org/2000/01/rdf-schema#label' and not dh.query_distinct_subject(s, 2):
         self.results['count'] += 1
         dh.set_distinct_subject(s, 2)
Exemplo n.º 5
0
 def count(self, s, p, o, s_blank, o_l, o_blank, statement):
     if p == 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type' and not dh.query_distinct_subject(s, 1):
         self.results['count'] += 1
         dh.set_distinct_subject(s, 1)
Exemplo n.º 6
0
 def count(self, s, p, o, s_blank, o_l, o_blank, statement):
     if statement.subject.is_resource and not dh.query_distinct_subject(
             s, 0):
         self.results['count'] += 1
         dh.set_distinct_subject(s, 0)