query-918fa7b188520cb584a2db6b79eac94d
Propertiesinstance of (P31)has part(s) (P527)part of (P361)
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 ?has_part ?has_partLabel WHERE {
?item wdt:P31 wd:Q493522.
?item wdt:P527 ?has_part.
SERVICE wikibase:label { bd:serviceParam wikibase:language "nl". }
FILTER (NOT EXISTS { ?has_part wdt:P361 ?item. })
}
ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?has_part"):::projected
v3("?item"):::projected
v1("?itemLabel"):::projected
c6(["bd:serviceParam"]):::iri
c3(["wd:Q493522"]):::iri
c8(["nl"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P361"--> e0v2
e0v1("?has_part"):::projected
e0v2("?item"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> c1
f0 --> v3
v2 --"wdt:P361"--> v3
v3 --"wdt:P31"--> c3
v3 --"wdt:P527"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end