fuzzy_dl_owl2.fuzzydl.query.related_query
An abstract base class defines a foundational interface for evaluating role assertions and determining degrees of membership between individuals in a fuzzy logic system.
Description
It serves as a shared structure for specific query implementations that assess the strength or validity of connections within a logical framework, particularly focusing on operations that determine minimum or maximum degrees of membership. By encapsulating parameters such as the specific role type, the subject and object individuals involved, and an expression representing the desired degree of membership, the design standardizes how these queries are constructed and processed. The initialization process prepares the internal state by defining placeholders for the abstract role, the related individuals, and the objective expression, ensuring that subclasses inherit a consistent mechanism for handling relationship evaluations.
Classes
This abstract class serves as a foundational interface for queries that evaluate the entailment of role assertions, specifically focusing on the relationships between individuals. It is designed to support operations that determine minimum or maximum degrees of membership, acting as a shared structure for more specific query implementations. The class encapsulates the parameters necessary for these evaluations, including the specific role being examined, the subject and object individuals involved in the relation, and an expression representing the desired degree of membership. By defining these attributes, it provides a standardized way to construct and process queries regarding the strength or validity of connections within a logical framework. |
Module Contents
UML Class Diagram for RelatedQuery
- class RelatedQuery
Bases:
fuzzy_dl_owl2.fuzzydl.query.query.Query
This abstract class serves as a foundational interface for queries that evaluate the entailment of role assertions, specifically focusing on the relationships between individuals. It is designed to support operations that determine minimum or maximum degrees of membership, acting as a shared structure for more specific query implementations. The class encapsulates the parameters necessary for these evaluations, including the specific role being examined, the subject and object individuals involved in the relation, and an expression representing the desired degree of membership. By defining these attributes, it provides a standardized way to construct and process queries regarding the strength or validity of connections within a logical framework.
- Parameters:
role (str) – The role or relation type for which related individuals are retrieved.
ind1 (Individual) – The individual acting as the subject of the relation.
ind2 (Individual) – The individual acting as the object of the role assertion relation.
obj_expr (Expression) – The objective expression representing the degree of membership of the relation.
- obj_expr: fuzzy_dl_owl2.fuzzydl.milp.expression.Expression = None
- role: str = None