count_if
Aggregates boolean values. Returns the number of TRUE
boolean values.
Parameter | Type | Description |
---|---|---|
| boolean | The values to count |
Returns: integer
Example
Query:
PREFIX : <https://ddw-doccorp.linked.data.world/d/sparql-aggregation-sample-queries/> PREFIX agg: <http://data.world/function/aggregate#> SELECT (agg:countIf(?foo > 3) AS ?count_if) { [ :col-aggregations-foo ?foo ] }
Result:
count_if |
---|
4 |