Digital technologies are increasingly leading to the need for their reflection in law. On the one hand, social relations are changing, which are regulated by law, which inevitably entails the appearance in the legislation of indications of new facts that are associated with the emergence, change and termination of rights and obligations, their implementation and enforcement, the introduction of previously unknown objects and subjects of legal relations. On the other hand, the law itself is becoming more and more voluminous, since it is detailed by the legislator in response to the quantitatively increasing demands of members of the society for the most complete protection of their rights in conditions that have not previously existed. As a result, the relationship between the provisions forming the rule of law is lengthened and complicated, and their application, compliance, execution and use become difficult. Therefore, there are electronic reference and legal bases, Internet resources, programs for computer technology that provide orientation opportunities in the regulatory material. Algorithms and platforms are also created that act as a means of performing actions, the order of which is enshrined in law. Gradually, the law takes on a machine-readable look, and its full digital look is possible in the future. Problems in the field of digital formalization of civil law at the moment are associated with a lack of understanding in programming law as a multi-level system used in the regulation mechanism of public relations. Promising is the direction of scientific research as the "ontology of bills" or requests for dispute resolution. Such a mechanism shall contain words and expressions that people use when formulating a situation that has forced them to apply for legal regulation. It is possible to create ontology, within the framework of which the decision made by the court is stated in an understandable form. In any case, based on the results of this mechanism, one can get only a general idea of how the legally important relationships are reflected in laws. The accuracy of legal ontology can only be guaranteed on a dogmatic basis.