The article describes the process of developing a knowledge base (KB). The content of KB is formed as a result of the analysis of the contexts of external information resources. In this case, the context is a certain "point of view" on the problem area (PrA) and its features. A graph database (DB) Neo4j is used as the basis for storing the contents of the KB in the form of an ontology. An attempt is made to implement the mechanism of inference by the contents of a graph database. The mechanism is used to dynamically generate the screen forms of the user interface to simplify the work with the KB. This article also describes the method of extension of KB based on the content of the wiki-resources and relational databases.