Skip to content

Commit

Permalink
deploy: 05ce175
Browse files Browse the repository at this point in the history
  • Loading branch information
jsimonclark committed Jan 29, 2024
1 parent 32df2f6 commit 49ff95d
Show file tree
Hide file tree
Showing 22 changed files with 669 additions and 1 deletion.

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions _sphinx_design_static/design-tabs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
var sd_labels_by_text = {};

function ready() {
const li = document.getElementsByClassName("sd-tab-label");
for (const label of li) {
syncId = label.getAttribute("data-sync-id");
if (syncId) {
label.onclick = onLabelClick;
if (!sd_labels_by_text[syncId]) {
sd_labels_by_text[syncId] = [];
}
sd_labels_by_text[syncId].push(label);
}
}
}

function onLabelClick() {
// Activate other inputs with the same sync id.
syncId = this.getAttribute("data-sync-id");
for (label of sd_labels_by_text[syncId]) {
if (label === this) continue;
label.previousElementSibling.checked = true;
}
window.localStorage.setItem("sphinx-design-last-tab", syncId);
}

document.addEventListener("DOMContentLoaded", ready, false);

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions _static/design-tabs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
var sd_labels_by_text = {};

function ready() {
const li = document.getElementsByClassName("sd-tab-label");
for (const label of li) {
syncId = label.getAttribute("data-sync-id");
if (syncId) {
label.onclick = onLabelClick;
if (!sd_labels_by_text[syncId]) {
sd_labels_by_text[syncId] = [];
}
sd_labels_by_text[syncId].push(label);
}
}
}

function onLabelClick() {
// Activate other inputs with the same sync id.
syncId = this.getAttribute("data-sync-id");
for (label of sd_labels_by_text[syncId]) {
if (label === this) continue;
label.previousElementSibling.checked = true;
}
window.localStorage.setItem("sphinx-design-last-tab", syncId);
}

document.addEventListener("DOMContentLoaded", ready, false);
2 changes: 2 additions & 0 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.1.2/webfonts/fa-regular-400.woff2" />

<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css" />
<link rel="stylesheet" type="text/css" href="_static/css/custom.css" />

<!-- Pre-loaded scripts that we'll load fully later -->
Expand All @@ -42,6 +43,7 @@
<script src="_static/_sphinx_javascript_frameworks_compat.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/sphinx_highlight.js"></script>
<script src="_static/design-tabs.js"></script>
<script>DOCUMENTATION_OPTIONS.pagename = 'about';</script>
<link rel="shortcut icon" href="_static/battinfologo.ico"/>
<link rel="author" title="About these documents" href="#" />
Expand Down
2 changes: 2 additions & 0 deletions battinfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.1.2/webfonts/fa-regular-400.woff2" />

<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css" />
<link rel="stylesheet" type="text/css" href="_static/css/custom.css" />

<!-- Pre-loaded scripts that we'll load fully later -->
Expand All @@ -42,6 +43,7 @@
<script src="_static/_sphinx_javascript_frameworks_compat.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/sphinx_highlight.js"></script>
<script src="_static/design-tabs.js"></script>
<script>DOCUMENTATION_OPTIONS.pagename = 'battinfo';</script>
<link rel="shortcut icon" href="_static/battinfologo.ico"/>
<link rel="author" title="About these documents" href="about.html" />
Expand Down
2 changes: 2 additions & 0 deletions contribute.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.1.2/webfonts/fa-regular-400.woff2" />

<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css" />
<link rel="stylesheet" type="text/css" href="_static/css/custom.css" />

<!-- Pre-loaded scripts that we'll load fully later -->
Expand All @@ -42,6 +43,7 @@
<script src="_static/_sphinx_javascript_frameworks_compat.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/sphinx_highlight.js"></script>
<script src="_static/design-tabs.js"></script>
<script>DOCUMENTATION_OPTIONS.pagename = 'contribute';</script>
<link rel="shortcut icon" href="_static/battinfologo.ico"/>
<link rel="author" title="About these documents" href="about.html" />
Expand Down
29 changes: 29 additions & 0 deletions example_alkaline_electrochemical_cell.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.1.2/webfonts/fa-regular-400.woff2" />

<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css" />
<link rel="stylesheet" type="text/css" href="_static/css/custom.css" />

<!-- Pre-loaded scripts that we'll load fully later -->
Expand All @@ -42,6 +43,7 @@
<script src="_static/_sphinx_javascript_frameworks_compat.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/sphinx_highlight.js"></script>
<script src="_static/design-tabs.js"></script>
<script>DOCUMENTATION_OPTIONS.pagename = 'example_alkaline_electrochemical_cell';</script>
<link rel="shortcut icon" href="_static/battinfologo.ico"/>
<link rel="author" title="About these documents" href="about.html" />
Expand Down Expand Up @@ -360,6 +362,33 @@ <h1>Alkaline Electrochemical Cell<a class="headerlink" href="#alkaline-electroch
<p>In this ontology, an <code class="docutils literal notranslate"><span class="pre">ElectrochemicalCell</span></code> is simply a combination of components in a holistic arrangement (i.e. two electrodes in contact with an electrolyte). Adding a case and terminals to make it a functional device makes it a <code class="docutils literal notranslate"><span class="pre">BatteryCell</span></code> described in the battery domain ontology.</p>
</div>
<p>The JSON-LD description of the material is given below:</p>
<div class="sd-tab-set docutils">
<input checked="checked" id="sd-tab-item-0" name="sd-tab-set-0" type="radio">
</input><label class="sd-tab-label" for="sd-tab-item-0">
JSON</label><div class="sd-tab-content docutils">
<div class="highlight-json notranslate"><div class="highlight"><pre><span></span><span class="linenos"> 1</span><span class="p">{</span>
<span class="linenos"> 2</span><span class="w"> </span><span class="nt">&quot;@context&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;https://raw.githubusercontent.com/emmo-repo/domain-electrochemistry/master/context.json&quot;</span><span class="p">,</span>
<span class="linenos"> 3</span><span class="w"> </span><span class="nt">&quot;@type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;ElectrochemicalCell&quot;</span><span class="p">,</span>
<span class="linenos"> 4</span><span class="w"> </span><span class="nt">&quot;hasNegativeElectrode&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="linenos"> 5</span><span class="w"> </span><span class="nt">&quot;@type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;ZincElectrode&quot;</span>
<span class="linenos"> 6</span><span class="w"> </span><span class="p">},</span>
<span class="linenos"> 7</span><span class="w"> </span><span class="nt">&quot;hasPositiveElectrode&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="linenos"> 8</span><span class="w"> </span><span class="nt">&quot;@type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;ManganeseDioxideElectrode&quot;</span>
<span class="linenos"> 9</span><span class="w"> </span><span class="p">},</span>
<span class="linenos">10</span><span class="w"> </span><span class="nt">&quot;hasElectrolyte&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="linenos">11</span><span class="w"> </span><span class="nt">&quot;@type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;AlkalineElectrolyte&quot;</span>
<span class="linenos">12</span><span class="w"> </span><span class="p">}</span>
<span class="linenos">13</span><span class="p">}</span>
</pre></div>
</div>
</div>
<input id="sd-tab-item-1" name="sd-tab-set-0" type="radio">
</input><label class="sd-tab-label" for="sd-tab-item-1">
JSON-LD Playground</label><div class="sd-tab-content docutils">
<div style="position: relative; padding-top: 56.25%; height: 0;">
<iframe src="https://json-ld.org/playground/#startTab=tab-table&json-ld=%7B%22%40context%22%3A%22https%3A%2F%2Fraw.githubusercontent.com%2Femmo-repo%2Fdomain-electrochemistry%2Fmaster%2Fcontext.json%22%2C%22%40type%22%3A%22ElectrochemicalCell%22%2C%22hasNegativeElectrode%22%3A%7B%22%40type%22%3A%22ZincElectrode%22%7D%2C%22hasPositiveElectrode%22%3A%7B%22%40type%22%3A%22ManganeseDioxideElectrode%22%7D%2C%22hasElectrolyte%22%3A%7B%22%40type%22%3A%22AlkalineElectrolyte%22%7D%7D" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" frameborder="0" allowfullscreen></iframe>
</div></div>
</div>
</section>


Expand Down
52 changes: 52 additions & 0 deletions example_aqueous_electrolyte_KOH.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.1.2/webfonts/fa-regular-400.woff2" />

<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
<link rel="stylesheet" type="text/css" href="_static/design-style.1e8bd061cd6da7fc9cf755528e8ffc24.min.css" />
<link rel="stylesheet" type="text/css" href="_static/css/custom.css" />

<!-- Pre-loaded scripts that we'll load fully later -->
Expand All @@ -42,6 +43,7 @@
<script src="_static/_sphinx_javascript_frameworks_compat.js"></script>
<script src="_static/doctools.js"></script>
<script src="_static/sphinx_highlight.js"></script>
<script src="_static/design-tabs.js"></script>
<script>DOCUMENTATION_OPTIONS.pagename = 'example_aqueous_electrolyte_KOH';</script>
<link rel="shortcut icon" href="_static/battinfologo.ico"/>
<link rel="author" title="About these documents" href="about.html" />
Expand Down Expand Up @@ -355,6 +357,56 @@
<section id="aqueous-koh-electrolyte">
<h1>Aqueous KOH Electrolyte<a class="headerlink" href="#aqueous-koh-electrolyte" title="Permalink to this heading">#</a></h1>
<p>This example, let’s describe an instance of some aqueous potassium hydroxide (KOH) electrolyte with some properties. The JSON-LD description of the material is given below:</p>
<div class="sd-tab-set docutils">
<input checked="checked" id="sd-tab-item-0" name="sd-tab-set-0" type="radio">
</input><label class="sd-tab-label" for="sd-tab-item-0">
JSON</label><div class="sd-tab-content docutils">
<div class="highlight-json notranslate"><div class="highlight"><pre><span></span><span class="linenos"> 1</span><span class="p">{</span>
<span class="linenos"> 2</span><span class="w"> </span><span class="nt">&quot;@context&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;https://raw.githubusercontent.com/emmo-repo/domain-electrochemistry/master/context.json&quot;</span><span class="p">,</span>
<span class="linenos"> 3</span><span class="w"> </span><span class="nt">&quot;@type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Electrolyte&quot;</span><span class="p">,</span>
<span class="linenos"> 4</span><span class="w"> </span><span class="nt">&quot;hasSolvent&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="linenos"> 5</span><span class="w"> </span><span class="nt">&quot;@type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Water&quot;</span>
<span class="linenos"> 6</span><span class="w"> </span><span class="p">},</span>
<span class="linenos"> 7</span><span class="w"> </span><span class="nt">&quot;hasSolute&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="linenos"> 8</span><span class="w"> </span><span class="nt">&quot;@type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;PotassiumHydroxide&quot;</span><span class="p">,</span>
<span class="linenos"> 9</span><span class="w"> </span><span class="nt">&quot;hasProperty&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="linenos">10</span><span class="w"> </span><span class="nt">&quot;@type&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="s2">&quot;AmountConcentration&quot;</span><span class="p">,</span><span class="w"> </span><span class="s2">&quot;ModelledProperty&quot;</span><span class="p">],</span>
<span class="linenos">11</span><span class="w"> </span><span class="nt">&quot;hasNumericalPart&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="linenos">12</span><span class="w"> </span><span class="nt">&quot;@type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Real&quot;</span><span class="p">,</span>
<span class="linenos">13</span><span class="w"> </span><span class="nt">&quot;hasNumericalValue&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">7</span>
<span class="linenos">14</span><span class="w"> </span><span class="p">},</span>
<span class="linenos">15</span><span class="w"> </span><span class="nt">&quot;hasMeasurementUnit&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;emmo:MolePerLitre&quot;</span>
<span class="linenos">16</span><span class="w"> </span><span class="p">}</span>
<span class="linenos">17</span><span class="w"> </span><span class="p">},</span>
<span class="linenos">18</span><span class="w"> </span><span class="nt">&quot;hasProperty&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">[</span>
<span class="linenos">19</span><span class="w"> </span><span class="p">{</span>
<span class="linenos">20</span><span class="w"> </span><span class="nt">&quot;@type&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="s2">&quot;Density&quot;</span><span class="p">,</span><span class="w"> </span><span class="s2">&quot;MeasuredProperty&quot;</span><span class="p">],</span>
<span class="linenos">21</span><span class="w"> </span><span class="nt">&quot;hasNumericalPart&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="linenos">22</span><span class="w"> </span><span class="nt">&quot;@type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Real&quot;</span><span class="p">,</span>
<span class="linenos">23</span><span class="w"> </span><span class="nt">&quot;hasNumericalValue&quot;</span><span class="p">:</span><span class="w"> </span><span class="mf">1.289</span>
<span class="linenos">24</span><span class="w"> </span><span class="p">},</span>
<span class="linenos">25</span><span class="w"> </span><span class="nt">&quot;hasMeasurementUnit&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;emmo:KilogramPerLitre&quot;</span>
<span class="linenos">26</span><span class="w"> </span><span class="p">},</span>
<span class="linenos">27</span><span class="w"> </span><span class="p">{</span>
<span class="linenos">28</span><span class="w"> </span><span class="nt">&quot;@type&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="s2">&quot;IonicConductivity&quot;</span><span class="p">,</span><span class="w"> </span><span class="s2">&quot;MeasuredProperty&quot;</span><span class="p">],</span>
<span class="linenos">29</span><span class="w"> </span><span class="nt">&quot;hasNumericalPart&quot;</span><span class="p">:</span><span class="w"> </span><span class="p">{</span>
<span class="linenos">30</span><span class="w"> </span><span class="nt">&quot;@type&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;Real&quot;</span><span class="p">,</span>
<span class="linenos">31</span><span class="w"> </span><span class="nt">&quot;hasNumericalValue&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">65</span>
<span class="linenos">32</span><span class="w"> </span><span class="p">},</span>
<span class="linenos">33</span><span class="w"> </span><span class="nt">&quot;hasMeasurementUnit&quot;</span><span class="p">:</span><span class="w"> </span><span class="s2">&quot;emmo:SiemensPerCentiMetre&quot;</span>
<span class="linenos">34</span><span class="w"> </span><span class="p">}</span>
<span class="linenos">35</span><span class="w"> </span><span class="p">]</span>
<span class="linenos">36</span><span class="p">}</span>
</pre></div>
</div>
</div>
<input id="sd-tab-item-1" name="sd-tab-set-0" type="radio">
</input><label class="sd-tab-label" for="sd-tab-item-1">
JSON-LD Playground</label><div class="sd-tab-content docutils">
<div style="position: relative; padding-top: 56.25%; height: 0;">
<iframe src="https://json-ld.org/playground/#startTab=tab-table&json-ld=%7B%22%40context%22%3A%22https%3A%2F%2Fraw.githubusercontent.com%2Femmo-repo%2Fdomain-electrochemistry%2Fmaster%2Fcontext.json%22%2C%22%40type%22%3A%22Electrolyte%22%2C%22hasSolvent%22%3A%7B%22%40type%22%3A%22Water%22%7D%2C%22hasSolute%22%3A%7B%22%40type%22%3A%22PotassiumHydroxide%22%2C%22hasProperty%22%3A%7B%22%40type%22%3A%5B%22AmountConcentration%22%2C%22ModelledProperty%22%5D%2C%22hasNumericalPart%22%3A%7B%22%40type%22%3A%22Real%22%2C%22hasNumericalValue%22%3A7%7D%2C%22hasMeasurementUnit%22%3A%22emmo%3AMolePerLitre%22%7D%7D%2C%22hasProperty%22%3A%5B%7B%22%40type%22%3A%5B%22Density%22%2C%22MeasuredProperty%22%5D%2C%22hasNumericalPart%22%3A%7B%22%40type%22%3A%22Real%22%2C%22hasNumericalValue%22%3A1.289%7D%2C%22hasMeasurementUnit%22%3A%22emmo%3AKilogramPerLitre%22%7D%2C%7B%22%40type%22%3A%5B%22IonicConductivity%22%2C%22MeasuredProperty%22%5D%2C%22hasNumericalPart%22%3A%7B%22%40type%22%3A%22Real%22%2C%22hasNumericalValue%22%3A65%7D%2C%22hasMeasurementUnit%22%3A%22emmo%3ASiemensPerCentiMetre%22%7D%5D%7D" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" frameborder="0" allowfullscreen></iframe>
</div></div>
</div>
<p>This example highlights a few things:</p>
<ol class="arabic simple">
<li><p><strong>EMMO distinguishes properties according to how they were determined.</strong> In this example, a <code class="docutils literal notranslate"><span class="pre">ConventionalProperty</span></code> is a property whose value is assigned by convention (e.g. from a technical specification sheet, handbook, etc.). EMMO also provides terms for <code class="docutils literal notranslate"><span class="pre">MeasuredProperty</span></code> for properties which were actually determined by some measurement and <code class="docutils literal notranslate"><span class="pre">ModelledProperty</span></code> for properties that were obtained from some model.</p></li>
Expand Down
Loading

0 comments on commit 49ff95d

Please sign in to comment.