Skip to main content

with_background_color

A data.world specific function for controlling the formatting of query results. Cells with with_background_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_background_color specification is ignored.

Parameter

Type

value

string, formattedtext

color

color

Returns: formattedtext

Example

Query:

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

SELECT (fn:with_background_color("show this on yellow", fn:color("yellow")) AS ?with_background_color)
{
}

Run query

Results:

background_color.png