Hi,
I think the easiest solution for that is SPARQL, for instance:
default_world.sparql("""
PREFIX oboInOwl: <
http://www.ontobee.org/ontologies/oboInOwl.owl#>
DELETE { ?a ?x ?y . }
WHERE {
?a rdf:type owl:Axiom .
?a owl:annotatedSource obo:NCBITaxon_XXX .
?a owl:annotatedProperty oboInOwl:hasRelatedSynonym .
?a ?x ?y .
}""")
Jiba