Skip to main content

bool_and

Aggregates boolean values. It returns TRUE if all of the values in the aggregation are true and FALSE if any of them are false, ignoring unbound values.

Parameter

Type

Description

value

boolean

The values to combine with AND

Returns: boolean

Example

Query:

PREFIX : <https://ddw-doccorp.linked.data.world/d/sparql-aggregation-sample-queries/>
PREFIX agg: <http://data.world/function/aggregate#>

SELECT (agg:bool_and(?foo > 0) AS ?bool_and)
{
    [ :col-aggregations-foo ?foo ]
}

Run query

Result:

bool_and

true