CardinalityContraintsTools { public static void removeCardinalityConstraints(OWLOntology ontology) { CardinalityRemover remover = new CardinalityRemover(ontology); for(OWLAxiom axiom : ontology.getAxioms()) { axiom.accept(remover); } }  static void removeCardinalityConstraints(OWLOntology ontology); static CardinalityReporter findCardinalityConstraints(OWLOntology ontology);  }
@Test public void testRemoveCardinalityConstraints() throws Exception { OWLGraphWrapper graph = getGraph("cardinality.obo"); OWLOntology owlOntology = graph.getSourceOntology(); CardinalityContraintsTools.removeCardinalityConstraints(owlOntology); Owl2Obo owl2Obo = new Owl2Obo(); OBODoc obo = owl2Obo.convert(owlOntology); assertNoQualifiers("TEST:1000", obo); assertNoQualifiers("TEST:1001", obo); assertNoQualifiers("TEST:1002", obo); assertNoQualifiers("TEST:1003", obo); }