Skip to main content

string_split

Splits a string into one or more sub strings, based on a delimiter character. Note that unlike other SPARQL built-ins, string_split returns multiple rows, one for each sub string.

No parameters

Returns: string

Example

Query

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

SELECT ?split
{   
?split <http://data.world/function/functions#string_split>("foo,bar,baz" ","  ) 
}

Try the query

Results:

Table 1.

Split

foo

bar

baz