// DatatypeDefinition(<http://example.com/owl/families/majorAge>
// DataIntersectionOf(<http://example.com/owl/families/personAge>
// DataComplementOf(<http://example.com/owl/families/minorAge>) ))]
OWLOntology owlapiOntologyPrimer = m.createOntology();
RDFXMLParser owlapiParser = new RDFXMLParser();
OWLDocumentFormat owlapiOntologyFormat = owlapiParser.parse(
getStream("/rioParserTest1-minimal.rdf"), owlapiOntologyPrimer,
config);
assertEquals(4, owlapiOntologyPrimer.getAxiomCount());
assertEquals(new RDFXMLDocumentFormat(), owlapiOntologyFormat);
RioParserImpl rioParser = new RioParserImpl(
new RioRDFXMLDocumentFormatFactory());
// OWLOntology rioOntologyPrimer = OWLOntologyManagerFactoryRegistry
// .createOWLOntologyManager().createOntology(
OWLOntology rioOntologyPrimer = OWLManager.createOWLOntologyManager()
.createOntology(IRI.create("http://example.com/owl/families"));
OWLDocumentFormat rioOntologyFormat = rioParser.parse(
getStream("/rioParserTest1-minimal.rdf"), rioOntologyPrimer,
config);
assertEquals(new RioRDFXMLDocumentFormat(), rioOntologyFormat);
equal(owlapiOntologyPrimer, rioOntologyPrimer);
assertEquals(4, rioOntologyPrimer.getAxiomCount());