Skip to content

Commit 629d98c

Browse files
rubensworkshartigTallTed
authored
Add missing comparison operators for triple terms (#289)
* Add missing value comparison operators for triple terms * Support triple terms in ORDER BY * Fix links to compareTripleTerm Co-authored-by: Olaf Hartig <[email protected]> * Apply suggestions from code review Co-authored-by: Olaf Hartig <[email protected]> * Link to SUBJECT, PREDICATE, and OBJECT functions * Remove obsolete sentence about triple terms in operator mapping table * Use term1/2 instead of A/B in func-compareTripleTerm * Clarify next step in func-compareTripleTerm * Apply suggestions from code review Co-authored-by: Ted Thibodeau Jr <[email protected]> * Fix formatting of compareTripleTerm * Require relative ordering for IRIs and bnodes in compareTripleTerm * Add comparison operators for triple terms to changelog * Update spec/index.html Co-authored-by: Ted Thibodeau Jr <[email protected]> * Update spec/index.html Co-authored-by: Ted Thibodeau Jr <[email protected]> * Update spec/index.html Co-authored-by: Ted Thibodeau Jr <[email protected]> * Remove triple term comparison from operator mapping table * Add example on undefined ordering of triple terms * Remove explicit section references * Update spec/index.html --------- Co-authored-by: Olaf Hartig <[email protected]> Co-authored-by: Ted Thibodeau Jr <[email protected]>
1 parent 859b577 commit 629d98c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

spec/index.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3672,8 +3672,8 @@ <h3>ORDER BY</h3>
36723672
</pre>
36733673
</div>
36743674
</div>
3675-
<p>The <a href="#op_lt">"&lt;" operator</a> (see the <a href="#OperatorMapping">Operator
3676-
Mapping</a> and <a href="#operatorExtensibility">17.3.1 Operator Extensibility</a>) defines
3675+
<p>The <a href="#op_lt">"&lt;" operator</a> (see the <a href="#OperatorMapping">operator
3676+
mapping</a> and <a href="#operatorExtensibility">operator extensibility</a>) defines
36773677
the relative order of pairs of <code>numerics</code>,
36783678
<code>xsd:strings</code>, <code>xsd:booleans</code> and <code>xsd:dateTimes</code>. Pairs of
36793679
IRIs are ordered by comparing them as literals with datatype <code>xsd:string</code>.</p>
@@ -3684,8 +3684,10 @@ <h3>ORDER BY</h3>
36843684
<li>Blank nodes</li>
36853685
<li>IRIs</li>
36863686
<li>RDF literals</li>
3687+
<li>Triple terms</li>
36873688
</ol>
3688-
<p>SPARQL does not define a total ordering of all possible RDF terms. Here are a few examples
3689+
<p>SPARQL does not define a total ordering of all possible RDF terms. Implementations may
3690+
define total ordering through <a href="#operatorExtensibility">operator extensibility</a>. Here are a few examples
36893691
of pairs of terms for which the relative order is undefined:</p>
36903692
<ul>
36913693
<li>"a" and "a"@en_gb (a literal with datatype <code>xsd:string</code> and a literal with a language tag)</li>
@@ -3695,6 +3697,7 @@ <h3>ORDER BY</h3>
36953697
<li>"1"^^my:integer and "2"^^my:integer (two unsupported datatypes)</li>
36963698
<li>"1"^^xsd:integer and "2"^^my:integer (a supported datatype and an unsupported
36973699
datatype)</li>
3700+
<li>&lt;&lt; :person1 foaf:name "Bob" &gt;&gt; and &lt;&lt; :person2 foaf:name "Alice" &gt;&gt; (two triple terms)</li>
36983701
</ul>
36993702
<p>This list of variable bindings is in ascending order:</p>
37003703
<div class="result">
@@ -12703,6 +12706,7 @@ <h2>Changes between SPARQL 1.1 Query Language and SPARQL 1.2 Query Language</h2>
1270312706
<li>Update references to XPath from 2.0 to 3.1</li>
1270412707
<li>Define `EBV` as a functional form.</li>
1270512708
<li>Forbid duplicated variables in `VALUES`.</li>
12709+
<li>Add in-between term type ORDER BY support for triple terms in <a href="#modOrderBy" class="sectionRef"></a>.</li>
1270612710
</ul>
1270712711
</li>
1270812712
<li>

0 commit comments

Comments
 (0)