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



OSZAR »