Coverage for lode / models / quantifier.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2026-11-22 15:54 +0000

1"""Quantifier: an existential or universal property restriction.""" 

2from .propertyConceptRestriction import PropertyConceptRestriction 

3 

4class Quantifier(PropertyConceptRestriction): 

5 """A quantified restriction of a property on a concept. 

6 

7 The type is "some" (owl:someValuesFrom) or "only" (owl:allValuesFrom). 

8 """ 

9 

10 def __init__(self, **kwargs): 

11 """Create a quantifier with no type set.""" 

12 super().__init__(**kwargs) 

13 

14 self.has_quantifier_type = None # str[1] 

15 

16 def get_has_quantifier_type(self): 

17 """Return has_quantifier_type ("some" or "only").""" 

18 return self.has_quantifier_type 

19 

20 def set_has_quantifier_type(self, string): 

21 """Set has_quantifier_type ("some" or "only").""" 

22 self.has_quantifier_type = string