Skip to content

Commit

Permalink
deploy: dd0cb6f
Browse files Browse the repository at this point in the history
  • Loading branch information
Demirrr committed Apr 9, 2024
1 parent 7904622 commit 0b259da
Show file tree
Hide file tree
Showing 47 changed files with 1,516 additions and 629 deletions.
2 changes: 1 addition & 1 deletion _modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ <h1>All modules for which code is available</h1>
<li><a href="owlapy/class_expression/class_expression.html">owlapy.class_expression.class_expression</a></li>
<li><a href="owlapy/class_expression/nary_boolean_expression.html">owlapy.class_expression.nary_boolean_expression</a></li>
<li><a href="owlapy/class_expression/owl_class.html">owlapy.class_expression.owl_class</a></li>
<li><a href="owlapy/data_ranges.html">owlapy.data_ranges</a></li>
<li><a href="owlapy/has.html">owlapy.has</a></li>
<li><a href="owlapy/iri.html">owlapy.iri</a></li>
<li><a href="owlapy/meta_classes.html">owlapy.meta_classes</a></li>
Expand All @@ -88,7 +89,6 @@ <h1>All modules for which code is available</h1>
<li><a href="owlapy/owl2sparql/converter.html">owlapy.owl2sparql.converter</a></li>
<li><a href="owlapy/owl_annotation.html">owlapy.owl_annotation</a></li>
<li><a href="owlapy/owl_axiom.html">owlapy.owl_axiom</a></li>
<li><a href="owlapy/owl_class_expression.html">owlapy.owl_class_expression</a></li>
<li><a href="owlapy/owl_individual.html">owlapy.owl_individual</a></li>
<li><a href="owlapy/owl_literal.html">owlapy.owl_literal</a></li>
<li><a href="owlapy/owl_property.html">owlapy.owl_property</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>owlapy.owl_class_expression &mdash; OWLAPY 0.1.2 documentation</title>
<title>owlapy.data_ranges &mdash; OWLAPY 0.1.2 documentation</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=8775fe07" />
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
<link rel="stylesheet" type="text/css" href="../../_static/graphviz.css?v=eafc0fe6" />
Expand Down Expand Up @@ -66,7 +66,7 @@
<ul class="wy-breadcrumbs">
<li><a href="../../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="../index.html">Module code</a></li>
<li class="breadcrumb-item active">owlapy.owl_class_expression</li>
<li class="breadcrumb-item active">owlapy.data_ranges</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
Expand All @@ -75,17 +75,18 @@
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<h1>Source code for owlapy.owl_class_expression</h1><div class="highlight"><pre>
<h1>Source code for owlapy.data_ranges</h1><div class="highlight"><pre>
<span></span><span class="kn">from</span> <span class="nn">abc</span> <span class="kn">import</span> <span class="n">abstractmethod</span><span class="p">,</span> <span class="n">ABCMeta</span>
<span class="kn">from</span> <span class="nn">.owlobject</span> <span class="kn">import</span> <span class="n">OWLObject</span><span class="p">,</span> <span class="n">OWLEntity</span>
<span class="kn">from</span> <span class="nn">.meta_classes</span> <span class="kn">import</span> <span class="n">HasOperands</span>
<span class="kn">from</span> <span class="nn">..owlobject</span> <span class="kn">import</span> <span class="n">OWLObject</span><span class="p">,</span> <span class="n">OWLEntity</span>
<span class="kn">from</span> <span class="nn">..meta_classes</span> <span class="kn">import</span> <span class="n">HasOperands</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Final</span><span class="p">,</span> <span class="n">Iterable</span><span class="p">,</span> <span class="n">Sequence</span>
<span class="kn">from</span> <span class="nn">.ranges</span> <span class="kn">import</span> <span class="n">OWLPropertyRange</span><span class="p">,</span> <span class="n">OWLDataRange</span>
<span class="kn">from</span> <span class="nn">.owl_literal</span> <span class="kn">import</span> <span class="n">OWLLiteral</span>
<span class="kn">from</span> <span class="nn">..ranges</span> <span class="kn">import</span> <span class="n">OWLPropertyRange</span><span class="p">,</span> <span class="n">OWLDataRange</span>
<span class="kn">from</span> <span class="nn">..owl_literal</span> <span class="kn">import</span> <span class="n">OWLLiteral</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Final</span><span class="p">,</span> <span class="n">Sequence</span><span class="p">,</span> <span class="n">Union</span><span class="p">,</span> <span class="n">Iterable</span>
<span class="kn">from</span> <span class="nn">.iri</span> <span class="kn">import</span> <span class="n">IRI</span>
<span class="kn">from</span> <span class="nn">..iri</span> <span class="kn">import</span> <span class="n">IRI</span>

<div class="viewcode-block" id="OWLDataComplementOf">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_class_expression/index.html#owlapy.owl_class_expression.OWLDataComplementOf">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/data_ranges/index.html#owlapy.data_ranges.OWLDataComplementOf">[docs]</a>
<span class="k">class</span> <span class="nc">OWLDataComplementOf</span><span class="p">(</span><span class="n">OWLDataRange</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Represents DataComplementOf in the OWL 2 Specification.&quot;&quot;&quot;</span>
<span class="n">type_index</span><span class="p">:</span> <span class="n">Final</span> <span class="o">=</span> <span class="mi">4002</span>
Expand All @@ -100,7 +101,7 @@ <h1>Source code for owlapy.owl_class_expression</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">_data_range</span> <span class="o">=</span> <span class="n">data_range</span>

<div class="viewcode-block" id="OWLDataComplementOf.get_data_range">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_class_expression/index.html#owlapy.owl_class_expression.OWLDataComplementOf.get_data_range">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/data_ranges/index.html#owlapy.data_ranges.OWLDataComplementOf.get_data_range">[docs]</a>
<span class="k">def</span> <span class="nf">get_data_range</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">OWLDataRange</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Returns:</span>
Expand All @@ -110,28 +111,28 @@ <h1>Source code for owlapy.owl_class_expression</h1><div class="highlight"><pre>


<div class="viewcode-block" id="OWLDataComplementOf.__repr__">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_class_expression/index.html#owlapy.owl_class_expression.OWLDataComplementOf.__repr__">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/data_ranges/index.html#owlapy.data_ranges.OWLDataComplementOf.__repr__">[docs]</a>
<span class="k">def</span> <span class="fm">__repr__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="k">return</span> <span class="sa">f</span><span class="s2">&quot;OWLDataComplementOf(</span><span class="si">{</span><span class="nb">repr</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_data_range</span><span class="p">)</span><span class="si">}</span><span class="s2">)&quot;</span></div>


<div class="viewcode-block" id="OWLDataComplementOf.__eq__">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_class_expression/index.html#owlapy.owl_class_expression.OWLDataComplementOf.__eq__">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/data_ranges/index.html#owlapy.data_ranges.OWLDataComplementOf.__eq__">[docs]</a>
<span class="k">def</span> <span class="fm">__eq__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">other</span><span class="p">):</span>
<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">other</span><span class="p">)</span> <span class="ow">is</span> <span class="nb">type</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">_data_range</span> <span class="o">==</span> <span class="n">other</span><span class="o">.</span><span class="n">_data_range</span>
<span class="k">return</span> <span class="bp">NotImplemented</span></div>


<div class="viewcode-block" id="OWLDataComplementOf.__hash__">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_class_expression/index.html#owlapy.owl_class_expression.OWLDataComplementOf.__hash__">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/data_ranges/index.html#owlapy.data_ranges.OWLDataComplementOf.__hash__">[docs]</a>
<span class="k">def</span> <span class="fm">__hash__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="k">return</span> <span class="nb">hash</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_data_range</span><span class="p">)</span></div>
</div>


<div class="viewcode-block" id="OWLNaryDataRange">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_class_expression/index.html#owlapy.owl_class_expression.OWLNaryDataRange">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/data_ranges/index.html#owlapy.data_ranges.OWLNaryDataRange">[docs]</a>
<span class="k">class</span> <span class="nc">OWLNaryDataRange</span><span class="p">(</span><span class="n">OWLDataRange</span><span class="p">,</span> <span class="n">HasOperands</span><span class="p">[</span><span class="n">OWLDataRange</span><span class="p">]):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;OWLNaryDataRange.&quot;&quot;&quot;</span>
<span class="vm">__slots__</span> <span class="o">=</span> <span class="p">()</span>
Expand All @@ -146,35 +147,35 @@ <h1>Source code for owlapy.owl_class_expression</h1><div class="highlight"><pre>
<span class="bp">self</span><span class="o">.</span><span class="n">_operands</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">(</span><span class="n">operands</span><span class="p">)</span>

<div class="viewcode-block" id="OWLNaryDataRange.operands">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_class_expression/index.html#owlapy.owl_class_expression.OWLNaryDataRange.operands">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/data_ranges/index.html#owlapy.data_ranges.OWLNaryDataRange.operands">[docs]</a>
<span class="k">def</span> <span class="nf">operands</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Iterable</span><span class="p">[</span><span class="n">OWLDataRange</span><span class="p">]:</span>
<span class="c1"># documented in parent</span>
<span class="k">yield from</span> <span class="bp">self</span><span class="o">.</span><span class="n">_operands</span></div>


<div class="viewcode-block" id="OWLNaryDataRange.__repr__">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_class_expression/index.html#owlapy.owl_class_expression.OWLNaryDataRange.__repr__">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/data_ranges/index.html#owlapy.data_ranges.OWLNaryDataRange.__repr__">[docs]</a>
<span class="k">def</span> <span class="fm">__repr__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="k">return</span> <span class="sa">f</span><span class="s1">&#39;</span><span class="si">{</span><span class="nb">type</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="vm">__name__</span><span class="si">}</span><span class="s1">(</span><span class="si">{</span><span class="nb">repr</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_operands</span><span class="p">)</span><span class="si">}</span><span class="s1">)&#39;</span></div>


<div class="viewcode-block" id="OWLNaryDataRange.__eq__">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_class_expression/index.html#owlapy.owl_class_expression.OWLNaryDataRange.__eq__">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/data_ranges/index.html#owlapy.data_ranges.OWLNaryDataRange.__eq__">[docs]</a>
<span class="k">def</span> <span class="fm">__eq__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">other</span><span class="p">):</span>
<span class="k">if</span> <span class="nb">type</span><span class="p">(</span><span class="n">other</span><span class="p">)</span> <span class="o">==</span> <span class="nb">type</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">_operands</span> <span class="o">==</span> <span class="n">other</span><span class="o">.</span><span class="n">_operands</span>
<span class="k">return</span> <span class="bp">NotImplemented</span></div>


<div class="viewcode-block" id="OWLNaryDataRange.__hash__">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_class_expression/index.html#owlapy.owl_class_expression.OWLNaryDataRange.__hash__">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/data_ranges/index.html#owlapy.data_ranges.OWLNaryDataRange.__hash__">[docs]</a>
<span class="k">def</span> <span class="fm">__hash__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="k">return</span> <span class="nb">hash</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_operands</span><span class="p">)</span></div>
</div>


<div class="viewcode-block" id="OWLDataUnionOf">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_class_expression/index.html#owlapy.owl_class_expression.OWLDataUnionOf">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/data_ranges/index.html#owlapy.data_ranges.OWLDataUnionOf">[docs]</a>
<span class="k">class</span> <span class="nc">OWLDataUnionOf</span><span class="p">(</span><span class="n">OWLNaryDataRange</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Represents a DataUnionOf data range in the OWL 2 Specification.&quot;&quot;&quot;</span>
<span class="vm">__slots__</span> <span class="o">=</span> <span class="s1">&#39;_operands&#39;</span>
Expand All @@ -184,7 +185,7 @@ <h1>Source code for owlapy.owl_class_expression</h1><div class="highlight"><pre>


<div class="viewcode-block" id="OWLDataIntersectionOf">
<a class="viewcode-back" href="../../autoapi/owlapy/owl_class_expression/index.html#owlapy.owl_class_expression.OWLDataIntersectionOf">[docs]</a>
<a class="viewcode-back" href="../../autoapi/owlapy/data_ranges/index.html#owlapy.data_ranges.OWLDataIntersectionOf">[docs]</a>
<span class="k">class</span> <span class="nc">OWLDataIntersectionOf</span><span class="p">(</span><span class="n">OWLNaryDataRange</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Represents DataIntersectionOf in the OWL 2 Specification.&quot;&quot;&quot;</span>
<span class="vm">__slots__</span> <span class="o">=</span> <span class="s1">&#39;_operands&#39;</span>
Expand Down
Loading

0 comments on commit 0b259da

Please sign in to comment.