query-98fc00746644ab17b45b9e22df5b2a51
...as a graph
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Graph
SELECT DISTINCT ?p ?pLabel ?w ?wLabel ("EC0000" AS ?rgb)
WHERE
{
?w wdt:P463 wd:Q105757481 .
?w wdt:P463 ?p .
OPTIONAL { ?w wdt:P154 ?wpicture }
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?p"):::projected
v4("?rgb")
v1("?w"):::projected
v3("?wpicture")
c5(["bd:serviceParam"]):::iri
c2(["wd:Q105757481"]):::iri
c7(["de,en"]):::literal
v1 --"wdt:P463"--> c2
v1 --"wdt:P463"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P154".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind0[/"'EC0000'"/]
bind0 --as--o v4