query-f02fc99f571644245cebbb2632ae923a

rq turtle/ttl

Get GO Annotations for FA genes SELECT ?hgnc ?protein ?go ?goLabel ?goId WHERE { values ?hgnc {"FANCA" "FANCB" "FANCC" "FANCE" "FANCF" "FANCG" "FANCL" "FANCM" "FANCD2" "FANCI" "UBE2T" "BRCA2" "BRIP1" "PALB2" "RAD51C" "SLX4" "ERCC4" "RAD51" "BRCA1" "MAD2L2" "XRCC2" "RFWD3"} ?gene wdt:P353 ?hgnc . # get gene items with these HGNC symbols ?gene wdt:P688 ?protein . # get the protein ?protein wdt:P680|wdt:P681|wdt:P682 ?go . # get GO terms ?go wdt:P686 ?goId 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 bd: <http://www.bigdata.com/rdf#>
#Get GO Annotations for FA genes
SELECT ?hgnc ?protein ?go ?goLabel ?goId WHERE {
  values ?hgnc {"FANCA" "FANCB" "FANCC" "FANCE" "FANCF" "FANCG" "FANCL" "FANCM" "FANCD2" "FANCI" "UBE2T" "BRCA2" "BRIP1" "PALB2" "RAD51C" "SLX4" "ERCC4" "RAD51" "BRCA1" "MAD2L2" "XRCC2" "RFWD3"}
  ?gene wdt:P353 ?hgnc .  # get gene items with these HGNC symbols
  ?gene wdt:P688 ?protein . # get the protein
  ?protein wdt:P680|wdt:P681|wdt:P682 ?go . # get GO terms
  ?go wdt:P686 ?goId
  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") v4("?go"):::projected v5("?goId"):::projected v1("?hgnc"):::projected v3("?protein"):::projected c8(["bd:serviceParam"]):::iri c10(["en"]):::literal bind0[/VALUES ?hgnc/] bind0-->v1 bind00(["FANCA"]) bind00 --> bind0 bind01(["FANCB"]) bind01 --> bind0 bind02(["FANCC"]) bind02 --> bind0 bind03(["FANCE"]) bind03 --> bind0 bind04(["FANCF"]) bind04 --> bind0 bind05(["FANCG"]) bind05 --> bind0 bind06(["FANCL"]) bind06 --> bind0 bind07(["FANCM"]) bind07 --> bind0 bind08(["FANCD2"]) bind08 --> bind0 bind09(["FANCI"]) bind09 --> bind0 bind010(["UBE2T"]) bind010 --> bind0 bind011(["BRCA2"]) bind011 --> bind0 bind012(["BRIP1"]) bind012 --> bind0 bind013(["PALB2"]) bind013 --> bind0 bind014(["RAD51C"]) bind014 --> bind0 bind015(["SLX4"]) bind015 --> bind0 bind016(["ERCC4"]) bind016 --> bind0 bind017(["RAD51"]) bind017 --> bind0 bind018(["BRCA1"]) bind018 --> bind0 bind019(["MAD2L2"]) bind019 --> bind0 bind020(["XRCC2"]) bind020 --> bind0 bind021(["RFWD3"]) bind021 --> bind0 v2 --"wdt:P353"--> v1 v2 --"wdt:P688"--> v3 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P682"--> v4 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P681"--> v4 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P680"--> v4 end union0r <== or ==> union0l end v4 --"wdt:P686"--> v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end