query-30091c16b172751389cc1d91af3fb05a
Deutsche Kabinette
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#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX v: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
SELECT ?cabinet ?cabinetLabel ?stateLabel ?chairmanLabel ?start ?end ?previousLabel ?nextLabel ?previous ?next WHERE {
?cabinet p:P31 ?cabinetStatement .
?cabinetStatement v:P31 wd:Q314729 .
OPTIONAL{?cabinetStatement pq:P642 ?state}
OPTIONAL{?cabinetStatement pq:P580 ?start}
OPTIONAL{?cabinetStatement pq:P582 ?end}
OPTIONAL{?cabinet wdt:P488 ?chairman}
OPTIONAL{?cabinet wdt:P155 ?previous}
OPTIONAL{?cabinet wdt:P156 ?next}
SERVICE wikibase:label {bd:serviceParam wikibase:language "de"}
}
ORDER BY ?stateLabel ?start
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?cabinet"):::projected
v4("?cabinetStatement")
v7("?chairman")
v6("?end"):::projected
v9("?next"):::projected
v8("?previous"):::projected
v2("?start"):::projected
v5("?state")
v1("?stateLabel"):::projected
c13(["de"]):::literal
c11(["bd:serviceParam"]):::iri
c3(["wd:Q314729"]):::iri
v3 --"p:P31"--> v4
v4 --"p:statement/P31"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:qualifier/P642".-> v5
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:qualifier/P580".-> v2
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:qualifier/P582".-> v6
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P488".-> v7
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P155".-> v8
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:direct/P156".-> v9
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end