-
Notifications
You must be signed in to change notification settings - Fork 3
Update names of referenced XPath functions and operators. #304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
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`
hartig
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
|
I checked Section 17 says https://www.w3.org/TR/sparql12-query/#expressions
See suggestion. |
| functions are invoked by name (an IRI) within a SPARQL query. For example:</p> | ||
| <pre class="query nohighlight"> | ||
| ... FILTER ( xsd:dateTime(?date) < xsd:dateTime("2005-01-01T00:00:00Z") ) ...</pre> | ||
| <p>Typographical convention in this section: XPath operators are labeled with the prefix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <p>Typographical convention: XPath operators are labeled with the prefix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(hmm - looks bad but it is a long way from the PR chnages and also the github UI was struggling when dealing with the whole file.)
s/Typographical convention in this section:/Typographical convention:/
Tpt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
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-equalfn:numeric-abs->fn:absfn:numeric-round->fn:roundfn:numeric-ceil->fn:ceilingfn:numeric-floor->fn:floorPreview | Diff