String section = peekToken();
if (section.equals(ONTOLOGY)) {
ManchesterOWLSyntaxOntologyHeader header = parseOntologyHeader(false);
for (OWLImportsDeclaration decl : header.getImportsDeclarations()) {
ont.getOWLOntologyManager().makeLoadImportRequest(decl, configuration);
imports.add(new AddImport(ont, decl));
}
for (OWLAnnotation anno : header.getAnnotations()) {
ontologyAnnotations.add(new AddOntologyAnnotation(ont, anno));
}
ontologyID = header.getOntologyID();
}
else if (section.equalsIgnoreCase(CLASS)) {
axioms.addAll(parseClassFrame());
}
else if (section.equalsIgnoreCase(OBJECT_PROPERTY)) {
axioms.addAll(parseObjectPropertyFrame());
}
else if (section.equalsIgnoreCase(DATA_PROPERTY)) {
axioms.addAll(parseDataPropertyFrame());
}
else if (section.equalsIgnoreCase(INDIVIDUAL)) {
axioms.addAll(parseIndividualFrame());
}
else if (section.equalsIgnoreCase(DATATYPE)) {
axioms.addAll(parseDatatypeFrame());
}
else if (section.equalsIgnoreCase(ANNOTATION_PROPERTY)) {
axioms.addAll(parseAnnotationPropertyFrame());
}
else if (section.equalsIgnoreCase(VALUE_PARTITION)) {
axioms.addAll(parseValuePartitionFrame());
}
else if (section.equalsIgnoreCase(IMPORT)) {
OWLImportsDeclaration decl = parseImportsDeclaration(ont);
imports.add(new AddImport(ont, decl));
ont.getOWLOntologyManager().makeLoadImportRequest(decl, configuration);
}
else if (section.equalsIgnoreCase(PREFIX)) {
Map<String, IRI> nsMap = parsePrefixDeclaration();
for (String ns : nsMap.keySet()) {