+ "<rdf:RDF xmlns=\"http://www.org/\" xml:base=\"http://www.org/\" xmlns:rdfs=\"http://www.w3.org/2000/01/rdf-schema#\" xmlns:ns=\"http://example.com/ns#\" xmlns:owl=\"http://www.w3.org/2002/07/owl#\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema#\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:xml=\"http://www.w3.org/XML/1998/namespace\">\n"
+ " <owl:Ontology rdf:about=\"http://www.org/\"/>\n"
+ " <rdf:Description rdf:about=\"&ns;test\"><ns:rel><rdf:Description ns:pred =\"Not visible\"/></ns:rel></rdf:Description>\n"
+ "</rdf:RDF>";
OWLOntology oo = loadOntologyFromString(input);
@SuppressWarnings("null")
@Nonnull
RDFXMLDocumentFormat format = (RDFXMLDocumentFormat) oo
.getOWLOntologyManager().getOntologyFormat(oo);
assertEquals("Should have no unparsed triples", 0, format
.getOntologyLoaderMetaData().getUnparsedTriples().size());
Set<OWLAnnotationAssertionAxiom> annotationAxioms = oo
.getAxioms(AxiomType.ANNOTATION_ASSERTION);
assertEquals("annotation axiom count should be 2", 2,
annotationAxioms.size());