Skip to content

Commit

Permalink
deploy: 16efd2f
Browse files Browse the repository at this point in the history
  • Loading branch information
Demirrr committed Sep 16, 2024
1 parent 93a8fc2 commit e95851d
Show file tree
Hide file tree
Showing 41 changed files with 221 additions and 18 deletions.
26 changes: 13 additions & 13 deletions _modules/owlapy/owl_ontology_manager.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ <h1>Source code for owlapy.owl_ontology_manager</h1><div class="highlight"><pre>


<div class="viewcode-block" id="OWLImportsDeclaration">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.owl_ontology_manager.OWLImportsDeclaration">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.OWLImportsDeclaration">[docs]</a>
<span class="k">class</span> <span class="nc">OWLImportsDeclaration</span><span class="p">(</span><span class="n">HasIRI</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Represents an import statement in an ontology.&quot;&quot;&quot;</span>
<span class="vm">__slots__</span> <span class="o">=</span> <span class="s1">&#39;_iri&#39;</span>
Expand Down Expand Up @@ -130,7 +130,7 @@ <h1>Source code for owlapy.owl_ontology_manager</h1><div class="highlight"><pre>


<div class="viewcode-block" id="AddImport">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.owl_ontology_manager.AddImport">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.AddImport">[docs]</a>
<span class="k">class</span> <span class="nc">AddImport</span><span class="p">(</span><span class="n">OWLOntologyChange</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Represents an ontology change where an import statement is added to an ontology.&quot;&quot;&quot;</span>
<span class="vm">__slots__</span> <span class="o">=</span> <span class="s1">&#39;_ont&#39;</span><span class="p">,</span> <span class="s1">&#39;_declaration&#39;</span>
Expand All @@ -145,7 +145,7 @@ <h1>Source code for owlapy.owl_ontology_manager</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">_declaration</span> <span class="o">=</span> <span class="n">import_declaration</span>

<div class="viewcode-block" id="AddImport.get_import_declaration">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.owl_ontology_manager.AddImport.get_import_declaration">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.AddImport.get_import_declaration">[docs]</a>
<span class="k">def</span> <span class="nf">get_import_declaration</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">OWLImportsDeclaration</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Gets the import declaration that the change pertains to.</span>

Expand All @@ -158,7 +158,7 @@ <h1>Source code for owlapy.owl_ontology_manager</h1><div class="highlight"><pre>


<div class="viewcode-block" id="OntologyManager">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.owl_ontology_manager.OntologyManager">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.OntologyManager">[docs]</a>
<span class="k">class</span> <span class="nc">OntologyManager</span><span class="p">(</span><span class="n">OWLOntologyManager</span><span class="p">):</span>
<span class="vm">__slots__</span> <span class="o">=</span> <span class="s1">&#39;_world&#39;</span>

Expand All @@ -178,7 +178,7 @@ <h1>Source code for owlapy.owl_ontology_manager</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">_world</span> <span class="o">=</span> <span class="n">owlready2</span><span class="o">.</span><span class="n">World</span><span class="p">(</span><span class="n">filename</span><span class="o">=</span><span class="n">world_store</span><span class="p">)</span>

<div class="viewcode-block" id="OntologyManager.create_ontology">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.owl_ontology_manager.OntologyManager.create_ontology">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.OntologyManager.create_ontology">[docs]</a>
<span class="k">def</span> <span class="nf">create_ontology</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">iri</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="n">IRI</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Ontology</span><span class="p">:</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">iri</span><span class="p">,</span> <span class="nb">str</span><span class="p">):</span>
<span class="n">iri</span> <span class="o">=</span> <span class="n">IRI</span><span class="o">.</span><span class="n">create</span><span class="p">(</span><span class="n">iri</span><span class="p">)</span>
Expand All @@ -188,7 +188,7 @@ <h1>Source code for owlapy.owl_ontology_manager</h1><div class="highlight"><pre>


<div class="viewcode-block" id="OntologyManager.load_ontology">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.owl_ontology_manager.OntologyManager.load_ontology">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.OntologyManager.load_ontology">[docs]</a>
<span class="k">def</span> <span class="nf">load_ontology</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">path</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="n">IRI</span><span class="p">,</span> <span class="nb">str</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Ontology</span><span class="p">:</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">path</span><span class="p">,</span> <span class="nb">str</span><span class="p">):</span>
<span class="n">path_iri</span> <span class="o">=</span> <span class="n">IRI</span><span class="o">.</span><span class="n">create</span><span class="p">(</span><span class="n">path</span><span class="p">)</span>
Expand All @@ -199,7 +199,7 @@ <h1>Source code for owlapy.owl_ontology_manager</h1><div class="highlight"><pre>


<div class="viewcode-block" id="OntologyManager.apply_change">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.owl_ontology_manager.OntologyManager.apply_change">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.OntologyManager.apply_change">[docs]</a>
<span class="k">def</span> <span class="nf">apply_change</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">change</span><span class="p">:</span> <span class="n">OWLOntologyChange</span><span class="p">):</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">change</span><span class="p">,</span> <span class="n">AddImport</span><span class="p">):</span>
<span class="n">ont_x</span><span class="p">:</span> <span class="n">owlready2</span><span class="o">.</span><span class="n">namespace</span><span class="o">.</span><span class="n">Ontology</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_world</span><span class="o">.</span><span class="n">get_ontology</span><span class="p">(</span>
Expand All @@ -212,7 +212,7 @@ <h1>Source code for owlapy.owl_ontology_manager</h1><div class="highlight"><pre>


<div class="viewcode-block" id="OntologyManager.save_world">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.owl_ontology_manager.OntologyManager.save_world">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.OntologyManager.save_world">[docs]</a>
<span class="k">def</span> <span class="nf">save_world</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Saves the actual state of the quadstore in the SQLite3 file.</span>
<span class="sd"> &quot;&quot;&quot;</span>
Expand All @@ -222,7 +222,7 @@ <h1>Source code for owlapy.owl_ontology_manager</h1><div class="highlight"><pre>


<div class="viewcode-block" id="SyncOntologyManager">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.owl_ontology_manager.SyncOntologyManager">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.SyncOntologyManager">[docs]</a>
<span class="k">class</span> <span class="nc">SyncOntologyManager</span><span class="p">(</span><span class="n">OWLOntologyManager</span><span class="p">):</span>

<span class="c1"># WARN: Do not move local imports to top of the module</span>
Expand All @@ -233,7 +233,7 @@ <h1>Source code for owlapy.owl_ontology_manager</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">owlapi_manager</span> <span class="o">=</span> <span class="n">OWLManager</span><span class="o">.</span><span class="n">createOWLOntologyManager</span><span class="p">()</span>

<div class="viewcode-block" id="SyncOntologyManager.create_ontology">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.owl_ontology_manager.SyncOntologyManager.create_ontology">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.SyncOntologyManager.create_ontology">[docs]</a>
<span class="k">def</span> <span class="nf">create_ontology</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">iri</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="n">IRI</span><span class="p">,</span> <span class="nb">str</span><span class="p">])</span> <span class="o">-&gt;</span> <span class="n">SyncOntology</span><span class="p">:</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">iri</span><span class="p">,</span> <span class="nb">str</span><span class="p">):</span>
<span class="n">iri</span> <span class="o">=</span> <span class="n">IRI</span><span class="o">.</span><span class="n">create</span><span class="p">(</span><span class="n">iri</span><span class="p">)</span>
Expand All @@ -243,19 +243,19 @@ <h1>Source code for owlapy.owl_ontology_manager</h1><div class="highlight"><pre>


<div class="viewcode-block" id="SyncOntologyManager.load_ontology">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.owl_ontology_manager.SyncOntologyManager.load_ontology">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.SyncOntologyManager.load_ontology">[docs]</a>
<span class="k">def</span> <span class="nf">load_ontology</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">iri</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="n">IRI</span><span class="p">,</span> <span class="nb">str</span><span class="p">])</span> <span class="o">-&gt;</span> <span class="n">SyncOntology</span><span class="p">:</span>
<span class="k">return</span> <span class="n">SyncOntology</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">iri</span><span class="p">,</span> <span class="n">new</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span></div>


<div class="viewcode-block" id="SyncOntologyManager.get_owlapi_manager">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.owl_ontology_manager.SyncOntologyManager.get_owlapi_manager">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.SyncOntologyManager.get_owlapi_manager">[docs]</a>
<span class="k">def</span> <span class="nf">get_owlapi_manager</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">owlapi_manager</span></div>


<div class="viewcode-block" id="SyncOntologyManager.apply_change">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.owl_ontology_manager.SyncOntologyManager.apply_change">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology_manager/index.html#owlapy.SyncOntologyManager.apply_change">[docs]</a>
<span class="k">def</span> <span class="nf">apply_change</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">change</span><span class="p">:</span> <span class="n">OWLOntologyChange</span><span class="p">):</span>
<span class="k">raise</span> <span class="ne">NotImplementedError</span><span class="p">()</span></div>
</div>
Expand Down
67 changes: 66 additions & 1 deletion _sources/autoapi/owlapy/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ Attributes
owlapy.__version__


Classes
-------

.. autoapisummary::

owlapy.OntologyManager


Functions
---------

Expand Down Expand Up @@ -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'


1 change: 1 addition & 0 deletions autoapi/owlapy/abstracts/abstract_owl_ontology/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
</li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#attributes">Attributes</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#classes">Classes</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#functions">Functions</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#package-contents">Package Contents</a></li>
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
</li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#attributes">Attributes</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#classes">Classes</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#functions">Functions</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#package-contents">Package Contents</a></li>
</ul>
Expand Down
1 change: 1 addition & 0 deletions autoapi/owlapy/abstracts/abstract_owl_reasoner/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
</li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#attributes">Attributes</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#classes">Classes</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#functions">Functions</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#package-contents">Package Contents</a></li>
</ul>
Expand Down
1 change: 1 addition & 0 deletions autoapi/owlapy/abstracts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
</li>
<li class="toctree-l2"><a class="reference internal" href="../index.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="../index.html#attributes">Attributes</a></li>
<li class="toctree-l2"><a class="reference internal" href="../index.html#classes">Classes</a></li>
<li class="toctree-l2"><a class="reference internal" href="../index.html#functions">Functions</a></li>
<li class="toctree-l2"><a class="reference internal" href="../index.html#package-contents">Package Contents</a></li>
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
</li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#attributes">Attributes</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#classes">Classes</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#functions">Functions</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#package-contents">Package Contents</a></li>
</ul>
Expand Down
1 change: 1 addition & 0 deletions autoapi/owlapy/class_expression/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@
</li>
<li class="toctree-l2"><a class="reference internal" href="../index.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="../index.html#attributes">Attributes</a></li>
<li class="toctree-l2"><a class="reference internal" href="../index.html#classes">Classes</a></li>
<li class="toctree-l2"><a class="reference internal" href="../index.html#functions">Functions</a></li>
<li class="toctree-l2"><a class="reference internal" href="../index.html#package-contents">Package Contents</a></li>
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
</li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#attributes">Attributes</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#classes">Classes</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#functions">Functions</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#package-contents">Package Contents</a></li>
</ul>
Expand Down
1 change: 1 addition & 0 deletions autoapi/owlapy/class_expression/owl_class/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
</li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#attributes">Attributes</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#classes">Classes</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#functions">Functions</a></li>
<li class="toctree-l2"><a class="reference internal" href="../../index.html#package-contents">Package Contents</a></li>
</ul>
Expand Down
Loading

0 comments on commit e95851d

Please sign in to comment.