* In βeta *
Skip to main content
ARDC logo
AgReFed @ Dale
AgReFed @ Dale

SUBA Query Help

The SUBA query language is a simple but powerful query language that understands relationships between tables. For example the following query joins 4 tables and ask the question "Are there any plots with yields greater that 7.0 that have MS/MS proteins involved in aspartate degradation?"


curl -X POST "https://webapps.plantenergy.uwa.edu.au/agrefed_dale/suba/query" \
    -H "Content-Type: application/x-www-form-urlencoded" \
    -d "query=peptides.proteins.mapcave_bin like '%25degradation.aspartate%25' AND crop_yield > 7.0" \
    -d "per_page=10" -d "entity_name=Plot" # just enough percent encoding to make it work
Or from javascript...

var formData = new FormData();
formData.append("query", "peptides.proteins.mapcave_bin like '%degradation.aspartate%' AND crop_yield > 7.0");
fetchData.append("per_page", 10);
fetchData.append("entity_name", "Plot");
fetch("https://webapps.plantenergy.uwa.edu.au/agrefed_dale/suba/query", 
    {method: 'POST', body: formData}).then(resp => resp.json()).then(json => console.log(json));

Some more examples can be found here.