示例#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
文件: 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)
示例#3
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)
示例#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/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)
示例#5
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)
示例#6
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)