query-febeb43607f5f201dc391d3963d3193a
TreeMap of the 1st Parliament of Finland
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:TreeMap
SELECT ?district ?districtLabel ?item ?itemLabel
WHERE
{
VALUES ?district { wd:Q3736054 wd:Q5450453 wd:Q6304483 wd:Q6304614
wd:Q6304273 wd:Q11901356 wd:Q5475162 wd:Q6304318
wd:Q6304515 wd:Q6305040 wd:Q11899973 wd:Q11899976
wd:Q11899974 wd:Q18342082 wd:Q11886106 wd:Q6488275}
BIND(wd:Q17592486 as ?member)
BIND(wd:Q2052948 as ?election) .
?item wdt:P39 ?member;
p:P39 ?statement.
?statement ps:P39 ?member;
pq:P2715 ?election;
pq:P768 ?district.
?item rdfs:label ?_itemLabel.
?item wdt:P102 ?politicalparty;
rdfs:label ?_ppLabel.
FILTER((LANG(?_ppLabel)) = "fi")
SERVICE wikibase:label { bd:serviceParam wikibase:language "fi" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?_itemLabel")
v1("?_ppLabel")
v2("?district"):::projected
v4("?election")
v5("?item"):::projected
v3("?member")
v8("?politicalparty")
v6("?statement")
c1(["fi"]):::literal
c10(["bd:serviceParam"]):::iri
f0[["?_ppLabel = 'fi'"]]
f0 --> v1
bind1[/VALUES ?district/]
bind1-->v2
bind10(["wd:Q3736054"])
bind10 --> bind1
bind11(["wd:Q5450453"])
bind11 --> bind1
bind12(["wd:Q6304483"])
bind12 --> bind1
bind13(["wd:Q6304614"])
bind13 --> bind1
bind14(["wd:Q6304273"])
bind14 --> bind1
bind15(["wd:Q11901356"])
bind15 --> bind1
bind16(["wd:Q5475162"])
bind16 --> bind1
bind17(["wd:Q6304318"])
bind17 --> bind1
bind18(["wd:Q6304515"])
bind18 --> bind1
bind19(["wd:Q6305040"])
bind19 --> bind1
bind110(["wd:Q11899973"])
bind110 --> bind1
bind111(["wd:Q11899976"])
bind111 --> bind1
bind112(["wd:Q11899974"])
bind112 --> bind1
bind113(["wd:Q18342082"])
bind113 --> bind1
bind114(["wd:Q11886106"])
bind114 --> bind1
bind115(["wd:Q6488275"])
bind115 --> bind1
bind2[/"'wd:Q17592486'"/]
bind2 --as--o v3
bind3[/"'wd:Q2052948'"/]
bind3 --as--o v4
v5 --"p:direct/P39"--> v3
v5 --"p:P39"--> v6
v6 --"p:statement/P39"--> v3
v6 --"p:qualifier/P2715"--> v4
v6 --"p:qualifier/P768"--> v2
v5 --"rdfs:label"--> v7
v5 --"p:direct/P102"--> v8
v5 --"rdfs:label"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c1
end