Coverage for lode / models / statement.py: 100%
24 statements
« prev ^ index » next coverage.py v7.13.0, created at 2026-10-05 16:02 +0000
« prev ^ index » next coverage.py v7.13.0, created at 2026-10-05 16:02 +0000
1from .resource import Resource
3class Statement(Resource):
5 def __init__(self, **kwargs):
6 super().__init__(**kwargs)
8 self.is_positive_statement = True # bool [1]
9 self.has_subject = None # Resource [1]
10 self.has_object = None # Resource [1]
11 self.has_predicate = None # Property [1]
13 # Attributes
14 def get_is_positive_statement(self):
15 """Restituisce il valore is_positive_statement [1]"""
16 return self.is_positive_statement
18 def set_is_positive_statement(self, statement):
19 """Setta il valore di a is_positive_statement [1]"""
20 self.is_positive_statement = statement
22 # Relations with Resource
23 def get_has_subject(self):
24 """Restituisce il valore has_subject [1]"""
25 return self.has_subject
27 def set_has_subject(self, statement):
28 """Setta il valore di a has_subject [1]"""
29 self.has_subject = statement
31 def get_has_object(self):
32 """Restituisce il valore has_object [1]"""
33 return self.has_object
35 def set_has_object(self, statement):
36 """Setta il valore di a has_object [1]"""
37 self.has_object = statement
39 # Relation with Property
40 def get_has_predicate(self):
41 """Restituisce il valore has_predicate [1]"""
42 return self.has_predicate
44 def set_has_predicate(self, statement):
45 """Setta il valore di a has_predicate [1]"""
46 self.has_predicate = statement