query-0feae543804b1b4054a19ae30e60b162
Graph of co-membership between scholarly societies
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 ?person ?personLabel ?group ?groupLabel ("7FFF00" as ?rgb)
WHERE {
?person wdt:P570 ?death FILTER (YEAR(?death) < 1800).
?person wdt:P463 wd:Q123885. # That ?person is a person is implicit through membership
?person wdt:P463 ?group FILTER (?group != wd:Q123885).
?group wdt:P31/wdt:P279? wd:Q955824.
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;
v2("?death")
v1("?group"):::projected
v3("?person"):::projected
v4("?rgb")
a1((" "))
c9(["bd:serviceParam"]):::iri
c1(["wd:Q123885"]):::iri
c6(["wd:Q955824"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?group != 'wd:Q123885'"]]
f0 --> v1
f1[["year-from-dateTime(?death) < '1800^^xsd:integer'"]]
f1 --> v2
v3 --"wdt:P570"--> v2
v3 --"wdt:P463"--> c1
v3 --"wdt:P463"--> v1
v1 --"wdt:P31"--> a1
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
a1 --"wdt:P279"--> c6
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
bind2[/"'7FFF00'"/]
bind2 --as--o v4