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.

Returns: string

Table 1.

Parameter

Type

Description

value

string

the values to be concatenated



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

Try the query

Table 1. Results

group_concat

1 3 6 87 5 5