query-924cea43e52f2cc2e9d006ab028ad936
Get genes with GWAS association with asthma 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" 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#>
#Get genes with GWAS association with asthma
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"
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;
v1("?gene"):::projected
c6(["bd:serviceParam"]):::iri
c4(["wd:Q7187"]):::iri
c8(["en"]):::literal
c2(["wd:Q35869"]):::iri
v1 --"wdt:P2293"--> c2
v1 --"wdt:P31"--> c4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end