fix #223 Preserve backward compatibility for ontology document format