Skip to main content

with_color

A data.world specific function for controlling the formatting of query results. Cells with with_color specified will be displayed with the selected color in data.world query results. For any other uses (e.g. export to CSV or API access), the with_color specification is ignored.

Returns: formattedtext

Table 1.

Parameter

Type

value

string, formattedtext

color

color



Example

Query

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

SELECT (fn:with_color("show this in red", fn:color("red")) AS ?with_color)
{
}

Try the query

Results

color.png