Ontology Terms Parents
curl --request GET \
--url https://catalog-api-dev.demo.igvf.org/api/ontology-terms/{ontology_term_id}/parentsimport requests
url = "https://catalog-api-dev.demo.igvf.org/api/ontology-terms/{ontology_term_id}/parents"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://catalog-api-dev.demo.igvf.org/api/ontology-terms/{ontology_term_id}/parents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"term": {
"uri": "<string>",
"term_id": "<string>",
"name": "<string>",
"synonyms": [
"<string>"
],
"description": "<string>",
"source": "<string>",
"subontology": "<string>",
"source_url": "<string>"
},
"relationship_type": "<string>"
}
]{
"message": "<string>",
"code": "<string>",
"issues": [
{
"message": "<string>"
}
]
}API Reference
Ontology Terms Parents
Retrieve all parent nodes of an ontology term.
Example: ontology_term_id = CHEBI_100001.
The limit parameter controls the page size and can not exceed 500.
Pagination is 0-based.
Ontology Terms Parents
curl --request GET \
--url https://catalog-api-dev.demo.igvf.org/api/ontology-terms/{ontology_term_id}/parentsimport requests
url = "https://catalog-api-dev.demo.igvf.org/api/ontology-terms/{ontology_term_id}/parents"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://catalog-api-dev.demo.igvf.org/api/ontology-terms/{ontology_term_id}/parents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"term": {
"uri": "<string>",
"term_id": "<string>",
"name": "<string>",
"synonyms": [
"<string>"
],
"description": "<string>",
"source": "<string>",
"subontology": "<string>",
"source_url": "<string>"
},
"relationship_type": "<string>"
}
]{
"message": "<string>",
"code": "<string>",
"issues": [
{
"message": "<string>"
}
]
}