Skip to content

Commit e74d621

Browse files
authored
Update names of referenced XPath functions and operators. (#304)
Update names of referenced XPath functions and operators. In defining SPARQL functions, we often say "This function is the same as" and link to an XPath definition. However, several of the XPath functions are misnamed in this linking. This PR fixes the function and operator names for: * `fn:numeric-equal` -> `op:numeric-equal` * `fn:numeric-abs` -> `fn:abs` * `fn:numeric-round` -> `fn:round` * `fn:numeric-ceil` -> `fn:ceiling` * `fn:numeric-floor` -> `fn:floor`
1 parent 46e5ac5 commit e74d621

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spec/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4606,7 +4606,7 @@ <h2>Expressions and Testing Values</h2>
46064606
functions are invoked by name (an IRI) within a SPARQL query. For example:</p>
46074607
<pre class="query nohighlight">
46084608
... FILTER ( xsd:dateTime(?date) &lt; xsd:dateTime("2005-01-01T00:00:00Z") ) ...</pre>
4609-
<p>Typographical convention in this section: XPath operators are labeled with the prefix
4609+
<p>Typographical convention: XPath operators are labeled with the prefix
46104610
<code>op:</code>. XPath operators have no namespace; <code>op:</code> is a labeling
46114611
convention.</p>
46124612
<section id="operandDataTypes">
@@ -6038,7 +6038,7 @@ <h5>sameValue</h5>
60386038
<p>
60396039
The <a href="#OperatorMapping">Operator Mapping</a> for "`=`"
60406040
is the function
6041-
<a data-cite="XPATH-FUNCTIONS-31#func-numeric-equal">`fn:numeric-equal`</a>
6041+
<a data-cite="XPATH-FUNCTIONS-31#func-numeric-equal">`op:numeric-equal`</a>
60426042
which is defined to return `false` when comparing arguments involving `NaN`.
60436043
However, `sameTerm("NaN"^^xsd:double, "NaN"^^xsd:double)` is true.
60446044
The function `sameValue` defines `sameValue("NaN"^^xsd:double, "NaN"^^xsd:double)`
@@ -7640,7 +7640,7 @@ <h5>ABS</h5>
76407640
<p>Returns the absolute value of <code>arg</code>. An error is raised if <code>arg</code>
76417641
is not a numeric value.</p>
76427642
<p>This function is the same as
7643-
<a data-cite="XPATH-FUNCTIONS-31#func-abs">fn:numeric-abs</a>
7643+
<a data-cite="XPATH-FUNCTIONS-31#func-abs">fn:abs</a>
76447644
for terms with a datatype from <a data-cite="XPATH-DATAMODEL-31#">XDM</a>.</p>
76457645
<div class="result">
76467646
<table>
@@ -7663,7 +7663,7 @@ <h5>ROUND</h5>
76637663
<p>Returns the number with no fractional part that is closest to the argument. If there
76647664
are two such numbers, then the one that is closest to positive infinity is returned. An
76657665
error is raised if <code>arg</code> is not a numeric value.</p>
7666-
<p>This function is the same as <a data-cite="XPATH-FUNCTIONS-31#func-round">fn:numeric-round</a> for terms with a datatype from <a data-cite="XPATH-DATAMODEL-31#">XDM</a>.</p>
7666+
<p>This function is the same as <a data-cite="XPATH-FUNCTIONS-31#func-round">fn:round</a> for terms with a datatype from <a data-cite="XPATH-DATAMODEL-31#">XDM</a>.</p>
76677667
<div class="result">
76687668
<table>
76697669
<tbody>
@@ -7690,7 +7690,7 @@ <h5>CEIL</h5>
76907690
that is not less than the value of <code>arg</code>. An error is raised if
76917691
<code>arg</code> is not a numeric value.</p>
76927692
<p>This function is the same as
7693-
<a data-cite="XPATH-FUNCTIONS-31#func-ceiling">fn:numeric-ceil</a>
7693+
<a data-cite="XPATH-FUNCTIONS-31#func-ceiling">fn:ceiling</a>
76947694
for terms with a datatype from <a data-cite="XPATH-DATAMODEL-31#">XDM</a>.</p>
76957695
<div class="result">
76967696
<table>
@@ -7714,7 +7714,7 @@ <h5>FLOOR</h5>
77147714
is not greater than the value of <code>arg</code>. An error is raised if <code>arg</code>
77157715
is not a numeric value.</p>
77167716
<p>This function is the same as
7717-
<a data-cite="XPATH-FUNCTIONS-31#func-floor">fn:numeric-floor</a>
7717+
<a data-cite="XPATH-FUNCTIONS-31#func-floor">fn:floor</a>
77187718
for terms with a datatype from <a data-cite="XPATH-DATAMODEL-31#">XDM</a>.</p>
77197719
<div class="result">
77207720
<table>

0 commit comments

Comments
 (0)