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
« 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
4class Quantifier(PropertyConceptRestriction):
5 """A quantified restriction of a property on a concept.
7 The type is "some" (owl:someValuesFrom) or "only" (owl:allValuesFrom).
8 """
10 def __init__(self, **kwargs):
11 """Create a quantifier with no type set."""
12 super().__init__(**kwargs)
14 self.has_quantifier_type = None # str[1]
16 def get_has_quantifier_type(self):
17 """Return has_quantifier_type ("some" or "only")."""
18 return self.has_quantifier_type
20 def set_has_quantifier_type(self, string):
21 """Set has_quantifier_type ("some" or "only")."""
22 self.has_quantifier_type = string