greatest
The function used to take two values and return the greater of them in standard order. Works with numbers, strings, and dates.
Returns: any
Table 1.
Parameter | Type |
---|---|
value | any |
Example
Query
PREFIX : <https://ddw-doccorp.linked.data.world/d/sparql-function-sample-queries/> PREFIX fn: <http://data.world/function/functions#> SELECT (fn:greatest(3,4) as ?greatest) { }
Table 2. Results
greatest |
---|
4 |