query-570902ca3fb2cad9ec021cf5a86c50af
TODO
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 ?nodeFrom ?nodeFromLabel ?nodeFromImage ?rgb ?nodeTo ?nodeToLabel ?nodeToImage WHERE {
{
SELECT (?project AS ?nodeFrom) (?projectImage AS ?nodeFromImage) ("2e86c1" AS ?rgb) (wd:Q110553382 AS ?nodeTo) (?cvdImage AS ?nodeToImage) WHERE {
?project wdt:P9883 wd:Q110553382.
OPTIONAL { ?project wdt:P18 ?projectImage. }
OPTIONAL { wd:Q110553382 wdt:P18 ?cvdImage. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "de". }
}
}
UNION
{
SELECT (?project AS ?nodeFrom) (?projectImage AS ?nodeFromImage) ("2e86c1" AS ?rgb) (?dataset AS ?nodeTo) (?datasetImage AS ?nodeToImage) WHERE {
?project wdt:P9883 wd:Q110553382;
wdt:P2283 ?dataset.
OPTIONAL { ?project wdt:P18 ?projectImage. }
OPTIONAL { ?dataset wdt:P18 ?datasetImage. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "de". }
}
}
UNION
{
SELECT (?dataset AS ?nodeFrom) (?datasetImage AS ?nodeFromImage) ("2e86c1" AS ?rgb) (?creator AS ?nodeTo) (?creatorImage AS ?nodeToImage) WHERE {
?project wdt:P9883 wd:Q110553382;
wdt:P2283 ?dataset.
?dataset wdt:P170 ?creator.
OPTIONAL { ?creator wdt:P18 ?creatorImage. }
OPTIONAL { ?dataset wdt:P18 ?datasetImage. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "de". }
}
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "de". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v11("?creator")
v12("?creatorImage")
v3("?cvdImage")
v9("?dataset")
v10("?datasetImage")
v13("?nodeFrom"):::projected
v13("?nodeFromImage"):::projected
v13("?nodeTo"):::projected
v13("?nodeToImage"):::projected
v1("?project")
v2("?projectImage")
v13("?rgb"):::projected
c7(["de"]):::literal
c5(["bd:serviceParam"]):::iri
c2(["wd:Q110553382"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P9883"--> c2
v1 --"wdt:P2283"--> v9
v9 --"wdt:P170"--> v11
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v11 -."wdt:P18".-> v12
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v9 -."wdt:P18".-> v10
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind0[/"?dataset"/]
v9 --o bind0
bind0 --as--o v13
bind1[/"?datasetImage"/]
v10 --o bind1
bind1 --as--o v13
bind2[/"'2e86c1'"/]
bind2 --as--o v13
bind3[/"?creator"/]
v11 --o bind3
bind3 --as--o v13
bind4[/"?creatorImage"/]
v12 --o bind4
bind4 --as--o v13
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P9883"--> c2
v1 --"wdt:P2283"--> v9
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v2
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v9 -."wdt:P18".-> v10
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind5[/"?project"/]
v1 --o bind5
bind5 --as--o v13
bind6[/"?projectImage"/]
v2 --o bind6
bind6 --as--o v13
bind7[/"'2e86c1'"/]
bind7 --as--o v13
bind8[/"?dataset"/]
v9 --o bind8
bind8 --as--o v13
bind9[/"?datasetImage"/]
v10 --o bind9
bind9 --as--o v13
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P9883"--> c2
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v2
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
c2 -."wdt:P18".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind10[/"?project"/]
v1 --o bind10
bind10 --as--o v13
bind11[/"?projectImage"/]
v2 --o bind11
bind11 --as--o v13
bind12[/"'2e86c1'"/]
bind12 --as--o v13
bind13[/"'wd:Q110553382'"/]
bind13 --as--o v13
bind14[/"?cvdImage"/]
v3 --o bind14
bind14 --as--o v13
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end