Hi There,
I am trying to find the parts of organs in Uberon. For example, to find all the parts of the liver I am looking for subclasses of the restriction "part_of some liver".
For example, you can see using biliary ductile:
biliary_ductile = uberon.search_one(iri="
http://purl.obolibrary.org/obo/UBERON_0004058")
print(biliary_ductile.is_a)
>[obo.UBERON_0000025, obo.UBERON_0004119, obo.BFO_0000050.some(obo.UBERON_0002107), obo.BFO_0000050.some(obo.UBERON_0002394), obo.RO_0002220.some(obo.UBERON_0001175)]
that biliary ductile "is_a" obo.BFO_0000050.some(obo.UBERON_0002107) .
BFO_0000050 = part_of and UBERON_0002107 = liver.
I can create a restriction like:
part_of = uberon.search_one(iri="
http://purl.obolibrary.org/obo/BFO_0000050")
liver = uberon.search_one(iri="
http://purl.obolibrary.org/obo/UBERON_0002107")
posl_restriction = part_of.some(liver)
However, I can not figure out how to use the posl_restriction to query for its subclasses (like biliary ductile).
With owlready2 how can I get the classes that declare a given restriction like obo.BFO_0000050.some(obo.UBERON_0002107)?
Thanks for your help!
Cheers,
D