Ontology Terms Transitive Closure
curl --request GET \
--url https://catalog-api-dev.demo.igvf.org/api/ontology-terms/{ontology_term_id_start}/transitive-closure/{ontology_term_id_end}import requests
url = "https://catalog-api-dev.demo.igvf.org/api/ontology-terms/{ontology_term_id_start}/transitive-closure/{ontology_term_id_end}"
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_start}/transitive-closure/{ontology_term_id_end}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"vertices": {},
"paths": [
[
{
"from": "<string>",
"to": "<string>",
"name": "<string>"
}
]
]
}{
"message": "<string>",
"code": "<string>",
"issues": [
{
"message": "<string>"
}
]
}API Reference
Ontology Terms Transitive Closure
Retrieve all paths between two ontology terms (i.e. transitive closure).
Example: ontology_term_id_start = UBERON_0003663,
ontology_term_id_end = UBERON_0014892
Ontology Terms Transitive Closure
curl --request GET \
--url https://catalog-api-dev.demo.igvf.org/api/ontology-terms/{ontology_term_id_start}/transitive-closure/{ontology_term_id_end}import requests
url = "https://catalog-api-dev.demo.igvf.org/api/ontology-terms/{ontology_term_id_start}/transitive-closure/{ontology_term_id_end}"
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_start}/transitive-closure/{ontology_term_id_end}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"vertices": {},
"paths": [
[
{
"from": "<string>",
"to": "<string>",
"name": "<string>"
}
]
]
}{
"message": "<string>",
"code": "<string>",
"issues": [
{
"message": "<string>"
}
]
}