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.

Returns: string

Table 1.

Parameter

Type

Description

string

string

the string from which to take the rightmost characters

num_chars

string

the number of characters to get



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)
{
}

Try the query

Table 2. Results

right

df