Skip to content

Commit 3f29a52

Browse files
committed
Migrate from quoted triples to triple terms
1 parent ca14da9 commit 3f29a52

File tree

1 file changed

+26
-27
lines changed

1 file changed

+26
-27
lines changed

spec/index.html

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7406,44 +7406,43 @@ <h5>TZ</h5>
74067406
</section>
74077407

74087408
<!-- QT -->
7409-
<section id="func-quoted-triples">
7410-
<h4>Functions on Quoted Triples</h4>
7409+
<section id="func-triple-terms">
7410+
<h4>Functions on Triple Terms</h4>
74117411
<section id="func-triple">
74127412
<h5>TRIPLE</h5>
74137413
<pre class="prototype nohighlight">
7414-
<span class="return">quoted triple</span> <span class="operator">TRIPLE</span> (<span class="type RDFterm">RDF term</span> <span class="name">subj</span>, <span class="type RDFterm">RDF term</span> <span class="name">pred</span>, <span class="type RDFterm">RDF term</span> <span
7414+
<span class="return">triple term</span> <span class="operator">TRIPLE</span> (<span class="type RDFterm">RDF term</span> <span class="name">subj</span>, <span class="type RDFterm">RDF term</span> <span class="name">pred</span>, <span class="type RDFterm">RDF term</span> <span
74157415
class="name">obj</span>)
74167416
</pre>
74177417
<pre class="query nohighlight">
7418-
<span class="operator">&lt;&lt;</span> subj pred obj <span class="operator">&gt;&gt;</span>
7418+
<span class="operator">&lt;&lt;(</span> subj pred obj <span class="operator">)&gt;&gt;</span>
74197419
</pre>
74207420
<p>
74217421
If the 3-tuple (<code style="color:black">subj</code>,
74227422
<code style="color:black">pred</code>,
74237423
<code style="color:black">obj</code>)
74247424
is an <a data-cite="RDF12-CONCEPTS#dfn-rdf-triple">RDF triple</a>
74257425
(that is, <code style="color:black">subj</code> is an
7426-
<a data-cite="RDF12-CONCEPTS#dfn-iri">IRI</a>,
7427-
<a data-cite="RDF12-CONCEPTS#dfn-quoted-triple">quoted triple</a> or
7426+
<a data-cite="RDF12-CONCEPTS#dfn-iri">IRI</a> or
74287427
<a data-cite="RDF12-CONCEPTS#dfn-blank-node">blank node</a>;
74297428
<code style="color:black">pred</code> is an
74307429
<a data-cite="RDF12-CONCEPTS#dfn-iri">IRI</a>;
74317430
and <code style="color:black">obj</code> is an
74327431
<a data-cite="RDF12-CONCEPTS#dfn-iri">IRI</a>,
7433-
<a data-cite="RDF12-CONCEPTS#dfn-quoted-triple">quoted triple</a>,
7432+
<a data-cite="RDF12-CONCEPTS#dfn-triple-term">triple term</a>,
74347433
<a data-cite="RDF12-CONCEPTS#dfn-blank-node">blank node</a> or
74357434
<a data-cite="RDF12-CONCEPTS#dfn-literal">literal</a>)
7436-
the function returns a quoted triple with these three elements.
7435+
the function returns a triple term with these three elements.
74377436
Otherwise, the function raises an error.
74387437
</p>
74397438

74407439
<p>
74417440
As a shorthand notation, the <code>TRIPLE</code> function
74427441
can also be written in the form of a
7443-
<a href="#rExprQuotedTriple">quoted triple expression</a>
7444-
using <code>&lt;&lt;</code> and <code>&gt;&gt;</code>. There is a
7442+
<a href="#rExprQuotedTriple">triple term expression</a>
7443+
using <code>&lt;&lt;(</code> and <code>)&gt;&gt;</code>. There is a
74457444
syntax limitation to this shorthand form: the three elements of
7446-
the quoted triple expression can only be variables and directly
7445+
the triple term expression can only be variables and directly
74477446
written RDF terms, not arbitrary expressions.
74487447
In contrast, the function form, <code>TRIPLE</code>,
74497448
can be used with arbitrary expressions.
@@ -7452,7 +7451,7 @@ <h5>TRIPLE</h5>
74527451
PREFIX : &lt;http://example/&gt;
74537452
SELECT ?s ?date {
74547453
?s ?p ?o
7455-
BIND( &lt;&lt; ?s ?p ?o &gt;&gt; AS ?qt )
7454+
BIND( &lt;&lt;( ?s ?p ?o )&gt;&gt; AS ?qt )
74567455
?qt :tripleAdded ?date
74577456
}
74587457
</pre>
@@ -7468,45 +7467,45 @@ <h5>TRIPLE</h5>
74687467

74697468
<section id="func-subject">
74707469
<h5>SUBJECT</h5>
7471-
<pre class="prototype nohighlight"><span class="return">RDF term</span> <span class="operator">SUBJECT</span> (<span class="type RDFterm">quoted triple</span> <span class="name">quoted-triple</span>)</pre>
7470+
<pre class="prototype nohighlight"><span class="return">RDF term</span> <span class="operator">SUBJECT</span> (<span class="type RDFterm">triple term</span> <span class="name">triple-term</span>)</pre>
74727471
<p>
74737472
If the argument is a
7474-
<a data-cite="RDF12-CONCEPTS#dfn-quoted-triple">quoted triple</a>,
7473+
<a data-cite="RDF12-CONCEPTS#dfn-triple-term">triple term</a>,
74757474
the function returns the
74767475
<a data-cite="RDF12-CONCEPTS#dfn-subject">subject</a>
7477-
of the quoted triple.
7476+
of the triple term.
74787477
If the argument is not a
7479-
<a data-cite="RDF12-CONCEPTS#dfn-quoted-triple">quoted triple</a>,
7478+
<a data-cite="RDF12-CONCEPTS#dfn-triple-term">triple term</a>,
74807479
an error is raised.
74817480
</p>
74827481
</section>
74837482

74847483
<section id="func-predicate">
74857484
<h5>PREDICATE</h5>
7486-
<pre class="prototype nohighlight"><span class="return">RDF term</span> <span class="operator">PREDICATE</span> (<span class="type RDFterm">quoted triple</span> <span class="name">quoted-triple</span>)</pre>
7485+
<pre class="prototype nohighlight"><span class="return">RDF term</span> <span class="operator">PREDICATE</span> (<span class="type RDFterm">triple term</span> <span class="name">triple-term</span>)</pre>
74877486
<p>
74887487
If the argument is a
7489-
<a data-cite="RDF12-CONCEPTS#dfn-quoted-triple">quoted triple</a>,
7488+
<a data-cite="RDF12-CONCEPTS#dfn-triple-term">triple term</a>,
74907489
the function returns the
74917490
<a data-cite="RDF12-CONCEPTS#dfn-predicate">predicate</a>
7492-
of the quoted triple.
7491+
of the triple term.
74937492
If the argument is not a
7494-
<a data-cite="RDF12-CONCEPTS#dfn-quoted-triple">quoted triple</a>,
7493+
<a data-cite="RDF12-CONCEPTS#dfn-triple-term">triple term</a>,
74957494
an error is raised.
74967495
</p>
74977496
</section>
74987497

74997498
<section id="func-object">
75007499
<h5>OBJECT</h5>
7501-
<pre class="prototype nohighlight"><span class="return">RDF term</span> <span class="operator">OBJECT</span> (<span class="type RDFterm">quoted triple</span> <span class="name">quoted-triple</span>)</pre>
7500+
<pre class="prototype nohighlight"><span class="return">RDF term</span> <span class="operator">OBJECT</span> (<span class="type RDFterm">triple term</span> <span class="name">triple-term</span>)</pre>
75027501
<p>
75037502
If the argument is a
7504-
<a data-cite="RDF12-CONCEPTS#dfn-quoted-triple">quoted triple</a>,
7503+
<a data-cite="RDF12-CONCEPTS#dfn-triple-term">triple term</a>,
75057504
the function returns the
75067505
<a data-cite="RDF12-CONCEPTS#dfn-object">object</a>
7507-
of the quoted triple.
7506+
of the triple term.
75087507
If the argument is not a
7509-
<a data-cite="RDF12-CONCEPTS#dfn-quoted-triple">quoted triple</a>,
7508+
<a data-cite="RDF12-CONCEPTS#dfn-triple-term">triple term</a>,
75107509
an error is raised.
75117510
</p>
75127511
</section>
@@ -7515,7 +7514,7 @@ <h5>OBJECT</h5>
75157514
<h5>isTRIPLE</h5>
75167515
<pre class="prototype nohighlight"><span class="return">xsd:boolean</span> <span class="operator">isTRIPLE</span> (<span class="type RDFterm">RDF term</span> <span class="name">term</span>)</pre>
75177516
<p>
7518-
If the argument is a <a data-cite="RDF12-CONCEPTS#dfn-quoted-triple">quoted triple</a>,
7517+
If the argument is a <a data-cite="RDF12-CONCEPTS#dfn-triple-term">triple term</a>,
75197518
the function returns true.
75207519
If the argument is any other kind of
75217520
<a data-cite="RDF12-CONCEPTS#dfn-rdf-term">RDF term</a>,
@@ -11806,10 +11805,10 @@ <h2>Changes between SPARQL 1.1 Query Language and SPARQL 1.2 Query Language</h2>
1180611805
Normative changes:
1180711806
<ul>
1180811807
<li>Remove concepts of plain and simple literals, in favor of explicit mentions of xsd:string</li>
11809-
<li>Update grammar for quoted triples and triple functions in <a href="#sparqlGrammar" class="sectionRef"></a></li>
11808+
<li>Update grammar for triple terms and triple functions in <a href="#sparqlGrammar" class="sectionRef"></a></li>
1181011809
<li>Migrate XML Schema references to 1.1</li>
1181111810
<li>Update references to XPath from 2.0 to 3.1</li>
11812-
<li>Add functions on quoted triples to <a href="#func-quoted-triples" class="sectionRef"></a></li>
11811+
<li>Add functions on triple terms to <a href="#func-triple-terms" class="sectionRef"></a></li>
1181311812
</ul>
1181411813
</li>
1181511814
<li>

0 commit comments

Comments
 (0)