OWLAnonymousIndividual h = AnonymousIndividual();
OWLAnonymousIndividual i = AnonymousIndividual();
OWLAnnotationProperty p = AnnotationProperty(IRI(ns + "#p"));
OWLObjectProperty q = ObjectProperty(IRI(ns + "#q"));
OWLOntology ontology = m.createOntology(IRI(ns));
OWLAnnotation annotation1 = df.getOWLAnnotation(p, h);
m.addAxiom(ontology,
df.getOWLAnnotationAssertionAxiom(a.getIRI(), annotation1));
m.addAxiom(ontology, ClassAssertion(a, h));
m.addAxiom(ontology, ObjectPropertyAssertion(q, h, i));
OWLAnnotation annotation2 = df.getOWLAnnotation(df.getRDFSLabel(),
Literal("Second", "en"));
m.addAxiom(ontology, df.getOWLAnnotationAssertionAxiom(h, annotation2));
roundTrip(ontology, new ManchesterSyntaxDocumentFormat());
}