pyowl2.abstracts.object ======================= .. py:module:: pyowl2.abstracts.object .. ── LLM-GENERATED DESCRIPTION START ── An abstract base class that serves as the foundational root for all Web Ontology Language (OWL) entities. Description ----------- It defines a common ancestor for representing various constructs within the Web Ontology Language, ensuring that specific components like classes, properties, and individuals share a unified type. By leveraging the Abstract Base Class module, the structure enforces a contract for subclasses while utilizing empty slots to restrict dynamic attribute creation and optimize memory usage. The implementation provides a generic constructor that performs no initialization logic, serving as a placeholder that is expected to be overridden by concrete implementations to define their specific setup requirements. This design facilitates polymorphic behavior across the system, allowing diverse ontology elements to be processed uniformly through their shared inheritance from this root type. .. ── LLM-GENERATED DESCRIPTION END ── Classes ------- .. autoapisummary:: pyowl2.abstracts.object.OWLObject Module Contents --------------- .. only:: html .. figure:: /_uml/class_pyowl2_abstracts_object_OWLObject.png :alt: UML Class Diagram for OWLObject :align: center :width: 100% :class: uml-diagram UML Class Diagram for **OWLObject** .. only:: latex .. figure:: /_uml/class_pyowl2_abstracts_object_OWLObject.pdf :alt: UML Class Diagram for OWLObject :align: center :width: 4.1cm :class: uml-diagram UML Class Diagram for **OWLObject** .. py:class:: OWLObject Bases: :py:obj:`abc.ABC` .. autoapi-inheritance-diagram:: pyowl2.abstracts.object.OWLObject :parts: 1 :private-bases: This abstract base class serves as the foundational root for all entities within an OWL (Web Ontology Language) representation. It is intended to be subclassed by specific constructs such as classes, properties, and individuals, rather than instantiated directly. By establishing a common type, it enables polymorphic handling of various ontology elements throughout the module. .. py:method:: __eq__(value: object) -> bool Determines equality by comparing string representations. Two OWL objects are considered equal if their string representations match. .. py:method:: __ge__(value: object) -> bool Determines greater-than-or-equal ordering by comparing string representations lexicographically. .. py:method:: __gt__(value: object) -> bool Determines greater-than ordering by comparing string representations lexicographically. .. py:method:: __hash__() -> int Computes a hash code from the string representation, enabling use in hash-based collections. .. py:method:: __le__(value: object) -> bool Determines less-than-or-equal ordering by comparing string representations lexicographically. .. py:method:: __lt__(value: object) -> bool Determines less-than ordering by comparing string representations lexicographically. .. py:method:: __ne__(value: object) -> bool Determines inequality by comparing string representations. .. py:method:: __repr__() -> str Returns the string representation, used for debugging and inspection. .. py:attribute:: __slots__ :value: ()