RDFXMLParser owlapiParser = new RDFXMLParser();
OWLDocumentFormat owlapiOntologyFormat = owlapiParser.parse(
getStream("/primer.rdfxml.xml"), owlapiOntologyPrimer, config);
assertEquals(93, owlapiOntologyPrimer.getAxiomCount());
assertEquals(new RDFXMLDocumentFormat(), owlapiOntologyFormat);
RioParserImpl rioParser = new RioParserImpl(
new RioRDFXMLDocumentFormatFactory());
// OWLOntology rioOntologyPrimer = OWLOntologyManagerFactoryRegistry
// .createOWLOntologyManager()
OWLOntology rioOntologyPrimer = m1.createOntology(IRI
.create("http://example.com/owl/families"));
OWLDocumentFormat rioOntologyFormat = rioParser.parse(
getStream("/primer.rdfxml.xml"), rioOntologyPrimer, config);
assertEquals(new RioRDFXMLDocumentFormat(), rioOntologyFormat);
equal(owlapiOntologyPrimer, rioOntologyPrimer);
assertEquals(93, rioOntologyPrimer.getAxiomCount());
}