query-a084a257aa3e561bc8458001526202eb
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 ?thing (REPLACE(STR(?thing), ".*Q", "Q") AS ?thingQ) ?thingLabel WHERE {
?thing wdt:P279 wd:Q11446.
MINUS {
?thing wdt:P279 ?super.
FILTER(?super != wd:Q11446)
?super (wdt:P279+) wd:Q1229765.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr,es,it,de,pl". }
}
LIMIT 500
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?super")
v1("?thing"):::projected
v3("?thingQ")
c5(["bd:serviceParam"]):::iri
c3(["wd:Q1229765"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en,fr,es,it,de,pl"]):::literal
c2(["wd:Q11446"]):::iri
v1 --"wdt:P279"--> c2
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
f1[["?super != 'wd:Q11446'"]]
f1 --> v2
v1 --"wdt:P279"--> v2
v2 --"wdt:P279"--> c3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind2[/"replace(str(?thing),'.*Q','Q')"/]
v1 --o bind2
bind2 --as--o v3