<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SHACL on Gabe Fierro</title><link>https://gtf.fyi/posts/shacl/</link><description>Recent content in SHACL on Gabe Fierro</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 19 Jun 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://gtf.fyi/posts/shacl/index.xml" rel="self" type="application/rss+xml"/><item><title>Shape to Query</title><link>https://gtf.fyi/posts/shacl/shape-to-query/</link><pubDate>Mon, 19 Jun 2023 17:54:57 -0600</pubDate><guid>https://gtf.fyi/posts/shacl/shape-to-query/</guid><description>&lt;h1 id="shacl-shape-to-sparql-query-transformation">SHACL Shape to SPARQL Query Transformation&lt;/h1>
&lt;p>SHACL shapes can be thought of as functions that take an RDF graph as an
argument and return:&lt;/p>
&lt;ul>
&lt;li>a boolean indicating if the shape was fulfilled on the graph, and&lt;/li>
&lt;li>some extra metadata indicating why the shape was not fulfilled on the graph
(if this is the case)&lt;/li>
&lt;/ul>
&lt;p>The SHACL &lt;strong>validation&lt;/strong> is the process of evaluating the shapes on a given RDF
graph. This checks the conditions associated with each shape and also adds any
inferred information. The SHACL validation/inference process does &lt;em>not&lt;/em> tell
you how the shapes came to be fulfilled on the graph, only that they were.&lt;/p></description></item><item><title>Getting all template bodies from BuildingMOTIF</title><link>https://gtf.fyi/posts/shacl/buildingmotif-get-template-bodies/</link><pubDate>Mon, 12 Jun 2023 17:15:14 -0700</pubDate><guid>https://gtf.fyi/posts/shacl/buildingmotif-get-template-bodies/</guid><description>&lt;p>Here&amp;rsquo;s a quick how-to on load libraries into a BuildingMOTIF installation and then list all of the templates in those libraries as well as the &lt;em>bodies&lt;/em> (RDF graph component) of those templates.&lt;/p>
&lt;p>At this time (2023-06-13), BuildingMOTIF is still under active development so you&amp;rsquo;ll want to install it directly from GitHub&lt;label for="" class="margin-toggle sidenote-number">&lt;/label>
&lt;input type="checkbox" id="" class="margin-toggle" />
&lt;span class="sidenote">
 You can also clone the &lt;a href="https://github.com/NREL/BuildingMOTIF">repository&lt;/a> directly and do this all within that environment
&lt;/span>
:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>pip install -e git+https://github.com/NREL/BuildingMOTIF#egg&lt;span style="color:#333">=&lt;/span>buildingmotif
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Now, create a file called &lt;code>libraries.yml&lt;/code> which contains the following lines:&lt;/p></description></item></channel></rss>