query-c4558f3817a9f1a00c0ce62cffd7df9d
PropertiesGene Ontology ID (P686)subclass of (P279)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?item ?goid ?stmt1 ?rank ?sgoid WHERE {
?item wdt:P686 ?goid.
?item wdt:P279 ?P279val.
?item p:P279 ?stmt1.
?stmt1 ps:P279 ?P279val.
?P279val p:P686 ?gostmt.
?gostmt ps:P686 ?sgoid.
?gostmt wikibase:rank ?rank.
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?P279val")
v2("?goid"):::projected
v5("?gostmt")
v1("?item"):::projected
v7("?rank"):::projected
v6("?sgoid"):::projected
v4("?stmt1"):::projected
v1 --"p:direct/P686"--> v2
v1 --"p:direct/P279"--> v3
v1 --"p:P279"--> v4
v4 --"p:statement/P279"--> v3
v3 --"p:P686"--> v5
v5 --"p:statement/P686"--> v6
v5 --"wikibase:rank"--> v7