Skip to content

Commit e305cf3

Browse files
committed
Revisions based on PR review
1 parent 3658f15 commit e305cf3

File tree

1 file changed

+24
-16
lines changed

1 file changed

+24
-16
lines changed

spec/index.html

+24-16
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ <h4>Terminology</h4>
498498

499499
<ul>
500500
<li>
501-
<a data-cite="RDF12-CONCEPTS#dfn-iri">IRI</a>
501+
<h4><a data-cite="RDF12-CONCEPTS#dfn-iri">IRI</a></h4>
502502
</li>
503503
<li>
504504
<a data-cite="RDF12-CONCEPTS#dfn-literal">literal</a>
@@ -5308,7 +5308,7 @@ <h3>Operator Mapping</h3>
53085308
<th><a href="#rRelationalExpression" title="RelationalExpression">A <span class="FAOTtoken">!=</span> B</a></th>
53095309
<td><span class="type RDFterm"><a data-cite="RDF12-CONCEPTS#dfn-iri">IRI</a></span></td>
53105310
<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>
53125312
<td>xsd:boolean</td>
53135313
</tr>
53145314
<tr>
@@ -5829,25 +5829,29 @@ <h5>sameValue</h5>
58295829
<a data-cite="RDF12-CONCEPTS#dfn-rdf-term-equality">equal RDF terms</a>,
58305830
then return TRUE.
58315831
</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>
58325842
<li>If <code>term1</code> and <code>term2</code> are both
58335843
<a data-cite="RDF12-CONCEPTS#dfn-literal">literals</a>
58345844
and one or both of these literals are known to be
58355845
<a data-cite="RDF12-CONCEPTS#dfn-ill-typed">ill-typed</a>,
58365846
then produce a type error.
58375847
</li>
58385848
<li>
5839-
"NaN"^^xsd:double and "NaN"^^xsd:float are considered to
5849+
`"NaN"^^xsd:double` and `"NaN"^^xsd:float` are considered to
58405850
represent the same value.
58415851
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
58435853
return TRUE.
58445854
</li>
5845-
<li>
5846-
For xsd:double and xsd:float, `+0`, `-0` and `0` are same value.
5847-
If <code>term1</code> and <code>term2</code> each
5848-
have datatype IRI xsd:double or xsd:float and
5849-
a lexical form of one of these zeros, then return TRUE.
5850-
</li>
58515855
<li>If <code>term1</code> and <code>term2</code> are both
58525856
<a data-cite="RDF12-CONCEPTS#dfn-literal">literals</a>
58535857
and the SPARQL processor can determine that their the values are equal,
@@ -5862,7 +5866,9 @@ <h5>sameValue</h5>
58625866
If <code>term1</code> and <code>term2</code> are both
58635867
<a data-cite="RDF12-CONCEPTS#dfn-triple-term">triple terms</a>,
58645868
apply the function `sameValue` pair-wise to each of the components.
5865-
Return TRUE if each component pair returns TRUE, otherwise return FALSE.
5869+
Return TRUE if each component pair returns TRUE;
5870+
produce a type error if any component pair produces an error;
5871+
otherwise return FALSE.
58665872
</li>
58675873
<li>Otherwise, return FALSE.</li>
58685874
</ol>
@@ -5891,14 +5897,13 @@ <h5>sameValue</h5>
58915897
`sameValue` treats "NaN"^^xsd:double as the "same value".
58925898
</p>
58935899
<p>
5894-
58955900
`sameValue` treats "NaN"^^xsd:double and "NaN"^^xsd:float as the same value.
5896-
`sameTerm("NaN"^^xsd:double, "NaN"^^xsd:float)` is `true`.
5901+
`sameValue("NaN"^^xsd:double, "NaN"^^xsd:float)` is `true`.
58975902
</p>
58985903
</div>
5899-
<div id="sameValue-old-name" class="note">
5900-
<p>This function was previously called `RDFterm-equal`.</p>
5901-
</div>
5904+
<p id="sameValue-zeros" class="note">
5905+
For xsd:double and xsd:float, `+0`, `-0` and `0` are same value.
5906+
</p>
59025907
<p id="func-sameValue-note1" class="note">
59035908
An extended implementation may support additional datatypes for literals. An
59045909
implementation processing a query that tests for equivalence of literals with non-recognized datatypes
@@ -5936,6 +5941,9 @@ <h5>sameValue</h5>
59365941
</tbody>
59375942
</table>
59385943
</div>
5944+
<p id="sameValue-old-name" class="note">
5945+
This function was previously called `RDFterm-equal`.
5946+
</p>
59395947
</section>
59405948

59415949
<section id="func-isIRI">

0 commit comments

Comments
 (0)