Skip to main content

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.

Returns: any

Table 1.

Parameter

Type

Description

value

any

the value to be maximized



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 ]
}

Try the query

Table 1. Results

max

87