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.

Returns: boolean

Table 1.

Parameter

Type

Description

value

boolean

The values to combine with AND



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

Try the query

Table 1. Results

bool_and

true