query-aaccc72d433a4ed79a0339d1fd2dd5f5
...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 ?w ?wLabel ?p ?pLabel ("EC0000" AS ?rgb)
WHERE
{
?w wdt:P463 wd:Q105757481 .
?w wdt:P31 ?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")
c6(["bd:serviceParam"]):::iri
c2(["wd:Q105757481"]):::iri
c8(["de,en"]):::literal
v1 --"wdt:P463"--> c2
v1 --"wdt:P31"--> 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;
c6 --"wikibase:language"--> c8
end
bind0[/"'EC0000'"/]
bind0 --as--o v4