query-2cbc324ec1ab0a55aedfab8effcb8313
TODO
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#>
SELECT DISTINCT ?item ?itemLabel ?org ?orgLabel ?partOf ?partOfLabel ?jurisdiction ?jurisdictionLabel WHERE {
?item (wdt:P31/wdt:P279*) wd:Q4164871.
?item wdt:P17 wd:Q29.
OPTIONAL {
?item wdt:P2389 ?org.
?item wdt:P361 ?partOf.
?item wdt:P1001 ?jurisdiction.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,es". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v4("?jurisdiction"):::projected
v2("?org"):::projected
v3("?partOf"):::projected
a1((" "))
c12(["#91;AUTO_LANGUAGE#93;,en,es"]):::literal
c5(["wd:Q29"]):::iri
c10(["bd:serviceParam"]):::iri
c3(["wd:Q4164871"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P17"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2389".-> v2
v1 --"wdt:P361"--> v3
v1 --"wdt:P1001"--> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end