query-0ec41ec543caa9bb6844512a3d8816d4

rq turtle/ttl

title: Genes list linked through pathways on triple-negative breast cancer SELECT DISTINCT ?gene ?geneLabel WHERE { VALUES ?disease {wd:Q7843332} # with a main subject of triple negative breast cancer ?pathway wdt:P2410 ?wpid ; # pathways with a Wikipathways ID wdt:P921 ?disease ; wdt:P527 ?gene . # which has various parts ?gene wdt:P31 wd:Q7187 . # part is of part gene SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }

Use at

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#>
#title: Genes list linked through pathways on triple-negative breast cancer
SELECT DISTINCT ?gene ?geneLabel WHERE {
    VALUES ?disease {wd:Q7843332} # with a main subject of triple negative breast cancer
    ?pathway wdt:P2410 ?wpid ;      # pathways with a Wikipathways ID
             wdt:P921 ?disease ; 
             wdt:P527 ?gene .      # which has various parts
    ?gene wdt:P31 wd:Q7187 .       # part is of part gene
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?disease") v4("?gene"):::projected v2("?pathway") v3("?wpid") c7(["bd:serviceParam"]):::iri c5(["wd:Q7187"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/VALUES ?disease/] bind0-->v1 bind00(["wd:Q7843332"]) bind00 --> bind0 v2 --"wdt:P2410"--> v3 v2 --"wdt:P921"--> v1 v2 --"wdt:P527"--> v4 v4 --"wdt:P31"--> c5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end