query-0c40d7640a96ad30240098824a472bfb
Hiérarchie des sous classes d'administration publique française
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:Tree
SELECT ?root ?rootLabel
?level1 ?level1Label
?level2 ?level2Label
?level3 ?level3Label
?level4 ?level4Label
?level5 ?level5Label
?level6 ?level6Label
?level7 ?level7Label
?level8 ?level8Label
?level9 ?level9Label
WHERE {
BIND(wd:Q2824642 AS ?super)
?level1 wdt:P279 ?super.
OPTIONAL {
?level2 wdt:P279 ?level1.
OPTIONAL {
?level3 wdt:P279 ?level2.
OPTIONAL {
?level4 wdt:P279 ?level3.
OPTIONAL {
?level5 wdt:P279 ?level4.
OPTIONAL {
?level6 wdt:P279 ?level5.
OPTIONAL {
?level7 wdt:P279 ?level6.
OPTIONAL {
?level8 wdt:P279 ?level7.
OPTIONAL {
?level9 wdt:P279 ?level8.
}
}
}
}
}
}
}
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?level1"):::projected
v3("?level2"):::projected
v4("?level3"):::projected
v5("?level4"):::projected
v6("?level5"):::projected
v7("?level6"):::projected
v8("?level7"):::projected
v9("?level8"):::projected
v10("?level9"):::projected
v1("?super")
c3(["bd:serviceParam"]):::iri
c5(["fr"]):::literal
bind0[/"'wd:Q2824642'"/]
bind0 --as--o v1
v2 --"wdt:P279"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P279".-> v2
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P279".-> v3
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v5 -."wdt:P279".-> v4
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v6 -."wdt:P279".-> v5
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v7 -."wdt:P279".-> v6
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v8 -."wdt:P279".-> v7
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v9 -."wdt:P279".-> v8
subgraph optional7["(optional)"]
style optional7 fill:#bbf,stroke-dasharray: 5 5;
v10 -."wdt:P279".-> v9
end
end
end
end
end
end
end
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end