String input = "<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\" xmlns:owl=\"http://www.w3.org/2002/07/owl#\" ><owl:Ontology rdf:about=\"\"/>\n<owl:Class rdf:about=\"http://phenomebrowser.net/cellphenotype.owl#C3PO:000000015\"><rdf:Description rdf:datatype=\"http://www.w3.org/2001/XMLSchema#string\">Any.</rdf:Description></owl:Class></rdf:RDF>";
OWLOntology o = loadOntologyFromString(input);
OWL2DLProfile p = new OWL2DLProfile();
OWLProfileReport checkOntology = p.checkOntology(o);
assertEquals(2, checkOntology.getViolations().size());
OWLProfileViolation v = checkOntology.getViolations().get(0);
assertTrue(v instanceof UseOfUndeclaredAnnotationProperty
|| v instanceof UseOfReservedVocabularyForAnnotationPropertyIRI);
v = checkOntology.getViolations().get(1);
assertTrue(v instanceof UseOfUndeclaredAnnotationProperty
|| v instanceof UseOfReservedVocabularyForAnnotationPropertyIRI);