Write ontology structure