query-8edaeceb15a622fed02199c55d9bf034
Chemical compounds with "found in taxon" P703, where the taxon is other than homo sapiens. SELECT ?item WHERE { ?item wdt:P31 wd:Q11173 . ?item wdt:P703 ?taxon . MINUS {?item wdt:P703 wd:Q15978631 .} SERVICE wikibase:label { bd:serviceParam wikibase:language "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#>
#Chemical compounds with "found in taxon" P703, where the taxon is other than homo sapiens.
SELECT ?item
WHERE {
?item wdt:P31 wd:Q11173 .
?item wdt:P703 ?taxon .
MINUS {?item wdt:P703 wd:Q15978631 .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?taxon")
c6(["bd:serviceParam"]):::iri
c2(["wd:Q11173"]):::iri
c8(["en"]):::literal
c4(["wd:Q15978631"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P703"--> v2
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P703"--> c4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end