query-59daff498786f4534a7a2ba345c2dbef
Bloomsbury GroupMake a graph of the messy relationships within the Bloomsbury Group!
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Bloomsbury Messiness
#defaultView:Graph
select distinct ?person ?personLabel
?image
?linkTo
?linkToLabel
?edgeLabel
where {
?person wdt:P31 wd:Q5;
(wdt:P135|wdt:P463) wd:Q603529.
optional{?person wdt:P18 ?image.}
optional{?person ?directClaimP ?linkTo.
?linkTo (wdt:P135|wdt:P463) wd:Q603529;
wdt:P31 wd:Q5.
?p wikibase:directClaim ?directClaimP.
?p rdfs:label ?edgeLabel.
filter(lang(?edgeLabel)="en")}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?directClaimP")
v1("?edgeLabel"):::projected
v3("?image"):::projected
v5("?linkTo"):::projected
v6("?p")
v2("?person"):::projected
c11(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c5(["wd:Q603529"]):::iri
v2 --"wdt:P31"--> c3
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P463"--> c5
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P135"--> c5
end
union0r <== or ==> union0l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P18".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -->v4--> v5
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v5 -."wdt:P463".-> c5
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v5 --"wdt:P135"--> c5
end
union1r <== or ==> union1l
end
v5 --"wdt:P31"--> c3
v6 --"wikibase:directClaim"--> v4
v6 --"rdfs:label"--> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end