query-f22d3d1c5c9cbf10d66afe2d04d5bed6

rq turtle/ttl

SPARQL-Abfrage

Use at

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:Map{"hide":["?geo"]}
SELECT ?item ?itemLabel ?geo ?image ?religion ?religionLabel (?religionLabel AS ?layer) WHERE 
{
 ?item wdt:P276 wd:Q1715 ;
       wdt:P625 ?geo ;
       wdt:P140 ?religion .
 {?item wdt:P31/wdt:P279* wd:Q16970} UNION {?item wdt:P31 wd:Q32815} UNION {?item wdt:P31 wd:Q44613} UNION {?item wdt:P31 wd:Q44539} UNION {?item wdt:P31 wd:Q34627} UNION {?item wdt:P31 wd:Q162875}
 FILTER NOT EXISTS { ?item wdt:P5816 wd:Q56556915 }
 OPTIONAL { ?item wdt:P18 ?image . } 
 SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de,en" . }
}
ORDER BY DESC(?itemLabel)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?geo"):::projected v5("?image"):::projected v2("?item"):::projected v1("?itemLabel"):::projected v6("?layer") v4("?religion"):::projected a1((" ")) c10(["wd:Q32815"]):::iri c4(["wd:Q1715"]):::iri c11(["wd:Q44613"]):::iri c2(["wd:Q56556915"]):::iri c12(["wd:Q44539"]):::iri c17(["bd:serviceParam"]):::iri c14(["wd:Q162875"]):::iri c9(["wd:Q16970"]):::iri c19(["#91;AUTO_LANGUAGE#93;,de,en"]):::literal c13(["wd:Q34627"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P5816"--> e0c2 e0v1("?item"):::projected e0c2(["wd:Q56556915"]):::iri end f0--EXISTS--> f0e0 f0 --> v2 f0 --> c1 f0 --> c2 v2 --"wdt:P5816"--> c2 v2 --"wdt:P276"--> c4 v2 --"wdt:P625"--> v3 v2 --"wdt:P140"--> v4 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; subgraph union3[" Union "] subgraph union3l[" "] style union3l fill:#abf,stroke-dasharray: 3 3; subgraph union4[" Union "] subgraph union4l[" "] style union4l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c14 end subgraph union4r[" "] style union4r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c13 end union4r <== or ==> union4l end end subgraph union3r[" "] style union3r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c12 end union3r <== or ==> union3l end end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c11 end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c10 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c9 end union0r <== or ==> union0l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P18".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c17 --"wikibase:language"--> c19 end bind1[/"?religionLabel"/] null --o bind1 bind1 --as--o v6