{"id":178563,"date":"2013-05-06T15:01:03","date_gmt":"2013-05-06T11:01:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=178563"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=178563","title":{"rendered":"<span class=\"post_title\">\u0411\u0414. \u0421\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0438. \u0416\u0438\u0432\u044b\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043d\u0430 \u0433\u043b\u043e\u0431\u0430\u043b\u0430\u0445 3<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/105\/852\/616\/105852616928bc675597e11777b8aef8.jpg\" align=\"right\"\/><br \/>  <a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/175773\/\">\u0427\u0430\u0441\u0442\u044c 1<\/a><br \/>  <a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/177319\/\">\u0427\u0430\u0441\u0442\u044c 2<\/a><\/p>\n<p>  \u0421\u043b\u043e\u0432\u043e <b>\u00ab\u0416\u0438\u0432\u044b\u0435\u00bb<\/b>, \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u0441\u0442\u0430\u0442\u044c\u0438, \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b, \u043a\u043e\u0434 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435, \u0438\u0437 \u044d\u0442\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435. <\/p>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0411\u0414 (\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440, \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u0432). <\/p>\n<p>  \u041d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0451\u043d \u043a\u0443\u0441\u043e\u043a \u043a\u043e\u0434\u0430, \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e <a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/175773\/#global\">\u0433\u043b\u043e\u0431\u0430\u043b<\/a> \u043f\u0440\u0430\u0432\u0438\u043b \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430.<\/p>\n<p>  C<a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/175773\/#Retrieve\">R<\/a>UD \u043c\u0435\u0442\u043e\u0434\u044b, \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0441\u0432\u043e\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043e\u0431\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u043a \u044d\u0442\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u0447\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c. <\/p>\n<p>  \u0420\u0430\u043d\u0435\u0435, \u043c\u044b \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438\u0441\u044c \u043d\u0430 \u0442\u043e\u043c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044b:  <\/p>\n<ul>\n<li><a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/175773\/#Dictionary\"><b>^Dictionary<\/b><\/a> \u2014 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b <a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/175773\/#dic\">\u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u043e\u0432<\/a> \u0438 \u0438\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430;<\/li>\n<li><a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/175773\/#NameDictionaryElement\"><b>^NameDictionaryElement<\/b><\/a> \u2014 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u043d\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u0430\u0445;<\/li>\n<li><a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/177319\/#IndexDictionary\"><b>^IndexDictionary<\/b><\/a> \u2014 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 <a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/177319\/#index\">\u0438\u043d\u0434\u0435\u043a\u0441<\/a> \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u043e\u0432;<\/li>\n<li><a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/177319\/#RefsDictionary\"><b>^RefsDictionary<\/b><\/a> \u2014 \u0433\u043b\u043e\u0431\u0430\u043b \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0445 \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u0438\u043d\u0434\u0435\u043a\u0441 (\u0435\u0433\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0434\u0430\u043b\u0435\u0435).<\/li>\n<\/ul>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0433\u043b\u043e\u0431\u0430\u043b\u044b<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,1,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; ^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,1,0,&quot;uid&quot;)=888 ^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,2,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; ^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,2,0,&quot;uid&quot;)=888  ^NameDictionaryElement(1,&quot;partUri&quot;,0)=&quot;akp&quot; ^NameDictionaryElement(1,&quot;partUri&quot;,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; ^NameDictionaryElement(1,&quot;ru&quot;,0)=&quot;\u0410\u041a\u041f&quot; ^NameDictionaryElement(1,&quot;ru&quot;,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; ^NameDictionaryElement(2,&quot;partUri&quot;,0)=&quot;meh&quot; ^NameDictionaryElement(2,&quot;partUri&quot;,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; ^NameDictionaryElement(2,&quot;ru&quot;,0)=&quot;\u041c\u0415\u0425&quot; ^NameDictionaryElement(2,&quot;ru&quot;,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot;  ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;partUri&quot;,&quot;akp&quot;,1)=1 ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;partUri&quot;,&quot;meh&quot;,2)=1 ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;ru&quot;,&quot;\u0430\u043a\u043f&quot;,1)=1 ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;ru&quot;,&quot;\u043c\u0435\u0445&quot;,2)=1 ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;uid&quot;,888,1)=1 ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;uid&quot;,888,2)=1  ^RefsDictionary(1,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;partUri&quot;&quot;,&quot;&quot;akp&quot;&quot;,1)&quot;)=1 ^RefsDictionary(1,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;ru&quot;&quot;,&quot;&quot;\u0430\u043a\u043f&quot;&quot;,1)&quot;)=1 ^RefsDictionary(1,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;uid&quot;&quot;,888,1)&quot;)=1 ^RefsDictionary(2,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;partUri&quot;&quot;,&quot;&quot;meh&quot;&quot;,2)&quot;)=1 ^RefsDictionary(2,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;ru&quot;&quot;,&quot;&quot;\u043c\u0435\u0445&quot;&quot;,2)&quot;)=1 ^RefsDictionary(2,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;uid&quot;&quot;,888,2)&quot;)=1 <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0433\u043b\u043e\u0431\u0430\u043b\u044b Ctrl+\u0421\/V<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">set ^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,1,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; set ^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,1,0,&quot;uid&quot;)=888 set ^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,2,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; set ^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,2,0,&quot;uid&quot;)=888 set ^NameDictionaryElement(1,&quot;partUri&quot;,0)=&quot;akp&quot; set ^NameDictionaryElement(1,&quot;partUri&quot;,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; set ^NameDictionaryElement(1,&quot;ru&quot;,0)=&quot;\u0410\u041a\u041f&quot; set ^NameDictionaryElement(1,&quot;ru&quot;,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; set ^NameDictionaryElement(2,&quot;partUri&quot;,0)=&quot;meh&quot; set ^NameDictionaryElement(2,&quot;partUri&quot;,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; set ^NameDictionaryElement(2,&quot;ru&quot;,0)=&quot;\u041c\u0415\u0425&quot; set ^NameDictionaryElement(2,&quot;ru&quot;,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; set ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;partUri&quot;,&quot;akp&quot;,1)=1 set ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;partUri&quot;,&quot;meh&quot;,2)=1 set ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;ru&quot;,&quot;\u0430\u043a\u043f&quot;,1)=1 set ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;ru&quot;,&quot;\u043c\u0435\u0445&quot;,2)=1 set ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;uid&quot;,888,1)=1 set ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;uid&quot;,888,2)=1 set ^RefsDictionary(1,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;partUri&quot;&quot;,&quot;&quot;akp&quot;&quot;,1)&quot;)=1 set ^RefsDictionary(1,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;ru&quot;&quot;,&quot;&quot;\u0430\u043a\u043f&quot;&quot;,1)&quot;)=1 set ^RefsDictionary(1,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;uid&quot;&quot;,888,1)&quot;)=1 set ^RefsDictionary(2,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;partUri&quot;&quot;,&quot;&quot;meh&quot;&quot;,2)&quot;)=1 set ^RefsDictionary(2,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;ru&quot;&quot;,&quot;&quot;\u043c\u0435\u0445&quot;&quot;,2)&quot;)=1 set ^RefsDictionary(2,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;uid&quot;&quot;,888,2)&quot;)=1 <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h4>\u0413\u043b\u043e\u0431\u0430\u043b \u043f\u0440\u0430\u0432\u0438\u043b \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u043e\u0432<\/h4>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u0433\u043b\u043e\u0431\u0430\u043b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u0439 \u0438 \u0442\u0438\u043f\u043e\u0432 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u043e\u0432. \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438, \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0432\u0438\u0434\u044b \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432. \u041f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432\u044b\u0437\u043e\u0432\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445. \u0412\u044b\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u0438 \u043f\u0440\u043e\u0447\u0435\u0435. \u042f \u0431\u0443\u0434\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u0438 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445. \u0421\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c, \u0433\u043b\u043e\u0431\u0430\u043b \u043f\u0440\u0430\u0432\u0438\u043b \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0441\u0442\u0430\u0442\u044c\u0441\u044f. \u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0436\u0438\u0437\u043d\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430: \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0435 \u0442\u0438\u043f\u044b \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u043e\u0432; \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430; \u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445; \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c. \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0433\u043b\u043e\u0431\u0430\u043b\u0430 \u2014 <i>\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u0441\u0435\u0431\u0435 \u0432\u0441\u044e \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0443 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445<\/i>. <\/p>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u0443\u0441\u0442\u0440\u043e\u0435\u043d \u0433\u043b\u043e\u0431\u0430\u043b \u043f\u0440\u0430\u0432\u0438\u043b <b>^RuleDictionary<\/b> \u2014 \u043f\u0443\u0441\u0442\u044c \u0435\u0433\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:  <\/p>\n<ol>\n<li>\u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u044f<\/li>\n<li>\u0442\u0438\u043f \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430<\/li>\n<li>\u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 CRUD \u043c\u0435\u0442\u043e\u0434\u043e\u0432<\/li>\n<li>\u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435 \u043d\u0430 \u0442\u0438\u043f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f<\/li>\n<li>\u043e\u0447\u0435\u0440\u0451\u0434\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f<\/li>\n<\/ol>\n<p>  \u041e\u0431\u0440\u0430\u0449\u0430\u044e \u0432\u0430\u0448\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u0433\u043b\u043e\u0431\u0430\u043b\u0430 \u043f\u0440\u0430\u0432\u0438\u043b, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0442\u0440\u0435\u0442\u044c\u0435\u0433\u043e, \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445, \u043c\u043e\u0433\u0443\u0442 \u043e\u0437\u043d\u0430\u0447\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0434\u0440\u0443\u0433\u043e\u0435 (\u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0441\u0442\u043e\u043b\u043a\u043d\u0451\u043c\u0441\u044f \u0441 \u044d\u0442\u0438\u043c \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u2014 \u044f \u043e\u043f\u0438\u0448\u0443 \u044d\u0442\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e).<\/p>\n<p>  \u0420\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u043c \u0432\u0441\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u0438 <b>SimpleOntology<\/b> \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u043a\u043e\u043c\u043c\u0430\u043d\u0434\u0443:<br \/>  <b>zwrite ^RuleDictionary(\u00abSimpleOntology\u00bb) <\/b><br \/>  \u041d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e \u0447\u0442\u043e <b>\u00abMONTOLOGY\u00bb<\/b> \u2014 \u044d\u0442\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0438\u043c\u0451\u043d.<\/p>\n<pre><code class=\"bash\">MONTOLOGY&gt;zwrite ^RuleDictionary(&quot;SimpleOntology&quot;) ^RuleDictionary(&quot;SimpleOntology&quot;,&quot;SimpleType&quot;,&quot;create&quot;,&quot;check&quot;,10)=&quot;do clearPunctuationAndControlCharAllLang()&quot; ^RuleDictionary(&quot;SimpleOntology&quot;,&quot;SimpleType&quot;,&quot;create&quot;,&quot;check&quot;,20)=&quot;do checkUniqueNameElementAllLang()&quot; ^RuleDictionary(&quot;SimpleOntology&quot;,&quot;SimpleType&quot;,&quot;update&quot;,&quot;check&quot;,10)=&quot;do clearPunctuationAndControlCharAllLang()&quot; ^RuleDictionary(&quot;SimpleOntology&quot;,&quot;SimpleType&quot;,&quot;update&quot;,&quot;check&quot;,20)=&quot;do checkUniqueNameElementAllLang()&quot;  MONTOLOGY&gt; <\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0433\u043b\u043e\u0431\u0430\u043b\u044b Ctrl+\u0421\/V<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">set ^RuleDictionary(&quot;SimpleOntology&quot;,&quot;SimpleType&quot;,&quot;create&quot;,&quot;check&quot;,10)=&quot;do clearPunctuationAndControlCharAllLang()&quot; set ^RuleDictionary(&quot;SimpleOntology&quot;,&quot;SimpleType&quot;,&quot;create&quot;,&quot;check&quot;,20)=&quot;do checkUniqueNameElementAllLang()&quot; set ^RuleDictionary(&quot;SimpleOntology&quot;,&quot;SimpleType&quot;,&quot;update&quot;,&quot;check&quot;,10)=&quot;do clearPunctuationAndControlCharAllLang()&quot; set ^RuleDictionary(&quot;SimpleOntology&quot;,&quot;SimpleType&quot;,&quot;update&quot;,&quot;check&quot;,20)=&quot;do checkUniqueNameElementAllLang()&quot; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0442\u043e \u0447\u0442\u043e \u043c\u044b \u0432\u044b\u0432\u0435\u043b\u0438. \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u0432 \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u0438 <b>SimpleOntology<\/b> \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043e\u0434\u0438\u043d \u0442\u0438\u043f \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 <b>SimpleType<\/b>. \u0412 \u044d\u0442\u043e\u043c \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0435 \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 (\u043a\u0440\u043e\u043c\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e). \u0414\u043b\u044f \u043c\u0435\u0442\u043e\u0434\u0430 <b>create<\/b> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043e \u0434\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445. \u0422\u0435 \u0436\u0435 \u0441\u0430\u043c\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0434\u043b\u044f \u043c\u0435\u0442\u043e\u0434\u0430 <b>update<\/b>. \u041e\u043d\u0438 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0445 \u0433\u043b\u043e\u0431\u0430\u043b\u0430. \u041e\u0447\u0435\u0440\u0451\u0434\u043d\u043e\u0441\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 (10, 20) \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0446\u0435\u043b\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c. \u041f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438\u0434\u0451\u0442 \u043e\u0442 \u043c\u0435\u043d\u044c\u0448\u0435\u0433\u043e \u043a \u0431\u043e\u043b\u044c\u0448\u0435\u043c\u0443. \u041f\u0440\u0430\u0432\u0438\u043b\u0430 \u0434\u043b\u044f <b>SimpleOntology<\/b> \u0438 <b>SimpleType<\/b> \u0431\u0443\u0434\u0443\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430: \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f, \u0434\u0430\u0442\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438 <b>uid<\/b> \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. <\/p>\n<h4>Create<\/h4>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u2014 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043c\u0435\u0442\u043e\u0434 <b>create<\/b>. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b, \u043e\u043f\u0443\u0441\u0442\u0438\u043c \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439 \u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0432\u0438\u0434\u044b \u043e\u0448\u0438\u0431\u043e\u043a. \u041f\u043e\u0442\u043e\u043c \u043c\u044b \u0435\u0449\u0451 \u043a \u044d\u0442\u043e\u043c\u0443 \u0432\u0435\u0440\u043d\u0451\u043c\u0441\u044f.<br \/>  <a name=\"create\"><\/a>  <\/p>\n<pre><code class=\"bash\">#; -------------------------------------------------------------------------------------------------- #; \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430. #; \u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u0430\u0445. #; -------------------------------------------------------------------------------------------------- create() \t \t#; \u043e\u0447\u0438\u0449\u0430\u0435\u043c \u043a\u0430\u0440\u0442\u0443 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \tkill map(&quot;out&quot;) \t \t#; \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443 t \t#; \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432\u0441\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u0430 create \tnew t \t \t#; \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \tset t(&quot;err&quot;)=$$check(&quot;create&quot;)  \t#; \u0432\u044b\u0445\u043e\u0434\u0438\u043c, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0430 \tif t(&quot;err&quot;)&lt;0 { quit t(&quot;err&quot;) } \t \t#; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e &quot;UpdateTime&quot; \tdo setProperty(t(&quot;ontology&quot;),t(&quot;type&quot;),&quot;UpdateTime&quot;,$horolog,t(&quot;id&quot;),&quot;false&quot;) \t \t#; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e &quot;uid&quot; \tdo setProperty(t(&quot;ontology&quot;),t(&quot;type&quot;),&quot;uid&quot;,t(&quot;uid&quot;),t(&quot;id&quot;),&quot;true&quot;) \t \tset t(&quot;lang&quot;)=&quot;&quot;  \tfor { \t\t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044f\u0437\u044b\u043a (\u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u0434\u0430\u043d\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430) \t\tset t(&quot;lang&quot;)=$order(t(&quot;nameList&quot;,t(&quot;lang&quot;)))  \t\t \t\t#; \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0446\u0438\u043a\u043b\u0430, \u0435\u0441\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u043d\u0435\u0442 \t\tquit:t(&quot;lang&quot;)=&quot;&quot; \t\t \t\t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \t\tset t(&quot;name&quot;)=$get(t(&quot;nameList&quot;,t(&quot;lang&quot;)))  \t\t \t\t#; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \t\tdo setName(t(&quot;ontology&quot;),t(&quot;type&quot;),t(&quot;lang&quot;),t(&quot;name&quot;),t(&quot;id&quot;)) \t} \t \t#; \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u044e \u0438 \u0442\u0438\u043f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u043d\u043e\u043c \u0433\u043b\u043e\u0431\u0430\u043b\u0435 \tdo saveOntoAndTypeID \t \t#; \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043f\u0443\u0442\u044c \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u043d\u043e\u043c \u0433\u043b\u043e\u0431\u0430\u043b\u0435 \tdo saveElementPath \t \t#; \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u043a\u0430\u0440\u0442\u0443 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \tset map(&quot;out&quot;,&quot;id&quot;)=t(&quot;id&quot;) \t \t#; \u043e\u0447\u0438\u0449\u0430\u0435\u043c \u043a\u0430\u0440\u0442\u0443 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \tkill map(&quot;in&quot;) \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \tquit t(&quot;id&quot;) #; -------------------------------------------------------------------------------------------------- <\/code><\/pre>\n<p>  \u041c\u044b \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0432 \u043c\u0435\u0442\u043e\u0434 <b>create()<\/b> \u044f\u0432\u043d\u043e \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u043d\u0438\u043a\u0430\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043e\u043d\u0438 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <b>map<\/b>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0430 \u0434\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u0430. \u0412 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <b>map<\/b>, \u043d\u0430\u043c\u0438 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u0432\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0432\u0435\u0442\u043a\u0438: <b>map(\u00abin\u00bb)<\/b> \u0438 <b>map(\u00about\u00bb)<\/b>. \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0439 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043c, \u0447\u0442\u043e \u043e\u043d\u0430 \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0438 \u0438\u043c\u0435\u0435\u0442 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043d\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440. \u0412 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u043c \u2014 \u043e\u043d\u0430 \u0442\u0430\u043a\u0430\u044f \u0436\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f, \u043a\u0430\u043a \u0438 \u0433\u043b\u043e\u0431\u0430\u043b. \u0415\u0451 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c: <b><a href=\"http:\/\/docs.intersystems.com\/cache20122\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RCOS_forder#RCOS_B63959\">$order()<\/a><\/b>, <b><a href=\"http:\/\/docs.intersystems.com\/cache20122\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RCOS_fqsubscript#RCOS_B64322\">$qsubscript()<\/a><\/b>, <b><a href=\"http:\/\/docs.intersystems.com\/cache20122\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RCOS_fqlength#RCOS_B64298\">$qlength()<\/a><\/b>, <b><a href=\"http:\/\/docs.intersystems.com\/cache20122\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RCOS_fname#RCOS_B63645\">$name()<\/a><\/b> \u0438 \u0434\u0440\u0443\u0433\u0438\u043c. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043b\u043e\u0434\u0438\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u0438 \u043d\u0435 \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u043e\u0431\u043b\u0430\u0441\u0442\u044f\u043c\u0438 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438: \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u043e\u0434\u043d\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <b><a href=\"http:\/\/docs.intersystems.com\/cache20122\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RCOS_cnew\">new<\/a> t<\/b>. \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <b>t<\/b> \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0432 \u043b\u044e\u0431\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 <b>create<\/b>, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u043e \u0432\u0441\u0435\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0445 \u0438 \u043f\u043e\u0434\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0445 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u043d\u0435\u0433\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f. \u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0438 \u043f\u0440\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <b>map<\/b>. \u0415\u0441\u043b\u0438 \u0436\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c\u043e\u0439 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f <b>create<\/b>, \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442\u0441\u044f <b>new t<\/b> \u2014 \u0442\u043e \u044d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <b>t<\/b>, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 \u043c\u0435\u0442\u043e\u0434\u0430 <b>create<\/b>. \u041e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u043e \u0441\u0432\u043e\u0435\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <b>t<\/b>, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0435\u0439\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0432\u043e\u0435\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 (\u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043c\u0435\u0441\u0442\u0435 \u0441\u0442\u0435\u043a\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445). <i>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u044b \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432 Cach\u00e9 \u044f \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u043b \u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u2014 \u0437\u0430\u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/i><\/p>\n<h5>check<\/h5>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0432 <b>t(\u00aberr\u00bb)<\/b> \u043c\u044b \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <b>$$check(\u00abcreate\u00bb)<\/b>. \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0440\u043e\u0448\u043b\u0438 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u2014 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u0435\u0440\u043d\u0451\u0442 <b>0<\/b>, \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f <b>$$check()<\/b> \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0435 \u0438\u0437 \u043d\u0435\u0451 \u043c\u0435\u0442\u043e\u0434\u044b. \u0417\u0430\u043c\u0435\u0447\u0443, \u0447\u0442\u043e \u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445: <i>\u043c\u0435\u0442\u043e\u0434, \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u043f\u043e\u0434\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u2014 \u0441\u043b\u043e\u0432\u0430 \u0441\u0438\u043d\u043e\u043d\u0438\u043c\u044b.<\/i> \u0421\u043b\u0443\u0436\u0435\u0431\u043d\u043e\u0435 \u0441\u043b\u043e\u0432\u043e <b>private<\/b> \u2014 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0447\u0442\u043e \u043c\u0435\u0442\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043d\u0442\u0443\u0440\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b <b>Dictionary<\/b>.<\/p>\n<pre><code class=\"bash\">#; -------------------------------------------------------------------------------------------------- #; \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438. #; \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0433\u043b\u043e\u0431\u0430\u043b \u043f\u0440\u0430\u0432\u0438\u043b ^RuleDictionary \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0439. #; -------------------------------------------------------------------------------------------------- check(action)private \t \t#; \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e check \tnew check \t \t#; \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0434\u043b\u044f \u0432\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f action \tset check=$case(action,&quot;create&quot;:$$checkCreate(),&quot;update&quot;:$$checkUpdate(),&quot;delete&quot;:$$checkDelete(),:-1) \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443 \tquit:check&lt;0 check \t \t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c &quot;uid&quot; \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u0437 \u0432\u0445\u043e\u0434\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \tset t(&quot;uid&quot;)=$get(map(&quot;in&quot;,&quot;uid&quot;),888) \t \t#; \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043b\u0438 \u0432\u0435\u0442\u043a\u0430 \u0433\u043b\u043e\u0431\u0430\u043b\u0430 \u043f\u0440\u0430\u0432\u0438\u043b &quot;check&quot;, \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u0438 \u0442\u0438\u043f\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \tif $data(^RuleDictionary(t(&quot;ontology&quot;),t(&quot;type&quot;),action,&quot;check&quot;))  \t{  \t\t#; \u0432 t(&quot;map&quot;) \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u043c\u044f \u043d\u0443\u0436\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u0430 \u043f\u0440\u0430\u0432\u0438\u043b \t\tset t(&quot;map&quot;)=$name(^RuleDictionary(t(&quot;ontology&quot;),t(&quot;type&quot;),action,&quot;check&quot;))  \t} \telse {  \t\t#; \u0432 t(&quot;map&quot;) \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u043c\u044f \u0432\u0435\u0442\u043a\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u0430 \u043f\u0440\u0430\u0432\u0438\u043b \u0434\u043b\u044f \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u0438 \u0438 \u0442\u0438\u043f\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \t\tset t(&quot;map&quot;)=$name(^RuleDictionary(&quot;SimpleOntology&quot;,&quot;SimpleType&quot;,action,&quot;check&quot;))  \t} \t \tset check(&quot;i&quot;)=&quot;&quot;  \tfor { \t\t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043d\u043e\u043c\u0435\u0440 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \t\tset check(&quot;i&quot;)=$order(@t(&quot;map&quot;)@(check(&quot;i&quot;))) \t\t \t\t#; \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0446\u0438\u043a\u043b\u0430, \u0435\u0441\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u043d\u043e\u043c\u0435\u0440\u0430 \u043d\u0435\u0442 \t\tquit:check(&quot;i&quot;)=&quot;&quot; \t\t \t\t#; \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \t\txecute $get(@t(&quot;map&quot;)@(check(&quot;i&quot;))) \t\t \t\t#; \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0446\u0438\u043a\u043b\u0430, \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u0430 \t\tquit:check&lt;0 \t} \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \tquit check #; -------------------------------------------------------------------------------------------------- #; \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438. #; \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 id, ontology, type, \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b.  #; -------------------------------------------------------------------------------------------------- checkCreate()private \t \t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u044e \u0438\u0437 \u0432\u0445\u043e\u0434\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \ts t(&quot;ontology&quot;)=$get(map(&quot;in&quot;,&quot;ontology&quot;),&quot;&quot;) \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443 \u0435\u0441\u043b\u0438 \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u044f \u043d\u0435 \u0437\u0430\u0434\u0430\u043d\u0430 \tquit:t(&quot;ontology&quot;)=&quot;&quot; -1 \t \t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u0438\u043f \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u0438\u0437 \u0432\u0445\u043e\u0434\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \tset t(&quot;type&quot;)=$get(map(&quot;in&quot;,&quot;type&quot;),&quot;&quot;) \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443, \u0435\u0441\u043b\u0438 \u0442\u0438\u043f \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u043d\u0435 \u0437\u0430\u0434\u0430\u043d \tquit:t(&quot;type&quot;)=&quot;&quot; -1 \t\t \t#; \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438\u043c\u0451\u043d \tset t(&quot;check&quot;)=$$checkNames() \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443, \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u0430 \tquit:t(&quot;check&quot;)&lt;0 t(&quot;check&quot;) \t \t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \tset t(&quot;id&quot;)=$increment(^Dictionary(&quot;MaxID&quot;)) \t \t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0443\u0442\u044c \u043a \u0432\u0435\u0442\u043a\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u0430 ^Dictionary \tset t(&quot;path&quot;)=$name(^Dictionary(t(&quot;ontology&quot;),t(&quot;type&quot;),t(&quot;id&quot;))) \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \tquit 0 #; -------------------------------------------------------------------------------------------------- checkUpdate() quit 0 #; -------------------------------------------------------------------------------------------------- checkDelete() quit 0 #; -------------------------------------------------------------------------------------------------- #; \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0438\u043c\u0451\u043d \u043d\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u0430\u0445. #; -------------------------------------------------------------------------------------------------- checkNames()private \t \t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0438\u043c\u0435\u043d\u0430 \u043d\u0430 \u0432\u0441\u0435\u0445 \u044f\u0437\u044b\u043a\u0430\u0445 \u0438\u0437 \u0432\u0445\u043e\u0434\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \tmerge t(&quot;nameList&quot;)=map(&quot;in&quot;,&quot;nameList&quot;) \t \t#; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0432 t(&quot;check&quot;) \u043e\u0448\u0438\u0431\u043a\u0443 \t#; \u0434\u043b\u044f \u0441\u043b\u0443\u0447\u0430\u044f \u043a\u043e\u0433\u0434\u0430 \u043d\u0438 \u043e\u0434\u0438\u043d \u044f\u0437\u044b\u043a \u043d\u0435 \u0437\u0430\u0434\u0430\u043d \tset t(&quot;check&quot;)=-1 \t \tset t(&quot;lang&quot;)=&quot;&quot;  \tfor { \t\t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044f\u0437\u044b\u043a \t\tset t(&quot;lang&quot;)=$order(t(&quot;nameList&quot;,t(&quot;lang&quot;))) \t\t \t\t#; \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0446\u0438\u043a\u043b\u0430, \u0435\u0441\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u043d\u0435\u0442 \t\tquit:t(&quot;lang&quot;)=&quot;&quot; \t\t \t\t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \t\tset t(&quot;name&quot;)=$get(t(&quot;nameList&quot;,t(&quot;lang&quot;)),&quot;&quot;) \t\t \t\t#; \u0435\u0441\u043b\u0438 \u0438\u043c\u044f \u043f\u0443\u0441\u0442\u043e\u0435 \t\tif t(&quot;name&quot;)=&quot;&quot; {   \t\t\t#; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0432 t(&quot;check&quot;) \u043e\u0448\u0438\u0431\u043a\u0443 \t\t\tset t(&quot;check&quot;)=-1 \t\t \t\t\t#; \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0446\u0438\u043a\u043b\u0430 \t\t\tquit \t\t} \t\telse {  \t\t\t#; \u0432 t(&quot;check&quot;) \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0438\u0437\u043d\u0430\u043a \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432\u0441\u0451 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435  \t\t\tset t(&quot;check&quot;)=0 \t\t} \t} \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438\u043c\u0451\u043d \tquit t(&quot;check&quot;) #; -------------------------------------------------------------------------------------------------- <\/code><\/pre>\n<p>  \u0412 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 <b>check()<\/b> \u043c\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0434\u043b\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f <b>checkCreate()<\/b>. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 <b>checkUpdate()<\/b> \u0438 <b>checkDelete()<\/b> \u2014 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0432 \u043a\u043e\u0434\u0435 \u2014 \u044d\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0442\u0435\u043c, \u043a\u0442\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 <b>Dictionary<\/b> \u0441\u0435\u0431\u0435 \u0438 \u043e\u0442\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442 \u0435\u0451.<\/p>\n<p>  \u041f\u043e\u0434\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 <b>checkCreate()<\/b> \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0432\u043e \u0432\u0445\u043e\u0434\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u0438 \u0438 \u0442\u0438\u043f\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430. \u0412\u043d\u0443\u0442\u0440\u0438 <b>checkNames()<\/b> \u2014 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0438\u043c\u0451\u043d \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430, \u0441 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0435\u043c \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 (\u0432 \u043d\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u0431\u0435\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f). \u0412 \u044d\u0442\u043e\u043c \u0436\u0435 \u043c\u0435\u0442\u043e\u0434\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 <b><a href=\"http:\/\/docs.intersystems.com\/cache20122\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RCOS_fincrement#RCOS_B62150\">$increment()<\/a><\/b>. \u0422\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 (\u0434\u043b\u044f \u043b\u044e\u0431\u043e\u0439 \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u0438 \u0438 \u0442\u0438\u043f\u0430) \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 <b>^Dictionary(\u00abMaxID\u00bb)<\/b>. <\/p>\n<blockquote><p><a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/175773\/#uniqid\">\u0432\u0441\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b, \u0434\u0430\u0436\u0435 \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u0438 \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u0439<\/a><\/p><\/blockquote>\n<p> \u0412 \u043a\u043e\u043d\u0446\u0435 \u043c\u0435\u0442\u043e\u0434\u0430 <b>checkCreate()<\/b> \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <b>t(\u00abpath\u00bb)<\/b> \u043c\u044b \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u043c\u044f \u0432\u0435\u0442\u043a\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u0430 <b>^Dictionary<\/b>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430.<\/p>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u043c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0441\u0440\u043e\u043a\u0443 <b>merge t(\u00abnameList\u00bb)=map(\u00abin\u00bb,\u00abnameList\u00bb)<\/b> \u043c\u0435\u0442\u043e\u0434\u0430 <b>checkNames()<\/b>.   <\/p>\n<blockquote><p>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 <b>merge<\/b> \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0446\u0435\u043b\u044b\u0445 \u043f\u043e\u0434\u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0434\u0440\u0443\u0433 \u0432 \u0434\u0440\u0443\u0433\u0430, \u043d\u0435 \u0432\u0430\u0436\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u043b\u0438 \u043e\u043d\u0438 \u043a\u0430\u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0438\u043b\u0438 \u043a\u0430\u043a \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0435.<a name=\"book\"><\/a><\/p>\n<blockquote><p>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0432\u0437\u044f\u0442\u043e \u0438\u0437 \u043a\u043d\u0438\u0433\u0438: <i>\u0412\u043e\u043b\u044c\u0444\u0433\u0430\u043d\u0433 \u041a\u0438\u0440\u0441\u0442\u0435\u043d. \u041c\u0438\u0445\u0430\u044d\u043b\u044c \u0418\u0440\u0438\u043d\u0433\u0435\u0440. \u041c\u0430\u0442\u0438\u0430\u0441 \u041a\u044e\u043d. \u0411\u0435\u0440\u043d\u0445\u0430\u0440\u0434 \u0420\u0435\u0440\u0438\u0433. <b>\u041f\u043e\u0441\u0442\u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0421\u0423\u0411\u0414 Cach\u00e9 5. \u041e\u0431\u044a\u0435\u043a\u0442\u043d\u043e-\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0430\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439.<\/b> \u0412\u0442\u043e\u0440\u043e\u0435 \u0438\u0437\u0434\u0430\u043d\u0438\u0435. \u041c\u043e\u0441\u043a\u0432\u0430. \u0418\u0437\u0434\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e <b>\u0411\u0418\u041d\u041e\u041c<\/b>. 2005. \u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u0410.\u041c\u0430\u0441\u043b\u043e\u0432\u0430, \u041a. \u0410\u0440\u0438\u0441\u0442\u043e\u0432\u0430. \u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 116.<\/i><\/p><\/blockquote>\n<\/blockquote>\n<p>  \u0418\u0442\u0430\u043a, \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u0430 <b>checkCreate()<\/b>, \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <b>t<\/b> \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0432\u0430\u0436\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:<br \/>  <a name=\"t\"><\/a><\/p>\n<ul>\n<li><b>t(\u00abontology\u00bb)<\/b> \u2014 \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430<\/li>\n<li><b>t(\u00abtype\u00bb)<\/b> \u2014 \u0442\u0438\u043f \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u043a\u0438\u0430<\/li>\n<li><b>t(\u00abnameList\u00bb)<\/b> \u2014 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0432\u0441\u0435\u0445 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u0430\u0445<\/li>\n<li><b>t(\u00abid\u00bb)<\/b> \u2014 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440<\/li>\n<li><b>t(\u00abpath\u00bb)<\/b> \u2014 \u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u043c\u044f \u0432\u0435\u0442\u043a\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u0430 <b>^Dictionary<\/b>, \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e\u0431 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0435<\/li>\n<\/ul>\n<p>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <b>check()<\/b>. \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e \u043a\u0430\u043a \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0441\u044f <b>checkCreate()<\/b>, \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c <b>uid<\/b> \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (<b>888<\/b> \u2014 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e). \u0414\u0430\u043b\u0435\u0435 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <b>t(\u00abmap\u00bb)<\/b> \u2014 \u043c\u044b \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u043c\u044f \u0432\u0435\u0442\u043a\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u0430 \u043f\u0440\u0430\u0432\u0438\u043b, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0435\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u0438 \u0442\u0438\u043f\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f. \u0422\u0430\u043a \u043a\u0430\u043a \u0441\u0435\u0439\u0447\u0430\u0441, \u0432 \u0433\u043b\u043e\u0431\u0430\u043b\u0435 <b>^RuleDictionary<\/b>, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u0438 \u0438 \u0442\u0438\u043f\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0442\u043e \u0432 <b>t(\u00abmap\u00bb)<\/b> \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u043d \u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0432\u0438\u0434 \u0432\u0435\u0442\u043a\u0438 <b>^RuleDictionary(\u00abSimpleOntology\u00bb,\u00abSimpleType\u00bb,\u00abcreate\u00bb,\u00abcheck\u00bb)<\/b>. <\/p>\n<p>  \u0420\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0441\u0442\u0440\u043e\u043a\u0443:  <\/p>\n<pre><code class=\"bash\">set check(&quot;i&quot;)=$order(@t(&quot;map&quot;)@(check(&quot;i&quot;))) <\/code><\/pre>\n<p>  \u041d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e \u0447\u0442\u043e <b><a href=\"http:\/\/docs.intersystems.com\/cache20122\/csp\/docbook\/DocBook.UI.Page.cls?KEY=GCOS_operators#GCOS_operators_indirection\">@<\/a><\/b> \u2014 \u044d\u0442\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043a\u043e\u0441\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438. \u041d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <b>check(\u00abi\u00bb)<\/b> = <b>&quot;&quot;<\/b>. \u0417\u043d\u0430\u0447\u0438\u0442 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0446\u0438\u043a\u043b\u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442\u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439:  <\/p>\n<pre><code class=\"bash\">set check(&quot;i&quot;)=$order(^RuleDictionary(&quot;SimpleOntology&quot;,&quot;SimpleType&quot;,&quot;create&quot;,&quot;check&quot;,&quot;&quot;)) <\/code><\/pre>\n<p>  \u0422\u043e \u0435\u0441\u0442\u044c <b>check(\u00abi\u00bb)<\/b> \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0432\u043d\u043e 10. <i>\u0415\u0441\u043b\u0438 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043a\u043e\u0441\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u2014 \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0439\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/i><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c:  <\/p>\n<pre><code class=\"bash\">xecute $get(@t(&quot;map&quot;)@(check(&quot;i&quot;))) <\/code><\/pre>\n<p>  <\/p>\n<blockquote><p>\u041a\u043e\u043c\u0430\u043d\u0434\u0430 <b>xecute<\/b> \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u0432\u0438\u0434\u0435 \u043e\u0434\u043d\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e\u0439 \u043f\u043e\u0434\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/p>\n<blockquote><p><i>\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 115, <a href=\"http:\/\/habrahabr.ru\/post\/178563\/#book\">\u0442\u0430 \u0436\u0435<\/a> \u043a\u043d\u0438\u0433\u0430.<\/i><\/p><\/blockquote>\n<\/blockquote>\n<p>  \u0422\u043e \u0435\u0441\u0442\u044c \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0446\u0438\u043a\u043b\u0430 \u043c\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0442\u043e, \u0447\u0442\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432 <b>^RuleDictionary(\u00abSimpleOntology\u00bb,\u00abSimpleType\u00bb,\u00abcreate\u00bb,\u00abcheck\u00bb,10)<\/b>. \u0410 \u044d\u0442\u043e:   <\/p>\n<pre><code class=\"bash\">do clearPunctuationAndControlCharAllLang() <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u043f\u043e\u0434\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u0438\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0439 \u043d\u0430 \u0432\u0441\u0435\u0445 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u0430\u0445 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0431\u0440\u043e\u0448\u0435\u043d\u0430 \u043f\u0443\u043d\u043a\u0442\u0443\u0430\u0446\u0438\u044f \u0438 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b.<\/p>\n<p>  \u041d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u0446\u0438\u043a\u043b\u0430 \u043c\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <b>^RuleDictionary(\u00abSimpleOntology\u00bb,\u00abSimpleType\u00bb,\u00abcreate\u00bb,\u00abcheck\u00bb,20)<\/b>. \u0410 \u044d\u0442\u043e:   <\/p>\n<pre><code class=\"bash\">do checkUniqueNameElementAllLang() <\/code><\/pre>\n<p>  \u042d\u0442\u0430 \u043f\u043e\u0434\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u0435\u043d\u0438 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u043e\u0432. \u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u043e \u0438\u043c\u044f \u043d\u0435 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e, \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <b>check<\/b>, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u0443\u044e \u0435\u0449\u0451 \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 <b>check()<\/b>, \u0437\u0430\u043f\u0438\u0448\u0435\u0442\u0441\u044f \u043e\u0448\u0438\u0431\u043a\u0430.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043e\u0434 \u043f\u043e\u0434\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>#; -------------------------------------------------------------------------------------------------- clearPunctuationAndControlCharAllLang()  \tset t(&quot;lang&quot;)=&quot;&quot;  \tfor {  \t\t#; \u0446\u0438\u043a\u043b \u043f\u043e \u0432\u0441\u0435\u043c \u044f\u0437\u044b\u043a\u0430\u043c \t\tset t(&quot;lang&quot;)=$order(t(&quot;nameList&quot;,t(&quot;lang&quot;)))  \t\tquit:t(&quot;lang&quot;)=&quot;&quot;   \t\t \t\t#; \u043e\u0447\u0438\u0449\u0430\u0435\u043c \u043f\u0443\u043d\u043a\u0442\u0443\u0430\u0446\u0438\u044e \u0438 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0438\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u044f\u0437\u044b\u043a\u0435 \t\tset t(&quot;nameList&quot;,t(&quot;lang&quot;))=$$clearPunctuationAndControlChar($get(t(&quot;nameList&quot;,t(&quot;lang&quot;)),&quot;&quot;))  \t} \tquit #; -------------------------------------------------------------------------------------------------- checkUniqueNameElementAllLang()  \tset t(&quot;lang&quot;)=&quot;&quot;  \tfor {  \t\t#; \u0446\u0438\u043a\u043b \u043f\u043e \u0432\u0441\u0435\u043c \u044f\u0437\u044b\u043a\u0430\u043c \t\tset t(&quot;lang&quot;)=$order(t(&quot;nameList&quot;,t(&quot;lang&quot;)))  \t\tquit:t(&quot;lang&quot;)=&quot;&quot;   \t\t \t\t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \t\tset t(&quot;name&quot;)=$get(t(&quot;nameList&quot;,t(&quot;lang&quot;)),&quot;&quot;) \t\t \t\t#; \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e check \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u0442\u0430\u0442\u0443\u0441 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438\u043c\u0435\u043d\u0438 (0 - \u0437\u043d\u0430\u0447\u0438\u0442 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e) \t\tset check=$$checkUniqueNameElement()  \t\t \t\t#; \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0446\u0438\u043a\u043b\u0430 \u0435\u0441\u043b\u0438 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0438\u043c\u044f \u043d\u0435 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e \t\tquit:check&lt;0  \t} \tquit #; -------------------------------------------------------------------------------------------------- #; \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0438\u0437 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432\u0441\u044e \u043f\u0443\u043d\u043a\u0442\u0443\u0430\u0446\u0438\u044e \u0438 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b. #; -------------------------------------------------------------------------------------------------- clearPunctuationAndControlChar(str) \t \tnew t  \t \t#; \u0432 t(&quot;str&quot;) \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \tset t(&quot;str&quot;)=&quot;&quot; \t \t#; \u0446\u0438\u043a\u043b \u043f\u043e \u0432\u0441\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c \u0441\u0442\u0440\u043e\u043a\u0438  \tfor t(&quot;i&quot;)=1:1:$length(str) { \t\t \t\t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \t\tset t(&quot;ch&quot;)=$extract(str,t(&quot;i&quot;)) \t\t \t\tif '((t(&quot;ch&quot;)?1P)||(t(&quot;ch&quot;)?1C)) { \t\t\t#; \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0442\u0440\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \t\t\tset t(&quot;str&quot;)=t(&quot;str&quot;)_t(&quot;ch&quot;) \t\t} \t} \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \tquit t(&quot;str&quot;) #; -------------------------------------------------------------------------------------------------- #; -------------------------------------------------------------------------------------------------- #; \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043d\u0430 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430, \u0442\u0438\u043f\u0430 \u0438 \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u0438. #; \u041f\u0440\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435, \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u043d\u0438\u0437. #; -------------------------------------------------------------------------------------------------- checkUniqueNameElement() \t \t#; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \tset t(&quot;q&quot;)=0 \t \tset t(&quot;uniqueId&quot;)=&quot;&quot;  \tfor { \t\t#; \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0435\u0441\u0442\u044c \u043b\u0438 \u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u043d\u043e\u043c \u0433\u043b\u043e\u0431\u0430\u043b\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \t\t#; \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u0438, \u0442\u0438\u043f\u0430,\u044f\u0437\u044b\u043a\u0430 \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f (\u0432 \u043d\u0438\u0436\u043d\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435) \t\tset t(&quot;uniqueId&quot;)=$order(^IndexDictionary(t(&quot;ontology&quot;),t(&quot;type&quot;),&quot;name&quot;,t(&quot;lang&quot;),$zconvert(t(&quot;name&quot;),&quot;l&quot;),t(&quot;uniqueId&quot;))) \t\t \t\t#; \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0435\u0441\u043b\u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u043d\u0435\u0442 \t\tquit:t(&quot;uniqueId&quot;)=&quot;&quot; \t\t \t\t#; \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \t\t#; \u044d\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043b\u044f \u043c\u0435\u0442\u043e\u0434\u0430 update  \t\tif (t(&quot;uniqueId&quot;)'=t(&quot;id&quot;)) { \t\t\t \t\t\t#; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443, \u0435\u0441\u043b\u0438 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \t\t\tset t(&quot;q&quot;)=-1 \t\t\tquit \t\t} \t} \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \tquit t(&quot;q&quot;) #; -------------------------------------------------------------------------------------------------- <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412 \u043f\u043e\u0434\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0435, \u0434\u043b\u044f \u043d\u0430\u0441, \u0444\u0443\u043d\u043a\u0446\u0438\u0438: <b><a href=\"http:\/\/docs.intersystems.com\/cache20122\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RCOS_fzconvert\">$zconvert()<\/a><\/b>, <b><a href=\"http:\/\/docs.intersystems.com\/cache20122\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RSQL_d_length#RSQL_B48305\">$length()<\/a><\/b>, <b><a href=\"http:\/\/docs.intersystems.com\/cache20122\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RCOS_fextract#RCOS_B61817\">$extract()<\/a><\/b>; \u0430 \u0442\u0430\u043a\u0436\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0443 \u2014 \u0441\u0438\u043c\u0432\u043e\u043b <b>&quot;?&quot;<\/b>. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 \u043f\u0443\u043d\u043a\u0442\u0443\u0430\u0446\u0438\u0438 \u0438 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0430 \u0438 \u0434\u0440\u0443\u0433\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u043a\u0430\u0448\u0435\u0432\u0441\u043a\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u043e\u0434\u043d\u0430\u043a\u043e \u0443 \u043c\u0435\u043d\u044f \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u043d\u0430\u0448 \u043c\u0435\u0442\u043e\u0434 <b><a href=\"http:\/\/habrahabr.ru\/post\/178563\/#create\">create()<\/a><\/b>, \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b \u0441\u0442\u0440\u043e\u043a\u0443: <b>set t(\u00aberr\u00bb)=$$check(\u00abcreate\u00bb)<\/b>, \u0430 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <b><a href=\"http:\/\/habrahabr.ru\/post\/178563\/#t\">t<\/a><\/b> \u2014 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432\u0430\u0436\u043d\u0430\u044f \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f. <\/p>\n<h5>setProperty<\/h5>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 <b>\u00abUpdateTime\u00bb<\/b> \u0438 <b>\u00abuid\u00bb<\/b> \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <b>setProperty()<\/b>. <\/p>\n<pre><code class=\"bash\">#; -------------------------------------------------------------------------------------------------- #; \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430. #; \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0438\u043d\u0434\u0435\u043a\u0441 \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043d\u0435\u0433\u043e. #; -------------------------------------------------------------------------------------------------- setProperty(ontology,type,property,value,id,index=&quot;true&quot;)private \t \t#; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0432 \u043d\u0443\u043b\u0435\u0432\u0443\u044e (\u0442\u0435\u043a\u0443\u0449\u0443\u044e) \u0432\u0435\u0440\u0441\u0438\u044e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \tset ^Dictionary(ontology,type,id,0,property)=value \t \t#; \u0435\u0441\u043b\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \tif index=&quot;true&quot; { \t\t \t\t#; \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0438\u043d\u0434\u0435\u043a\u0441 \t\tset ^IndexDictionary(ontology,type,property,value,id)=1 \t\t \t\t#; \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0438\u043d\u0434\u0435\u043a\u0441 \t\tset ^RefsDictionary(id,$name(^|&quot;MONTOLOGY&quot;|IndexDictionary(ontology,type,property,value,id)))=1 \t} \t\t \tquit 0 #; -------------------------------------------------------------------------------------------------- <\/code><\/pre>\n<p>  <i><b><a href=\"http:\/\/docs.intersystems.com\/cache20122\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RCOS_vhorolog#RCOS_B68210\">$horolog<\/a><\/b> \u2014 \u044d\u0442\u043e \u0442\u0435\u043a\u0443\u0449\u0430\u044f \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043c\u044f \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 Cach\u00e9.<\/i> \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <b>\u00abUpdateTime\u00bb<\/b> \u2014 \u043c\u044b \u043d\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u0443\u0435\u043c (\u043a\u0440\u0430\u0439\u043d\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <i>index=\u00abfalse\u00bb<\/i>). \u0412 \u044d\u0442\u043e\u043c \u0436\u0435 \u043c\u0435\u0442\u043e\u0434\u0435 \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0433\u043b\u043e\u0431\u0430\u043b <b>^RefsDictionary<\/b>. \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0435\u0433\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u043f\u0440\u043e\u0441\u0442\u0430:  <\/p>\n<ol>\n<li>\u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430<\/li>\n<li>\u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u043c\u044f \u0432\u0435\u0442\u043a\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u0430<\/li>\n<\/ol>\n<p>  \u0422\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430) \u2014 \u043c\u044b \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0432\u0441\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043d\u0430\u0431\u043e\u0440\u044b \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0432 \u0441\u0435\u0431\u0435 \u0443\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430.<\/p>\n<h5>setName<\/h5>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0439 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <b>setName()<\/b>.<\/p>\n<pre><code class=\"bash\">#; -------------------------------------------------------------------------------------------------- #; \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u043c\u0435\u043d\u0438, \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430. #; \u0421\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0438\u043d\u0434\u0435\u043a\u0441(\u0432 \u043d\u0438\u0436\u043d\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435) \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430. #; -------------------------------------------------------------------------------------------------- setName(ontology,type,lang,value,id)private \t \t#; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u043c\u0435\u043d\u0438 \u0434\u043b\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0438 \u044f\u0437\u044b\u043a\u0430 \tset ^NameDictionaryElement(id,lang,0)=value \t \t#; \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0434\u0430\u0442\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f\/\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \tset ^NameDictionaryElement(id,lang,0,&quot;UpdateTime&quot;)=$horolog \t \t#; \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044e \tset ^IndexDictionary(ontology,type,&quot;name&quot;,lang,$zconvert(value,&quot;l&quot;),id)=1 \t \t#; \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \tset ^RefsDictionary(id,$name(^|&quot;MONTOLOGY&quot;|IndexDictionary(ontology,type,&quot;name&quot;,lang,$zconvert(value,&quot;l&quot;),id)))=1 \t \tquit 0 #; -------------------------------------------------------------------------------------------------- <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e <b>saveOntoAndTypeID<\/b>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u043f\u0438\u0448\u0435\u0442 \u0432 \u0432\u0435\u0442\u043a\u0443 \u0433\u043b\u043e\u0431\u0430\u043b\u0430 <b>^IndexDictionary(\u00abID\u00bb,t(\u00abid\u00bb))<\/b> \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u044e \u0438 \u0442\u0438\u043f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430. \u042d\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439, \u0435\u0441\u043b\u0438 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u0437\u043d\u0430\u0442\u044c \u043f\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430, \u043a \u043a\u0430\u043a\u043e\u043c\u0443 \u0442\u0438\u043f\u0443 \u0438 \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u0438 \u043e\u043d \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442. \u0414\u0430\u043b\u0435\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u044f <b>saveElementPath<\/b> \u0432 \u0442\u0443 \u0436\u0435 \u0432\u0435\u0442\u043a\u0443, \u0437\u0430\u043f\u0438\u0448\u0435\u0442 \u043f\u0443\u0442\u044c \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430.<\/p>\n<pre><code class=\"bash\">#; -------------------------------------------------------------------------------------------------- saveOntoAndTypeID \t \tset ^IndexDictionary(&quot;ID&quot;,t(&quot;id&quot;),&quot;ontology&quot;)=t(&quot;ontology&quot;) \tset ^RefsDictionary(t(&quot;id&quot;),$name(^|&quot;MONTOLOGY&quot;|IndexDictionary(&quot;ID&quot;,t(&quot;id&quot;),&quot;ontology&quot;)))=1 \tset ^IndexDictionary(&quot;ID&quot;,t(&quot;id&quot;),&quot;type&quot;)=t(&quot;type&quot;) \tset ^RefsDictionary(t(&quot;id&quot;),$name(^|&quot;MONTOLOGY&quot;|IndexDictionary(&quot;ID&quot;,t(&quot;id&quot;),&quot;type&quot;)))=1 \t \tquit #; -------------------------------------------------------------------------------------------------- saveElementPath   \t \tset ^IndexDictionary(&quot;ID&quot;,t(&quot;id&quot;),&quot;path&quot;)=t(&quot;path&quot;) \tset ^RefsDictionary(t(&quot;id&quot;),$name(^|&quot;MONTOLOGY&quot;|IndexDictionary(&quot;ID&quot;,t(&quot;id&quot;),&quot;path&quot;)))=1 \t \tquit #; -------------------------------------------------------------------------------------------------- <\/code><\/pre>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0432\u0441\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0433\u043b\u043e\u0431\u0430\u043b <b>^RefsDictionary<\/b> \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u0432 \u0441\u0435\u0431\u0435 \u044f\u0432\u043d\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0438\u043c\u0451\u043d <b>|\u00abMONTOLOGY\u00bb|<\/b>. \u0415\u0441\u043b\u0438 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u044d\u0442\u0438\u043c \u0433\u043b\u043e\u0431\u0430\u043b\u043e\u043c \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0438\u043c\u0451\u043d, \u0442\u043e \u0443 \u043d\u0430\u0441 \u0432\u0441\u0435\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0439 \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0434\u0430\u0436\u0435 \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0430\u043c\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b <b>Dictionary<\/b>, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u044b\u0435 \u043f\u0443\u0442\u0438 (\u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439 \u0432\u044b\u0437\u043e\u0432\u0430 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u0438\u0437 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432 \u0438\u043c\u0451\u043d). \u0423 \u043c\u0435\u043d\u044f \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u0432, \u043e\u0434\u043d\u0430\u043a\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b, \u044f \u043f\u043e\u043a\u0430 \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u043e\u0436\u0443 \u0443\u043f\u0440\u043e\u0449\u0451\u043d\u043d\u044b\u0439 \u043a\u043e\u0434.<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0412\u0435\u0441\u044c \u043a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b Dictionary:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>#; -------------------------------------------------------------------------------------------------- #; \u0418\u043c\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b #; -------------------------------------------------------------------------------------------------- Dictionary #; -------------------------------------------------------------------------------------------------- #; \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430. #; -------------------------------------------------------------------------------------------------- retrieve(id,lang=&quot;ru&quot;,version=0)     quit $get(^NameDictionaryElement(id,lang,version),&quot;&quot;) #; -------------------------------------------------------------------------------------------------- #; \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u043f\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0443. #; -------------------------------------------------------------------------------------------------- retrieveListByIndex(ontology,type,index,value,str=&quot;&quot;,lang=&quot;ru&quot;)       #;\u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043c \u0432 \u043d\u0438\u0436\u043d\u0438\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0441\u0442\u0440\u043e\u043a\u0443, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0434\u043e\u043b\u0436\u043d\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u0441\u044f \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432     set str=$zconvert(str,&quot;L&quot;)      set id=&quot;&quot;      for {         #;\u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440(\u0438\u043d\u0434\u0435\u043a\u0441) \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u0443\u0440\u043e\u0432\u043d\u0435         set id=$order(^IndexDictionary(ontology,type,index,value,id))          #;\u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0446\u0438\u043a\u043b\u0430, \u0435\u0441\u043b\u0438 \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435\u0442         quit:id=&quot;&quot;          #;\u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430         set name=$$retrieve(id,lang)          #;\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043b\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u043e\u0439 str         if $extract($zconvert(name,&quot;L&quot;),1,$length(str))=str {             #;\u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 (\u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435)             write id_&quot; &quot;_name,!         }     }     quit #; -------------------------------------------------------------------------------------------------- #; \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430. #; \u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u0430\u0445. #; -------------------------------------------------------------------------------------------------- create() \t \t#; \u043e\u0447\u0438\u0449\u0430\u0435\u043c \u043a\u0430\u0440\u0442\u0443 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \tkill map(&quot;out&quot;) \t \t#; \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443 t \t#; \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432\u0441\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u0430 create \tnew t \t \t#; \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \tset t(&quot;err&quot;)=$$check(&quot;create&quot;) \t \t#; \u0432\u044b\u0445\u043e\u0434\u0438\u043c, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0430 \tif t(&quot;err&quot;)&lt;0 { quit t(&quot;err&quot;) } \t \t#; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e &quot;UpdateTime&quot; \tdo setProperty(t(&quot;ontology&quot;),t(&quot;type&quot;),&quot;UpdateTime&quot;,$horolog,t(&quot;id&quot;),&quot;false&quot;) \t \t#; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e &quot;uid&quot; \tdo setProperty(t(&quot;ontology&quot;),t(&quot;type&quot;),&quot;uid&quot;,t(&quot;uid&quot;),t(&quot;id&quot;),&quot;true&quot;) \t \tset t(&quot;lang&quot;)=&quot;&quot;  \tfor { \t\t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044f\u0437\u044b\u043a (\u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u0434\u0430\u043d\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430) \t\tset t(&quot;lang&quot;)=$order(t(&quot;nameList&quot;,t(&quot;lang&quot;)))  \t\t \t\t#; \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0446\u0438\u043a\u043b\u0430, \u0435\u0441\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u043d\u0435\u0442 \t\tquit:t(&quot;lang&quot;)=&quot;&quot; \t\t \t\t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \t\tset t(&quot;name&quot;)=$get(t(&quot;nameList&quot;,t(&quot;lang&quot;)))  \t\t \t\t#; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \t\tdo setName(t(&quot;ontology&quot;),t(&quot;type&quot;),t(&quot;lang&quot;),t(&quot;name&quot;),t(&quot;id&quot;)) \t} \t \t#; \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u044e \u0438 \u0442\u0438\u043f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u043d\u043e\u043c \u0433\u043b\u043e\u0431\u0430\u043b\u0435 \tdo saveOntoAndTypeID \t \t#; \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043f\u0443\u0442\u044c \u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u043d\u043e\u043c \u0433\u043b\u043e\u0431\u0430\u043b\u0435 \tdo saveElementPath \t \t#; \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u043a\u0430\u0440\u0442\u0443 \u0432\u044b\u0445\u043e\u0434\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \tset map(&quot;out&quot;,&quot;id&quot;)=t(&quot;id&quot;) \t \t#; \u043e\u0447\u0438\u0449\u0430\u0435\u043c \u043a\u0430\u0440\u0442\u0443 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \tkill map(&quot;in&quot;) \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \tquit t(&quot;id&quot;) #; -------------------------------------------------------------------------------------------------- #; \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438. #; \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0433\u043b\u043e\u0431\u0430\u043b \u043f\u0440\u0430\u0432\u0438\u043b ^RuleDictionary \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0439. #; -------------------------------------------------------------------------------------------------- check(action)private \t \t#; \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e check \tnew check \t \t#; \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0434\u043b\u044f \u0432\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f action \tset check=$case(action,&quot;create&quot;:$$checkCreate(),&quot;update&quot;:$$checkUpdate(),&quot;delete&quot;:$$checkDelete(),:-1) \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443 \tquit:check&lt;0 check \t \t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c &quot;uid&quot; \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u0437 \u0432\u0445\u043e\u0434\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \tset t(&quot;uid&quot;)=$get(map(&quot;in&quot;,&quot;uid&quot;),888) \t \t#; \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u043b\u0438 \u0432\u0435\u0442\u043a\u0430 \u0433\u043b\u043e\u0431\u0430\u043b\u0430 \u043f\u0440\u0430\u0432\u0438\u043b &quot;check&quot;, \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u0438 \u0442\u0438\u043f\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \tif $data(^RuleDictionary(t(&quot;ontology&quot;),t(&quot;type&quot;),action,&quot;check&quot;))  \t{  \t\t#; \u0432 t(&quot;map&quot;) \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u043c\u044f \u043d\u0443\u0436\u043d\u043e\u0439 \u0432\u0435\u0442\u043a\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u0430 \u043f\u0440\u0430\u0432\u0438\u043b \t\tset t(&quot;map&quot;)=$name(^RuleDictionary(t(&quot;ontology&quot;),t(&quot;type&quot;),action,&quot;check&quot;))  \t} \telse {  \t\t#; \u0432 t(&quot;map&quot;) \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u043c\u044f \u0432\u0435\u0442\u043a\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u0430 \u043f\u0440\u0430\u0432\u0438\u043b \u0434\u043b\u044f \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u0438 \u0438 \u0442\u0438\u043f\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \t\tset t(&quot;map&quot;)=$name(^RuleDictionary(&quot;SimpleOntology&quot;,&quot;SimpleType&quot;,action,&quot;check&quot;))  \t} \t \tset check(&quot;i&quot;)=&quot;&quot;  \tfor { \t\t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043d\u043e\u043c\u0435\u0440 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \t\tset check(&quot;i&quot;)=$order(@t(&quot;map&quot;)@(check(&quot;i&quot;))) \t\t \t\t#; \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0446\u0438\u043a\u043b\u0430, \u0435\u0441\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u043d\u043e\u043c\u0435\u0440\u0430 \u043d\u0435\u0442 \t\tquit:check(&quot;i&quot;)=&quot;&quot; \t\t \t\t#; \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \t\txecute $get(@t(&quot;map&quot;)@(check(&quot;i&quot;))) \t\t \t\t#; \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0446\u0438\u043a\u043b\u0430, \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u0430 \t\tquit:check&lt;0 \t} \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \tquit check #; -------------------------------------------------------------------------------------------------- #; \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438. #; \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 id, ontology, type, \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b.  #; -------------------------------------------------------------------------------------------------- checkCreate()private \t \t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u044e \u0438\u0437 \u0432\u0445\u043e\u0434\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \ts t(&quot;ontology&quot;)=$get(map(&quot;in&quot;,&quot;ontology&quot;),&quot;&quot;) \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443 \u0435\u0441\u043b\u0438 \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u044f \u043d\u0435 \u0437\u0430\u0434\u0430\u043d\u0430 \tquit:t(&quot;ontology&quot;)=&quot;&quot; -1 \t \t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u0438\u043f \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u0438\u0437 \u0432\u0445\u043e\u0434\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \tset t(&quot;type&quot;)=$get(map(&quot;in&quot;,&quot;type&quot;),&quot;&quot;) \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443, \u0435\u0441\u043b\u0438 \u0442\u0438\u043f \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \u043d\u0435 \u0437\u0430\u0434\u0430\u043d \tquit:t(&quot;type&quot;)=&quot;&quot; -1 \t\t \t#; \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438\u043c\u0451\u043d \tset t(&quot;check&quot;)=$$checkNames() \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443, \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u0430 \tquit:t(&quot;check&quot;)&lt;0 t(&quot;check&quot;) \t \t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \tset t(&quot;id&quot;)=$increment(^Dictionary(&quot;MaxID&quot;)) \t \t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0443\u0442\u044c \u043a \u0432\u0435\u0442\u043a\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u0430 ^Dictionary \tset t(&quot;path&quot;)=$name(^Dictionary(t(&quot;ontology&quot;),t(&quot;type&quot;),t(&quot;id&quot;))) \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \tquit 0 #; -------------------------------------------------------------------------------------------------- checkUpdate() quit 0 #; -------------------------------------------------------------------------------------------------- checkDelete() quit 0 #; -------------------------------------------------------------------------------------------------- #; \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0438\u043c\u0451\u043d \u043d\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u0430\u0445. #; -------------------------------------------------------------------------------------------------- checkNames()private \t \t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0438\u043c\u0435\u043d\u0430 \u043d\u0430 \u0432\u0441\u0435\u0445 \u044f\u0437\u044b\u043a\u0430\u0445 \u0438\u0437 \u0432\u0445\u043e\u0434\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \tmerge t(&quot;nameList&quot;)=map(&quot;in&quot;,&quot;nameList&quot;) \t \t#; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0432 t(&quot;check&quot;) \u043e\u0448\u0438\u0431\u043a\u0443 \t#; \u0434\u043b\u044f \u0441\u043b\u0443\u0447\u0430\u044f \u043a\u043e\u0433\u0434\u0430 \u043d\u0438 \u043e\u0434\u0438\u043d \u044f\u0437\u044b\u043a \u043d\u0435 \u0437\u0430\u0434\u0430\u043d \tset t(&quot;check&quot;)=-1 \t \tset t(&quot;lang&quot;)=&quot;&quot;  \tfor { \t\t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044f\u0437\u044b\u043a \t\tset t(&quot;lang&quot;)=$order(t(&quot;nameList&quot;,t(&quot;lang&quot;))) \t\t \t\t#; \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0446\u0438\u043a\u043b\u0430, \u0435\u0441\u043b\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u043d\u0435\u0442 \t\tquit:t(&quot;lang&quot;)=&quot;&quot; \t\t \t\t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \t\tset t(&quot;name&quot;)=$get(t(&quot;nameList&quot;,t(&quot;lang&quot;)),&quot;&quot;) \t\t \t\t#; \u0435\u0441\u043b\u0438 \u0438\u043c\u044f \u043f\u0443\u0441\u0442\u043e\u0435 \t\tif t(&quot;name&quot;)=&quot;&quot; {   \t\t\t#; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0432 t(&quot;check&quot;) \u043e\u0448\u0438\u0431\u043a\u0443 \t\t\tset t(&quot;check&quot;)=-1 \t\t \t\t\t#; \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0446\u0438\u043a\u043b\u0430 \t\t\tquit \t\t} \t\telse {  \t\t\t#; \u0432 t(&quot;check&quot;) \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u0438\u0437\u043d\u0430\u043a \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0432\u0441\u0451 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435  \t\t\tset t(&quot;check&quot;)=0 \t\t} \t} \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0438\u043c\u0451\u043d \tquit t(&quot;check&quot;) #; -------------------------------------------------------------------------------------------------- clearPunctuationAndControlCharAllLang()  \tset t(&quot;lang&quot;)=&quot;&quot;  \tfor {  \t\t#; \u0446\u0438\u043a\u043b \u043f\u043e \u0432\u0441\u0435\u043c \u044f\u0437\u044b\u043a\u0430\u043c \t\tset t(&quot;lang&quot;)=$order(t(&quot;nameList&quot;,t(&quot;lang&quot;)))  \t\tquit:t(&quot;lang&quot;)=&quot;&quot;   \t\t \t\t#; \u043e\u0447\u0438\u0449\u0430\u0435\u043c \u043f\u0443\u043d\u043a\u0442\u0443\u0430\u0446\u0438\u044e \u0438 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0438\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u044f\u0437\u044b\u043a\u0435 \t\tset t(&quot;nameList&quot;,t(&quot;lang&quot;))=$$clearPunctuationAndControlChar($get(t(&quot;nameList&quot;,t(&quot;lang&quot;)),&quot;&quot;))  \t} \tquit #; -------------------------------------------------------------------------------------------------- checkUniqueNameElementAllLang()  \tset t(&quot;lang&quot;)=&quot;&quot;  \tfor {  \t\t#; \u0446\u0438\u043a\u043b \u043f\u043e \u0432\u0441\u0435\u043c \u044f\u0437\u044b\u043a\u0430\u043c \t\tset t(&quot;lang&quot;)=$order(t(&quot;nameList&quot;,t(&quot;lang&quot;)))  \t\tquit:t(&quot;lang&quot;)=&quot;&quot;   \t\t \t\t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \t\tset t(&quot;name&quot;)=$get(t(&quot;nameList&quot;,t(&quot;lang&quot;)),&quot;&quot;) \t\t \t\t#; \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e check \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u0442\u0430\u0442\u0443\u0441 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438\u043c\u0435\u043d\u0438 (0 - \u0437\u043d\u0430\u0447\u0438\u0442 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e) \t\tset check=$$checkUniqueNameElement()  \t\t \t\t#; \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0446\u0438\u043a\u043b\u0430 \u0435\u0441\u043b\u0438 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0438\u043c\u044f \u043d\u0435 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e \t\tquit:check&lt;0  \t} \tquit #; -------------------------------------------------------------------------------------------------- #; \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0438\u0437 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432\u0441\u044e \u043f\u0443\u043d\u043a\u0442\u0443\u0430\u0446\u0438\u044e \u0438 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b. #; -------------------------------------------------------------------------------------------------- clearPunctuationAndControlChar(str) \t \tnew t  \t \t#; \u0432 t(&quot;str&quot;) \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \tset t(&quot;str&quot;)=&quot;&quot; \t \t#; \u0446\u0438\u043a\u043b \u043f\u043e \u0432\u0441\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c \u0441\u0442\u0440\u043e\u043a\u0438  \tfor t(&quot;i&quot;)=1:1:$length(str) { \t\t \t\t#; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \t\tset t(&quot;ch&quot;)=$extract(str,t(&quot;i&quot;)) \t\t \t\tif '((t(&quot;ch&quot;)?1P)||(t(&quot;ch&quot;)?1C)) { \t\t\t#; \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0442\u0440\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0441\u0438\u043c\u0432\u043e\u043b \t\t\tset t(&quot;str&quot;)=t(&quot;str&quot;)_t(&quot;ch&quot;) \t\t} \t} \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \tquit t(&quot;str&quot;) #; -------------------------------------------------------------------------------------------------- #; -------------------------------------------------------------------------------------------------- #; \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043d\u0430 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u0434\u043b\u044f \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430, \u0442\u0438\u043f\u0430 \u0438 \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u0438. #; \u041f\u0440\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435, \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u043d\u0438\u0437. #; -------------------------------------------------------------------------------------------------- checkUniqueNameElement() \t \t#; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0443\u0441\u043f\u0435\u0448\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \tset t(&quot;q&quot;)=0 \t \tset t(&quot;uniqueId&quot;)=&quot;&quot;  \tfor { \t\t#; \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0435\u0441\u0442\u044c \u043b\u0438 \u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u043d\u043e\u043c \u0433\u043b\u043e\u0431\u0430\u043b\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \t\t#; \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u043e\u043d\u0442\u043e\u043b\u043e\u0433\u0438\u0438, \u0442\u0438\u043f\u0430,\u044f\u0437\u044b\u043a\u0430 \u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f (\u0432 \u043d\u0438\u0436\u043d\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435) \t\tset t(&quot;uniqueId&quot;)=$order(^IndexDictionary(t(&quot;ontology&quot;),t(&quot;type&quot;),&quot;name&quot;,t(&quot;lang&quot;),$zconvert(t(&quot;name&quot;),&quot;l&quot;),t(&quot;uniqueId&quot;))) \t\t \t\t#; \u0432\u044b\u0445\u043e\u0434\u0438\u043c \u0435\u0441\u043b\u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u043d\u0435\u0442 \t\tquit:t(&quot;uniqueId&quot;)=&quot;&quot; \t\t \t\t#; \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \t\t#; \u044d\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043b\u044f \u043c\u0435\u0442\u043e\u0434\u0430 update  \t\tif (t(&quot;uniqueId&quot;)'=t(&quot;id&quot;)) { \t\t\t \t\t\t#; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443, \u0435\u0441\u043b\u0438 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \t\t\tset t(&quot;q&quot;)=-1 \t\t\tquit \t\t} \t} \t \t#; \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \tquit t(&quot;q&quot;) #; -------------------------------------------------------------------------------------------------- #; \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430. #; \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0438\u043d\u0434\u0435\u043a\u0441 \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043d\u0435\u0433\u043e. #; -------------------------------------------------------------------------------------------------- setProperty(ontology,type,property,value,id,index=&quot;true&quot;)private \t \t#; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0432 \u043d\u0443\u043b\u0435\u0432\u0443\u044e (\u0442\u0435\u043a\u0443\u0449\u0443\u044e) \u0432\u0435\u0440\u0441\u0438\u044e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430 \tset ^Dictionary(ontology,type,id,0,property)=value \t \t#; \u0435\u0441\u043b\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \tif index=&quot;true&quot; { \t\t \t\t#; \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0438\u043d\u0434\u0435\u043a\u0441 \t\tset ^IndexDictionary(ontology,type,property,value,id)=1 \t\t \t\t#; \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0438\u043d\u0434\u0435\u043a\u0441 \t\tset ^RefsDictionary(id,$name(^|&quot;MONTOLOGY&quot;|IndexDictionary(ontology,type,property,value,id)))=1 \t} \t\t \tquit 0 #; -------------------------------------------------------------------------------------------------- #; \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u043c\u0435\u043d\u0438, \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430. #; \u0421\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u0438\u043d\u0434\u0435\u043a\u0441(\u0432 \u043d\u0438\u0436\u043d\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435) \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u0441\u044b\u043b\u043a\u0430. #; -------------------------------------------------------------------------------------------------- setName(ontology,type,lang,value,id)private \t \t#; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u043c\u0435\u043d\u0438 \u0434\u043b\u044f \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0438 \u044f\u0437\u044b\u043a\u0430 \tset ^NameDictionaryElement(id,lang,0)=value \t \t#; \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0434\u0430\u0442\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f\/\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \tset ^NameDictionaryElement(id,lang,0,&quot;UpdateTime&quot;)=$horolog \t \t#; \u0441\u043e\u0437\u0434\u0430\u0451\u043c \u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044e \tset ^IndexDictionary(ontology,type,&quot;name&quot;,lang,$zconvert(value,&quot;l&quot;),id)=1 \t \t#; \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \tset ^RefsDictionary(id,$name(^|&quot;MONTOLOGY&quot;|IndexDictionary(ontology,type,&quot;name&quot;,lang,$zconvert(value,&quot;l&quot;),id)))=1 \t \tquit 0 #; -------------------------------------------------------------------------------------------------- saveOntoAndTypeID \t \tset ^IndexDictionary(&quot;ID&quot;,t(&quot;id&quot;),&quot;ontology&quot;)=t(&quot;ontology&quot;) \tset ^RefsDictionary(t(&quot;id&quot;),$name(^|&quot;MONTOLOGY&quot;|IndexDictionary(&quot;ID&quot;,t(&quot;id&quot;),&quot;ontology&quot;)))=1 \tset ^IndexDictionary(&quot;ID&quot;,t(&quot;id&quot;),&quot;type&quot;)=t(&quot;type&quot;) \tset ^RefsDictionary(t(&quot;id&quot;),$name(^|&quot;MONTOLOGY&quot;|IndexDictionary(&quot;ID&quot;,t(&quot;id&quot;),&quot;type&quot;)))=1 \t \tquit #; -------------------------------------------------------------------------------------------------- saveElementPath   \t \tset ^IndexDictionary(&quot;ID&quot;,t(&quot;id&quot;),&quot;path&quot;)=t(&quot;path&quot;) \tset ^RefsDictionary(t(&quot;id&quot;),$name(^|&quot;MONTOLOGY&quot;|IndexDictionary(&quot;ID&quot;,t(&quot;id&quot;),&quot;path&quot;)))=1 \t \tquit #; -------------------------------------------------------------------------------------------------- <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0443\u0434\u0430\u043b\u0438\u043c \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u044b, \u043a\u0440\u043e\u043c\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u0430 \u043f\u0440\u0430\u0432\u0438\u043b <b>^RuleDictionary<\/b>:  <\/p>\n<pre><code class=\"bash\">MONTOLOGY&gt;kill ^Dictionary,^IndexDictionary,^NameDictionaryElement,^RefsDictionary  MONTOLOGY&gt; <\/code><\/pre>\n<p>  \u0418 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0432\u0430 \u043f\u0435\u0440\u0432\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430:  <\/p>\n<pre><code class=\"bash\">MONTOLOGY&gt;kill map   MONTOLOGY&gt;set map(&quot;in&quot;,&quot;ontology&quot;)=&quot;Vehicle&quot;,map(&quot;in&quot;,&quot;type&quot;)=&quot;TransmissionType&quot;  MONTOLOGY&gt;set map(&quot;in&quot;,&quot;nameList&quot;,&quot;ru&quot;)=&quot; \u0410\u041a\u041f,&quot;,map(&quot;in&quot;,&quot;nameList&quot;,&quot;partUri&quot;)=&quot;akp&quot;  MONTOLOGY&gt;write $$create^Dictioanry() 1 MONTOLOGY&gt;kill map   MONTOLOGY&gt;set map(&quot;in&quot;,&quot;ontology&quot;)=&quot;Vehicle&quot;,map(&quot;in&quot;,&quot;type&quot;)=&quot;TransmissionType&quot;  MONTOLOGY&gt;set map(&quot;in&quot;,&quot;nameList&quot;,&quot;ru&quot;)=&quot;\u041c\u0415\u0425&quot;,map(&quot;in&quot;,&quot;nameList&quot;,&quot;partUri&quot;)=&quot;meh&quot;  MONTOLOGY&gt;write $$Dictioanry^t() 2 MONTOLOGY&gt; <\/code><\/pre>\n<p>  \u0420\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u043c \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u044b:  <\/p>\n<pre><code class=\"bash\">MONTOLOGY&gt;zwrite ^Dictionary,^IndexDictionary,^NameDictionaryElement,^RefsDictionary ^Dictionary(&quot;MaxID&quot;)=2 ^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,1,0,&quot;UpdateTime&quot;)=&quot;62948,47015&quot; ^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,1,0,&quot;uid&quot;)=888 ^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,2,0,&quot;UpdateTime&quot;)=&quot;62948,47022&quot; ^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,2,0,&quot;uid&quot;)=888 ^IndexDictionary(&quot;ID&quot;,1,&quot;ontology&quot;)=&quot;Vehicle&quot; ^IndexDictionary(&quot;ID&quot;,1,&quot;path&quot;)=&quot;^Dictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,1)&quot; ^IndexDictionary(&quot;ID&quot;,1,&quot;type&quot;)=&quot;TransmissionType&quot; ^IndexDictionary(&quot;ID&quot;,2,&quot;ontology&quot;)=&quot;Vehicle&quot; ^IndexDictionary(&quot;ID&quot;,2,&quot;path&quot;)=&quot;^Dictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,2)&quot; ^IndexDictionary(&quot;ID&quot;,2,&quot;type&quot;)=&quot;TransmissionType&quot; ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;partUri&quot;,&quot;akp&quot;,1)=1 ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;partUri&quot;,&quot;meh&quot;,2)=1 ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;ru&quot;,&quot;\u0430\u043a\u043f&quot;,1)=1 ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;ru&quot;,&quot;\u043c\u0435\u0445&quot;,2)=1 ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;uid&quot;,888,1)=1 ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;uid&quot;,888,2)=1 ^NameDictionaryElement(1,&quot;partUri&quot;,0)=&quot;akp&quot; ^NameDictionaryElement(1,&quot;partUri&quot;,0,&quot;UpdateTime&quot;)=&quot;62948,47015&quot; ^NameDictionaryElement(1,&quot;ru&quot;,0)=&quot;\u0410\u041a\u041f&quot; ^NameDictionaryElement(1,&quot;ru&quot;,0,&quot;UpdateTime&quot;)=&quot;62948,47015&quot; ^NameDictionaryElement(2,&quot;partUri&quot;,0)=&quot;meh&quot; ^NameDictionaryElement(2,&quot;partUri&quot;,0,&quot;UpdateTime&quot;)=&quot;62948,47022&quot; ^NameDictionaryElement(2,&quot;ru&quot;,0)=&quot;\u041c\u0415\u0425&quot; ^NameDictionaryElement(2,&quot;ru&quot;,0,&quot;UpdateTime&quot;)=&quot;62948,47022&quot; ^RefsDictionary(1,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;ID&quot;&quot;,1,&quot;&quot;ontology&quot;&quot;)&quot;)=1 ^RefsDictionary(1,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;ID&quot;&quot;,1,&quot;&quot;path&quot;&quot;)&quot;)=1 ^RefsDictionary(1,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;ID&quot;&quot;,1,&quot;&quot;type&quot;&quot;)&quot;)=1 ^RefsDictionary(1,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;partUri&quot;&quot;,&quot;&quot;akp&quot;&quot;,1)&quot;)=1 ^RefsDictionary(1,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;ru&quot;&quot;,&quot;&quot;\u0430\u043a\u043f&quot;&quot;,1)&quot;)=1 ^RefsDictionary(1,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;uid&quot;&quot;,888,1)&quot;)=1 ^RefsDictionary(2,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;ID&quot;&quot;,2,&quot;&quot;ontology&quot;&quot;)&quot;)=1 ^RefsDictionary(2,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;ID&quot;&quot;,2,&quot;&quot;path&quot;&quot;)&quot;)=1 ^RefsDictionary(2,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;ID&quot;&quot;,2,&quot;&quot;type&quot;&quot;)&quot;)=1 ^RefsDictionary(2,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;partUri&quot;&quot;,&quot;&quot;meh&quot;&quot;,2)&quot;)=1 ^RefsDictionary(2,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;ru&quot;&quot;,&quot;&quot;\u043c\u0435\u0445&quot;&quot;,2)&quot;)=1 ^RefsDictionary(2,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;uid&quot;&quot;,888,2)&quot;)=1 <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u044d\u0442\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u044b \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u043e\u0442 \u0442\u0435\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <b>\u00abUpdateTime\u00bb<\/b> \u2014 \u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b \u044d\u0442\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u2014 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0430\u0442\u0430 \u0441\u0442\u043e\u0438\u0442 \u0442\u0435\u043a\u0443\u0449\u0430\u044f. \u0422\u0430\u043a\u0436\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0442\u043a\u0430 <b>^IndexDictionary(\u00abID\u00bb)<\/b> \u0438 \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043d\u0435\u0451 \u0432 \u0433\u043b\u043e\u0431\u0430\u043b\u0435 <b>^RefsDictionary<\/b>. \u0412 <b>^Dictionary(\u00abMaxID\u00bb)<\/b> \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432 \u043d\u0430\u0448\u0435\u0439 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u043e\u0439 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u0435.<\/p>\n<p>  <i>\u041a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b <b>Dictionary <\/b>\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043c\u043e\u0451\u043c \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u043e\u0434\u043d\u0430\u043a\u043e \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u0438 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f, \u044f \u0443\u043f\u0443\u0441\u0442\u0438\u043b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043f\u043e\u043b\u043d\u044b\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0433\u0434\u0435-\u0442\u043e \u0437\u0430\u043a\u0440\u0430\u043b\u0438\u0441\u044c \u043e\u0448\u0438\u0431\u043a\u0438 \u2014 \u0435\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u0438\u0445 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442 \u2014 \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445.<\/i><\/p>\n<p>  \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u0445. \u041f\u043e\u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0451 \u0431\u043e\u043b\u0435\u0435 \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u043e\u0439.<\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.<\/p>\n<p>  \u0411\u0443\u0434\u0443 \u0440\u0430\u0434 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u043c, \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f\u043c \u0438 \u043f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u044f\u043c.    \t \t\t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/178563\/\"> http:\/\/habrahabr.ru\/post\/178563\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/105\/852\/616\/105852616928bc675597e11777b8aef8.jpg\" align=\"right\"\/><br \/>  <a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/175773\/\">\u0427\u0430\u0441\u0442\u044c 1<\/a><br \/>  <a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/177319\/\">\u0427\u0430\u0441\u0442\u044c 2<\/a><\/p>\n<p>  \u0421\u043b\u043e\u0432\u043e <b>\u00ab\u0416\u0438\u0432\u044b\u0435\u00bb<\/b>, \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u0441\u0442\u0430\u0442\u044c\u0438, \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b, \u043a\u043e\u0434 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435, \u0438\u0437 \u044d\u0442\u0438\u0445 \u0441\u0442\u0430\u0442\u0435\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435. <\/p>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0432\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0411\u0414 (\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440, \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u0432). <\/p>\n<p>  \u041d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0451\u043d \u043a\u0443\u0441\u043e\u043a \u043a\u043e\u0434\u0430, \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e <a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/175773\/#global\">\u0433\u043b\u043e\u0431\u0430\u043b<\/a> \u043f\u0440\u0430\u0432\u0438\u043b \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430.<\/p>\n<p>  C<a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/175773\/#Retrieve\">R<\/a>UD \u043c\u0435\u0442\u043e\u0434\u044b, \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0441\u0432\u043e\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043e\u0431\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u043a \u044d\u0442\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c \u0447\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c. <\/p>\n<p>  \u0420\u0430\u043d\u0435\u0435, \u043c\u044b \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438\u0441\u044c \u043d\u0430 \u0442\u043e\u043c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0433\u043b\u043e\u0431\u0430\u043b\u044b:  <\/p>\n<ul>\n<li><a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/175773\/#Dictionary\"><b>^Dictionary<\/b><\/a> \u2014 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b <a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/175773\/#dic\">\u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u043e\u0432<\/a> \u0438 \u0438\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430;<\/li>\n<li><a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/175773\/#NameDictionaryElement\"><b>^NameDictionaryElement<\/b><\/a> \u2014 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u043e\u0432 \u043d\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u0430\u0445;<\/li>\n<li><a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/177319\/#IndexDictionary\"><b>^IndexDictionary<\/b><\/a> \u2014 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 <a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/177319\/#index\">\u0438\u043d\u0434\u0435\u043a\u0441<\/a> \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u043e\u0432;<\/li>\n<li><a href=\"http:\/\/habrahabr.ru\/company\/intersystems\/blog\/177319\/#RefsDictionary\"><b>^RefsDictionary<\/b><\/a> \u2014 \u0433\u043b\u043e\u0431\u0430\u043b \u043e\u0431\u0440\u0430\u0442\u043d\u044b\u0445 \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u0438\u043d\u0434\u0435\u043a\u0441 (\u0435\u0433\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0434\u0430\u043b\u0435\u0435).<\/li>\n<\/ul>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0433\u043b\u043e\u0431\u0430\u043b\u044b<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,1,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; ^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,1,0,&quot;uid&quot;)=888 ^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,2,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; ^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,2,0,&quot;uid&quot;)=888  ^NameDictionaryElement(1,&quot;partUri&quot;,0)=&quot;akp&quot; ^NameDictionaryElement(1,&quot;partUri&quot;,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; ^NameDictionaryElement(1,&quot;ru&quot;,0)=&quot;\u0410\u041a\u041f&quot; ^NameDictionaryElement(1,&quot;ru&quot;,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; ^NameDictionaryElement(2,&quot;partUri&quot;,0)=&quot;meh&quot; ^NameDictionaryElement(2,&quot;partUri&quot;,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; ^NameDictionaryElement(2,&quot;ru&quot;,0)=&quot;\u041c\u0415\u0425&quot; ^NameDictionaryElement(2,&quot;ru&quot;,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot;  ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;partUri&quot;,&quot;akp&quot;,1)=1 ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;partUri&quot;,&quot;meh&quot;,2)=1 ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;ru&quot;,&quot;\u0430\u043a\u043f&quot;,1)=1 ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;ru&quot;,&quot;\u043c\u0435\u0445&quot;,2)=1 ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;uid&quot;,888,1)=1 ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;uid&quot;,888,2)=1  ^RefsDictionary(1,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;partUri&quot;&quot;,&quot;&quot;akp&quot;&quot;,1)&quot;)=1 ^RefsDictionary(1,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;ru&quot;&quot;,&quot;&quot;\u0430\u043a\u043f&quot;&quot;,1)&quot;)=1 ^RefsDictionary(1,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;uid&quot;&quot;,888,1)&quot;)=1 ^RefsDictionary(2,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;partUri&quot;&quot;,&quot;&quot;meh&quot;&quot;,2)&quot;)=1 ^RefsDictionary(2,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;ru&quot;&quot;,&quot;&quot;\u043c\u0435\u0445&quot;&quot;,2)&quot;)=1 ^RefsDictionary(2,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;uid&quot;&quot;,888,2)&quot;)=1 <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0433\u043b\u043e\u0431\u0430\u043b\u044b Ctrl+\u0421\/V<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">set ^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,1,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; set ^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,1,0,&quot;uid&quot;)=888 set ^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,2,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; set ^Dictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,2,0,&quot;uid&quot;)=888 set ^NameDictionaryElement(1,&quot;partUri&quot;,0)=&quot;akp&quot; set ^NameDictionaryElement(1,&quot;partUri&quot;,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; set ^NameDictionaryElement(1,&quot;ru&quot;,0)=&quot;\u0410\u041a\u041f&quot; set ^NameDictionaryElement(1,&quot;ru&quot;,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; set ^NameDictionaryElement(2,&quot;partUri&quot;,0)=&quot;meh&quot; set ^NameDictionaryElement(2,&quot;partUri&quot;,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; set ^NameDictionaryElement(2,&quot;ru&quot;,0)=&quot;\u041c\u0415\u0425&quot; set ^NameDictionaryElement(2,&quot;ru&quot;,0,&quot;UpdateTime&quot;)=&quot;62086,66625&quot; set ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;partUri&quot;,&quot;akp&quot;,1)=1 set ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;partUri&quot;,&quot;meh&quot;,2)=1 set ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;ru&quot;,&quot;\u0430\u043a\u043f&quot;,1)=1 set ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;name&quot;,&quot;ru&quot;,&quot;\u043c\u0435\u0445&quot;,2)=1 set ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;uid&quot;,888,1)=1 set ^IndexDictionary(&quot;Vehicle&quot;,&quot;TransmissionType&quot;,&quot;uid&quot;,888,2)=1 set ^RefsDictionary(1,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;partUri&quot;&quot;,&quot;&quot;akp&quot;&quot;,1)&quot;)=1 set ^RefsDictionary(1,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;ru&quot;&quot;,&quot;&quot;\u0430\u043a\u043f&quot;&quot;,1)&quot;)=1 set ^RefsDictionary(1,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;uid&quot;&quot;,888,1)&quot;)=1 set ^RefsDictionary(2,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;partUri&quot;&quot;,&quot;&quot;meh&quot;&quot;,2)&quot;)=1 set ^RefsDictionary(2,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;name&quot;&quot;,&quot;&quot;ru&quot;&quot;,&quot;&quot;\u043c\u0435\u0445&quot;&quot;,2)&quot;)=1 set ^RefsDictionary(2,&quot;^|&quot;&quot;MONTOLOGY&quot;&quot;|IndexDictionary(&quot;&quot;Vehicle&quot;&quot;,&quot;&quot;TransmissionType&quot;&quot;,&quot;&quot;uid&quot;&quot;,888,2)&quot;)=1 <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-178563","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/178563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=178563"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/178563\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=178563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=178563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=178563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}