query-eaefd9d72683ec6e1d7f0a1cb3491239

rq turtle/ttl

Gene Ontology IDs applied to genesHere is a sample query:

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#>
SELECT DISTINCT ?gene ?geneLabel 
WHERE
{
    ?gene wdt:P31 wd:Q7187 .
    ?gene wdt:P688 ?protein .
    ?protein wdt:P682 ?process .
    ?process wdt:P686 ?go .
    BIND(str(?go) AS ?gostring)
    FILTER (?gostring = "GO:0006625")
    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; v2("?gene"):::projected v5("?go") v6("?gostring") v4("?process") v3("?protein") c8(["bd:serviceParam"]):::iri c3(["wd:Q7187"]):::iri c10(["en"]):::literal f0[["?gostring = 'GO:0006625'"]] f0 --> v6 v2 --"wdt:P31"--> c3 v2 --"wdt:P688"--> v3 v3 --"wdt:P682"--> v4 v4 --"wdt:P686"--> v5 bind1[/"str(?go)"/] v5 --o bind1 bind1 --as--o v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end