fuzzy_dl_owl2.fuzzydl.query.related_query
An abstract base class defines the structure for queries evaluating role assertions and membership degrees between individuals in a fuzzy description logic system.
Description
Acting as a foundational interface, the component handles the evaluation of entailment for role assertions by focusing on the relationships between specific entities. The design supports operations that determine minimum or maximum degrees of membership, serving as a shared structure for more specific query implementations that require these calculations. By encapsulating parameters such as the specific role being examined, the subject and object individuals involved, and an expression representing the desired degree of membership, it provides a standardized way to construct and process queries regarding connection strength. This abstraction ensures that concrete implementations can inherit a consistent state management approach while defining the specific logic for resolving fuzzy relationships.
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[source]
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