query-aeb0c446a355e1d602c61323f9c158b2
Propertiesinstance of (P31)shares border with (P47)country (P17)
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#>
SELECT ?item ?itemLabel ?itemDescription ?shares_border_with ?shares_border_withLabel WHERE {
?item wdt:P31 wd:Q493522.
?item wdt:P47 ?shares_border_with.
SERVICE wikibase:label { bd:serviceParam wikibase:language "nl". }
FILTER(NOT EXISTS {
?shares_border_with wdt:P17 ?country
})
}
ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?country")
v4("?item"):::projected
v1("?itemLabel"):::projected
v2("?shares_border_with"):::projected
c6(["bd:serviceParam"]):::iri
c3(["wd:Q493522"]):::iri
c8(["nl"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P17"--> e0v2
e0v2("?country"):::projected
e0v1("?shares_border_with"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
v2 --"wdt:P17"--> v3
v4 --"wdt:P31"--> c3
v4 --"wdt:P47"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end