refactor ontologyentry