query-c1f2605d20331288da0e3a1a07499fda
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 ?item ?itemLabel ?authority ?authorityLabel ?Landkreis ?LandkreisLabel
WHERE
{
{ SELECT ?item ?Landkreis ?authority
WHERE
{
?item p:P131 ?stat.
?stat ps:P131/wdt:P131* ?Landkreis .
?Landkreis p:P31/ps:P31 wd:Q106658.
?stat ps:P131 ?authority.
} }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de, en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?Landkreis"):::projected
v4("?authority"):::projected
v1("?item"):::projected
v2("?stat")
a1((" "))
a2((" "))
c6(["wd:Q106658"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,de, en"]):::literal
v1 --"p:P131"--> v2
v2 --"p:statement/P131"--> a1
a1 --"p:direct/P131"--> v3
v3 --"p:P31"--> a2
a2 --"p:statement/P31"--> c6
v2 --"p:statement/P131"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end