This is cross-posted from here.
I would like to use uniprot's sparql endpoint to retrieve all proteins that
- are reviewed (required)
- are associated with taxonomy IDs
562
and3702
(required) - have a KO associated with them (optional)
- "evidence for the existence of a protein " should be either on protein or transcript level (required)
- have an EC number associated with them (required)
I have so far (points 1 and 2):
PREFIX up:<http://purl.uniprot.org/core/>
PREFIX taxon:<http://purl.uniprot.org/taxonomy/>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
SELECT ?protein ?taxon ?name
WHERE
{
?taxon a up:Taxon .
?taxon up:scientificName ?name .
VALUES ?taxonlist { taxon:562 taxon:3702 }
?taxon rdfs:subClassOf ?taxonlist .
?protein a up:Protein .
?protein up:organism ?taxon .
?protein up:reviewed true . # have to be reviewed
}
This, however, does not return anything for 3702
. How can this be fixed and how can I incorporate points 3-5?
Additionally, is there now a way to connect uniprot's sparql endpoint with rhea's sparql endpoint to retrieve all associated reactions and their stoichiometries (with ChEBI IDs) for the selected proteins from above? Example 19 seems to suggest that this connection is possible but I am not quite sure how to accomplish it.
Running out of space for the Rhea part, we will make a separate Q&A
I now opened a new question here. Thanks for helping out!
Did you have a chance to look at the second question (no pressure, just very curious :) )? If so, is this connection possible? Alternatively, one could maybe also try to get all reactions (substrates, products and stoichiometric factors) for all the EC numbers. Thanks!
By chemistry is a bit limited so I need my colleague to help with stoichiometric factors and it's production week so time is hard to get.
Thanks for the reply. I opened a more specific question for this here. I guess one can infer directly from the scheme how to access the stoichiometries but my attempts all failed.
I added a new post here; would be gr5eat if you could take a look, thanks!