@@ -7406,107 +7406,112 @@ <h5>TZ</h5>
7406
7406
</section>
7407
7407
7408
7408
<!-- 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>
7411
7411
<section id="func-triple">
7412
7412
<h5>TRIPLE</h5>
7413
7413
<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
7415
7415
class="name">obj</span>)
7416
7416
</pre>
7417
7417
<pre class="query nohighlight">
7418
- <span class="operator"><<</span> subj pred obj <span class="operator">>></span>
7418
+ <span class="operator"><<( </span> subj pred obj <span class="operator">) >></span>
7419
7419
</pre>
7420
7420
<p>
7421
7421
If the 3-tuple (<code style="color:black">subj</code>,
7422
7422
<code style="color:black">pred</code>,
7423
7423
<code style="color:black">obj</code>)
7424
7424
is an <a data-cite="RDF12-CONCEPTS#dfn-rdf-triple">RDF triple</a>
7425
7425
(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
7428
7427
<a data-cite="RDF12-CONCEPTS#dfn-blank-node">blank node</a>;
7429
7428
<code style="color:black">pred</code> is an
7430
7429
<a data-cite="RDF12-CONCEPTS#dfn-iri">IRI</a>;
7431
7430
and <code style="color:black">obj</code> is an
7432
7431
<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>,
7434
7433
<a data-cite="RDF12-CONCEPTS#dfn-blank-node">blank node</a> or
7435
7434
<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.
7437
7436
Otherwise, the function raises an error.
7438
7437
</p>
7439
7438
7440
7439
<p>
7441
7440
As a shorthand notation, the <code>TRIPLE</code> function
7442
7441
can also be written in the form of a
7443
- <a href="#rExprQuotedTriple">quoted triple expression</a>
7444
- using <code><<</code> and <code>>></code>. There is a
7442
+ <a href="#rExprTripleTerm"> triple term expression</a>
7443
+ using <code><<( </code> and <code>) >></code>. There is a
7445
7444
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
7447
7446
written RDF terms, not arbitrary expressions.
7448
7447
In contrast, the function form, <code>TRIPLE</code>,
7449
7448
can be used with arbitrary expressions.
7450
7449
</p>
7451
7450
<pre class="query nohighlight">
7452
7451
PREFIX : <http://example/>
7452
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
7453
+
7453
7454
SELECT ?s ?date {
7454
- ?s ?p ?o
7455
- BIND( << ?s ?p ?o >> AS ?qt )
7456
- ?qt :tripleAdded ?date
7455
+ ?s ?p ?o .
7456
+ BIND( <<( ?s ?p ?o )>> AS ?tt )
7457
+ :myreifier rdf:reifies ?tt .
7458
+ :myreifier :tripleAdded ?date .
7457
7459
}
7458
7460
</pre>
7459
7461
<pre class="query nohighlight">
7460
7462
PREFIX : <http://example/>
7463
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
7464
+
7461
7465
SELECT ?s ?date {
7462
- ?s ?p ?o
7463
- BIND( TRIPLE(?s, ?p, ?o) AS ?qt )
7464
- ?qt :tripleAdded ?date
7466
+ ?s ?p ?o .
7467
+ BIND( TRIPLE(?s, ?p, ?o) AS ?tt )
7468
+ :myreifier rdf:reifies ?tt .
7469
+ :myreifier :tripleAdded ?date .
7465
7470
}
7466
7471
</pre>
7467
7472
</section>
7468
7473
7469
7474
<section id="func-subject">
7470
7475
<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>
7476
+ <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>
7472
7477
<p>
7473
7478
If the argument is a
7474
- <a data-cite="RDF12-CONCEPTS#dfn-quoted- triple">quoted triple</a>,
7479
+ <a data-cite="RDF12-CONCEPTS#dfn-triple-term"> triple term </a>,
7475
7480
the function returns the
7476
7481
<a data-cite="RDF12-CONCEPTS#dfn-subject">subject</a>
7477
- of the quoted triple.
7482
+ of the triple term .
7478
7483
If the argument is not a
7479
- <a data-cite="RDF12-CONCEPTS#dfn-quoted- triple">quoted triple</a>,
7484
+ <a data-cite="RDF12-CONCEPTS#dfn-triple-term"> triple term </a>,
7480
7485
an error is raised.
7481
7486
</p>
7482
7487
</section>
7483
7488
7484
7489
<section id="func-predicate">
7485
7490
<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>
7491
+ <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>
7487
7492
<p>
7488
7493
If the argument is a
7489
- <a data-cite="RDF12-CONCEPTS#dfn-quoted- triple">quoted triple</a>,
7494
+ <a data-cite="RDF12-CONCEPTS#dfn-triple-term"> triple term </a>,
7490
7495
the function returns the
7491
7496
<a data-cite="RDF12-CONCEPTS#dfn-predicate">predicate</a>
7492
- of the quoted triple.
7497
+ of the triple term .
7493
7498
If the argument is not a
7494
- <a data-cite="RDF12-CONCEPTS#dfn-quoted- triple">quoted triple</a>,
7499
+ <a data-cite="RDF12-CONCEPTS#dfn-triple-term"> triple term </a>,
7495
7500
an error is raised.
7496
7501
</p>
7497
7502
</section>
7498
7503
7499
7504
<section id="func-object">
7500
7505
<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>
7506
+ <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>
7502
7507
<p>
7503
7508
If the argument is a
7504
- <a data-cite="RDF12-CONCEPTS#dfn-quoted- triple">quoted triple</a>,
7509
+ <a data-cite="RDF12-CONCEPTS#dfn-triple-term"> triple term </a>,
7505
7510
the function returns the
7506
7511
<a data-cite="RDF12-CONCEPTS#dfn-object">object</a>
7507
- of the quoted triple.
7512
+ of the triple term .
7508
7513
If the argument is not a
7509
- <a data-cite="RDF12-CONCEPTS#dfn-quoted- triple">quoted triple</a>,
7514
+ <a data-cite="RDF12-CONCEPTS#dfn-triple-term"> triple term </a>,
7510
7515
an error is raised.
7511
7516
</p>
7512
7517
</section>
@@ -7515,7 +7520,7 @@ <h5>OBJECT</h5>
7515
7520
<h5>isTRIPLE</h5>
7516
7521
<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>
7517
7522
<p>
7518
- If the argument is a <a data-cite="RDF12-CONCEPTS#dfn-quoted- triple">quoted triple</a>,
7523
+ If the argument is a <a data-cite="RDF12-CONCEPTS#dfn-triple-term"> triple term </a>,
7519
7524
the function returns true.
7520
7525
If the argument is any other kind of
7521
7526
<a data-cite="RDF12-CONCEPTS#dfn-rdf-term">RDF term</a>,
@@ -11886,7 +11891,7 @@ <h2>Changes between SPARQL 1.1 Query Language and SPARQL 1.2 Query Language</h2>
11886
11891
in <a href="#sparqlGrammar" class="sectionRef"></a></li>
11887
11892
<li>Migrate XML Schema references to 1.1</li>
11888
11893
<li>Update references to XPath from 2.0 to 3.1</li>
11889
- <li>Add functions on quoted triples to <a href="#func-quoted-triples " class="sectionRef"></a></li>
11894
+ <li>Add functions on triple terms to <a href="#func-triple-terms " class="sectionRef"></a></li>
11890
11895
</ul>
11891
11896
</li>
11892
11897
<li>
0 commit comments