Skip to content

Commit

Permalink
Adding a flattened version of the syntactic sugar & note on the diffe…
Browse files Browse the repository at this point in the history
…rence between the regular and syntactic sugar syntax (#65)

* proceed -> precede
* adding the equivalent tripleTerm & accompanying note
* updating title of example to be in line with later equivalency examples

---------

Co-authored-by: william-vw <wvw@Williams-MBP.lan>
Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
Co-authored-by: Dominik Tomaszuk <ddooss@wp.pl>
Co-authored-by: Gregg Kellogg <gregg@greggkellogg.net>
  • Loading branch information
5 people authored Aug 22, 2024
1 parent 10ed728 commit c156e84
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,8 @@ <h3>Reified Triples</h3>
-->
</pre>

<!-- possibly add the equivalent N-TRIPLE for the above here as well -->

<pre id="ex-reified-triple-with-reifier"
class="example turtle" data-transform="updateExample"
title="Reified Triple with explicit reifier">
Expand All @@ -887,6 +889,23 @@ <h3>Reified Triples</h3>
-->
</pre>

<!-- sorry, I'm unsure how to refer to a specific example with a hyperlink -->
For instance, the syntactic sugar of the above example is equivalent to:
<pre id="ex-reified-triple-with-reifier-expanded"
class="example turtle" data-transform="updateExample"
title="Reified Triple expanded to Triple Term">
<!--
PREFIX : <http://www.example.org/>
:employee38 :familyName "Smith" .
_:id rdf:reifies <<( :employee38 :jobTitle "Assistant Designer" )>> .
_:id :accordingTo :employee22 .
-->
</pre>

<p class="note">Note the difference in syntax between the syntactic sugar of <a href="#grammar-production-reifiedTriple"><code>reifiedTriple</code></a>
(i.e., `<< [...] >>`) and the regular <a href="#grammar-production-tripleTerm"><code>tripleTerm</code></a> (i.e., `<<( [...] )>>`).</p>

<p>After declaring a prefix so that IRIs can be abbreviated,
the first triple in this example asserts that `employee38` has a `familyName` of "Smith".
Note that this graph does not assert that `employee38` has a `jobTitle` of "Assistant Designer";
Expand Down

0 comments on commit c156e84

Please sign in to comment.