GET ontology/id/:id

Search for an ontological term by its namespaced identifier

Parameters

Required

NameTypeDescriptionDefaultExample Values
id String An ontology term identifier - GO:0005667

Optional

NameTypeDescriptionDefaultExample Values
callback String Name of the callback subroutine to be returned by the requested JSONP response. Required ONLY when using JSONP as the serialisation method. Please see the user guide. - randomlygeneratedname
relation String The types of relationships to include in the output. Fetches all relations by default - is_a
part_of
simple Boolean If set the API will avoid the fetching of parent and child terms 0 -

Example Requests

/rest-19/ontology/id/GO:0005667?content-type=application/json


 {
  "definition": "A protein complex that is capable of associating with DNA by direct binding, or via other DNA-binding proteins or complexes, and regulating transcription.",
  "children": [
    {
      "accession": "GO:0090575",
      "definition": "A transcription factor complex that acts at a regulatory region of a gene transcribed by RNA polymerase II.",
      "ontology": "GO",
      "namespace": "cellular_component",
      "synonyms": [],
      "subsets": [],
      "name": "RNA polymerase II transcription regulator complex"
    },
    {
      "synonyms": [],
      "ontology": "GO",
      "namespace": "cellular_component",
      "subsets": [],
      "name": "RNA polymerase III transcription regulator complex",
      "accession": "GO:0090576",
      "definition": "A transcription factor complex that acts at a regulatory region of a gene transcribed by RNA polymerase III."
    },
    {
      "accession": "GO:0019185",
      "definition": "A protein complex that recognizes the proximal sequence element of RNA polymerase II and III snRNA promoters.",
      "synonyms": [],
      "ontology": "GO",
      "namespace": "cellular_component",
      "subsets": [],
      "name": "snRNA-activating protein complex"
    },
    {
      "ontology": "GO",
      "namespace": "cellular_component",
      "synonyms": [
        "ModE dimer"
      ],
      "subsets": [],
      "name": "ModE complex",
      "accession": "GO:1990198",
      "definition": "A dimeric protein complex containing two ModE subunits. Binds directly to DNA to regulate transcription, and is involved in (positively and negatively) regulating various aspects of molybdenum metabolism."
    },
    {
      "subsets": [
        "goslim_pir"
      ],
      "name": "transcription repressor complex",
      "synonyms": [
        "transcription factor inhibitor complex",
        "nuclear transcriptional repressor complex",
        "cytoplasmic transcriptional repressor complex"
      ],
      "namespace": "cellular_component",
      "ontology": "GO",
      "accession": "GO:0017053",
      "definition": "A protein complex that possesses activity that prevents or downregulates transcription."
    },
    {
      "definition": "A heterodimeric protein complex that is composed of CHOP (C/EBP homology protein, GADD153) and ATF3 (activating transcription factor 3) subunits.",
      "accession": "GO:1990622",
      "ontology": "GO",
      "namespace": "cellular_component",
      "synonyms": [
        "CHOP-ATF3 heterodimeric complex",
        "ATF3-CHOP complex",
        "CHOP-ATF3 heterodimer",
        "GADD153-ATF3 complex"
      ],
      "name": "CHOP-ATF3 complex",
      "subsets": []
    },
    {
      "synonyms": [],
      "ontology": "GO",
      "namespace": "cellular_component",
      "name": "RNA polymerase I transcription regulator complex",
      "subsets": [],
      "definition": "A transcription factor complex that acts at a regulatory region of a gene transcribed by RNA polymerase I.",
      "accession": "GO:0000120"
    },
    {
      "synonyms": [],
      "ontology": "GO",
      "namespace": "cellular_component",
      "subsets": [],
      "name": "NuRD complex",
      "accession": "GO:0016581",
      "definition": "An approximately 2 MDa multi-subunit complex that exhibits ATP-dependent chromatin remodeling activity in addition to histone deacetylase (HDAC) activity, and has been shown to establish transcriptional repression of a number of target genes in vertebrates, invertebrates and fungi. Amongst its subunits, the NuRD complex contains histone deacetylases, histone binding proteins and Mi-2-like proteins."
    },
    {
      "definition": "A protein complex which is capable of sigma factor antagonist activity.",
      "accession": "GO:1903865",
      "synonyms": [],
      "namespace": "cellular_component",
      "ontology": "GO",
      "name": "sigma factor antagonist complex",
      "subsets": []
    },
    {
      "definition": "A heteromeric complex consisting of Cbf1 and basic leucine zipper (bZIP) containing transcriptional activators, Met4 and Met28, that forms over the sequence TCACGTG in the upstream activating sequence (UAS) of genes involved in sulfur amino acid metabolism, resulting in their transcriptional activation.",
      "accession": "GO:0089713",
      "ontology": "GO",
      "namespace": "cellular_component",
      "synonyms": [],
      "name": "Cbf1-Met4-Met28 complex",
      "subsets": []
    },
    {
      "definition": "A transcription factor complex that acts at a regulatory region of a gene transcribed by RNA polymerase V.",
      "accession": "GO:0090578",
      "namespace": "cellular_component",
      "ontology": "GO",
      "synonyms": [],
      "name": "RNA polymerase V transcription regulator complex",
      "subsets": []
    },
    {
      "definition": "A transcription factor complex that acts at a regulatory region of a gene transcribed by RNA polymerase IV.",
      "accession": "GO:0090577",
      "name": "RNA polymerase IV transcription regulator complex",
      "subsets": [],
      "synonyms": [],
      "namespace": "cellular_component",
      "ontology": "GO"
    }
  ],
  "accession": "GO:0005667",
  "parents": [
    {
      "definition": "A stable assembly of two or more macromolecules, i.e. proteins, nucleic acids, carbohydrates or lipids, in which at least one component is a protein and the constituent parts function together.",
      "accession": "GO:0032991",
      "name": "protein-containing complex",
      "subsets": [
        "goslim_agr",
        "goslim_chembl",
        "goslim_flybase_ribbon",
        "goslim_mouse",
        "goslim_pir"
      ],
      "ontology": "GO",
      "namespace": "cellular_component",
      "synonyms": []
    }
  ],
  "ontology": "GO",
  "namespace": "cellular_component",
  "synonyms": [
    "cytoplasmic transcription factor complex",
    "nuclear transcription factor complex",
    "transcription factor complex"
  ],
  "name": "transcription regulator complex",
  "subsets": [
    "goslim_pir"
  ]
}
  1. use strict;
  2. use warnings;
  3.  
  4. use HTTP::Tiny;
  5.  
  6. my $http = HTTP::Tiny->new();
  7.  
  8. my $server = 'https://parasite.wormbase.org';
  9. my $ext = '/rest-19/ontology/id/GO:0005667?';
  10. my $response = $http->get($server.$ext, {
  11. headers => { 'Content-type' => 'application/json' }
  12. });
  13.  
  14. die "Failed!\n" unless $response->{success};
  15.  
  16.  
  17. use JSON;
  18. use Data::Dumper;
  19. if(length $response->{content}) {
  20. my $hash = decode_json($response->{content});
  21. local $Data::Dumper::Terse = 1;
  22. local $Data::Dumper::Indent = 1;
  23. print Dumper $hash;
  24. print "\n";
  25. }
  26.  
  1. import requests, sys
  2.  
  3. server = "https://parasite.wormbase.org"
  4. ext = "/rest-19/ontology/id/GO:0005667?"
  5.  
  6. r = requests.get(server+ext, headers={ "Content-Type" : "application/json", "Accept" : ""})
  7.  
  8. if not r.ok:
  9. r.raise_for_status()
  10. sys.exit()
  11.  
  12. decoded = r.json()
  13. print repr(decoded)
  14.  
  1. import requests, sys
  2.  
  3. server = "https://parasite.wormbase.org"
  4. ext = "/rest-19/ontology/id/GO:0005667?"
  5.  
  6. r = requests.get(server+ext, headers={ "Content-Type" : "application/json", "Accept" : ""})
  7.  
  8. if not r.ok:
  9. r.raise_for_status()
  10. sys.exit()
  11.  
  12. decoded = r.json()
  13. print(repr(decoded))
  14.  
  1. require 'net/http'
  2. require 'uri'
  3.  
  4. server='https://parasite.wormbase.org'
  5. path = '/rest-19/ontology/id/GO:0005667?'
  6.  
  7. url = URI.parse(server)
  8. http = Net::HTTP.new(url.host, url.port)
  9.  
  10. request = Net::HTTP::Get.new(path, {'Content-Type' => 'application/json'})
  11.  
  12. response = http.request(request)
  13.  
  14. if response.code != "200"
  15. puts "Invalid response: #{response.code}"
  16. puts response.body
  17. exit
  18. end
  19.  
  20.  
  21. require 'rubygems'
  22. require 'json'
  23. require 'yaml'
  24.  
  25. result = JSON.parse(response.body)
  26. puts YAML::dump(result)
  27.  
  1. import java.net.URL;
  2. import java.net.URLConnection;
  3. import java.net.HttpURLConnection;
  4. import java.io.BufferedReader;
  5. import java.io.InputStream;
  6. import java.io.InputStreamReader;
  7. import java.io.IOException;
  8. import java.io.Reader;
  9.  
  10.  
  11. public class EnsemblRest {
  12.  
  13. public static void main(String[] args) throws Exception {
  14. String server = "https://parasite.wormbase.org";
  15. String ext = "/rest-19/ontology/id/GO:0005667?";
  16. URL url = new URL(server + ext);
  17.  
  18. URLConnection connection = url.openConnection();
  19. HttpURLConnection httpConnection = (HttpURLConnection)connection;
  20. httpConnection.setRequestProperty("Content-Type", "application/json");
  21.  
  22. InputStream response = connection.getInputStream();
  23. int responseCode = httpConnection.getResponseCode();
  24.  
  25. if(responseCode != 200) {
  26. throw new RuntimeException("Response code was not 200. Detected response was "+responseCode);
  27. }
  28.  
  29. String output;
  30. Reader reader = null;
  31. try {
  32. reader = new BufferedReader(new InputStreamReader(response, "UTF-8"));
  33. StringBuilder builder = new StringBuilder();
  34. char[] buffer = new char[8192];
  35. int read;
  36. while ((read = reader.read(buffer, 0, buffer.length)) > 0) {
  37. builder.append(buffer, 0, read);
  38. }
  39. output = builder.toString();
  40. }
  41. finally {
  42. if (reader != null) try {
  43. reader.close();
  44. } catch (IOException logOrIgnore) {
  45. logOrIgnore.printStackTrace();
  46. }
  47. }
  48.  
  49. System.out.println(output);
  50. }
  51. }
  52.  
  1.  
  2. curl 'https://parasite.wormbase.org/rest-19/ontology/id/GO:0005667?' -H 'Content-type:application/json'
  3.  
  1. wget -q --header='Content-type:application/json' 'https://parasite.wormbase.org/rest-19/ontology/id/GO:0005667?' -O -
  2.  

Resource Information

MethodsGET
Response formatsjson
xml
yaml
jsonp