예제 #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)
예제 #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
예제 #3
0
파일: basics.py 프로젝트: cmader/LODStats
 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)
예제 #4
0
파일: basics.py 프로젝트: cmader/LODStats
 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)
예제 #5
0
파일: basics.py 프로젝트: cmader/LODStats
 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)
예제 #6
0
파일: basics.py 프로젝트: srkunze/LODStats
 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)