query-318c049225d3fd4973f41a8ea31a004b
Web colors:
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?web_color ?web_colorLabel ?CSS_color_keyword ?sRGB_color_hex_triplet ?subclass_of ?subclass_ofLabel ?named_after ?named_afterLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?web_color wdt:P8112 ?CSS_color_keyword.
OPTIONAL { ?web_color wdt:P465 ?sRGB_color_hex_triplet. }
OPTIONAL { ?web_color wdt:P279 ?subclass_of. }
OPTIONAL { ?web_color wdt:P138 ?named_after. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?CSS_color_keyword"):::projected
v5("?named_after"):::projected
v3("?sRGB_color_hex_triplet"):::projected
v4("?subclass_of"):::projected
v1("?web_color"):::projected
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P8112"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P465".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P279".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P138".-> v5
end