query-39cd50f54d81cd6cee6d661d3ae04718
... and show associated pathways SELECT DISTINCT ?gene ?geneLabel ?pathwayLabel where { ?gene wdt:P2293 ?diseaseGA . # gene has genetic association ?diseaseGA wdt:P279* wd:Q3286546 . # to a type of respiratory system disease
?gene wdt:P31 wd:Q7187 . # gene is subclass of "gene"
?gene wdt:P688 ?protein . # gene encodes a protein ?protein p:P681 ?s . # protein's cell component statement ?s ps:P681 ?cp . # get statement value FILTER NOT EXISTS {?s pq:P459 wd:Q23190881 .} # determination method is not IEA ?cp wdt:P279|wdt:P361 wd:Q14349455 . # statement value is 'part of' or 'subclass of' membrane
?pathway wdt:P31 wd:Q4915012 ; # instance of a biological pathway wdt:P527 ?gene .
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#... and show associated pathways
SELECT DISTINCT ?gene ?geneLabel ?pathwayLabel where {
?gene wdt:P2293 ?diseaseGA . # gene has genetic association
?diseaseGA wdt:P279* wd:Q3286546 . # to a type of respiratory system disease
?gene wdt:P31 wd:Q7187 . # gene is subclass of "gene"
?gene wdt:P688 ?protein . # gene encodes a protein
?protein p:P681 ?s . # protein's cell component statement
?s ps:P681 ?cp . # get statement value
FILTER NOT EXISTS {?s pq:P459 wd:Q23190881 .} # determination method is not IEA
?cp wdt:P279*|wdt:P361* wd:Q14349455 . # statement value is 'part of' or 'subclass of' membrane
?pathway wdt:P31 wd:Q4915012 ; # instance of a biological pathway
wdt:P527 ?gene .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}