Skip to main content

right

A function taking three integer values representing red, green and blue color components, and returning a color. Each component should be an integer between 0 and 255.

Parameter

Type

Description

string

string

the string from which to take the rightmost characters

num_chars

string

the number of characters to get

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:right("asdf", 2) AS ?right)
{
}

Run query

Results:

right

df