query-2e989614e1b6d314b5a74065e8bc836a
categories incomplete for instance of class of ambassadors to a country SELECT DISTINCT ?item ?itemLabel ?cat ?catLabel WHERE { ?cat wdt:P31 wd:Q4167836. ?item wdt:P910 ?cat. ?item wdt:P31/wdt:P279* wd:Q29645886. FILTER NOT EXISTS {?cat wdt:P301 ?item_}. SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" } }
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#>
#categories incomplete for instance of class of ambassadors to a country
SELECT DISTINCT ?item ?itemLabel ?cat ?catLabel
WHERE
{ ?cat wdt:P31 wd:Q4167836.
?item wdt:P910 ?cat.
?item wdt:P31/wdt:P279* wd:Q29645886.
FILTER NOT EXISTS {?cat wdt:P301 ?item_}.
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?cat"):::projected
v3("?item"):::projected
v2("?item_")
a1((" "))
c8(["bd:serviceParam"]):::iri
c6(["wd:Q29645886"]):::iri
c10(["fr,en"]):::literal
c3(["wd:Q4167836"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P301"--> e0v2
e0v1("?cat"):::projected
e0v2("?item_"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"wdt:P301"--> v2
v1 --"wdt:P31"--> c3
v3 --"wdt:P910"--> v1
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end