From 3d70c839212e77ef295322a0c6c72b7e9cbb119c Mon Sep 17 00:00:00 2001 From: Gregory Todd Williams Date: Fri, 31 Oct 2025 09:14:31 -0700 Subject: [PATCH 1/2] 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` --- spec/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/index.html b/spec/index.html index 3eabcac0..515c456d 100644 --- a/spec/index.html +++ b/spec/index.html @@ -6028,7 +6028,7 @@
sameValue

The Operator Mapping for "`=`" is the function - `fn:numeric-equal` + `op:numeric-equal` which is defined to return `false` when comparing arguments involving `NaN`. However, `sameTerm("NaN"^^xsd:double, "NaN"^^xsd:double)` is true. The function `sameValue` defines `sameValue("NaN"^^xsd:double, "NaN"^^xsd:double)` @@ -7630,7 +7630,7 @@

ABS

Returns the absolute value of arg. An error is raised if arg is not a numeric value.

This function is the same as - fn:numeric-abs + fn:abs for terms with a datatype from XDM.

@@ -7653,7 +7653,7 @@
ROUND

Returns the number with no fractional part that is closest to the argument. If there are two such numbers, then the one that is closest to positive infinity is returned. An error is raised if arg is not a numeric value.

-

This function is the same as fn:numeric-round for terms with a datatype from XDM.

+

This function is the same as fn:round for terms with a datatype from XDM.

@@ -7680,7 +7680,7 @@
CEIL
that is not less than the value of arg. An error is raised if arg is not a numeric value.

This function is the same as - fn:numeric-ceil + fn:ceiling for terms with a datatype from XDM.

@@ -7704,7 +7704,7 @@
FLOOR
is not greater than the value of arg. An error is raised if arg is not a numeric value.

This function is the same as - fn:numeric-floor + fn:floor for terms with a datatype from XDM.

From e3f08c31f0bc65b99017bd8b1a69f332b81e74ea Mon Sep 17 00:00:00 2001 From: Gregory Todd Williams Date: Thu, 13 Nov 2025 09:34:53 -0800 Subject: [PATCH 2/2] Apply suggestion from @afs. --- spec/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/index.html b/spec/index.html index 515c456d..a7a5af6a 100644 --- a/spec/index.html +++ b/spec/index.html @@ -4605,7 +4605,7 @@

Expressions and Testing Values

functions are invoked by name (an IRI) within a SPARQL query. For example:

         ... FILTER ( xsd:dateTime(?date) < xsd:dateTime("2005-01-01T00:00:00Z") ) ...
-

Typographical convention in this section: XPath operators are labeled with the prefix +

Typographical convention: XPath operators are labeled with the prefix op:. XPath operators have no namespace; op: is a labeling convention.