Skip to content

Commit

Permalink
Deploying to gh-pages from @ 16e4beb 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed Oct 1, 2024
1 parent a70847b commit f6bbc8f
Show file tree
Hide file tree
Showing 3,330 changed files with 80,192 additions and 11,350 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
23 changes: 21 additions & 2 deletions _modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<script src="../_static/jquery.js?v=5d32c60e"></script>
<script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../_static/documentation_options.js?v=5929fcd5"></script>
<script src="../_static/doctools.js?v=888ff710"></script>
<script src="../_static/doctools.js?v=9a2dae69"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../_static/copybutton.js?v=046fa432"></script>
Expand Down Expand Up @@ -82,12 +82,30 @@
<div itemprop="articleBody">

<h1>All modules for which code is available</h1>
<ul><li><a href="oaklib/datamodels/search.html">oaklib.datamodels.search</a></li>
<ul><li><a href="oaklib/converters/data_model_converter.html">oaklib.converters.data_model_converter</a></li>
<li><a href="oaklib/converters/obo_graph_to_cx_converter.html">oaklib.converters.obo_graph_to_cx_converter</a></li>
<li><a href="oaklib/converters/obo_graph_to_fhir_converter.html">oaklib.converters.obo_graph_to_fhir_converter</a></li>
<li><a href="oaklib/converters/obo_graph_to_obo_format_converter.html">oaklib.converters.obo_graph_to_obo_format_converter</a></li>
<li><a href="oaklib/datamodels/search.html">oaklib.datamodels.search</a></li>
<li><a href="oaklib/datamodels/text_annotator.html">oaklib.datamodels.text_annotator</a></li>
<li><a href="oaklib/implementations/aggregator/aggregator_implementation.html">oaklib.implementations.aggregator.aggregator_implementation</a></li>
<li><a href="oaklib/implementations/funowl/funowl_implementation.html">oaklib.implementations.funowl.funowl_implementation</a></li>
<li><a href="oaklib/implementations/gilda.html">oaklib.implementations.gilda</a></li>
<li><a href="oaklib/implementations/obograph/obograph_implementation.html">oaklib.implementations.obograph.obograph_implementation</a></li>
<li><a href="oaklib/implementations/ols/ols_implementation.html">oaklib.implementations.ols.ols_implementation</a></li>
<li><a href="oaklib/implementations/ontobee/ontobee_implementation.html">oaklib.implementations.ontobee.ontobee_implementation</a></li>
<li><a href="oaklib/implementations/owlery/owlery_implementation.html">oaklib.implementations.owlery.owlery_implementation</a></li>
<li><a href="oaklib/implementations/pantherdb/pantherdb_implementation.html">oaklib.implementations.pantherdb.pantherdb_implementation</a></li>
<li><a href="oaklib/implementations/pronto/pronto_implementation.html">oaklib.implementations.pronto.pronto_implementation</a></li>
<li><a href="oaklib/implementations/simpleobo/simple_obo_implementation.html">oaklib.implementations.simpleobo.simple_obo_implementation</a></li>
<li><a href="oaklib/implementations/sparql/sparql_implementation.html">oaklib.implementations.sparql.sparql_implementation</a></li>
<li><a href="oaklib/implementations/sqldb/sql_implementation.html">oaklib.implementations.sqldb.sql_implementation</a></li>
<li><a href="oaklib/implementations/ubergraph/ubergraph_implementation.html">oaklib.implementations.ubergraph.ubergraph_implementation</a></li>
<li><a href="oaklib/interfaces/association_provider_interface.html">oaklib.interfaces.association_provider_interface</a></li>
<li><a href="oaklib/interfaces/basic_ontology_interface.html">oaklib.interfaces.basic_ontology_interface</a></li>
<li><a href="oaklib/interfaces/class_enrichment_calculation_interface.html">oaklib.interfaces.class_enrichment_calculation_interface</a></li>
<li><a href="oaklib/interfaces/differ_interface.html">oaklib.interfaces.differ_interface</a></li>
<li><a href="oaklib/interfaces/dumper_interface.html">oaklib.interfaces.dumper_interface</a></li>
<li><a href="oaklib/interfaces/mapping_provider_interface.html">oaklib.interfaces.mapping_provider_interface</a></li>
<li><a href="oaklib/interfaces/obograph_interface.html">oaklib.interfaces.obograph_interface</a></li>
<li><a href="oaklib/interfaces/owl_interface.html">oaklib.interfaces.owl_interface</a></li>
Expand All @@ -99,6 +117,7 @@ <h1>All modules for which code is available</h1>
<li><a href="oaklib/interfaces/summary_statistics_interface.html">oaklib.interfaces.summary_statistics_interface</a></li>
<li><a href="oaklib/interfaces/text_annotator_interface.html">oaklib.interfaces.text_annotator_interface</a></li>
<li><a href="oaklib/interfaces/validator_interface.html">oaklib.interfaces.validator_interface</a></li>
<li><a href="oaklib/selector.html">oaklib.selector</a></li>
<li><a href="semsql/sqla/semsql.html">semsql.sqla.semsql</a></li>
</ul>

Expand Down
178 changes: 178 additions & 0 deletions _modules/oaklib/converters/data_model_converter.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>oaklib.converters.data_model_converter &mdash; oaklib documentation</title>
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/copybutton.css" type="text/css" />
<!--[if lt IE 9]>
<script src="../../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script src="../../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../../_static/documentation_options.js?v=5929fcd5"></script>
<script src="../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../../_static/copybutton.js?v=046fa432"></script>
<script src="https://unpkg.com/mermaid@9.4.0/dist/mermaid.min.js"></script>
<script>mermaid.initialize({startOnLoad:true});</script>
<script src="../../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
</head>

<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >



<a href="../../../index.html" class="icon icon-home">
oaklib
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../introduction.html">Introduction</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../intro/index.html">Tutorial</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guide/index.html">The OAK Guide</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../packages/index.html">OAK Library Documentation</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../cli.html">Command Line</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../datamodels/index.html">Datamodels</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../howtos/index.html">How-To Guides</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../notebooks.html">Jupyter Notebooks</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../glossary.html">Glossary</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../faq/index.html">FAQ</a></li>
</ul>

</div>
</div>
</nav>

<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../index.html">oaklib</a>
</nav>

<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<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">oaklib.converters.data_model_converter</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<h1>Source code for oaklib.converters.data_model_converter</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">ABC</span><span class="p">,</span> <span class="n">abstractmethod</span>
<span class="kn">from</span> <span class="nn">dataclasses</span> <span class="kn">import</span> <span class="n">dataclass</span>
<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Callable</span><span class="p">,</span> <span class="n">Optional</span>

<span class="kn">import</span> <span class="nn">curies</span>

<span class="kn">from</span> <span class="nn">oaklib.datamodels.ontology_metadata</span> <span class="kn">import</span> <span class="n">Any</span>
<span class="kn">from</span> <span class="nn">oaklib.types</span> <span class="kn">import</span> <span class="n">CURIE</span>


<div class="viewcode-block" id="DataModelConverter">
<a class="viewcode-back" href="../../../packages/converters/data-model-converter.html#oaklib.converters.data_model_converter.DataModelConverter">[docs]</a>
<span class="nd">@dataclass</span><span class="p">(</span><span class="n">eq</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span>
<span class="k">class</span> <span class="nc">DataModelConverter</span><span class="p">(</span><span class="n">ABC</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Base class for all inter-data model converters.</span>

<span class="sd"> Do not use this directly: use one of the subclasses.</span>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="n">curie_converter</span><span class="p">:</span> <span class="n">curies</span><span class="o">.</span><span class="n">Converter</span> <span class="o">=</span> <span class="kc">None</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Converts between CURIEs and URIs&quot;&quot;&quot;</span>

<span class="n">labeler</span><span class="p">:</span> <span class="n">Callable</span><span class="p">[[</span><span class="n">CURIE</span><span class="p">],</span> <span class="n">Optional</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="w"> </span><span class="sd">&quot;&quot;&quot;A function that returns a label for a given CURIE&quot;&quot;&quot;</span>

<span class="n">enforce_canonical_ordering</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">bool</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;If True, will enforce canonical ordering of keys in the output&quot;&quot;&quot;</span>

<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="nb">str</span><span class="p">(</span><span class="bp">self</span><span class="p">))</span>

<div class="viewcode-block" id="DataModelConverter.convert">
<a class="viewcode-back" href="../../../packages/converters/data-model-converter.html#oaklib.converters.data_model_converter.DataModelConverter.convert">[docs]</a>
<span class="nd">@abstractmethod</span>
<span class="k">def</span> <span class="nf">convert</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">source</span><span class="p">:</span> <span class="n">Any</span><span class="p">,</span> <span class="n">target</span><span class="p">:</span> <span class="n">Any</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Any</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Converts from a source object to a target object.</span>

<span class="sd"> Individual subclasses will map this to a specific subtype.</span>

<span class="sd"> :param source:</span>
<span class="sd"> :param target: Optional. If passed, modified in place</span>
<span class="sd"> :param kwargs: Additional arguments</span>
<span class="sd"> :return:</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">raise</span> <span class="ne">NotImplementedError</span></div>


<div class="viewcode-block" id="DataModelConverter.dump">
<a class="viewcode-back" href="../../../packages/converters/data-model-converter.html#oaklib.converters.data_model_converter.DataModelConverter.dump">[docs]</a>
<span class="nd">@abstractmethod</span>
<span class="k">def</span> <span class="nf">dump</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">source</span><span class="p">:</span> <span class="n">Any</span><span class="p">,</span> <span class="n">target</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">**</span><span class="n">kwargs</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Dumps a source object to a target file.</span>

<span class="sd"> :param source:</span>
<span class="sd"> :param target:</span>
<span class="sd"> :return:</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">raise</span> <span class="ne">NotImplementedError</span></div>
</div>

</pre></div>

</div>
</div>
<footer>

<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2022-2024, OAK developers.</p>
</div>

Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.


</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>

</body>
</html>
Loading

0 comments on commit f6bbc8f

Please sign in to comment.