query-dbc6962737b7e7aee9e3ab0889ac2d46
title: items by country without coordinates SELECT ?item ?itemLabel ?itemDescription WHERE { ?item wdt:P17 wd:Q40 . #?item wdt:P31 wd:Q8502 . # mountain filter not exists { ?item wdt:P625 [] .} minus { ?item wdt:P31 wd:Q13406463} # Wikimedia-Liste minus { ?item wdt:P31 wd:Q43229} # Organisation minus { ?item wdt:P31 wd:Q4830453 } # Gewerbebetrieb minus { ?item wdt:P31 wd:Q93868746 } #numerischer Identifikator minus { ?item wdt:P31/wdt:P279 wd:Q12973014 } # Sportmannschaft #minus { ?item wdt:P31/wdt:P279 wd:Q43229} # Organisation SERVICE wikibase:label { bd:serviceParam wikibase:language '[AUTO_LANGUAGE,de,en]' } } limit 10000
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 bd: <http://www.bigdata.com/rdf#>
#title: items by country without coordinates
SELECT ?item ?itemLabel ?itemDescription WHERE {
?item wdt:P17 wd:Q40 .
#?item wdt:P31 wd:Q8502 . # mountain
filter not exists { ?item wdt:P625 [] .}
minus { ?item wdt:P31 wd:Q13406463} # Wikimedia-Liste
minus { ?item wdt:P31 wd:Q43229} # Organisation
minus { ?item wdt:P31 wd:Q4830453 } # Gewerbebetrieb
minus { ?item wdt:P31 wd:Q93868746 } #numerischer Identifikator
minus { ?item wdt:P31/wdt:P279* wd:Q12973014 } # Sportmannschaft
#minus { ?item wdt:P31/wdt:P279* wd:Q43229} # Organisation
SERVICE wikibase:label { bd:serviceParam wikibase:language '[AUTO_LANGUAGE,de,en]' }
} limit 10000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
a1((" "))
a2((" "))
c8(["wd:Q93868746"]):::iri
c3(["wd:Q40"]):::iri
c7(["wd:Q4830453"]):::iri
c5(["wd:Q13406463"]):::iri
c6(["wd:Q43229"]):::iri
c12(["bd:serviceParam"]):::iri
c10(["wd:Q12973014"]):::iri
c14(["#91;AUTO_LANGUAGE,de,en#93;"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P625"--> e0a1
e0v1("?item"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
v1 --"wdt:P625"--> a1
v1 --"wdt:P17"--> c3
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> c5
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> c6
end
subgraph minus3["MINUS"]
style minus3 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> c7
end
subgraph minus4["MINUS"]
style minus4 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> c8
end
subgraph minus5["MINUS"]
style minus5 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c10
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end