Owlready
Search
everywhere
only in this topic
Advanced Search
How to get all the decendents of a node?
Classic
List
Threaded
♦
♦
Locked
2 messages
S04dEGR4gE
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
How to get all the decendents of a node?
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.
Jiba
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: How to get all the decendents of a node?
Administrator
Hi,
You should use the descendants() method, as follows:
IRIS["
http://www.ebi.ac.uk/efo/EFO_0001444
"].descendants()
Free forum by Nabble
Edit this page