max
max
returns the greatest value in a specified column which are not unbound and can be used with numeric and non-numeric data. data.world's max
differs from the default SPARQL max
in that it ignores unbound values. In standard SPARQL, if any of the values are unbound then the result is unbound.
Parameter | Type | Description |
---|---|---|
| any | the value to be maximized |
Returns: any
Example
Query:
PREFIX : <https://ddw-doccorp.linked.data.world/d/sparql-aggregation-sample-queries/> PREFIX agg: <http://data.world/function/aggregate#> SELECT (agg:max(?foo) AS ?max) { [ :col-aggregations-foo ?foo ] }
Result:
max |
---|
87 |