query-ea6726f00505cf6c9a01e5d03168a0dd
...to this...
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 ?bottomSuperclass ?rgb ?parent ?bottomSuperclassLabel ?parentLabel{
bind ( wd:Q208511 as ?bottom) .
?bottom wdt:P279* ?bottomSuperclass.
?bottomSuperclass wdt:P279 ?parent .
OPTIONAL {
VALUES (?bottomSuperclass ?rgb) { (wd:Q208511 'FF0000') }
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en,[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?bottom")
v4("?bottomSuperclass"):::projected
v3("?parent"):::projected
v4("?rgb"):::projected
c3(["bd:serviceParam"]):::iri
c5(["it,en,#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/"'wd:Q208511'"/]
bind0 --as--o v1
v1 --"wdt:P279"--> v4
v4 --"wdt:P279"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
bind1[/VALUES ?bottomSuperclass ?rgb/]
bind1-->v4
bind1-->v4
bind10(["wd:Q208511"])
bind10 --> bind1
bind11(["FF0000"])
bind11 --> bind1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 -."wikibase:language".-> c5
end