// Originally submitted by Timothy Redmond
String ns = "http://another.com/ont";
OWLClass a = Class(IRI(ns + "#A"));
OWLAnnotationProperty p = AnnotationProperty(IRI(ns + "#p"));
OWLObjectProperty q = ObjectProperty(IRI(ns + "#q"));
OWLAnonymousIndividual h = AnonymousIndividual();
OWLAnonymousIndividual i = AnonymousIndividual();
Set<OWLAxiom> axioms = new HashSet<>();
axioms.add(AnnotationAssertion(p, a.getIRI(), h));
axioms.add(ClassAssertion(a, h));
axioms.add(ObjectPropertyAssertion(q, h, i));
axioms.add(AnnotationAssertion(RDFSLabel(), h, Literal("Second", "en")));