Skip to main content

reverse

The string function used to reverse the characters in a string.

Parameter

Type

value

string

Returns: string

Example

Query:

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

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

Run query

Results:

reverse

oof