Skip to content

Commit

Permalink
deploy: 1e752c3
Browse files Browse the repository at this point in the history
  • Loading branch information
alkidbaci committed Nov 19, 2024
1 parent 8d8a5a6 commit f6aa799
Show file tree
Hide file tree
Showing 13 changed files with 119 additions and 136 deletions.
40 changes: 32 additions & 8 deletions _modules/owlapy/class_expression/restriction.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _modules/owlapy/owl_ontology.html
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ <h1>Source code for owlapy.owl_ontology</h1><div class="highlight"><pre>
<span class="k">raise</span> <span class="ne">NotImplementedError</span><span class="p">(</span><span class="s2">&quot;Cant initialize a new ontology using path. Use IRI instead&quot;</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span> <span class="c1"># means we are loading an existing ontology</span>
<span class="bp">self</span><span class="o">.</span><span class="n">owlapi_ontology</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">manager</span><span class="o">.</span><span class="n">get_owlapi_manager</span><span class="p">()</span><span class="o">.</span><span class="n">loadOntologyFromOntologyDocument</span><span class="p">(</span><span class="n">File</span><span class="p">(</span><span class="n">file_path</span><span class="p">))</span>
<span class="bp">self</span><span class="o">.</span><span class="n">mapper</span> <span class="o">=</span> <span class="n">OWLAPIMapper</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">mapper</span> <span class="o">=</span> <span class="n">OWLAPIMapper</span><span class="p">()</span>

<div class="viewcode-block" id="SyncOntology.__eq__">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_ontology/index.html#owlapy.owl_ontology.SyncOntology.__eq__">[docs]</a>
Expand Down
128 changes: 66 additions & 62 deletions _modules/owlapy/owlapi_mapper.html

Large diffs are not rendered by default.

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

Represent a HasValue restriction in the OWL 2

:param _T: The value type.
:param value: The value type _T.


.. py:attribute:: __slots__
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Module Contents

Represent a HasValue restriction in the OWL 2

:param _T: The value type.
:param value: The value type _T.


.. py:attribute:: __slots__
Expand Down
17 changes: 5 additions & 12 deletions _sources/autoapi/owlapy/owlapi_mapper/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,14 @@ Module Contents

.. py:function:: init(the_class)
.. py:class:: OWLAPIMapper(ontology: _SO)
Since classes names in owlapi and owlapy are pretty much similar with the small difference that in owlapi they
usually have the 'Impl' part then we can create the mapping class name dynamically reducing the amount of code
significantly. That's what this method does.

.. py:attribute:: manager

.. py:class:: OWLAPIMapper
.. py:attribute:: ontology
.. py:attribute:: namespace
.. py:attribute:: parser
.. py:attribute:: renderer
A bridge between owlapy and owlapi owl-related classes.


.. py:method:: map_(e)
Expand Down
2 changes: 1 addition & 1 deletion autoapi/owlapy/class_expression/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ <h2>Package Contents<a class="headerlink" href="#package-contents" title="Link t
<p>Represent a HasValue restriction in the OWL 2</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>_T</strong> – The value type.</p>
<dd class="field-odd"><p><strong>value</strong> – The value type _T.</p>
</dd>
</dl>
<dl class="py attribute">
Expand Down
2 changes: 1 addition & 1 deletion autoapi/owlapy/class_expression/restriction/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ <h2>Module Contents<a class="headerlink" href="#module-contents" title="Link to
<p>Represent a HasValue restriction in the OWL 2</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>_T</strong> – The value type.</p>
<dd class="field-odd"><p><strong>value</strong> – The value type _T.</p>
</dd>
</dl>
<dl class="py attribute">
Expand Down
42 changes: 8 additions & 34 deletions autoapi/owlapy/owlapi_mapper/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@
<li class="toctree-l4"><a class="reference internal" href="#module-contents">Module Contents</a><ul>
<li class="toctree-l5"><a class="reference internal" href="#owlapy.owlapi_mapper.init"><code class="docutils literal notranslate"><span class="pre">init()</span></code></a></li>
<li class="toctree-l5"><a class="reference internal" href="#owlapy.owlapi_mapper.OWLAPIMapper"><code class="docutils literal notranslate"><span class="pre">OWLAPIMapper</span></code></a><ul>
<li class="toctree-l6"><a class="reference internal" href="#owlapy.owlapi_mapper.OWLAPIMapper.manager"><code class="docutils literal notranslate"><span class="pre">OWLAPIMapper.manager</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="#owlapy.owlapi_mapper.OWLAPIMapper.ontology"><code class="docutils literal notranslate"><span class="pre">OWLAPIMapper.ontology</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="#owlapy.owlapi_mapper.OWLAPIMapper.namespace"><code class="docutils literal notranslate"><span class="pre">OWLAPIMapper.namespace</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="#owlapy.owlapi_mapper.OWLAPIMapper.parser"><code class="docutils literal notranslate"><span class="pre">OWLAPIMapper.parser</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="#owlapy.owlapi_mapper.OWLAPIMapper.renderer"><code class="docutils literal notranslate"><span class="pre">OWLAPIMapper.renderer</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="#owlapy.owlapi_mapper.OWLAPIMapper.map_"><code class="docutils literal notranslate"><span class="pre">OWLAPIMapper.map_()</span></code></a></li>
<li class="toctree-l6"><a class="reference internal" href="#owlapy.owlapi_mapper.OWLAPIMapper.to_list"><code class="docutils literal notranslate"><span class="pre">OWLAPIMapper.to_list()</span></code></a></li>
</ul>
Expand Down Expand Up @@ -144,7 +139,7 @@ <h2>Classes<a class="headerlink" href="#classes" title="Link to this heading">
<table class="autosummary longtable docutils align-default">
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="#owlapy.owlapi_mapper.OWLAPIMapper" title="owlapy.owlapi_mapper.OWLAPIMapper"><code class="xref py py-obj docutils literal notranslate"><span class="pre">OWLAPIMapper</span></code></a></p></td>
<td><p></p></td>
<td><p>A bridge between owlapy and owlapi owl-related classes.</p></td>
</tr>
</tbody>
</table>
Expand All @@ -154,7 +149,7 @@ <h2>Functions<a class="headerlink" href="#functions" title="Link to this heading
<table class="autosummary longtable docutils align-default">
<tbody>
<tr class="row-odd"><td><p><a class="reference internal" href="#owlapy.owlapi_mapper.init" title="owlapy.owlapi_mapper.init"><code class="xref py py-obj docutils literal notranslate"><span class="pre">init</span></code></a>(the_class)</p></td>
<td><p></p></td>
<td><p>Since classes names in owlapi and owlapy are pretty much similar with the small difference that in owlapi they</p></td>
</tr>
</tbody>
</table>
Expand All @@ -164,36 +159,15 @@ <h2>Module Contents<a class="headerlink" href="#module-contents" title="Link to
<dl class="py function">
<dt class="sig sig-object py" id="owlapy.owlapi_mapper.init">
<span class="sig-prename descclassname"><span class="pre">owlapy.owlapi_mapper.</span></span><span class="sig-name descname"><span class="pre">init</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">the_class</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../../_modules/owlapy/owlapi_mapper.html#init"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#owlapy.owlapi_mapper.init" title="Link to this definition"></a></dt>
<dd></dd></dl>
<dd><p>Since classes names in owlapi and owlapy are pretty much similar with the small difference that in owlapi they
usually have the ‘Impl’ part then we can create the mapping class name dynamically reducing the amount of code
significantly. That’s what this method does.</p>
</dd></dl>

<dl class="py class">
<dt class="sig sig-object py" id="owlapy.owlapi_mapper.OWLAPIMapper">
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">owlapy.owlapi_mapper.</span></span><span class="sig-name descname"><span class="pre">OWLAPIMapper</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">ontology</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">_SO</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../../_modules/owlapy/owlapi_mapper.html#OWLAPIMapper"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#owlapy.owlapi_mapper.OWLAPIMapper" title="Link to this definition"></a></dt>
<dd><dl class="py attribute">
<dt class="sig sig-object py" id="owlapy.owlapi_mapper.OWLAPIMapper.manager">
<span class="sig-name descname"><span class="pre">manager</span></span><a class="headerlink" href="#owlapy.owlapi_mapper.OWLAPIMapper.manager" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="owlapy.owlapi_mapper.OWLAPIMapper.ontology">
<span class="sig-name descname"><span class="pre">ontology</span></span><a class="headerlink" href="#owlapy.owlapi_mapper.OWLAPIMapper.ontology" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="owlapy.owlapi_mapper.OWLAPIMapper.namespace">
<span class="sig-name descname"><span class="pre">namespace</span></span><a class="headerlink" href="#owlapy.owlapi_mapper.OWLAPIMapper.namespace" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="owlapy.owlapi_mapper.OWLAPIMapper.parser">
<span class="sig-name descname"><span class="pre">parser</span></span><a class="headerlink" href="#owlapy.owlapi_mapper.OWLAPIMapper.parser" title="Link to this definition"></a></dt>
<dd></dd></dl>

<dl class="py attribute">
<dt class="sig sig-object py" id="owlapy.owlapi_mapper.OWLAPIMapper.renderer">
<span class="sig-name descname"><span class="pre">renderer</span></span><a class="headerlink" href="#owlapy.owlapi_mapper.OWLAPIMapper.renderer" title="Link to this definition"></a></dt>
<dd></dd></dl>

<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">owlapy.owlapi_mapper.</span></span><span class="sig-name descname"><span class="pre">OWLAPIMapper</span></span><a class="reference internal" href="../../../_modules/owlapy/owlapi_mapper.html#OWLAPIMapper"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#owlapy.owlapi_mapper.OWLAPIMapper" title="Link to this definition"></a></dt>
<dd><p>A bridge between owlapy and owlapi owl-related classes.</p>
<dl class="py method">
<dt class="sig sig-object py" id="owlapy.owlapi_mapper.OWLAPIMapper.map_">
<span class="sig-name descname"><span class="pre">map_</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">e</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../../../_modules/owlapy/owlapi_mapper.html#OWLAPIMapper.map_"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#owlapy.owlapi_mapper.OWLAPIMapper.map_" title="Link to this definition"></a></dt>
Expand Down
16 changes: 2 additions & 14 deletions genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -2086,11 +2086,7 @@ <h2 id="M">M</h2>
<li><a href="autoapi/run/index.html#run.main">main() (in module run)</a>
</li>
<li><a href="autoapi/owlapy/owl_ontology/index.html#owlapy.owl_ontology.SyncOntology.manager">manager (owlapy.owl_ontology.SyncOntology attribute)</a>

<ul>
<li><a href="autoapi/owlapy/owlapi_mapper/index.html#owlapy.owlapi_mapper.OWLAPIMapper.manager">(owlapy.owlapi_mapper.OWLAPIMapper attribute)</a>
</li>
</ul></li>
<li><a href="autoapi/owlapy/parser/index.html#owlapy.parser.MANCHESTER_GRAMMAR">MANCHESTER_GRAMMAR (in module owlapy.parser)</a>
</li>
<li><a href="autoapi/owlapy/index.html#owlapy.manchester_to_owl_expression">manchester_to_owl_expression() (in module owlapy)</a>
Expand Down Expand Up @@ -2291,8 +2287,6 @@ <h2 id="N">N</h2>
<li><a href="autoapi/owlapy/owl_axiom/index.html#owlapy.owl_axiom.OWLEquivalentClassesAxiom.named_classes">named_classes() (owlapy.owl_axiom.OWLEquivalentClassesAxiom method)</a>
</li>
<li><a href="autoapi/owlapy/converter/index.html#owlapy.converter.Owl2SparqlConverter.named_individuals">named_individuals (owlapy.converter.Owl2SparqlConverter attribute)</a>
</li>
<li><a href="autoapi/owlapy/owlapi_mapper/index.html#owlapy.owlapi_mapper.OWLAPIMapper.namespace">namespace (owlapy.owlapi_mapper.OWLAPIMapper attribute)</a>
</li>
<li><a href="autoapi/owlapy/namespaces/index.html#owlapy.namespaces.Namespaces">Namespaces (class in owlapy.namespaces)</a>
</li>
Expand Down Expand Up @@ -2429,8 +2423,6 @@ <h2 id="O">O</h2>
<li><a href="autoapi/owlapy/owl_hierarchy/index.html#owlapy.owl_hierarchy.ObjectPropertyHierarchy">ObjectPropertyHierarchy (class in owlapy.owl_hierarchy)</a>
</li>
<li><a href="autoapi/owlapy/owl_ontology/index.html#owlapy.owl_ontology.Ontology">Ontology (class in owlapy.owl_ontology)</a>
</li>
<li><a href="autoapi/owlapy/owlapi_mapper/index.html#owlapy.owlapi_mapper.OWLAPIMapper.ontology">ontology (owlapy.owlapi_mapper.OWLAPIMapper attribute)</a>
</li>
<li><a href="autoapi/owlapy/index.html#owlapy.OntologyManager">OntologyManager (class in owlapy)</a>

Expand Down Expand Up @@ -3222,16 +3214,14 @@ <h2 id="P">P</h2>
<li><a href="autoapi/owlapy/owl_literal/index.html#owlapy.owl_literal.OWLLiteral.parse_gyear">parse_gyear() (owlapy.owl_literal.OWLLiteral method)</a>
</li>
<li><a href="autoapi/owlapy/owl_literal/index.html#owlapy.owl_literal.OWLLiteral.parse_gyearmonth">parse_gyearmonth() (owlapy.owl_literal.OWLLiteral method)</a>
</li>
<li><a href="autoapi/owlapy/owl_literal/index.html#owlapy.owl_literal.OWLLiteral.parse_integer">parse_integer() (owlapy.owl_literal.OWLLiteral method)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="autoapi/owlapy/owl_literal/index.html#owlapy.owl_literal.OWLLiteral.parse_integer">parse_integer() (owlapy.owl_literal.OWLLiteral method)</a>
</li>
<li><a href="autoapi/owlapy/owl_literal/index.html#owlapy.owl_literal.OWLLiteral.parse_string">parse_string() (owlapy.owl_literal.OWLLiteral method)</a>
</li>
<li><a href="autoapi/owlapy/owl_literal/index.html#owlapy.owl_literal.OWLLiteral.parse_time">parse_time() (owlapy.owl_literal.OWLLiteral method)</a>
</li>
<li><a href="autoapi/owlapy/owlapi_mapper/index.html#owlapy.owlapi_mapper.OWLAPIMapper.parser">parser (owlapy.owlapi_mapper.OWLAPIMapper attribute)</a>
</li>
<li><a href="autoapi/owlapy/owl_ontology/index.html#owlapy.owl_ontology.SyncOntology.path">path (owlapy.owl_ontology.SyncOntology attribute)</a>
</li>
Expand Down Expand Up @@ -3317,8 +3307,6 @@ <h2 id="R">R</h2>
</ul></li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="autoapi/owlapy/owlapi_mapper/index.html#owlapy.owlapi_mapper.OWLAPIMapper.renderer">renderer (owlapy.owlapi_mapper.OWLAPIMapper attribute)</a>
</li>
<li><a href="autoapi/owlapy/owl_reasoner/index.html#owlapy.owl_reasoner.StructuralReasoner.reset">reset() (owlapy.owl_reasoner.StructuralReasoner method)</a>
</li>
<li><a href="autoapi/owlapy/owl_reasoner/index.html#owlapy.owl_reasoner.StructuralReasoner.reset_and_disable_cache">reset_and_disable_cache() (owlapy.owl_reasoner.StructuralReasoner method)</a>
Expand Down
Binary file modified objects.inv
Binary file not shown.
Binary file modified owlapy.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit f6aa799

Please sign in to comment.