query-5b79b039e6e820b8ceed54ad7edbb0eb
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT $municipality $municipalityLabel
{
$municipality wdt:P31 wd:Q262166;
p:P31 [
ps:P31 wd:Q262166;
wikibase:rank wikibase:PreferredRank
].
SERVICE wikibase:label {bd:serviceParam wikibase:language "de,en"}
}
ORDER BY $municipalityLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?municipality"):::projected
v1("?municipalityLabel"):::projected
a1((" "))
c8(["bd:serviceParam"]):::iri
c5(["wikibase:PreferredRank"]):::iri
c2(["wd:Q262166"]):::iri
c10(["de,en"]):::literal
v2 --"p:direct/P31"--> c2
a1 --"p:statement/P31"--> c2
a1 --"wikibase:rank"--> c5
v2 --"p:P31"--> a1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end