Skip to content

Commit ef240a7

Browse files
committed
Use reified triples in examples
1 parent 3f29a52 commit ef240a7

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

spec/index.html

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7406,8 +7406,8 @@ <h5>TZ</h5>
74067406
</section>
74077407

74087408
<!-- QT -->
7409-
<section id="func-triple-terms">
7410-
<h4>Functions on Triple Terms</h4>
7409+
<section id="func-reified-triples">
7410+
<h4>Functions on Reified Triples</h4>
74117411
<section id="func-triple">
74127412
<h5>TRIPLE</h5>
74137413
<pre class="prototype nohighlight">
@@ -7439,7 +7439,7 @@ <h5>TRIPLE</h5>
74397439
<p>
74407440
As a shorthand notation, the <code>TRIPLE</code> function
74417441
can also be written in the form of a
7442-
<a href="#rExprQuotedTriple">triple term expression</a>
7442+
<a href="#rExprTripleTerm">triple term expression</a>
74437443
using <code>&lt;&lt;(</code> and <code>)&gt;&gt;</code>. There is a
74447444
syntax limitation to this shorthand form: the three elements of
74457445
the triple term expression can only be variables and directly
@@ -7449,18 +7449,24 @@ <h5>TRIPLE</h5>
74497449
</p>
74507450
<pre class="query nohighlight">
74517451
PREFIX : &lt;http://example/&gt;
7452+
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
7453+
74527454
SELECT ?s ?date {
7453-
?s ?p ?o
7454-
BIND( &lt;&lt;( ?s ?p ?o )&gt;&gt; AS ?qt )
7455-
?qt :tripleAdded ?date
7455+
?s ?p ?o .
7456+
BIND( &lt;&lt;( ?s ?p ?o )&gt;&gt; AS ?tt )
7457+
:myreifier rdf:reifies ?tt .
7458+
:myreifier :tripleAdded ?date .
74567459
}
74577460
</pre>
74587461
<pre class="query nohighlight">
74597462
PREFIX : &lt;http://example/&gt;
7463+
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
7464+
74607465
SELECT ?s ?date {
7461-
?s ?p ?o
7462-
BIND( TRIPLE(?s, ?p, ?o) AS ?qt )
7463-
?qt :tripleAdded ?date
7466+
?s ?p ?o .
7467+
BIND( TRIPLE(?s, ?p, ?o) AS ?tt )
7468+
:myreifier rdf:reifies ?tt .
7469+
:myreifier :tripleAdded ?date .
74647470
}
74657471
</pre>
74667472
</section>
@@ -11805,10 +11811,10 @@ <h2>Changes between SPARQL 1.1 Query Language and SPARQL 1.2 Query Language</h2>
1180511811
Normative changes:
1180611812
<ul>
1180711813
<li>Remove concepts of plain and simple literals, in favor of explicit mentions of xsd:string</li>
11808-
<li>Update grammar for triple terms and triple functions in <a href="#sparqlGrammar" class="sectionRef"></a></li>
11814+
<li>Update grammar for reified triples and triple functions in <a href="#sparqlGrammar" class="sectionRef"></a></li>
1180911815
<li>Migrate XML Schema references to 1.1</li>
1181011816
<li>Update references to XPath from 2.0 to 3.1</li>
11811-
<li>Add functions on triple terms to <a href="#func-triple-terms" class="sectionRef"></a></li>
11817+
<li>Add functions on reified triples to <a href="#func-reified-triples" class="sectionRef"></a></li>
1181211818
</ul>
1181311819
</li>
1181411820
<li>

0 commit comments

Comments
 (0)