query-9954a4c187966be9829bba1cd541dec6
Cell component duplicates from FMA
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?item ?label WHERE {
?item wdt:P1402 [].
MINUS { ?item wdt:P31 wd:Q5058355 }
MINUS { ?item wdt:P279 wd:Q5058355 }
MINUS { ?item schema:description ?desc.
FILTER(lang(?desc) = 'en') }
?item wdt:P279/wdt:P279* wd:Q66557947.
?item rdfs:label ?label.
FILTER(lang(?label) = 'en')
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?desc")
v2("?item"):::projected
v1("?label"):::projected
a1((" "))
a2((" "))
c7(["wd:Q66557947"]):::iri
c4(["wd:Q5058355"]):::iri
f0[["?label = 'en'"]]
f0 --> v1
v2 --"wdt:P1402"--> a1
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P31"--> c4
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P279"--> c4
end
subgraph minus3["MINUS"]
style minus3 stroke-width:6px,fill:pink,stroke:red;
f4[["?desc = 'en'"]]
f4 --> v3
v2 --"schema:description"--> v3
end
v2 --"wdt:P279"--> a2
a2 --"wdt:P279"--> c7
v2 --"rdfs:label"--> v1