query-4f3e1c6a1dc155ff604ad7b5fd7e05f5

rq turtle/ttl

Find drugs for cancers that target genes related to cell proliferation, where a drug physically interacts with the product of gene known to be genetically associated to a disease SELECT ?drugLabel ?geneLabel ?biological_processLabel ?diseaseLabel WHERE { ?drug wdt:P129 ?gene_product . # drug interacts with a gene_product ?gene wdt:P688 ?gene_product . # gene_product (usually a protein) is a product of a gene (a region of DNA) ?disease wdt:P2293 ?gene . # genetic association between disease and gene ?disease wdt:P279 wd:Q12078 . # limit to cancers wd:Q12078 (the * operator runs up a transitive relation..) ?gene_product wdt:P682 ?biological_process . #add information about the GO biological processes that the gene is related to
#limit to genes related to certain biological processes (and their sub-processes): #apoptosis wd:Q14599311 #cell proliferation wd:Q14818032 {?biological_process wdt:P279
wd:Q14818032 } # chain down subclass UNION {?biological_process wdt:P361* wd:Q14818032 } # chain down part of #uncomment the next line to find a subset of the known true positives (there are not a lot of them in here yet) #?disease wdt:P2176 ?drug . # disease is treated by a drug SERVICE wikibase:label { bd:serviceParam wikibase: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#>
#Find drugs for cancers that target genes related to cell proliferation, where a drug physically interacts with the product of gene known to be genetically associated to a disease
SELECT ?drugLabel ?geneLabel ?biological_processLabel ?diseaseLabel WHERE {
  ?drug wdt:P129 ?gene_product .   # drug interacts with a gene_product 
  ?gene wdt:P688 ?gene_product .  # gene_product (usually a protein) is a product of a gene (a region of DNA)
  ?disease  wdt:P2293 ?gene .    # genetic association between disease and gene 
  ?disease wdt:P279* wd:Q12078 .  # limit to cancers wd:Q12078 (the * operator runs up a transitive relation..)
  ?gene_product wdt:P682 ?biological_process . #add information about the GO biological processes that the gene is related to  
  #limit to genes related to certain biological processes (and their sub-processes):
        #apoptosis wd:Q14599311 
        #cell proliferation wd:Q14818032
  {?biological_process wdt:P279* wd:Q14818032 } # chain down subclass
   UNION 
  {?biological_process wdt:P361* wd:Q14818032 } # chain down part of
  #uncomment the next line to find a subset of the known true positives (there are not a lot of them in here yet)
  #?disease wdt:P2176 ?drug .   # disease is treated by a drug 
  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; v5("?biological_process") v4("?disease") v1("?drug") v3("?gene") v2("?gene_product") c5(["wd:Q12078"]):::iri c10(["bd:serviceParam"]):::iri c7(["wd:Q14818032"]):::iri c12(["en"]):::literal v1 --"wdt:P129"--> v2 v3 --"wdt:P688"--> v2 v4 --"wdt:P2293"--> v3 v4 --"wdt:P279"--> c5 v2 --"wdt:P682"--> v5 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v5 --"wdt:P361"--> c7 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v5 --"wdt:P279"--> c7 end union0r <== or ==> union0l end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end