diff --git a/_modules/index.html b/_modules/index.html index 1d9b468..0bc4479 100644 --- a/_modules/index.html +++ b/_modules/index.html @@ -79,6 +79,7 @@

All modules for which code is available

  • owlapy.class_expression.class_expression
  • owlapy.class_expression.nary_boolean_expression
  • owlapy.class_expression.owl_class
  • +
  • owlapy.data_ranges
  • owlapy.has
  • owlapy.iri
  • owlapy.meta_classes
  • @@ -88,7 +89,6 @@

    All modules for which code is available

  • owlapy.owl2sparql.converter
  • owlapy.owl_annotation
  • owlapy.owl_axiom
  • -
  • owlapy.owl_class_expression
  • owlapy.owl_individual
  • owlapy.owl_literal
  • owlapy.owl_property
  • diff --git a/_modules/owlapy/owl_class_expression.html b/_modules/owlapy/data_ranges.html similarity index 83% rename from _modules/owlapy/owl_class_expression.html rename to _modules/owlapy/data_ranges.html index 9137103..e96734c 100644 --- a/_modules/owlapy/owl_class_expression.html +++ b/_modules/owlapy/data_ranges.html @@ -3,7 +3,7 @@ - owlapy.owl_class_expression — OWLAPY 0.1.2 documentation + owlapy.data_ranges — OWLAPY 0.1.2 documentation @@ -66,7 +66,7 @@ @@ -75,17 +75,18 @@
    -

    Source code for owlapy.owl_class_expression

    +  

    Source code for owlapy.data_ranges

     from abc import abstractmethod, ABCMeta
    -from .owlobject import OWLObject, OWLEntity
    -from .meta_classes import HasOperands
    +from ..owlobject import OWLObject, OWLEntity
    +from ..meta_classes import HasOperands
     from typing import Final, Iterable, Sequence
    -from .ranges import OWLPropertyRange, OWLDataRange
    -from .owl_literal import OWLLiteral
    +from ..ranges import OWLPropertyRange, OWLDataRange
    +from ..owl_literal import OWLLiteral
     from typing import Final, Sequence, Union, Iterable
    -from .iri import IRI
    +from ..iri import IRI
    +
     
    -[docs] +[docs] class OWLDataComplementOf(OWLDataRange): """Represents DataComplementOf in the OWL 2 Specification.""" type_index: Final = 4002 @@ -100,7 +101,7 @@

    Source code for owlapy.owl_class_expression

             self._data_range = data_range
     
     
    -[docs] +[docs] def get_data_range(self) -> OWLDataRange: """ Returns: @@ -110,13 +111,13 @@

    Source code for owlapy.owl_class_expression

     
     
     
    -[docs] +[docs] def __repr__(self): return f"OWLDataComplementOf({repr(self._data_range)})"
    -[docs] +[docs] def __eq__(self, other): if type(other) is type(self): return self._data_range == other._data_range @@ -124,14 +125,14 @@

    Source code for owlapy.owl_class_expression

     
     
     
    -[docs] +[docs] def __hash__(self): return hash(self._data_range)
    -[docs] +[docs] class OWLNaryDataRange(OWLDataRange, HasOperands[OWLDataRange]): """OWLNaryDataRange.""" __slots__ = () @@ -146,20 +147,20 @@

    Source code for owlapy.owl_class_expression

             self._operands = tuple(operands)
     
     
    -[docs] +[docs] def operands(self) -> Iterable[OWLDataRange]: # documented in parent yield from self._operands
    -[docs] +[docs] def __repr__(self): return f'{type(self).__name__}({repr(self._operands)})'
    -[docs] +[docs] def __eq__(self, other): if type(other) == type(self): return self._operands == other._operands @@ -167,14 +168,14 @@

    Source code for owlapy.owl_class_expression

     
     
     
    -[docs] +[docs] def __hash__(self): return hash(self._operands)
    -[docs] +[docs] class OWLDataUnionOf(OWLNaryDataRange): """Represents a DataUnionOf data range in the OWL 2 Specification.""" __slots__ = '_operands' @@ -184,7 +185,7 @@

    Source code for owlapy.owl_class_expression

     
     
     
    -[docs] +[docs] class OWLDataIntersectionOf(OWLNaryDataRange): """Represents DataIntersectionOf in the OWL 2 Specification.""" __slots__ = '_operands' diff --git a/_modules/owlapy/iri.html b/_modules/owlapy/iri.html index d232d3e..f764ab0 100644 --- a/_modules/owlapy/iri.html +++ b/_modules/owlapy/iri.html @@ -109,7 +109,7 @@

    Source code for owlapy.iri

     
     
     
    -[docs] +[docs] class IRI(OWLAnnotationSubject, OWLAnnotationValue, metaclass=_meta_IRI): """An IRI, consisting of a namespace and a remainder.""" __slots__ = '_namespace', '_remainder', '__weakref__' @@ -161,7 +161,7 @@

    Source code for owlapy.iri

             ...
     
     
    -[docs] +[docs] @staticmethod def create(string, remainder=None) -> 'IRI': if remainder is not None: @@ -171,13 +171,13 @@

    Source code for owlapy.iri

     
     
     
    -[docs] +[docs] def __repr__(self): return f"IRI({repr(self._namespace)},{repr(self._remainder)})"
    -[docs] +[docs] def __eq__(self, other): if type(other) is type(self): return self._namespace is other._namespace and self._remainder == other._remainder @@ -185,13 +185,13 @@

    Source code for owlapy.iri

     
     
     
    -[docs] +[docs] def __hash__(self): return hash((self._namespace, self._remainder))
    -[docs] +[docs] def is_nothing(self): """Determines if this IRI is equal to the IRI that owl:Nothing is named with. @@ -203,7 +203,7 @@

    Source code for owlapy.iri

     
     
     
    -[docs] +[docs] def is_thing(self): """Determines if this IRI is equal to the IRI that owl:Thing is named with. @@ -215,7 +215,7 @@

    Source code for owlapy.iri

     
     
     
    -[docs] +[docs] def is_reserved_vocabulary(self) -> bool: """Determines if this IRI is in the reserved vocabulary. An IRI is in the reserved vocabulary if it starts with <http://www.w3.org/1999/02/22-rdf-syntax-ns#> or <http://www.w3.org/2000/01/rdf-schema#> or @@ -229,14 +229,14 @@

    Source code for owlapy.iri

     
     
     
    -[docs] +[docs] def as_iri(self) -> 'IRI': # documented in parent return self
    -[docs] +[docs] def as_str(self) -> str: """ CD: Should be deprecated. @@ -265,7 +265,7 @@

    Source code for owlapy.iri

             return self.reminder()
     
     
    -[docs] +[docs] def get_short_form(self) -> str: """Gets the short form. @@ -276,7 +276,7 @@

    Source code for owlapy.iri

     
     
     
    -[docs] +[docs] def get_namespace(self) -> str: """ Returns: @@ -286,7 +286,7 @@

    Source code for owlapy.iri

     
     
     
    -[docs] +[docs] def get_remainder(self) -> str: """ Returns: diff --git a/_modules/owlapy/meta_classes.html b/_modules/owlapy/meta_classes.html index daace16..15be607 100644 --- a/_modules/owlapy/meta_classes.html +++ b/_modules/owlapy/meta_classes.html @@ -84,13 +84,13 @@

    Source code for owlapy.meta_classes

     
     
     
    -[docs] +[docs] class HasIRI(metaclass=ABCMeta): """Simple class to access the IRI.""" __slots__ = ()
    -[docs] +[docs] @abstractmethod def get_iri(self) -> 'IRI': """Gets the IRI of this object. @@ -104,7 +104,7 @@

    Source code for owlapy.meta_classes

     
     
     
    -[docs] +[docs] class HasOperands(Generic[_T], metaclass=ABCMeta): """An interface to objects that have a collection of operands. @@ -114,7 +114,7 @@

    Source code for owlapy.meta_classes

         __slots__ = ()
     
     
    -[docs] +[docs] @abstractmethod def operands(self) -> Iterable[_T]: """Gets the operands - e.g., the individuals in a sameAs axiom, or the classes in an equivalent @@ -129,7 +129,7 @@

    Source code for owlapy.meta_classes

     
     
     
    -[docs] +[docs] class HasFiller(Generic[_T], metaclass=ABCMeta): """An interface to objects that have a filler. @@ -139,7 +139,7 @@

    Source code for owlapy.meta_classes

         __slots__ = ()
     
     
    -[docs] +[docs] @abstractmethod def get_filler(self) -> _T: """Gets the filler for this restriction. In the case of an object restriction this will be an individual, in @@ -155,13 +155,13 @@

    Source code for owlapy.meta_classes

     
     
     
    -[docs] +[docs] class HasCardinality(metaclass=ABCMeta): """An interface to objects that have a cardinality.""" __slots__ = ()
    -[docs] +[docs] @abstractmethod def get_cardinality(self) -> int: """Gets the cardinality of a restriction. diff --git a/_modules/owlapy/model.html b/_modules/owlapy/model.html index 565b97e..f6324bc 100644 --- a/_modules/owlapy/model.html +++ b/_modules/owlapy/model.html @@ -91,7 +91,7 @@

    Source code for owlapy.model

         OWLObjectUnionOf, OWLObjectComplementOf
     from owlapy.class_expression import OWLThing, OWLNothing, OWLClass
     
    -from owlapy.owl_class_expression import OWLPropertyRange, OWLDataRange
    +from owlapy.data_ranges import OWLPropertyRange, OWLDataRange
     
     from owlapy.owl_property import OWLObjectPropertyExpression, OWLProperty, OWLPropertyExpression, \
         OWLDataPropertyExpression, OWLDataProperty, OWLObjectProperty
    diff --git a/_modules/owlapy/owl_literal.html b/_modules/owlapy/owl_literal.html
    index 77c658f..66fd60e 100644
    --- a/_modules/owlapy/owl_literal.html
    +++ b/_modules/owlapy/owl_literal.html
    @@ -90,7 +90,7 @@ 

    Source code for owlapy.owl_literal

     _R = TypeVar('_R', bound='OWLPropertyRange')  #:
     
     
    -[docs] +[docs] class OWLLiteral(OWLAnnotationValue, metaclass=ABCMeta): """Represents a Literal in the OWL 2 Specification.""" __slots__ = () @@ -139,7 +139,7 @@

    Source code for owlapy.owl_literal

             raise NotImplementedError(value)
     
     
    -[docs] +[docs] def get_literal(self) -> str: """Gets the lexical value of this literal. Note that the language tag is not included. @@ -150,14 +150,14 @@

    Source code for owlapy.owl_literal

     
     
     
    -[docs] +[docs] def is_boolean(self) -> bool: """Whether this literal is typed as boolean.""" return False
    -[docs] +[docs] def parse_boolean(self) -> bool: """Parses the lexical value of this literal into a bool. The lexical value of this literal should be in the lexical space of the boolean datatype ("http://www.w3.org/2001/XMLSchema#boolean"). @@ -169,14 +169,14 @@

    Source code for owlapy.owl_literal

     
     
     
    -[docs] +[docs] def is_double(self) -> bool: """Whether this literal is typed as double.""" return False
    -[docs] +[docs] def parse_double(self) -> float: """Parses the lexical value of this literal into a double. The lexical value of this literal should be in the lexical space of the double datatype ("http://www.w3.org/2001/XMLSchema#double"). @@ -188,14 +188,14 @@

    Source code for owlapy.owl_literal

     
     
     
    -[docs] +[docs] def is_integer(self) -> bool: """Whether this literal is typed as integer.""" return False
    -[docs] +[docs] def parse_integer(self) -> int: """Parses the lexical value of this literal into an integer. The lexical value of this literal should be in the lexical space of the integer datatype ("http://www.w3.org/2001/XMLSchema#integer"). @@ -207,14 +207,14 @@

    Source code for owlapy.owl_literal

     
     
     
    -[docs] +[docs] def is_string(self) -> bool: """Whether this literal is typed as string.""" return False
    -[docs] +[docs] def parse_string(self) -> str: """Parses the lexical value of this literal into a string. The lexical value of this literal should be in the lexical space of the string datatype ("http://www.w3.org/2001/XMLSchema#string"). @@ -226,14 +226,14 @@

    Source code for owlapy.owl_literal

     
     
     
    -[docs] +[docs] def is_date(self) -> bool: """Whether this literal is typed as date.""" return False
    -[docs] +[docs] def parse_date(self) -> date: """Parses the lexical value of this literal into a date. The lexical value of this literal should be in the lexical space of the date datatype ("http://www.w3.org/2001/XMLSchema#date"). @@ -245,14 +245,14 @@

    Source code for owlapy.owl_literal

     
     
     
    -[docs] +[docs] def is_datetime(self) -> bool: """Whether this literal is typed as dateTime.""" return False
    -[docs] +[docs] def parse_datetime(self) -> datetime: """Parses the lexical value of this literal into a datetime. The lexical value of this literal should be in the lexical space of the dateTime datatype ("http://www.w3.org/2001/XMLSchema#dateTime"). @@ -264,14 +264,14 @@

    Source code for owlapy.owl_literal

     
     
     
    -[docs] +[docs] def is_duration(self) -> bool: """Whether this literal is typed as duration.""" return False
    -[docs] +[docs] def parse_duration(self) -> Timedelta: """Parses the lexical value of this literal into a Timedelta. The lexical value of this literal should be in the lexical space of the duration datatype ("http://www.w3.org/2001/XMLSchema#duration"). @@ -284,27 +284,27 @@

    Source code for owlapy.owl_literal

     
         # noinspection PyMethodMayBeStatic
     
    -[docs] +[docs] def is_literal(self) -> bool: # documented in parent return True
    -[docs] +[docs] def as_literal(self) -> 'OWLLiteral': # documented in parent return self
    -[docs] +[docs] def to_python(self) -> Literals: return self._v
    -[docs] +[docs] @abstractmethod def get_datatype(self) -> OWLDatatype: """Gets the OWLDatatype which types this literal. diff --git a/_modules/owlapy/owlobject.html b/_modules/owlapy/owlobject.html index 31f2af0..b952ca5 100644 --- a/_modules/owlapy/owlobject.html +++ b/_modules/owlapy/owlobject.html @@ -80,26 +80,28 @@

    Source code for owlapy.owlobject

     from typing import Optional
     from .meta_classes import HasIRI
     
    +
    +[docs] class OWLObject(metaclass=ABCMeta): """Base interface for OWL objects""" __slots__ = ()
    -[docs] +[docs] @abstractmethod def __eq__(self, other): pass
    -[docs] +[docs] @abstractmethod def __hash__(self): pass
    -[docs] +[docs] @abstractmethod def __repr__(self): pass
    @@ -107,19 +109,20 @@

    Source code for owlapy.owlobject

     
         # default
     
    -[docs] +[docs] def is_anonymous(self) -> bool: return True
    +
    -[docs] +[docs] class OWLObjectRenderer(metaclass=ABCMeta): """Abstract class with a render method to render an OWL Object into a string."""
    -[docs] +[docs] @abstractmethod def set_short_form_provider(self, short_form_provider) -> None: """Configure a short form provider that shortens the OWL objects during rendering. @@ -131,7 +134,7 @@

    Source code for owlapy.owlobject

     
     
     
    -[docs] +[docs] @abstractmethod def render(self, o: OWLObject) -> str: """Render OWL Object to string. @@ -148,11 +151,11 @@

    Source code for owlapy.owlobject

     
     
     
    -[docs] +[docs] class OWLObjectParser(metaclass=ABCMeta): """Abstract class with a parse method to parse a string to an OWL Object."""
    -[docs] +[docs] @abstractmethod def parse_expression(self, expression_str: str) -> OWLObject: """Parse a string to an OWL Object. @@ -169,7 +172,7 @@

    Source code for owlapy.owlobject

     
     
     
    -[docs] +[docs] class OWLNamedObject(OWLObject, HasIRI, metaclass=ABCMeta): """Represents a named object for example, class, property, ontology etc. - i.e. anything that has an IRI as its name.""" @@ -178,7 +181,7 @@

    Source code for owlapy.owlobject

         _iri: 'IRI'
     
     
    -[docs] +[docs] def __eq__(self, other): if type(other) is type(self): return self._iri == other._iri @@ -186,7 +189,7 @@

    Source code for owlapy.owlobject

     
     
     
    -[docs] +[docs] def __lt__(self, other): if type(other) is type(self): return self._iri.as_str() < other._iri.as_str() @@ -194,13 +197,13 @@

    Source code for owlapy.owlobject

     
     
     
    -[docs] +[docs] def __hash__(self): return hash(self._iri)
    -[docs] +[docs] def __repr__(self): return f"{type(self).__name__}({repr(self._iri)})"
    @@ -210,19 +213,19 @@

    Source code for owlapy.owlobject

     
     
     
    -[docs] +[docs] class OWLEntity(OWLNamedObject, metaclass=ABCMeta): """Represents Entities in the OWL 2 Specification.""" __slots__ = ()
    -[docs] +[docs] def to_string_id(self) -> str: return self.get_iri().as_str()
    -[docs] +[docs] def is_anonymous(self) -> bool: return False
    diff --git a/_modules/owlapy/parser.html b/_modules/owlapy/parser.html index 07725dd..abbdc14 100644 --- a/_modules/owlapy/parser.html +++ b/_modules/owlapy/parser.html @@ -97,7 +97,7 @@

    Source code for owlapy.parser

         OWLLiteral, OWLDataRange, OWLDataOneOf, OWLDatatype, OWLObjectCardinalityRestriction, \
         OWLDataCardinalityRestriction, OWLObjectAllValuesFrom, OWLDataAllValuesFrom, BooleanOWLDatatype
     
    -from owlapy.owl_class_expression import OWLDataIntersectionOf, OWLDataUnionOf, OWLDataComplementOf
    +from owlapy.data_ranges import OWLDataIntersectionOf, OWLDataUnionOf, OWLDataComplementOf
     from owlapy.owl_restriction import OWLObjectHasValue, OWLDatatypeRestriction, OWLFacetRestriction, OWLObjectOneOf
     
     
    diff --git a/_modules/owlapy/ranges.html b/_modules/owlapy/ranges.html
    index 1fdbb8a..556d303 100644
    --- a/_modules/owlapy/ranges.html
    +++ b/_modules/owlapy/ranges.html
    @@ -80,14 +80,14 @@ 

    Source code for owlapy.ranges

     from .owlobject import OWLObject
     # @TODO: metaclass=ABCMeta inheritance may not be required since OWLObject is defined as such
     
    -[docs] +[docs] class OWLPropertyRange(OWLObject, metaclass=ABCMeta): """OWL Objects that can be the ranges of properties."""
    -[docs] +[docs] class OWLDataRange(OWLPropertyRange, metaclass=ABCMeta): """Represents a DataRange in the OWL 2 Specification."""
    diff --git a/_modules/owlapy/render.html b/_modules/owlapy/render.html index e5c933f..71bb0f4 100644 --- a/_modules/owlapy/render.html +++ b/_modules/owlapy/render.html @@ -97,7 +97,8 @@

    Source code for owlapy.render

         OWLDataHasValue, OWLDataOneOf, OWLDataMaxCardinality, \
         OWLDataMinCardinality, OWLDataExactCardinality)
     from owlapy.vocab import OWLFacet
    -from .owl_class_expression import OWLNaryDataRange, OWLDataComplementOf, OWLDataUnionOf, OWLDataIntersectionOf
    +
    +from .data_ranges import OWLNaryDataRange, OWLDataComplementOf, OWLDataUnionOf, OWLDataIntersectionOf
     from .owl_restriction import OWLObjectHasValue, OWLFacetRestriction, OWLDatatypeRestriction, OWLObjectOneOf
     
     _DL_SYNTAX = types.SimpleNamespace(
    diff --git a/_modules/owlapy/util.html b/_modules/owlapy/util.html
    index b7caa68..258b4d0 100644
    --- a/_modules/owlapy/util.html
    +++ b/_modules/owlapy/util.html
    @@ -89,7 +89,7 @@ 

    Source code for owlapy.util

         OWLDatatype,OWLDataOneOf, OWLLiteral, OWLObjectIntersectionOf, \
         OWLDataCardinalityRestriction, OWLNaryBooleanClassExpression, OWLObjectUnionOf, \
         OWLDataRange, OWLObject
    -from .owl_class_expression import OWLDataComplementOf, OWLDataUnionOf, OWLDataIntersectionOf, OWLNaryDataRange
    +from .data_ranges import OWLDataComplementOf, OWLDataUnionOf, OWLDataIntersectionOf, OWLNaryDataRange
     from .owl_restriction import OWLObjectHasValue, OWLDatatypeRestriction, OWLFacetRestriction, OWLObjectOneOf
     
     _HasIRI = TypeVar('_HasIRI', bound=HasIRI)  #:
    diff --git a/_sources/autoapi/owlapy/data_ranges/index.rst.txt b/_sources/autoapi/owlapy/data_ranges/index.rst.txt
    new file mode 100644
    index 0000000..884f1d9
    --- /dev/null
    +++ b/_sources/autoapi/owlapy/data_ranges/index.rst.txt
    @@ -0,0 +1,469 @@
    +:py:mod:`owlapy.data_ranges`
    +============================
    +
    +.. py:module:: owlapy.data_ranges
    +
    +
    +Package Contents
    +----------------
    +
    +Classes
    +~~~~~~~
    +
    +.. autoapisummary::
    +
    +   owlapy.data_ranges.OWLObject
    +   owlapy.data_ranges.OWLEntity
    +   owlapy.data_ranges.HasOperands
    +   owlapy.data_ranges.OWLPropertyRange
    +   owlapy.data_ranges.OWLDataRange
    +   owlapy.data_ranges.OWLLiteral
    +   owlapy.data_ranges.IRI
    +   owlapy.data_ranges.OWLDataComplementOf
    +   owlapy.data_ranges.OWLNaryDataRange
    +   owlapy.data_ranges.OWLDataUnionOf
    +   owlapy.data_ranges.OWLDataIntersectionOf
    +
    +
    +
    +
    +.. py:class:: OWLObject
    +
    +
    +   Base interface for OWL objects
    +
    +   .. py:attribute:: __slots__
    +      :value: ()
    +
    +      
    +
    +   .. py:method:: __eq__(other)
    +      :abstractmethod:
    +
    +      Return self==value.
    +
    +
    +   .. py:method:: __hash__()
    +      :abstractmethod:
    +
    +      Return hash(self).
    +
    +
    +   .. py:method:: __repr__()
    +      :abstractmethod:
    +
    +      Return repr(self).
    +
    +
    +   .. py:method:: is_anonymous() -> bool
    +
    +
    +
    +.. py:class:: OWLEntity
    +
    +
    +   Bases: :py:obj:`OWLNamedObject`
    +
    +   Represents Entities in the OWL 2 Specification.
    +
    +   .. py:attribute:: __slots__
    +      :value: ()
    +
    +      
    +
    +   .. py:method:: to_string_id() -> str
    +
    +
    +   .. py:method:: is_anonymous() -> bool
    +
    +
    +
    +.. py:class:: HasOperands
    +
    +
    +   Bases: :py:obj:`Generic`\ [\ :py:obj:`_T`\ ]
    +
    +   An interface to objects that have a collection of operands.
    +
    +   :param _T: Operand type.
    +
    +   .. py:attribute:: __slots__
    +      :value: ()
    +
    +      
    +
    +   .. py:method:: operands() -> Iterable[_T]
    +      :abstractmethod:
    +
    +      Gets the operands - e.g., the individuals in a sameAs axiom, or the classes in an equivalent
    +      classes axiom.
    +
    +      :returns: The operands.
    +
    +
    +
    +.. py:class:: OWLPropertyRange
    +
    +
    +   Bases: :py:obj:`owlapy.owlobject.OWLObject`
    +
    +   OWL Objects that can be the ranges of properties.
    +
    +
    +.. py:class:: OWLDataRange
    +
    +
    +   Bases: :py:obj:`OWLPropertyRange`
    +
    +   Represents a DataRange in the OWL 2 Specification.
    +
    +
    +.. py:class:: OWLLiteral
    +
    +
    +   Bases: :py:obj:`owlapy.owl_annotation.OWLAnnotationValue`
    +
    +   Represents a Literal in the OWL 2 Specification.
    +
    +   .. py:attribute:: __slots__
    +      :value: ()
    +
    +      
    +
    +   .. py:attribute:: type_index
    +      :type: Final
    +      :value: 4008
    +
    +      
    +
    +   .. py:method:: get_literal() -> str
    +
    +      Gets the lexical value of this literal. Note that the language tag is not included.
    +
    +      :returns: The lexical value of this literal.
    +
    +
    +   .. py:method:: is_boolean() -> bool
    +
    +      Whether this literal is typed as boolean.
    +
    +
    +   .. py:method:: parse_boolean() -> bool
    +
    +      Parses the lexical value of this literal into a bool. The lexical value of this literal should be in the
    +      lexical space of the boolean datatype ("http://www.w3.org/2001/XMLSchema#boolean").
    +
    +      :returns: A bool value that is represented by this literal.
    +
    +
    +   .. py:method:: is_double() -> bool
    +
    +      Whether this literal is typed as double.
    +
    +
    +   .. py:method:: parse_double() -> float
    +
    +      Parses the lexical value of this literal into a double. The lexical value of this literal should be in the
    +      lexical space of the double datatype ("http://www.w3.org/2001/XMLSchema#double").
    +
    +      :returns: A double value that is represented by this literal.
    +
    +
    +   .. py:method:: is_integer() -> bool
    +
    +      Whether this literal is typed as integer.
    +
    +
    +   .. py:method:: parse_integer() -> int
    +
    +      Parses the lexical value of this literal into an integer. The lexical value of this literal should be in the
    +      lexical space of the integer datatype ("http://www.w3.org/2001/XMLSchema#integer").
    +
    +      :returns: An integer value that is represented by this literal.
    +
    +
    +   .. py:method:: is_string() -> bool
    +
    +      Whether this literal is typed as string.
    +
    +
    +   .. py:method:: parse_string() -> str
    +
    +      Parses the lexical value of this literal into a string. The lexical value of this literal should be in the
    +      lexical space of the string datatype ("http://www.w3.org/2001/XMLSchema#string").
    +
    +      :returns: A string value that is represented by this literal.
    +
    +
    +   .. py:method:: is_date() -> bool
    +
    +      Whether this literal is typed as date.
    +
    +
    +   .. py:method:: parse_date() -> datetime.date
    +
    +      Parses the lexical value of this literal into a date. The lexical value of this literal should be in the
    +      lexical space of the date datatype ("http://www.w3.org/2001/XMLSchema#date").
    +
    +      :returns: A date value that is represented by this literal.
    +
    +
    +   .. py:method:: is_datetime() -> bool
    +
    +      Whether this literal is typed as dateTime.
    +
    +
    +   .. py:method:: parse_datetime() -> datetime.datetime
    +
    +      Parses the lexical value of this literal into a datetime. The lexical value of this literal should be in the
    +      lexical space of the dateTime datatype ("http://www.w3.org/2001/XMLSchema#dateTime").
    +
    +      :returns: A datetime value that is represented by this literal.
    +
    +
    +   .. py:method:: is_duration() -> bool
    +
    +      Whether this literal is typed as duration.
    +
    +
    +   .. py:method:: parse_duration() -> pandas.Timedelta
    +
    +      Parses the lexical value of this literal into a Timedelta. The lexical value of this literal should be in the
    +      lexical space of the duration datatype ("http://www.w3.org/2001/XMLSchema#duration").
    +
    +      :returns: A Timedelta value that is represented by this literal.
    +
    +
    +   .. py:method:: is_literal() -> bool
    +
    +      :returns: true if the annotation value is a literal
    +
    +
    +   .. py:method:: as_literal() -> OWLLiteral
    +
    +      :returns: if the value is a literal, returns it. Return None otherwise
    +
    +
    +   .. py:method:: to_python() -> Literals
    +
    +
    +   .. py:method:: get_datatype() -> owlapy.types.OWLDatatype
    +      :abstractmethod:
    +
    +      Gets the OWLDatatype which types this literal.
    +
    +      :returns: The OWLDatatype that types this literal.
    +
    +
    +
    +.. py:class:: IRI(namespace: Union[str, owlapy.namespaces.Namespaces], remainder: str)
    +
    +
    +   Bases: :py:obj:`owlapy.owl_annotation.OWLAnnotationSubject`, :py:obj:`owlapy.owl_annotation.OWLAnnotationValue`
    +
    +   An IRI, consisting of a namespace and a remainder.
    +
    +   .. py:property:: str
    +      :type: str
    +
    +      Returns:
    +      The string that specifies the IRI.
    +
    +   .. py:property:: reminder
    +      :type: str
    +
    +      Returns:
    +      The string corresponding to the reminder of the IRI.
    +
    +   .. py:attribute:: __slots__
    +      :value: ('_namespace', '_remainder', '__weakref__')
    +
    +      
    +
    +   .. py:attribute:: type_index
    +      :type: Final
    +      :value: 0
    +
    +      
    +
    +   .. py:method:: create(namespace: owlapy.namespaces.Namespaces, remainder: str) -> IRI
    +                  create(namespace: str, remainder: str) -> IRI
    +                  create(string: str) -> IRI
    +      :staticmethod:
    +
    +
    +   .. py:method:: __repr__()
    +
    +      Return repr(self).
    +
    +
    +   .. py:method:: __eq__(other)
    +
    +      Return self==value.
    +
    +
    +   .. py:method:: __hash__()
    +
    +      Return hash(self).
    +
    +
    +   .. py:method:: is_nothing()
    +
    +      Determines if this IRI is equal to the IRI that owl:Nothing is named with.
    +
    +      :returns: True if this IRI is equal to  and otherwise False.
    +
    +
    +   .. py:method:: is_thing()
    +
    +      Determines if this IRI is equal to the IRI that owl:Thing is named with.
    +
    +      :returns: True if this IRI is equal to  and otherwise False.
    +
    +
    +   .. py:method:: is_reserved_vocabulary() -> bool
    +
    +      Determines if this IRI is in the reserved vocabulary. An IRI is in the reserved vocabulary if it starts with
    +       or  or
    +       or .
    +
    +      :returns: True if the IRI is in the reserved vocabulary, otherwise False.
    +
    +
    +   .. py:method:: as_iri() -> IRI
    +
    +      :returns: if the value is an IRI, return it. Return Mone otherwise.
    +
    +
    +   .. py:method:: as_str() -> str
    +
    +      CD: Should be deprecated.
    +      :returns: The string that specifies the IRI.
    +
    +
    +   .. py:method:: get_short_form() -> str
    +
    +      Gets the short form.
    +
    +      :returns: A string that represents the short form.
    +
    +
    +   .. py:method:: get_namespace() -> str
    +
    +      :returns: The namespace as string.
    +
    +
    +   .. py:method:: get_remainder() -> str
    +
    +      :returns: The remainder (coincident with NCName usually) for this IRI.
    +
    +
    +
    +.. py:class:: OWLDataComplementOf(data_range: owlapy.ranges.OWLDataRange)
    +
    +
    +   Bases: :py:obj:`owlapy.ranges.OWLDataRange`
    +
    +   Represents DataComplementOf in the OWL 2 Specification.
    +
    +   .. py:attribute:: type_index
    +      :type: Final
    +      :value: 4002
    +
    +      
    +
    +   .. py:method:: get_data_range() -> owlapy.ranges.OWLDataRange
    +
    +      :returns: The wrapped data range.
    +
    +
    +   .. py:method:: __repr__()
    +
    +      Return repr(self).
    +
    +
    +   .. py:method:: __eq__(other)
    +
    +      Return self==value.
    +
    +
    +   .. py:method:: __hash__()
    +
    +      Return hash(self).
    +
    +
    +
    +.. py:class:: OWLNaryDataRange(operands: Iterable[owlapy.ranges.OWLDataRange])
    +
    +
    +   Bases: :py:obj:`owlapy.ranges.OWLDataRange`, :py:obj:`owlapy.meta_classes.HasOperands`\ [\ :py:obj:`owlapy.ranges.OWLDataRange`\ ]
    +
    +   OWLNaryDataRange.
    +
    +   .. py:attribute:: __slots__
    +      :value: ()
    +
    +      
    +
    +   .. py:method:: operands() -> Iterable[owlapy.ranges.OWLDataRange]
    +
    +      Gets the operands - e.g., the individuals in a sameAs axiom, or the classes in an equivalent
    +      classes axiom.
    +
    +      :returns: The operands.
    +
    +
    +   .. py:method:: __repr__()
    +
    +      Return repr(self).
    +
    +
    +   .. py:method:: __eq__(other)
    +
    +      Return self==value.
    +
    +
    +   .. py:method:: __hash__()
    +
    +      Return hash(self).
    +
    +
    +
    +.. py:class:: OWLDataUnionOf(operands: Iterable[owlapy.ranges.OWLDataRange])
    +
    +
    +   Bases: :py:obj:`OWLNaryDataRange`
    +
    +   Represents a DataUnionOf data range in the OWL 2 Specification.
    +
    +   .. py:attribute:: __slots__
    +      :value: '_operands'
    +
    +      
    +
    +   .. py:attribute:: type_index
    +      :type: Final
    +      :value: 4005
    +
    +      
    +
    +
    +.. py:class:: OWLDataIntersectionOf(operands: Iterable[owlapy.ranges.OWLDataRange])
    +
    +
    +   Bases: :py:obj:`OWLNaryDataRange`
    +
    +   Represents DataIntersectionOf  in the OWL 2 Specification.
    +
    +   .. py:attribute:: __slots__
    +      :value: '_operands'
    +
    +      
    +
    +   .. py:attribute:: type_index
    +      :type: Final
    +      :value: 4004
    +
    +      
    +
    +
    diff --git a/_sources/autoapi/owlapy/index.rst.txt b/_sources/autoapi/owlapy/index.rst.txt
    index 1f95cff..60baf60 100644
    --- a/_sources/autoapi/owlapy/index.rst.txt
    +++ b/_sources/autoapi/owlapy/index.rst.txt
    @@ -11,6 +11,7 @@ Subpackages
        :maxdepth: 3
     
        class_expression/index.rst
    +   data_ranges/index.rst
        model/index.rst
        owl2sparql/index.rst
     
    @@ -27,7 +28,6 @@ Submodules
        namespaces/index.rst
        owl_annotation/index.rst
        owl_axiom/index.rst
    -   owl_class_expression/index.rst
        owl_individual/index.rst
        owl_literal/index.rst
        owl_property/index.rst
    diff --git a/_sources/autoapi/owlapy/owl_class_expression/index.rst.txt b/_sources/autoapi/owlapy/owl_class_expression/index.rst.txt
    deleted file mode 100644
    index b56d4ea..0000000
    --- a/_sources/autoapi/owlapy/owl_class_expression/index.rst.txt
    +++ /dev/null
    @@ -1,130 +0,0 @@
    -:py:mod:`owlapy.owl_class_expression`
    -=====================================
    -
    -.. py:module:: owlapy.owl_class_expression
    -
    -
    -Module Contents
    ----------------
    -
    -Classes
    -~~~~~~~
    -
    -.. autoapisummary::
    -
    -   owlapy.owl_class_expression.OWLDataComplementOf
    -   owlapy.owl_class_expression.OWLNaryDataRange
    -   owlapy.owl_class_expression.OWLDataUnionOf
    -   owlapy.owl_class_expression.OWLDataIntersectionOf
    -
    -
    -
    -
    -.. py:class:: OWLDataComplementOf(data_range: owlapy.ranges.OWLDataRange)
    -
    -
    -   Bases: :py:obj:`owlapy.ranges.OWLDataRange`
    -
    -   Represents DataComplementOf in the OWL 2 Specification.
    -
    -   .. py:attribute:: type_index
    -      :type: Final
    -      :value: 4002
    -
    -      
    -
    -   .. py:method:: get_data_range() -> owlapy.ranges.OWLDataRange
    -
    -      :returns: The wrapped data range.
    -
    -
    -   .. py:method:: __repr__()
    -
    -      Return repr(self).
    -
    -
    -   .. py:method:: __eq__(other)
    -
    -      Return self==value.
    -
    -
    -   .. py:method:: __hash__()
    -
    -      Return hash(self).
    -
    -
    -
    -.. py:class:: OWLNaryDataRange(operands: Iterable[owlapy.ranges.OWLDataRange])
    -
    -
    -   Bases: :py:obj:`owlapy.ranges.OWLDataRange`, :py:obj:`owlapy.meta_classes.HasOperands`\ [\ :py:obj:`owlapy.ranges.OWLDataRange`\ ]
    -
    -   OWLNaryDataRange.
    -
    -   .. py:attribute:: __slots__
    -      :value: ()
    -
    -      
    -
    -   .. py:method:: operands() -> Iterable[owlapy.ranges.OWLDataRange]
    -
    -      Gets the operands - e.g., the individuals in a sameAs axiom, or the classes in an equivalent
    -      classes axiom.
    -
    -      :returns: The operands.
    -
    -
    -   .. py:method:: __repr__()
    -
    -      Return repr(self).
    -
    -
    -   .. py:method:: __eq__(other)
    -
    -      Return self==value.
    -
    -
    -   .. py:method:: __hash__()
    -
    -      Return hash(self).
    -
    -
    -
    -.. py:class:: OWLDataUnionOf(operands: Iterable[owlapy.ranges.OWLDataRange])
    -
    -
    -   Bases: :py:obj:`OWLNaryDataRange`
    -
    -   Represents a DataUnionOf data range in the OWL 2 Specification.
    -
    -   .. py:attribute:: __slots__
    -      :value: '_operands'
    -
    -      
    -
    -   .. py:attribute:: type_index
    -      :type: Final
    -      :value: 4005
    -
    -      
    -
    -
    -.. py:class:: OWLDataIntersectionOf(operands: Iterable[owlapy.ranges.OWLDataRange])
    -
    -
    -   Bases: :py:obj:`OWLNaryDataRange`
    -
    -   Represents DataIntersectionOf  in the OWL 2 Specification.
    -
    -   .. py:attribute:: __slots__
    -      :value: '_operands'
    -
    -      
    -
    -   .. py:attribute:: type_index
    -      :type: Final
    -      :value: 4004
    -
    -      
    -
    -
    diff --git a/autoapi/owlapy/class_expression/class_expression/index.html b/autoapi/owlapy/class_expression/class_expression/index.html
    index 6a1e48e..4be40b4 100644
    --- a/autoapi/owlapy/class_expression/class_expression/index.html
    +++ b/autoapi/owlapy/class_expression/class_expression/index.html
    @@ -66,6 +66,7 @@
     
  • Package Contents
  • +
  • owlapy.data_ranges
  • owlapy.model
  • owlapy.owl2sparql
  • diff --git a/autoapi/owlapy/class_expression/index.html b/autoapi/owlapy/class_expression/index.html index b5e1c79..8b9e58b 100644 --- a/autoapi/owlapy/class_expression/index.html +++ b/autoapi/owlapy/class_expression/index.html @@ -80,6 +80,7 @@ +
  • owlapy.data_ranges
  • owlapy.model
  • owlapy.owl2sparql
  • diff --git a/autoapi/owlapy/class_expression/nary_boolean_expression/index.html b/autoapi/owlapy/class_expression/nary_boolean_expression/index.html index 13fd7e7..9ea68c2 100644 --- a/autoapi/owlapy/class_expression/nary_boolean_expression/index.html +++ b/autoapi/owlapy/class_expression/nary_boolean_expression/index.html @@ -66,6 +66,7 @@
  • Package Contents
  • +
  • owlapy.data_ranges
  • owlapy.model
  • owlapy.owl2sparql
  • diff --git a/autoapi/owlapy/class_expression/owl_class/index.html b/autoapi/owlapy/class_expression/owl_class/index.html index 489cb15..7314036 100644 --- a/autoapi/owlapy/class_expression/owl_class/index.html +++ b/autoapi/owlapy/class_expression/owl_class/index.html @@ -25,7 +25,7 @@ - + @@ -66,6 +66,7 @@
  • Package Contents
  • +
  • owlapy.data_ranges
  • owlapy.model
  • owlapy.owl2sparql
  • @@ -207,7 +208,7 @@

    Classes

    diff --git a/autoapi/owlapy/model/providers/index.html b/autoapi/owlapy/model/providers/index.html index f4e22d7..448c7dd 100644 --- a/autoapi/owlapy/model/providers/index.html +++ b/autoapi/owlapy/model/providers/index.html @@ -54,6 +54,7 @@
  • owlapy