@@ -1365,6 +1365,28 @@ <h4>rdf:type</h4>
1365
1365
</pre>
1366
1366
</section>
1367
1367
</section>
1368
+ <section id="syntaxVersionAnnouncement">
1369
+ <h3>Version Announcement</h3>
1370
+ <p>To cope with the language evolution of SPARQL,
1371
+ the <a href="#rVersionDecl"><code>VERSION</code></a> directive can be used.
1372
+ When writing SPARQL queries with new features such as
1373
+ <a data-cite="RDF12-CONCEPTS#dfn-triple-term">triple terms</a>
1374
+ or <a href="#func-triple-terms">functions on triple terms</a>,
1375
+ authors MAY announce the use of the new syntax forms using these directives.
1376
+ </p>
1377
+ <pre class="query nohighlight">
1378
+ VERSION "1.2"
1379
+ PREFIX : <http://example/>
1380
+ PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
1381
+
1382
+ SELECT ?s ?date {
1383
+ ?s ?p ?o .
1384
+ BIND( <<( ?s ?p ?o )>> AS ?tt )
1385
+ :myreifier rdf:reifies ?tt .
1386
+ :myreifier :tripleAdded ?date .
1387
+ }
1388
+ </pre>
1389
+ </section>
1368
1390
</section>
1369
1391
<section id="GraphPattern">
1370
1392
<h2>Graph Patterns</h2>
@@ -7814,6 +7836,7 @@ <h5>TRIPLE</h5>
7814
7836
can be used with arbitrary expressions.
7815
7837
</p>
7816
7838
<pre class="query nohighlight">
7839
+ VERSION "1.2"
7817
7840
PREFIX : <http://example/>
7818
7841
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
7819
7842
@@ -7825,6 +7848,7 @@ <h5>TRIPLE</h5>
7825
7848
}
7826
7849
</pre>
7827
7850
<pre class="query nohighlight">
7851
+ VERSION "1.2"
7828
7852
PREFIX : <http://example/>
7829
7853
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
7830
7854
@@ -12285,7 +12309,7 @@ <h2>Changes between SPARQL 1.1 Query Language and SPARQL 1.2 Query Language</h2>
12285
12309
<a href="#func-triple-terms" class="sectionRef"></a>:
12286
12310
`TRIPLE`, `isTRIPLE`, `SUBJECT`, `PREDICATE`, `OBJECT`</li>
12287
12311
<li>Update grammar for literal <a data-cite="RDF12-CONCEPTS#dfn-base-direction">base direction</a> syntax</li>
12288
- <li>Update grammar for VERSION declaration</li>
12312
+ <li>Update grammar for VERSION declaration and a <a href="#syntaxVersionAnnouncement" class="sectionRef">new section</a> to describe its usage </li>
12289
12313
<li>Add functions related to
12290
12314
<a data-cite="RDF12-CONCEPTS#dfn-language-tag">language tag</a> and
12291
12315
<a data-cite="RDF12-CONCEPTS#dfn-base-direction">base direction</a>:
0 commit comments