169_batch_kegg_cross_references
- batch lookup
- KEGG
- cross-reference
Given a batch of UniProt accessions, retrieve each one's KEGG gene cross-reference in a single query. Note: if building metabolic pathways we recommend looking at how Rhea is used in UniProt.
Use at
PREFIX up: <http://purl.uniprot.org/core/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX uniprotkb: <http://purl.uniprot.org/uniprot/>
SELECT
?protein
?keggGene
WHERE {
VALUES ?protein { uniprotkb:P04637 uniprotkb:P01308 uniprotkb:Q13613 }
?protein rdfs:seeAlso ?keggGene .
?keggGene up:database <http://purl.uniprot.org/database/KEGG> .
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?keggGene"):::projected
v1("?protein"):::projected
c3([http://purl.uniprot.org/database/KEGG]):::iri
bind0[/VALUES ?protein/]
bind0-->v1
bind00(["uniprotkb:P04637"])
bind00 --> bind0
bind01(["uniprotkb:P01308"])
bind01 --> bind0
bind02(["uniprotkb:Q13613"])
bind02 --> bind0
v1 --"rdfs:seeAlso"--> v2
v2 --"up:database"--> c3