query-25a12db9e656e95c4d3628983a89fbc1
Caves without country
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#>
PREFIX schema: <http://schema.org/>
SELECT DISTINCT ?item ?statements ?sitelinks ?itemLabel ?itemDescription ?coordinate_location ?image WHERE {
?item (wdt:P31/wdt:P279*) wd:Q35509.
?item wikibase:statements ?statements.
?item wikibase:sitelinks ?sitelinks.
MINUS { ?item wdt:P17 _:b1. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en, bg". }
OPTIONAL { ?item wdt:P625 ?coordinate_location. }
OPTIONAL { ?item wdt:P18 ?image. }
}
ORDER BY ?statements
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?coordinate_location"):::projected
v5("?image"):::projected
v2("?item"):::projected
v3("?sitelinks"):::projected
v1("?statements"):::projected
a2((" "))
a1((" "))
c8(["bd:serviceParam"]):::iri
c3(["wd:Q35509"]):::iri
c10(["en, bg"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wikibase:statements"--> v1
v2 --"wikibase:sitelinks"--> v3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P17"--> a2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P625".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P18".-> v5
end