Skip to content

Commit

Permalink
deploy: 867d9b6
Browse files Browse the repository at this point in the history
  • Loading branch information
Demirrr committed Nov 25, 2024
1 parent 00ca417 commit ed6a626
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 15 deletions.
7 changes: 5 additions & 2 deletions _modules/owlapy/owl_ontology.html
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ <h1>Source code for owlapy.owl_ontology</h1><div class="highlight"><pre>
<span class="n">_world</span><span class="p">:</span> <span class="n">owlready2</span><span class="o">.</span><span class="n">World</span>
<span class="n">is_modified</span><span class="p">:</span> <span class="nb">bool</span>

<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">manager</span><span class="p">:</span> <span class="n">_OM</span><span class="p">,</span> <span class="n">ontology_iri</span><span class="p">:</span> <span class="n">IRI</span><span class="p">,</span> <span class="n">load</span><span class="p">:</span> <span class="nb">bool</span><span class="p">):</span>
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">manager</span><span class="p">:</span> <span class="n">_OM</span><span class="p">,</span> <span class="n">ontology_iri</span><span class="p">:</span> <span class="n">IRI</span> <span class="o">|</span> <span class="nb">str</span><span class="p">,</span> <span class="n">load</span><span class="p">:</span> <span class="nb">bool</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Represents an Ontology in Ontolearn.</span>

<span class="sd"> Args:</span>
Expand All @@ -902,7 +902,10 @@ <h1>Source code for owlapy.owl_ontology</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">_iri</span> <span class="o">=</span> <span class="n">ontology_iri</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_world</span> <span class="o">=</span> <span class="n">manager</span><span class="o">.</span><span class="n">_world</span>
<span class="bp">self</span><span class="o">.</span><span class="n">is_modified</span> <span class="o">=</span> <span class="kc">False</span>
<span class="n">onto</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><span class="n">ontology_iri</span><span class="o">.</span><span class="n">as_str</span><span class="p">())</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">ontology_iri</span><span class="p">,</span><span class="nb">str</span><span class="p">):</span>
<span class="n">onto</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><span class="n">ontology_iri</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">onto</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><span class="n">ontology_iri</span><span class="o">.</span><span class="n">as_str</span><span class="p">())</span>
<span class="k">if</span> <span class="n">load</span><span class="p">:</span>
<span class="n">onto</span> <span class="o">=</span> <span class="n">onto</span><span class="o">.</span><span class="n">load</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_onto</span> <span class="o">=</span> <span class="n">onto</span>
Expand Down
9 changes: 2 additions & 7 deletions _modules/owlapy/owl_ontology_manager.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,8 @@ <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.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>
<span class="k">else</span><span class="p">:</span>
<span class="k">assert</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">path</span><span class="p">,</span> <span class="n">IRI</span><span class="p">),</span> <span class="s2">&quot;iri either must be string or an instance of IRI Class&quot;</span>
<span class="n">path_iri</span><span class="o">=</span><span class="n">path</span>
<span class="k">return</span> <span class="n">Ontology</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">path_iri</span><span class="p">,</span> <span class="n">load</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span></div>
<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="nb">str</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">return</span> <span class="n">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">load</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span></div>


<div class="viewcode-block" id="OntologyManager.apply_change">
Expand Down
2 changes: 1 addition & 1 deletion _sources/autoapi/owlapy/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ Package Contents



.. py:method:: load_ontology(path: Union[owlapy.iri.IRI, str] = None) -> owlapy.owl_ontology.Ontology
.. py:method:: load_ontology(path: 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.
Expand Down
2 changes: 1 addition & 1 deletion _sources/autoapi/owlapy/owl_ontology/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Module Contents
.. py:method:: __eq__(other)
.. py:class:: Ontology(manager: _OM, ontology_iri: owlapy.iri.IRI, load: bool)
.. py:class:: Ontology(manager: _OM, ontology_iri: owlapy.iri.IRI | str, load: bool)
Bases: :py:obj:`owlapy.abstracts.abstract_owl_ontology.AbstractOWLOntology`

Expand Down
2 changes: 1 addition & 1 deletion _sources/autoapi/owlapy/owl_ontology_manager/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Module Contents



.. py:method:: load_ontology(path: Union[owlapy.iri.IRI, str] = None) -> owlapy.owl_ontology.Ontology
.. py:method:: load_ontology(path: 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.
Expand Down
2 changes: 1 addition & 1 deletion autoapi/owlapy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ <h2>Package Contents<a class="headerlink" href="#package-contents" title="Link t

<dl class="py method">
<dt class="sig sig-object py" id="owlapy.OntologyManager.load_ontology">
<span class="sig-name descname"><span class="pre">load_ontology</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">path</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="iri/index.html#owlapy.iri.IRI" title="owlapy.iri.IRI"><span class="pre">owlapy.iri.IRI</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">str</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="owl_ontology/index.html#owlapy.owl_ontology.Ontology" title="owlapy.owl_ontology.Ontology"><span class="pre">owlapy.owl_ontology.Ontology</span></a></span></span><a class="reference internal" href="../../_modules/owlapy/owl_ontology_manager.html#OntologyManager.load_ontology"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#owlapy.OntologyManager.load_ontology" title="Link to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">load_ontology</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">path</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="owl_ontology/index.html#owlapy.owl_ontology.Ontology" title="owlapy.owl_ontology.Ontology"><span class="pre">owlapy.owl_ontology.Ontology</span></a></span></span><a class="reference internal" href="../../_modules/owlapy/owl_ontology_manager.html#OntologyManager.load_ontology"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#owlapy.OntologyManager.load_ontology" title="Link to this definition"></a></dt>
<dd><p>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.</p>
<dl class="field-list simple">
Expand Down
2 changes: 1 addition & 1 deletion autoapi/owlapy/owl_ontology/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ <h2>Module Contents<a class="headerlink" href="#module-contents" title="Link to

<dl class="py class">
<dt class="sig sig-object py" id="owlapy.owl_ontology.Ontology">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">owlapy.owl_ontology.</span></span><span class="sig-name descname"><span class="pre">Ontology</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">manager</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">_OM</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">ontology_iri</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="../iri/index.html#owlapy.iri.IRI" title="owlapy.iri.IRI"><span class="pre">owlapy.iri.IRI</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">load</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../../_modules/owlapy/owl_ontology.html#Ontology"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#owlapy.owl_ontology.Ontology" title="Link to this definition"></a></dt>
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">owlapy.owl_ontology.</span></span><span class="sig-name descname"><span class="pre">Ontology</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">manager</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">_OM</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">ontology_iri</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="../iri/index.html#owlapy.iri.IRI" title="owlapy.iri.IRI"><span class="pre">owlapy.iri.IRI</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">load</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">bool</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../../_modules/owlapy/owl_ontology.html#Ontology"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#owlapy.owl_ontology.Ontology" title="Link to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="../abstracts/abstract_owl_ontology/index.html#owlapy.abstracts.abstract_owl_ontology.AbstractOWLOntology" title="owlapy.abstracts.abstract_owl_ontology.AbstractOWLOntology"><code class="xref py py-obj docutils literal notranslate"><span class="pre">owlapy.abstracts.abstract_owl_ontology.AbstractOWLOntology</span></code></a></p>
<p>Represents an OWL 2 Ontology in the OWL 2 specification.</p>
<p>An OWLOntology consists of a possibly empty set of OWLAxioms and a possibly empty set of OWLAnnotations.
Expand Down
2 changes: 1 addition & 1 deletion autoapi/owlapy/owl_ontology_manager/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ <h2>Module Contents<a class="headerlink" href="#module-contents" title="Link to

<dl class="py method">
<dt class="sig sig-object py" id="owlapy.owl_ontology_manager.OntologyManager.load_ontology">
<span class="sig-name descname"><span class="pre">load_ontology</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">path</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="../iri/index.html#owlapy.iri.IRI" title="owlapy.iri.IRI"><span class="pre">owlapy.iri.IRI</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">str</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="../owl_ontology/index.html#owlapy.owl_ontology.Ontology" title="owlapy.owl_ontology.Ontology"><span class="pre">owlapy.owl_ontology.Ontology</span></a></span></span><a class="reference internal" href="../../../_modules/owlapy/owl_ontology_manager.html#OntologyManager.load_ontology"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#owlapy.owl_ontology_manager.OntologyManager.load_ontology" title="Link to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">load_ontology</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">path</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="../owl_ontology/index.html#owlapy.owl_ontology.Ontology" title="owlapy.owl_ontology.Ontology"><span class="pre">owlapy.owl_ontology.Ontology</span></a></span></span><a class="reference internal" href="../../../_modules/owlapy/owl_ontology_manager.html#OntologyManager.load_ontology"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#owlapy.owl_ontology_manager.OntologyManager.load_ontology" title="Link to this definition"></a></dt>
<dd><p>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.</p>
<dl class="field-list simple">
Expand Down
Binary file modified owlapy.pdf
Binary file not shown.

0 comments on commit ed6a626

Please sign in to comment.