Skip to content

Commit 73e297a

Browse files
committed
Add version announcement section
1 parent ff4806d commit 73e297a

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

spec/index.html

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,28 @@ <h4>rdf:type</h4>
13651365
</pre>
13661366
</section>
13671367
</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 : &lt;http://example/&gt;
1380+
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
1381+
1382+
SELECT ?s ?date {
1383+
?s ?p ?o .
1384+
BIND( &lt;&lt;( ?s ?p ?o )&gt;&gt; AS ?tt )
1385+
:myreifier rdf:reifies ?tt .
1386+
:myreifier :tripleAdded ?date .
1387+
}
1388+
</pre>
1389+
</section>
13681390
</section>
13691391
<section id="GraphPattern">
13701392
<h2>Graph Patterns</h2>
@@ -7814,6 +7836,7 @@ <h5>TRIPLE</h5>
78147836
can be used with arbitrary expressions.
78157837
</p>
78167838
<pre class="query nohighlight">
7839+
VERSION "1.2"
78177840
PREFIX : &lt;http://example/&gt;
78187841
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
78197842

@@ -7825,6 +7848,7 @@ <h5>TRIPLE</h5>
78257848
}
78267849
</pre>
78277850
<pre class="query nohighlight">
7851+
VERSION "1.2"
78287852
PREFIX : &lt;http://example/&gt;
78297853
PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;
78307854

@@ -12285,7 +12309,7 @@ <h2>Changes between SPARQL 1.1 Query Language and SPARQL 1.2 Query Language</h2>
1228512309
<a href="#func-triple-terms" class="sectionRef"></a>:
1228612310
`TRIPLE`, `isTRIPLE`, `SUBJECT`, `PREDICATE`, `OBJECT`</li>
1228712311
<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>
1228912313
<li>Add functions related to
1229012314
<a data-cite="RDF12-CONCEPTS#dfn-language-tag">language tag</a> and
1229112315
<a data-cite="RDF12-CONCEPTS#dfn-base-direction">base direction</a>:

0 commit comments

Comments
 (0)