owlapy.model.OWLObjectMinCardinality¶
-
class
owlapy.model.
OWLObjectMinCardinality
(cardinality: int, property: owlapy.model.OWLObjectPropertyExpression, filler: owlapy.model.OWLClassExpression)[source]¶ Bases:
owlapy.model.OWLCardinalityRestriction
[owlapy.model.OWLClassExpression
],owlapy.model.OWLQuantifiedObjectRestriction
Represents a ObjectMinCardinality restriction in the OWL 2 Specification.
- Parameters:
cardinality – Cannot be negative.
property – The property that the restriction acts along.
filler – class expression for restriction
- Returns:
an ObjectMinCardinality on the specified property
Methods
Gets the cardinality of a restriction.
Gets the filler for this restriction.
Gets the negation normal form of the complement of this expression.
Gets the object complement of this class expression
Returns: property being restricted
Determines if this is a data restriction
Determines if this is an object restriction
Determines if this expression is the built in class owl:Nothing.
Determines if this expression is the built in class owl:Thing.
Attributes
-
get_cardinality
() → int¶ Gets the cardinality of a restriction.
- Returns:
The cardinality. A non-negative integer.
-
get_filler
() → _F¶ Gets the filler for this restriction. In the case of an object restriction this will be an individual, in the case of a data restriction this will be a constant (data value). For quantified restriction this will be a class expression or a data range.
- Returns:
the value
-
get_nnf
() → owlapy.model.OWLClassExpression¶ Gets the negation normal form of the complement of this expression.
- Returns:
A expression that represents the NNF of the complement of this expression.
-
get_object_complement_of
() → owlapy.model.OWLObjectComplementOf¶ Gets the object complement of this class expression
- Returns:
A class expression that is the complement of this class expression.
-
get_property
() → owlapy.model.OWLObjectPropertyExpression¶ Returns: property being restricted
-
is_anonymous
() → bool¶
-
is_data_restriction
() → bool¶ Determines if this is a data restriction
- Returns:
True if this is a data restriction
-
is_object_restriction
() → bool¶ Determines if this is an object restriction
- Returns:
True if this is an object restriction
-
is_owl_nothing
() → bool¶ Determines if this expression is the built in class owl:Nothing. This method does not determine if the class is equivalent to owl:Nothing.
-
is_owl_thing
() → bool¶ Determines if this expression is the built in class owl:Thing. This method does not determine if the class is equivalent to owl:Thing.
- Returns:
True if this expression is owl:Thing
-
type_index
: Final = 3008¶