Skip to main content

group_concat

group_concat takes string values and aggregates them into one value for each row with an optional separator. data.world's group_concat differs from the default SPARQL group_concat in that it ignores unbound values. In standard SPARQL, if any of the values are unbound then the result is unbound.

Parameter

Type

Description

value

string

the values to be concatenated

Returns: string

Example

Query:

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

SELECT (agg:group_concat(STR(?foo)) AS ?group_concat)
{
    [ :col-aggregations-foo ?foo ]
}

Run query

Result:

group_concat

1 3 6 87 5 5