format text for the get-ontology API