Skip to main content

rtrim

The string function used to trim any trailing spaces from the right of a string.

Returns: string

Table 1.

Parameter

Type

Description

str

string

the string to remove the rightmost spaces of



Example

Query

PREFIX : <https://ddw-doccorp.linked.data.world/d/sparql-function-sample-queries/>
PREFIX fn: <http://data.world/function/functions#>
SELECT (fn:rtrim("foo    ") AS ?rtrim)
{
}

Try the query

Table 2. Results

rtrim

foo