Skip to main content

rgb

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

r

integer

g

integer

b

integer

Returns: color

Example

Query:

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

SELECT (fn:rgb(255, 0, 255) AS ?rgb)
{
}

Run query

Results:

Screen_Shot_2022-11-24_at_9_31_22_PM.png