Skip to content

Commit

Permalink
moved data ranges from data_ranges.__init__.py to owl_data_ranges.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alkidbaci committed Apr 17, 2024
1 parent daa9917 commit b5d92e4
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion owlapy/class_expression/class_expression.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""OWL Base Classes Expressions"""
from abc import abstractmethod, ABCMeta
from ..data_ranges import OWLPropertyRange
from ..owl_data_ranges import OWLPropertyRange
from ..meta_classes import HasOperands

from typing import Final, Iterable
Expand Down
2 changes: 1 addition & 1 deletion owlapy/class_expression/restriction.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from .nary_boolean_expression import OWLObjectIntersectionOf
from .class_expression import OWLAnonymousClassExpression, OWLClassExpression
from ..owl_property import OWLPropertyExpression, OWLObjectPropertyExpression, OWLDataPropertyExpression
from ..data_ranges import OWLPropertyRange, OWLDataRange
from ..owl_data_ranges import OWLPropertyRange, OWLDataRange
from ..owl_literal import OWLLiteral
from ..owl_individual import OWLIndividual
from ..owl_datatype import OWLDatatype
Expand Down
6 changes: 3 additions & 3 deletions owlapy/data_ranges/__init__.py → owlapy/owl_data_ranges.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""OWL data ranges
"""OWL Data Ranges
https://www.w3.org/TR/owl2-syntax/#Data_Ranges
DataRange := Datatype | DataIntersectionOf | DataUnionOf | DataComplementOf | DataOneOf | DatatypeRestriction
"""

from ..owl_object import OWLObject
from ..meta_classes import HasOperands
from .owl_object import OWLObject
from .meta_classes import HasOperands
from typing import Final, Sequence, Iterable

from abc import ABCMeta
Expand Down
2 changes: 1 addition & 1 deletion owlapy/owl_datatype.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""OWL Datatype"""
from .owl_object import OWLEntity
from .data_ranges import OWLDataRange
from .owl_data_ranges import OWLDataRange
from .iri import IRI
from .meta_classes import HasIRI
from typing import Final, Union
Expand Down
2 changes: 1 addition & 1 deletion owlapy/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
OWLDataMaxCardinality, OWLObjectMaxCardinality, OWLDataMinCardinality, OWLDataHasValue, \
OWLDataOneOf, OWLObjectCardinalityRestriction, OWLDatatypeRestriction, \
OWLDataCardinalityRestriction, OWLObjectAllValuesFrom, OWLDataAllValuesFrom
from owlapy.data_ranges import OWLDataIntersectionOf, OWLDataUnionOf, OWLDataComplementOf, OWLDataRange
from owlapy.owl_data_ranges import OWLDataIntersectionOf, OWLDataUnionOf, OWLDataComplementOf, OWLDataRange


MANCHESTER_GRAMMAR = Grammar(r"""
Expand Down
2 changes: 1 addition & 1 deletion owlapy/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
OWLDataHasValue, OWLDataMinCardinality, OWLDataExactCardinality, OWLDataMaxCardinality, OWLDataOneOf, \
OWLNaryBooleanClassExpression, OWLRestriction
from owlapy.vocab import OWLFacet
from .data_ranges import OWLNaryDataRange, OWLDataComplementOf, OWLDataUnionOf, OWLDataIntersectionOf
from .owl_data_ranges import OWLNaryDataRange, OWLDataComplementOf, OWLDataUnionOf, OWLDataIntersectionOf
from .class_expression import OWLObjectHasValue, OWLFacetRestriction, OWLDatatypeRestriction, OWLObjectOneOf
from .owl_datatype import OWLDatatype

Expand Down
2 changes: 1 addition & 1 deletion owlapy/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
OWLDataOneOf, OWLObjectIntersectionOf, \
OWLDataCardinalityRestriction, OWLNaryBooleanClassExpression, OWLObjectUnionOf, \
OWLObjectHasValue, OWLDatatypeRestriction, OWLFacetRestriction, OWLObjectOneOf
from .data_ranges import OWLDataComplementOf, OWLDataUnionOf, OWLDataIntersectionOf, OWLNaryDataRange, OWLDataRange, \
from .owl_data_ranges import OWLDataComplementOf, OWLDataUnionOf, OWLDataIntersectionOf, OWLNaryDataRange, OWLDataRange, \
OWLPropertyRange
from .owl_object import OWLObject
from .owl_datatype import OWLDatatype
Expand Down
2 changes: 1 addition & 1 deletion tests/test_owlapy_nnf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from owlapy.providers import owl_datatype_min_max_exclusive_restriction
from owlapy.util import NNF

from owlapy.data_ranges import OWLDataComplementOf, OWLDataIntersectionOf, OWLDataUnionOf
from owlapy.owl_data_ranges import OWLDataComplementOf, OWLDataIntersectionOf, OWLDataUnionOf
from owlapy.class_expression import OWLObjectHasValue, OWLObjectOneOf

def iri(suffix):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_owlapy_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
OWLObjectHasValue, OWLObjectOneOf, OWLDataSomeValuesFrom, OWLDataAllValuesFrom, OWLDataMaxCardinality, \
OWLDatatypeRestriction, OWLFacetRestriction

from owlapy.data_ranges import OWLDataIntersectionOf, OWLDataComplementOf, OWLDataUnionOf
from owlapy.owl_data_ranges import OWLDataIntersectionOf, OWLDataComplementOf, OWLDataUnionOf
from owlapy.providers import owl_datatype_min_exclusive_restriction,\
owl_datatype_min_max_exclusive_restriction, owl_datatype_max_exclusive_restriction

Expand Down
2 changes: 1 addition & 1 deletion tests/test_owlapy_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
OWLDataOneOf, OWLDataSomeValuesFrom, \
OWLDataMaxCardinality, OWLObjectHasValue, OWLObjectOneOf

from owlapy.data_ranges import OWLDataComplementOf, OWLDataIntersectionOf, OWLDataUnionOf
from owlapy.owl_data_ranges import OWLDataComplementOf, OWLDataIntersectionOf, OWLDataUnionOf
from owlapy.providers import owl_datatype_min_max_inclusive_restriction
from owlapy.render import DLSyntaxObjectRenderer, ManchesterOWLSyntaxOWLObjectRenderer

Expand Down

0 comments on commit b5d92e4

Please sign in to comment.