I tried to modify some ontology by removing some s rdfs:subClassOf o triplet, but did not know how to do it:
if I look at the child entity, child.is_a only contains owl.Thing. The triplet is properly found when parsing the file as list(child.descendants()) (or the other way around using ancestors() ) does list the class of interest.
I guess in this one case rdflib should be able to do the trick but did I miss something ?
For reference the relevant few lines of the xml/owl file: