Skip to content

Commit

Permalink
deploy: df757f0
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed May 3, 2024
1 parent 5f4f004 commit 053bee6
Show file tree
Hide file tree
Showing 18 changed files with 1,380 additions and 1,336 deletions.
Binary file modified .doctrees/environment.pickle
Binary file not shown.
Binary file modified .doctrees/explanations/shapes-and-templates.doctree
Binary file not shown.
Binary file modified .doctrees/guides/generating-queries.doctree
Binary file not shown.
Binary file modified .doctrees/guides/ingress-bacnet-to-brick.doctree
Binary file not shown.
Binary file modified .doctrees/tutorials/model_correction.doctree
Binary file not shown.
Binary file modified .doctrees/tutorials/model_creation.doctree
Binary file not shown.
Binary file modified .doctrees/tutorials/model_validation.doctree
Binary file not shown.
1 change: 1 addition & 0 deletions _modules/buildingmotif/dataclasses/library.html
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,7 @@ <h1>Source code for buildingmotif.dataclasses.library</h1><div class="highlight"
<span class="c1"># check documentation for skip_uri for what URIs get skipped</span>
<span class="k">if</span> <span class="n">skip_uri</span><span class="p">(</span><span class="n">dep</span><span class="p">[</span><span class="s2">&quot;template&quot;</span><span class="p">]):</span>
<span class="k">return</span>

<span class="c1"># if the dependency is not in the local cache, then search through this library&#39;s imports</span>
<span class="c1"># for the template</span>
<span class="k">for</span> <span class="n">imp</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">graph_imports</span><span class="p">:</span>
Expand Down
2 changes: 1 addition & 1 deletion _modules/buildingmotif/dataclasses/validation.html
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ <h1>Source code for buildingmotif.dataclasses.validation</h1><div class="highlig
<span class="k">continue</span>

<span class="n">templ_lists</span> <span class="o">=</span> <span class="p">(</span><span class="n">diff</span><span class="o">.</span><span class="n">resolve</span><span class="p">(</span><span class="n">lib</span><span class="p">)</span> <span class="k">for</span> <span class="n">diff</span> <span class="ow">in</span> <span class="n">diffset</span><span class="p">)</span>
<span class="n">templs</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="nb">filter</span><span class="p">(</span><span class="kc">None</span><span class="p">,</span> <span class="n">chain</span><span class="o">.</span><span class="n">from_iterable</span><span class="p">(</span><span class="n">templ_lists</span><span class="p">)))</span>
<span class="n">templs</span><span class="p">:</span> <span class="n">List</span><span class="p">[</span><span class="n">Template</span><span class="p">]</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="nb">filter</span><span class="p">(</span><span class="kc">None</span><span class="p">,</span> <span class="n">chain</span><span class="o">.</span><span class="n">from_iterable</span><span class="p">(</span><span class="n">templ_lists</span><span class="p">)))</span>
<span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">templs</span><span class="p">)</span> <span class="o">&lt;=</span> <span class="mi">1</span><span class="p">:</span>
<span class="n">templates</span><span class="o">.</span><span class="n">extend</span><span class="p">(</span><span class="n">templs</span><span class="p">)</span>
<span class="k">continue</span>
Expand Down
1 change: 1 addition & 0 deletions _modules/buildingmotif/namespaces.html
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ <h1>Source code for buildingmotif.namespaces</h1><div class="highlight"><pre>

<span class="n">BM</span> <span class="o">=</span> <span class="n">Namespace</span><span class="p">(</span><span class="s2">&quot;https://nrel.gov/BuildingMOTIF#&quot;</span><span class="p">)</span>
<span class="n">CONSTRAINT</span> <span class="o">=</span> <span class="n">Namespace</span><span class="p">(</span><span class="s2">&quot;https://nrel.gov/BuildingMOTIF/constraints#&quot;</span><span class="p">)</span>
<span class="n">S223</span> <span class="o">=</span> <span class="n">Namespace</span><span class="p">(</span><span class="s2">&quot;http://data.ashrae.org/standard223#&quot;</span><span class="p">)</span>

<span class="n">A</span> <span class="o">=</span> <span class="n">RDF</span><span class="o">.</span><span class="n">type</span>

Expand Down
5 changes: 4 additions & 1 deletion _modules/buildingmotif/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,9 @@ <h1>Source code for buildingmotif.utils</h1><div class="highlight"><pre>
<span class="k">for</span> <span class="n">pshape</span> <span class="ow">in</span> <span class="n">pshapes</span><span class="p">:</span>
<span class="n">property_path</span> <span class="o">=</span> <span class="n">shape_graph</span><span class="o">.</span><span class="n">value</span><span class="p">(</span><span class="n">pshape</span><span class="p">,</span> <span class="n">SH</span><span class="p">[</span><span class="s2">&quot;path&quot;</span><span class="p">])</span>
<span class="k">if</span> <span class="n">property_path</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">raise</span> <span class="ne">Exception</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;no sh:path detected on </span><span class="si">{</span><span class="n">shape_name</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>
<span class="k">raise</span> <span class="ne">Exception</span><span class="p">(</span>
<span class="sa">f</span><span class="s2">&quot;no sh:path detected on </span><span class="si">{</span><span class="n">shape_name</span><span class="si">}</span><span class="s2"> property shape </span><span class="si">{</span><span class="n">pshape</span><span class="si">}</span><span class="s2">&quot;</span>
<span class="p">)</span>
<span class="c1"># TODO: expand otypes to include sh:in, sh:or, or no datatype at all!</span>
<span class="n">otypes</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span>
<span class="n">shape_graph</span><span class="o">.</span><span class="n">objects</span><span class="p">(</span>
Expand Down Expand Up @@ -979,6 +981,7 @@ <h1>Source code for buildingmotif.utils</h1><div class="highlight"><pre>
<span class="p">)</span>
<span class="k">pass</span>

<span class="n">data_graph</span> <span class="o">=</span> <span class="n">data_graph</span> <span class="o">+</span> <span class="p">(</span><span class="n">shape_graph</span> <span class="ow">or</span> <span class="n">Graph</span><span class="p">())</span>
<span class="k">return</span> <span class="n">pyshacl</span><span class="o">.</span><span class="n">validate</span><span class="p">(</span>
<span class="n">data_graph</span><span class="p">,</span>
<span class="n">shacl_graph</span><span class="o">=</span><span class="n">shape_graph</span><span class="p">,</span>
Expand Down
44 changes: 22 additions & 22 deletions explanations/shapes-and-templates.html
Original file line number Diff line number Diff line change
Expand Up @@ -611,70 +611,70 @@ <h3>Example<a class="headerlink" href="#example" title="Permalink to this headin
warn(Warning(f&quot;Extra \&quot;{extra_name}\&quot; is not satisfied because requirement {req} is not installed.&quot;))
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,434 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7632 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,629 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7628 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,439 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7628 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,634 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7632 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,443 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7636 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,638 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7634 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,448 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7638 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,642 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7636 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,452 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7630 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,647 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7630 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,457 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7634 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,650 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7638 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,461 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7727 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,655 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7727 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,465 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7723 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,659 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7723 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,469 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7729 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,663 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7725 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,474 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7721 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,667 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7721 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,478 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7725 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,671 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7729 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,484 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7653 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,675 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7587 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,488 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7647 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,680 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7579 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,492 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7651 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,684 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7585 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,496 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7649 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,688 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7581 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,500 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7645 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,692 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7589 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,504 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7581 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,696 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7583 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,509 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7585 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,702 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7645 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,514 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7587 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,707 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7653 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,518 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7579 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,711 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7647 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,522 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7589 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,715 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7651 in libraries []
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-02 20:21:43,526 | root | WARNING: Warning: could not find dependee n6fbbcc9a76994ca897f1f1589a641cccb7583 in libraries []
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-05-03 16:48:14,719 | root | WARNING: Warning: could not find dependee ndb28ded5430845419a4d2d2921ab9e98b7649 in libraries []
</pre></div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions guides/generating-queries.html
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ <h3>Setup<a class="headerlink" href="#setup" title="Permalink to this heading">#
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;Graph identifier=5d210f1c-5c57-41a8-9515-d613c546a6f6 (&lt;class &#39;rdflib.graph.Graph&#39;&gt;)&gt;
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;Graph identifier=3b1cb589-277f-4179-bbcb-26b3188901e0 (&lt;class &#39;rdflib.graph.Graph&#39;&gt;)&gt;
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -612,7 +612,7 @@ <h3>Generating Queries from Shapes<a class="headerlink" href="#generating-querie
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>PREFIX sh: &lt;http://www.w3.org/ns/shacl#&gt;
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;
SELECT ?target ?heatsp ?coolsp ?roomTemp WHERE {
SELECT ?roomTemp ?coolsp ?target ?heatsp WHERE {
?target rdf:type/rdfs:subClassOf* &lt;https://brickschema.org/schema/Brick#Fan_Coil_Unit&gt; .
?target &lt;https://brickschema.org/schema/Brick#hasPoint&gt; ?coolsp .
?coolsp rdf:type/rdfs:subClassOf* &lt;https://brickschema.org/schema/Brick#Occupied_Cooling_Temperature_Setpoint&gt; .
Expand Down
Loading

0 comments on commit 053bee6

Please sign in to comment.