Skip to main content

trim

The string function used to trim any leading or trailing spaces from either end of a string.

Returns: string

Table 1.

Parameter

Type

value

string



Example

Query

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

SELECT (fn:trim("    foo    ") AS ?trim)
{
}

Try the query

Table 2. Results

trim

foo