query-f75045fa2010130379475bbd5ca3c9b7
title:all Austrian wikidata mountain entries without image SELECT ?_s ?_sLabel ?_sDescription (GROUP_CONCAT(DISTINCT ?woBezeichnung; separator=', ') AS ?woLabels) WHERE { ?_s wdt:P17 wd:Q40 . ?_s wdt:P131/wdt:P279 wd:Q40 . ?_s wdt:P31 wd:Q8502 . ?_s wdt:P625 [] . ?_s wdt:P131 ?wo .
OPTIONAL { ?wo rdfs:label ?woLiteral . FILTER(LANG(?woLiteral) = 'de') . } BIND(IF(BOUND(?woLiteral), ?woLiteral, STRAFTER(STR(?wo), 'entity/')) AS ?woBezeichnung) .
MINUS { ?_s wdt:P18 [] } MINUS { ?_s wdt:P373 [] } SERVICE wikibase:label { bd:serviceParam wikibase:language '[AUTO_LANGUAGE,de,en]' } } GROUP BY ?_s ?_sLabel ?_sDescription ORDER BY ASC(?_sLabel)
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:all Austrian wikidata mountain entries without image
SELECT ?_s ?_sLabel ?_sDescription (GROUP_CONCAT(DISTINCT ?woBezeichnung; separator=', ') AS ?woLabels) WHERE {
?_s wdt:P17 wd:Q40 .
?_s wdt:P131*/wdt:P279* wd:Q40 .
?_s wdt:P31 wd:Q8502 .
?_s wdt:P625 [] .
?_s wdt:P131 ?wo .
OPTIONAL {
?wo rdfs:label ?woLiteral .
FILTER(LANG(?woLiteral) = 'de') .
}
BIND(IF(BOUND(?woLiteral), ?woLiteral, STRAFTER(STR(?wo), 'entity/')) AS ?woBezeichnung) .
MINUS { ?_s wdt:P18 [] }
MINUS { ?_s wdt:P373 [] }
SERVICE wikibase:label { bd:serviceParam wikibase:language '[AUTO_LANGUAGE,de,en]' }
} GROUP BY ?_s ?_sLabel ?_sDescription ORDER BY ASC(?_sLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?_s"):::projected
v1("?_sLabel"):::projected
v4("?wo")
v5("?woBezeichnung"):::projected
v6("?woLabels")
v2("?woLiteral")
a2((" "))
a3((" "))
a4((" "))
a1((" "))
c3(["wd:Q40"]):::iri
c13(["bd:serviceParam"]):::iri
c15(["#91;AUTO_LANGUAGE,de,en#93;"]):::literal
c7(["wd:Q8502"]):::iri
v3 --"wdt:P17"--> c3
v3 --"wdt:P131"--> a1
a1 --"wdt:P279"--> c3
v3 --"wdt:P31"--> c7
v3 --"wdt:P625"--> a2
v3 --"wdt:P131"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."rdfs:label".-> v2
end
bind0[/"if(bound(?woLiteral),?woLiteral,substring-after(str(?wo),'entity/'))"/]
v2 --o bind0
v4 --o bind0
bind0 --as--o v5
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v3 --"wdt:P18"--> a3
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v3 --"wdt:P373"--> a4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end
bind4[/"?woBezeichnung"/]
v5 --o bind4
bind4 --as--o v6