How to get all the decendents of a node?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to get all the decendents of a node?

S04dEGR4gE
http://data.bioontology.org/ontologies/EFO/submissions/181/download?apikey=8b5b7825-538d-40e0-9e9e-5ab9274a9aeb

>>> import owlready2
>>> onto=owlready2.get_ontology('file://efo_inferred.owl')

https://www.ebi.ac.uk/ols/ontologies/efo/terms?iri=http%3A%2F%2Fwww.ebi.ac.uk%2Fefo%2FEFO_0001444

I'd like to get all the decendants of, for example, EFO_0001444.

Could anybody show me what is the correct way of doing it? Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: How to get all the decendents of a node?

Jiba
Administrator
Hi,

You should use the descendants() method, as follows:

IRIS["http://www.ebi.ac.uk/efo/EFO_0001444"].descendants()