コード例 #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)