query-aeff39c398809d016afa6ab046fbd6c6
... and whose gene product is localized to membrane SELECT DISTINCT ?gene ?geneLabel where { ?gene wdt:P2293 wd:Q35869 . # gene has genetic association to "asthma"
?gene wdt:P31 wd:Q7187 . # gene is subclass of "gene"
?gene wdt:P688 ?protein . # gene encodes a protein ?protein wdt:P681 ?cc . # protein has a cellular component ?cc wdt:P279|wdt:P361 wd:Q14349455 . # cell component is 'part of' or 'subclass of' membrane
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 bd: <http://www.bigdata.com/rdf#>
#... and whose gene product is localized to membrane
SELECT DISTINCT ?gene ?geneLabel where {
?gene wdt:P2293 wd:Q35869 . # gene has genetic association to "asthma"
?gene wdt:P31 wd:Q7187 . # gene is subclass of "gene"
?gene wdt:P688 ?protein . # gene encodes a protein
?protein wdt:P681 ?cc . # protein has a cellular component
?cc wdt:P279*|wdt:P361* wd:Q14349455 . # cell component is 'part of' or 'subclass of' membrane
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;
v3("?cc")
v1("?gene"):::projected
v2("?protein")
c13(["en"]):::literal
c8(["wd:Q14349455"]):::iri
c11(["bd:serviceParam"]):::iri
c4(["wd:Q7187"]):::iri
c2(["wd:Q35869"]):::iri
v1 --"wdt:P2293"--> c2
v1 --"wdt:P31"--> c4
v1 --"wdt:P688"--> v2
v2 --"wdt:P681"--> v3
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P361"--> c8
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P279"--> c8
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end