In this paper, introduction presents the problem statement. The second chapter gives a brief description of the Smart Farming system. The third chapter provides an overview of ontologies. The fourth chapter describes implementation of the knowledge base in the Smart Farming system. The fifth chapter presents the main functions of the ontology editor for working with the knowledge base. Conclusions and prospects of further development of knowledge base in crop production are also given