OWLNamedIndividual i = df.getOWLNamedIndividual(IRI.create(ns, "i"));
OWLObjectProperty p = df.getOWLObjectProperty(IRI.create(ns, "p"));
OWLDataProperty q = df.getOWLDataProperty(IRI.create(ns, "q"));
OWLOntology ontology = m.createOntology(ont);
OWLIndividual ind = df.getOWLAnonymousIndividual();
OWLObjectPropertyAssertionAxiom ax1 = df
.getOWLObjectPropertyAssertionAxiom(p, i, ind);
OWLDataPropertyAssertionAxiom ax2 = df
.getOWLDataPropertyAssertionAxiom(q, ind, df.getOWLLiteral(5));
m.addAxiom(ontology, ax1);
m.addAxiom(ontology, ax2);