From e95851ddb8cc5782c0f38ea1e11d9c859f37e578 Mon Sep 17 00:00:00 2001 From: Demirrr Date: Mon, 16 Sep 2024 15:19:09 +0000 Subject: [PATCH] deploy: 16efd2f12bd680a542200a2bff22a0824793d3ad --- _modules/owlapy/owl_ontology_manager.html | 26 ++--- _sources/autoapi/owlapy/index.rst.txt | 67 ++++++++++++- .../abstract_owl_ontology/index.html | 1 + .../abstract_owl_ontology_manager/index.html | 1 + .../abstract_owl_reasoner/index.html | 1 + autoapi/owlapy/abstracts/index.html | 1 + .../class_expression/index.html | 1 + autoapi/owlapy/class_expression/index.html | 1 + .../nary_boolean_expression/index.html | 1 + .../class_expression/owl_class/index.html | 1 + .../class_expression/restriction/index.html | 1 + autoapi/owlapy/converter/index.html | 1 + autoapi/owlapy/entities/index.html | 1 + autoapi/owlapy/index.html | 90 +++++++++++++++++- autoapi/owlapy/iri/index.html | 1 + autoapi/owlapy/meta_classes/index.html | 1 + autoapi/owlapy/namespaces/index.html | 1 + autoapi/owlapy/owl_annotation/index.html | 1 + autoapi/owlapy/owl_axiom/index.html | 1 + autoapi/owlapy/owl_data_ranges/index.html | 1 + autoapi/owlapy/owl_datatype/index.html | 1 + autoapi/owlapy/owl_hierarchy/index.html | 1 + autoapi/owlapy/owl_individual/index.html | 1 + autoapi/owlapy/owl_literal/index.html | 1 + autoapi/owlapy/owl_object/index.html | 1 + autoapi/owlapy/owl_ontology/index.html | 1 + .../owlapy/owl_ontology_manager/index.html | 1 + autoapi/owlapy/owl_property/index.html | 1 + autoapi/owlapy/owl_reasoner/index.html | 1 + autoapi/owlapy/owlapi_mapper/index.html | 1 + autoapi/owlapy/parser/index.html | 1 + autoapi/owlapy/providers/index.html | 1 + autoapi/owlapy/render/index.html | 1 + autoapi/owlapy/static_funcs/index.html | 1 + autoapi/owlapy/utils/index.html | 1 + autoapi/owlapy/vocab/index.html | 1 + genindex.html | 20 +++- index.html | 1 + objects.inv | Bin 9798 -> 9838 bytes owlapy.pdf | Bin 663794 -> 667291 bytes searchindex.js | 2 +- 41 files changed, 221 insertions(+), 18 deletions(-) diff --git a/_modules/owlapy/owl_ontology_manager.html b/_modules/owlapy/owl_ontology_manager.html index 6d98d17..b1ad99c 100644 --- a/_modules/owlapy/owl_ontology_manager.html +++ b/_modules/owlapy/owl_ontology_manager.html @@ -97,7 +97,7 @@

Source code for owlapy.owl_ontology_manager

 
 
 
-[docs] +[docs] class OWLImportsDeclaration(HasIRI): """Represents an import statement in an ontology.""" __slots__ = '_iri' @@ -130,7 +130,7 @@

Source code for owlapy.owl_ontology_manager

 
 
 
-[docs] +[docs] class AddImport(OWLOntologyChange): """Represents an ontology change where an import statement is added to an ontology.""" __slots__ = '_ont', '_declaration' @@ -145,7 +145,7 @@

Source code for owlapy.owl_ontology_manager

         self._declaration = import_declaration
 
 
-[docs] +[docs] def get_import_declaration(self) -> OWLImportsDeclaration: """Gets the import declaration that the change pertains to. @@ -158,7 +158,7 @@

Source code for owlapy.owl_ontology_manager

 
 
 
-[docs] +[docs] class OntologyManager(OWLOntologyManager): __slots__ = '_world' @@ -178,7 +178,7 @@

Source code for owlapy.owl_ontology_manager

             self._world = owlready2.World(filename=world_store)
 
 
-[docs] +[docs] def create_ontology(self, iri: Union[str, IRI] = None) -> Ontology: if isinstance(iri, str): iri = IRI.create(iri) @@ -188,7 +188,7 @@

Source code for owlapy.owl_ontology_manager

 
 
 
-[docs] +[docs] def load_ontology(self, path: Union[IRI, str] = None) -> Ontology: if isinstance(path, str): path_iri = IRI.create(path) @@ -199,7 +199,7 @@

Source code for owlapy.owl_ontology_manager

 
 
 
-[docs] +[docs] def apply_change(self, change: OWLOntologyChange): if isinstance(change, AddImport): ont_x: owlready2.namespace.Ontology = self._world.get_ontology( @@ -212,7 +212,7 @@

Source code for owlapy.owl_ontology_manager

 
 
 
-[docs] +[docs] def save_world(self): """Saves the actual state of the quadstore in the SQLite3 file. """ @@ -222,7 +222,7 @@

Source code for owlapy.owl_ontology_manager

 
 
 
-[docs] +[docs] class SyncOntologyManager(OWLOntologyManager): # WARN: Do not move local imports to top of the module @@ -233,7 +233,7 @@

Source code for owlapy.owl_ontology_manager

         self.owlapi_manager = OWLManager.createOWLOntologyManager()
 
 
-[docs] +[docs] def create_ontology(self, iri: Union[IRI, str]) -> SyncOntology: if isinstance(iri, str): iri = IRI.create(iri) @@ -243,19 +243,19 @@

Source code for owlapy.owl_ontology_manager

 
 
 
-[docs] +[docs] def load_ontology(self, iri: Union[IRI, str]) -> SyncOntology: return SyncOntology(self, iri, new=False)
-[docs] +[docs] def get_owlapi_manager(self): return self.owlapi_manager
-[docs] +[docs] def apply_change(self, change: OWLOntologyChange): raise NotImplementedError()
diff --git a/_sources/autoapi/owlapy/index.rst.txt b/_sources/autoapi/owlapy/index.rst.txt index 75a86fe..de314b3 100644 --- a/_sources/autoapi/owlapy/index.rst.txt +++ b/_sources/autoapi/owlapy/index.rst.txt @@ -54,6 +54,14 @@ Attributes owlapy.__version__ +Classes +------- + +.. autoapisummary:: + + owlapy.OntologyManager + + Functions --------- @@ -90,7 +98,64 @@ Package Contents that are instances of owl:NamedIndividual +.. py:class:: OntologyManager(world_store=None) + + Bases: :py:obj:`owlapy.abstracts.abstract_owl_ontology_manager.OWLOntologyManager` + + + An OWLOntologyManager manages a set of ontologies. It is the main point for creating, loading and accessing + ontologies. + + + .. py:attribute:: __slots__ + :value: '_world' + + + + .. py:method:: create_ontology(iri: Union[str, owlapy.iri.IRI] = None) -> owlapy.owl_ontology.Ontology + + Creates a new (empty) ontology that that has the specified ontology IRI (and no version IRI). + + :param iri: The IRI of the ontology to be created, can also be a string. + + :returns: The newly created ontology. + + + + .. py:method:: load_ontology(path: Union[owlapy.iri.IRI, str] = None) -> owlapy.owl_ontology.Ontology + + Loads an ontology that is assumed to have the specified ontology IRI as its IRI or version IRI. The ontology + IRI will be mapped to an ontology document IRI. + + :param iri: + The IRI that identifies the ontology, can also be a string. + It is expected that the ontology will also have this IRI + (although the OWL API should tolerate situations where this is not the case). + + :returns: The OWLOntology representation of the ontology that was loaded. + + + + .. py:method:: apply_change(change: owlapy.abstracts.abstract_owl_ontology_manager.OWLOntologyChange) + + A convenience method that applies just one change to an ontology. When this method is used through an + OWLOntologyManager implementation, the instance used should be the one that the ontology returns through the + get_owl_ontology_manager() call. + + :param change: The change to be applied. + + :raises ChangeApplied.UNSUCCESSFULLY: if the change was not applied successfully. + + + + .. py:method:: save_world() + + Saves the actual state of the quadstore in the SQLite3 file. + + + + .. py:data:: __version__ - :value: '1.3.0' + :value: '1.3.1' diff --git a/autoapi/owlapy/abstracts/abstract_owl_ontology/index.html b/autoapi/owlapy/abstracts/abstract_owl_ontology/index.html index 0c20df8..6037397 100644 --- a/autoapi/owlapy/abstracts/abstract_owl_ontology/index.html +++ b/autoapi/owlapy/abstracts/abstract_owl_ontology/index.html @@ -81,6 +81,7 @@
  • Submodules
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/abstracts/abstract_owl_ontology_manager/index.html b/autoapi/owlapy/abstracts/abstract_owl_ontology_manager/index.html index ec3cd88..7b88cd9 100644 --- a/autoapi/owlapy/abstracts/abstract_owl_ontology_manager/index.html +++ b/autoapi/owlapy/abstracts/abstract_owl_ontology_manager/index.html @@ -81,6 +81,7 @@
  • Submodules
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/abstracts/abstract_owl_reasoner/index.html b/autoapi/owlapy/abstracts/abstract_owl_reasoner/index.html index 3a5da99..ccfafe8 100644 --- a/autoapi/owlapy/abstracts/abstract_owl_reasoner/index.html +++ b/autoapi/owlapy/abstracts/abstract_owl_reasoner/index.html @@ -82,6 +82,7 @@
  • Submodules
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/abstracts/index.html b/autoapi/owlapy/abstracts/index.html index 76561ca..8b516e8 100644 --- a/autoapi/owlapy/abstracts/index.html +++ b/autoapi/owlapy/abstracts/index.html @@ -144,6 +144,7 @@
  • Submodules
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/class_expression/class_expression/index.html b/autoapi/owlapy/class_expression/class_expression/index.html index b602a4e..5c13e43 100644 --- a/autoapi/owlapy/class_expression/class_expression/index.html +++ b/autoapi/owlapy/class_expression/class_expression/index.html @@ -82,6 +82,7 @@
  • Submodules
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/class_expression/index.html b/autoapi/owlapy/class_expression/index.html index 7b07be8..bbdd188 100644 --- a/autoapi/owlapy/class_expression/index.html +++ b/autoapi/owlapy/class_expression/index.html @@ -353,6 +353,7 @@
  • Submodules
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/class_expression/nary_boolean_expression/index.html b/autoapi/owlapy/class_expression/nary_boolean_expression/index.html index 9142a3a..c64d104 100644 --- a/autoapi/owlapy/class_expression/nary_boolean_expression/index.html +++ b/autoapi/owlapy/class_expression/nary_boolean_expression/index.html @@ -82,6 +82,7 @@
  • Submodules
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/class_expression/owl_class/index.html b/autoapi/owlapy/class_expression/owl_class/index.html index 3ac66d1..0273cd5 100644 --- a/autoapi/owlapy/class_expression/owl_class/index.html +++ b/autoapi/owlapy/class_expression/owl_class/index.html @@ -82,6 +82,7 @@
  • Submodules
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/class_expression/restriction/index.html b/autoapi/owlapy/class_expression/restriction/index.html index d49e37d..a8337e4 100644 --- a/autoapi/owlapy/class_expression/restriction/index.html +++ b/autoapi/owlapy/class_expression/restriction/index.html @@ -83,6 +83,7 @@
  • Submodules
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/converter/index.html b/autoapi/owlapy/converter/index.html index 490241f..c11d674 100644 --- a/autoapi/owlapy/converter/index.html +++ b/autoapi/owlapy/converter/index.html @@ -142,6 +142,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/entities/index.html b/autoapi/owlapy/entities/index.html index ed2bd52..487bbe3 100644 --- a/autoapi/owlapy/entities/index.html +++ b/autoapi/owlapy/entities/index.html @@ -67,6 +67,7 @@
  • Submodules
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/index.html b/autoapi/owlapy/index.html index 0191805..4c7868f 100644 --- a/autoapi/owlapy/index.html +++ b/autoapi/owlapy/index.html @@ -92,6 +92,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • @@ -182,6 +191,16 @@

    Attributes +

    Classes

    + + + + + + +

    OntologyManager

    An OWLOntologyManager manages a set of ontologies. It is the main point for creating, loading and accessing

    +

    Functions

    @@ -239,9 +258,78 @@

    Package Contents +
    +class owlapy.OntologyManager(world_store=None)[source]
    +

    Bases: owlapy.abstracts.abstract_owl_ontology_manager.OWLOntologyManager

    +

    An OWLOntologyManager manages a set of ontologies. It is the main point for creating, loading and accessing +ontologies.

    +
    +
    +__slots__ = '_world'
    +
    + +
    +
    +create_ontology(iri: str | owlapy.iri.IRI = None) owlapy.owl_ontology.Ontology[source]
    +

    Creates a new (empty) ontology that that has the specified ontology IRI (and no version IRI).

    +
    +
    Parameters:
    +

    iri – The IRI of the ontology to be created, can also be a string.

    +
    +
    Returns:
    +

    The newly created ontology.

    +
    +
    +
    + +
    +
    +load_ontology(path: owlapy.iri.IRI | str = None) owlapy.owl_ontology.Ontology[source]
    +

    Loads an ontology that is assumed to have the specified ontology IRI as its IRI or version IRI. The ontology +IRI will be mapped to an ontology document IRI.

    +
    +
    Parameters:
    +

    iri

    +
    The IRI that identifies the ontology, can also be a string.

    It is expected that the ontology will also have this IRI

    +
    +
    +

    (although the OWL API should tolerate situations where this is not the case).

    +

    +
    +
    Returns:
    +

    The OWLOntology representation of the ontology that was loaded.

    +
    +
    +
    + +
    +
    +apply_change(change: owlapy.abstracts.abstract_owl_ontology_manager.OWLOntologyChange)[source]
    +

    A convenience method that applies just one change to an ontology. When this method is used through an +OWLOntologyManager implementation, the instance used should be the one that the ontology returns through the +get_owl_ontology_manager() call.

    +
    +
    Parameters:
    +

    change – The change to be applied.

    +
    +
    Raises:
    +

    ChangeApplied.UNSUCCESSFULLY – if the change was not applied successfully.

    +
    +
    +
    + +
    +
    +save_world()[source]
    +

    Saves the actual state of the quadstore in the SQLite3 file.

    +
    + +
    +
    -owlapy.__version__ = '1.3.0'
    +owlapy.__version__ = '1.3.1'
    diff --git a/autoapi/owlapy/iri/index.html b/autoapi/owlapy/iri/index.html index f4be9b7..63583c6 100644 --- a/autoapi/owlapy/iri/index.html +++ b/autoapi/owlapy/iri/index.html @@ -111,6 +111,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/meta_classes/index.html b/autoapi/owlapy/meta_classes/index.html index e344d9c..0d1b16f 100644 --- a/autoapi/owlapy/meta_classes/index.html +++ b/autoapi/owlapy/meta_classes/index.html @@ -114,6 +114,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/namespaces/index.html b/autoapi/owlapy/namespaces/index.html index a72282e..6854884 100644 --- a/autoapi/owlapy/namespaces/index.html +++ b/autoapi/owlapy/namespaces/index.html @@ -107,6 +107,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/owl_annotation/index.html b/autoapi/owlapy/owl_annotation/index.html index 19dbe0b..a2e884d 100644 --- a/autoapi/owlapy/owl_annotation/index.html +++ b/autoapi/owlapy/owl_annotation/index.html @@ -109,6 +109,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/owl_axiom/index.html b/autoapi/owlapy/owl_axiom/index.html index 418a22c..d261bde 100644 --- a/autoapi/owlapy/owl_axiom/index.html +++ b/autoapi/owlapy/owl_axiom/index.html @@ -440,6 +440,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/owl_data_ranges/index.html b/autoapi/owlapy/owl_data_ranges/index.html index 8151dd0..f9a310d 100644 --- a/autoapi/owlapy/owl_data_ranges/index.html +++ b/autoapi/owlapy/owl_data_ranges/index.html @@ -121,6 +121,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/owl_datatype/index.html b/autoapi/owlapy/owl_datatype/index.html index 4bab7ef..115199c 100644 --- a/autoapi/owlapy/owl_datatype/index.html +++ b/autoapi/owlapy/owl_datatype/index.html @@ -100,6 +100,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/owl_hierarchy/index.html b/autoapi/owlapy/owl_hierarchy/index.html index 7070bc2..563b5c6 100644 --- a/autoapi/owlapy/owl_hierarchy/index.html +++ b/autoapi/owlapy/owl_hierarchy/index.html @@ -143,6 +143,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/owl_individual/index.html b/autoapi/owlapy/owl_individual/index.html index c61084d..4eaf77c 100644 --- a/autoapi/owlapy/owl_individual/index.html +++ b/autoapi/owlapy/owl_individual/index.html @@ -104,6 +104,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/owl_literal/index.html b/autoapi/owlapy/owl_literal/index.html index fcea72f..743d406 100644 --- a/autoapi/owlapy/owl_literal/index.html +++ b/autoapi/owlapy/owl_literal/index.html @@ -133,6 +133,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/owl_object/index.html b/autoapi/owlapy/owl_object/index.html index 87ac107..e83a7b1 100644 --- a/autoapi/owlapy/owl_object/index.html +++ b/autoapi/owlapy/owl_object/index.html @@ -124,6 +124,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/owl_ontology/index.html b/autoapi/owlapy/owl_ontology/index.html index 5d6cc5a..7840c17 100644 --- a/autoapi/owlapy/owl_ontology/index.html +++ b/autoapi/owlapy/owl_ontology/index.html @@ -173,6 +173,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/owl_ontology_manager/index.html b/autoapi/owlapy/owl_ontology_manager/index.html index f6f2187..273f631 100644 --- a/autoapi/owlapy/owl_ontology_manager/index.html +++ b/autoapi/owlapy/owl_ontology_manager/index.html @@ -120,6 +120,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/owl_property/index.html b/autoapi/owlapy/owl_property/index.html index 2b57790..4bab1c2 100644 --- a/autoapi/owlapy/owl_property/index.html +++ b/autoapi/owlapy/owl_property/index.html @@ -144,6 +144,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/owl_reasoner/index.html b/autoapi/owlapy/owl_reasoner/index.html index 3bed9a8..528d3bd 100644 --- a/autoapi/owlapy/owl_reasoner/index.html +++ b/autoapi/owlapy/owl_reasoner/index.html @@ -182,6 +182,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/owlapi_mapper/index.html b/autoapi/owlapy/owlapi_mapper/index.html index 18fc2e1..d496bc6 100644 --- a/autoapi/owlapy/owlapi_mapper/index.html +++ b/autoapi/owlapy/owlapi_mapper/index.html @@ -108,6 +108,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/parser/index.html b/autoapi/owlapy/parser/index.html index 97b0415..9e6496d 100644 --- a/autoapi/owlapy/parser/index.html +++ b/autoapi/owlapy/parser/index.html @@ -209,6 +209,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/providers/index.html b/autoapi/owlapy/providers/index.html index 0fc65f3..5a51cb1 100644 --- a/autoapi/owlapy/providers/index.html +++ b/autoapi/owlapy/providers/index.html @@ -101,6 +101,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/render/index.html b/autoapi/owlapy/render/index.html index 8803607..a43215c 100644 --- a/autoapi/owlapy/render/index.html +++ b/autoapi/owlapy/render/index.html @@ -114,6 +114,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/static_funcs/index.html b/autoapi/owlapy/static_funcs/index.html index 2c22ffe..1df771b 100644 --- a/autoapi/owlapy/static_funcs/index.html +++ b/autoapi/owlapy/static_funcs/index.html @@ -97,6 +97,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/utils/index.html b/autoapi/owlapy/utils/index.html index c5820d9..edbe723 100644 --- a/autoapi/owlapy/utils/index.html +++ b/autoapi/owlapy/utils/index.html @@ -195,6 +195,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/autoapi/owlapy/vocab/index.html b/autoapi/owlapy/vocab/index.html index 1ef54ad..fd6846e 100644 --- a/autoapi/owlapy/vocab/index.html +++ b/autoapi/owlapy/vocab/index.html @@ -134,6 +134,7 @@
  • Attributes
  • +
  • Classes
  • Functions
  • Package Contents
  • diff --git a/genindex.html b/genindex.html index 2355698..b7bdc05 100644 --- a/genindex.html +++ b/genindex.html @@ -678,6 +678,8 @@

    _

  • (owlapy.meta_classes.HasOperands attribute)
  • (owlapy.namespaces.Namespaces attribute) +
  • +
  • (owlapy.OntologyManager attribute)
  • (owlapy.owl_annotation.OWLAnnotationObject attribute)
  • @@ -918,6 +920,8 @@

    A