query-c16bb3441748b6b65794277426990c73
TODO
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 DISTINCT ?item ?itemLabel
WHERE
{
?item wdt:P27 wd:Q142.
?item wdt:P106 wd:Q40348.
filter not exists {?item wdt:P106 ?something. filter (!contains(str(?something),"Q40348") ) }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr,en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?something")
c5(["wd:Q40348"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,fr,en"]):::literal
c4(["wd:Q142"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["not contains(str(?something),'Q40348')"]]
e0f0 --> e0v1
e0v2 --"wdt:P106"--> e0v1
e0v2("?item"):::projected
e0v1("?something"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> v2
f0 --> c2
f1[["not contains(str(?something),'Q40348')"]]
f1 --> v1
v2 --"wdt:P106"--> v1
v2 --"wdt:P27"--> c4
v2 --"wdt:P106"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end