@@ -498,7 +498,7 @@ <h4>Terminology</h4>
498
498
499
499
<ul>
500
500
<li>
501
- <a data-cite="RDF12-CONCEPTS#dfn-iri">IRI</a>
501
+ <h4>< a data-cite="RDF12-CONCEPTS#dfn-iri">IRI</a></h4 >
502
502
</li>
503
503
<li>
504
504
<a data-cite="RDF12-CONCEPTS#dfn-literal">literal</a>
@@ -5308,7 +5308,7 @@ <h3>Operator Mapping</h3>
5308
5308
<th><a href="#rRelationalExpression" title="RelationalExpression">A <span class="FAOTtoken">!=</span> B</a></th>
5309
5309
<td><span class="type RDFterm"><a data-cite="RDF12-CONCEPTS#dfn-iri">IRI</a></span></td>
5310
5310
<td><span class="type RDFterm"><a data-cite="RDF12-CONCEPTS#dfn-iri">IRI</a></span></td>
5311
- <td><a data-cite="XPATH-FUNCTIONS-31#func-not">fn:not</a>(<a href="#func-sameTerm">fn: sameTerm</a>(A, B))</td>
5311
+ <td><a data-cite="XPATH-FUNCTIONS-31#func-not">fn:not</a>(<a href="#func-sameTerm">sameTerm</a>(A, B))</td>
5312
5312
<td>xsd:boolean</td>
5313
5313
</tr>
5314
5314
<tr>
@@ -5829,17 +5829,27 @@ <h5>sameValue</h5>
5829
5829
<a data-cite="RDF12-CONCEPTS#dfn-rdf-term-equality">equal RDF terms</a>,
5830
5830
then return TRUE.
5831
5831
</li>
5832
+ <li>If <code>term1</code> or <code>term2</code> is an
5833
+ <a data-cite="RDF12-CONCEPTS#dfn-iri">IRI</a> or a
5834
+ <a data-cite="RDF12-CONCEPTS#dfn-blank-node">blank node</a>
5835
+ then return FALSE.
5836
+ <li>If <code>term1</code> and <code>term2</code> are both
5837
+ <a data-cite="RDF12-CONCEPTS#dfn-literal">literals</a>
5838
+ and one or both of these literals has a datatype that is
5839
+ not handled by the SPARQL processor,
5840
+ then produce a type error.
5841
+ </li>
5832
5842
<li>If <code>term1</code> and <code>term2</code> are both
5833
5843
<a data-cite="RDF12-CONCEPTS#dfn-literal">literals</a>
5834
5844
and one or both of these literals are known to be
5835
5845
<a data-cite="RDF12-CONCEPTS#dfn-ill-typed">ill-typed</a>,
5836
5846
then produce a type error.
5837
5847
</li>
5838
5848
<li>
5839
- "NaN"^^xsd:double and "NaN"^^xsd:float are considered to
5849
+ ` "NaN"^^xsd:double` and ` "NaN"^^xsd:float` are considered to
5840
5850
represent the same value.
5841
5851
If <code>term1</code> and <code>term2</code> are
5842
- both "NaN" for either xsd:double or xsd:float then
5852
+ both "NaN" for either xsd:double or xsd:float, then
5843
5853
return TRUE.
5844
5854
</li>
5845
5855
<li>
@@ -5862,7 +5872,9 @@ <h5>sameValue</h5>
5862
5872
If <code>term1</code> and <code>term2</code> are both
5863
5873
<a data-cite="RDF12-CONCEPTS#dfn-triple-term">triple terms</a>,
5864
5874
apply the function `sameValue` pair-wise to each of the components.
5865
- Return TRUE if each component pair returns TRUE, otherwise return FALSE.
5875
+ Return TRUE if each component pair returns TRUE;
5876
+ produce a type error if any component pair produces an error;
5877
+ otherwise return FALSE.
5866
5878
</li>
5867
5879
<li>Otherwise, return FALSE.</li>
5868
5880
</ol>
@@ -5891,14 +5903,10 @@ <h5>sameValue</h5>
5891
5903
`sameValue` treats "NaN"^^xsd:double as the "same value".
5892
5904
</p>
5893
5905
<p>
5894
-
5895
5906
`sameValue` treats "NaN"^^xsd:double and "NaN"^^xsd:float as the same value.
5896
- `sameTerm ("NaN"^^xsd:double, "NaN"^^xsd:float)` is `true`.
5907
+ `sameValue ("NaN"^^xsd:double, "NaN"^^xsd:float)` is `true`.
5897
5908
</p>
5898
5909
</div>
5899
- <div id="sameValue-old-name" class="note">
5900
- <p>This function was previously called `RDFterm-equal`.</p>
5901
- </div>
5902
5910
<p id="func-sameValue-note1" class="note">
5903
5911
An extended implementation may support additional datatypes for literals. An
5904
5912
implementation processing a query that tests for equivalence of literals with non-recognized datatypes
@@ -5936,6 +5944,9 @@ <h5>sameValue</h5>
5936
5944
</tbody>
5937
5945
</table>
5938
5946
</div>
5947
+ <p id="sameValue-old-name" class="note">
5948
+ This function was previously called `RDFterm-equal`.
5949
+ </p>
5939
5950
</section>
5940
5951
5941
5952
<section id="func-isIRI">
0 commit comments