query-ede90f461678a7c1c239afa52100e0ed
Seiten im deutschen Wikipedia mit Bezug zu Dänemark
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 schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Table
#title: dewiki - Seiten über Dänemark
SELECT ?page_title ?article (GROUP_CONCAT(?class; SEPARATOR = ", ") AS ?klassen) (GROUP_CONCAT(DISTINCT ?gehoert_zu; SEPARATOR = ", ") AS ?liegt_in) ?item ?geo_koordinaten WHERE {
?item (wdt:P131*) wd:Q35;
wdt:P131 ?ve;
wdt:P31 ?instance.
?article schema:about ?item;
schema:isPartOf <https://de.wikipedia.org/>;
schema:name ?page_title.
optional {
?item wdt:P625 ?geo_koordinaten.
}
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?instance rdfs:label ?class.
?ve rdfs:label ?gehoert_zu.
}
}
GROUP BY ?page_title ?article ?item ?geo_koordinaten
ORDER BY (?klassen)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?article"):::projected
v8("?class"):::projected
v9("?gehoert_zu"):::projected
v7("?geo_koordinaten"):::projected
v4("?instance")
v2("?item"):::projected
v10("?klassen")
v10("?liegt_in")
v6("?page_title"):::projected
v3("?ve")
c6([https://de.wikipedia.org/]):::iri
c2(["wd:Q35"]):::iri
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P131"--> c2
v2 --"wdt:P131"--> v3
v2 --"wdt:P31"--> v4
v5 --"schema:about"--> v2
v5 --"schema:isPartOf"--> c6
v5 --"schema:name"--> v6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P625".-> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
v4 --"rdfs:label"--> v8
v3 --"rdfs:label"--> v9
end
bind2[/"?class"/]
v8 --o bind2
bind2 --as--o v10
bind3[/"?gehoert_zu"/]
v9 --o bind3
bind3 --as--o v10