graphdb-workbench 2.8.0-TR12 → 2.8.0-TR13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) hide show
  1. package/dist/{0.222642ac8a834644de39.bundle.js → 0.c12880b944139d726364.bundle.js} +3 -3
  2. package/dist/{1.ebb46b40f04cba034e61.bundle.js → 1.b5ab0c81ff05d97d9212.bundle.js} +1 -1
  3. package/dist/10.1179c6bc53d65a3018b4.bundle.js +1 -0
  4. package/dist/{101.04ecbbc205f9cce449e2.bundle.js → 100.6ec3d989e75140cf46ca.bundle.js} +1 -1
  5. package/dist/{102.0f9a64ceb323e719fb9e.bundle.js → 101.f066daa3cfc930d79302.bundle.js} +1 -1
  6. package/dist/{103.ba98ffe51ae3fcd3ca2c.bundle.js → 102.791468df396a09a31d71.bundle.js} +1 -1
  7. package/dist/{104.c6fa28ded1a4c26bc1a2.bundle.js → 103.37921e51177a654d75ac.bundle.js} +1 -1
  8. package/dist/{105.1f6013e09a913230f5a0.bundle.js → 104.e3e2867c1b690c43f489.bundle.js} +1 -1
  9. package/dist/{106.db2a24b8b831a9a41730.bundle.js → 105.f8bc439e384e9f5110fe.bundle.js} +1 -1
  10. package/dist/{107.76a892fb4131d6fb5c6a.bundle.js → 106.8c2ba58b4f242956a82c.bundle.js} +1 -1
  11. package/dist/{108.a86e28984373a10ed377.bundle.js → 107.4315a0c3620f546dd600.bundle.js} +1 -1
  12. package/dist/{109.396369e9ad1d6ac8515c.bundle.js → 108.02aeec3c92b68ce6c35e.bundle.js} +1 -1
  13. package/dist/{110.74113301e9bf04aa532c.bundle.js → 109.e0e1046fdb1e8ecd59f8.bundle.js} +1 -1
  14. package/dist/{10.84c92cce7ac26f335dd1.bundle.js → 11.731ed4f7b67ece4fb109.bundle.js} +1 -1
  15. package/dist/{111.577f12afd89f88ff3c41.bundle.js → 110.d51e761889fe08e2c49d.bundle.js} +1 -1
  16. package/dist/{112.97780a4fe36300f514c5.bundle.js → 111.da72110e4ddfe486912a.bundle.js} +1 -1
  17. package/dist/{113.5c183cbd72f4e91deeee.bundle.js → 112.77a36111c9f4da94f2d0.bundle.js} +1 -1
  18. package/dist/{114.f44bf4f49655b843752b.bundle.js → 113.d5bd3f0ad7bd8c52abe1.bundle.js} +1 -1
  19. package/dist/{115.60bf043f46bdeb922372.bundle.js → 114.2f6bdd6b8c8dd9f01217.bundle.js} +1 -1
  20. package/dist/{116.9d728768854e290a2653.bundle.js → 115.b9393bf71391a3f494da.bundle.js} +1 -1
  21. package/dist/{117.295086c4cd54397c56df.bundle.js → 116.54e31b6224e208e4c423.bundle.js} +1 -1
  22. package/dist/{118.6ab3f8f724a06905c5cf.bundle.js → 117.38e2c564034dc25c4815.bundle.js} +1 -1
  23. package/dist/{119.2f144c11c33a3bbeda21.bundle.js → 118.09e66dd3b083f2d36696.bundle.js} +1 -1
  24. package/dist/{120.440d48a02219554f0af0.bundle.js → 119.131ce05ec4fa52bfaf2a.bundle.js} +1 -1
  25. package/dist/{11.347714ca41cef8ea7f1e.bundle.js → 12.006922371a75c0e8f3aa.bundle.js} +1 -1
  26. package/dist/{121.b9f200eec8693987cd2b.bundle.js → 120.2fe6c930b40edfc70a3f.bundle.js} +1 -1
  27. package/dist/{122.10eda802eaaa781ea566.bundle.js → 121.4f96e05a93da0d050583.bundle.js} +1 -1
  28. package/dist/{123.1548ca1c0632bc3dcfeb.bundle.js → 122.14c6539a5cf5826291f1.bundle.js} +1 -1
  29. package/dist/{124.05248e4fa4e72076f8e1.bundle.js → 123.75914b050247dec2f47a.bundle.js} +1 -1
  30. package/dist/{125.117e9b10046dea563e1b.bundle.js → 124.db458d12650e11836826.bundle.js} +1 -1
  31. package/dist/{126.f1a86f86018b7c58852d.bundle.js → 125.653e9a40b0339268bfa4.bundle.js} +1 -1
  32. package/dist/{127.0124928e6c0f7cf3f6c4.bundle.js → 126.bc9af544cdeef53a98a4.bundle.js} +1 -1
  33. package/dist/{129.3e71e14cf51fed8b7fb8.bundle.js → 127.20092c02c9853f630785.bundle.js} +1 -1
  34. package/dist/128.d7b62fe06971afd880da.bundle.js +1 -0
  35. package/dist/{131.45f6c9b55329c691d5eb.bundle.js → 129.676c2740eba42a5189ae.bundle.js} +1 -1
  36. package/dist/{12.208a25d54fad54ce23f5.bundle.js → 13.76fc57fe53ba53fb2c7f.bundle.js} +1 -1
  37. package/dist/{132.423a880945adb530ff42.bundle.js → 130.ef294422e321cdff61f3.bundle.js} +1 -1
  38. package/dist/{133.d59607c90abb5c88f92c.bundle.js → 131.aaa123afc12ca4bdf46e.bundle.js} +1 -1
  39. package/dist/132.88ff26b2f0d1d51bad52.bundle.js +1 -0
  40. package/dist/{135.2c26864970bac0810793.bundle.js → 133.4847df13c0867a84a713.bundle.js} +1 -1
  41. package/dist/{136.9320c511cc2742542367.bundle.js → 134.20c075955d10d6925a62.bundle.js} +1 -1
  42. package/dist/135.5e771c47f8d09d2854fc.bundle.js +1 -0
  43. package/dist/{138.2faf8c3516d4c4f72ff0.bundle.js → 136.92a341f0772ee65da7d6.bundle.js} +1 -1
  44. package/dist/{139.6738727d298cb82cdd13.bundle.js → 137.7330e14ed6a57aad5f94.bundle.js} +1 -1
  45. package/dist/138.43357891c8faa58707b4.bundle.js +1 -0
  46. package/dist/{140.8aec03c5b38c631d6c1e.bundle.js → 139.2277d7941d2756767afe.bundle.js} +1 -1
  47. package/dist/{13.a73763d3c6e0578c2af1.bundle.js → 14.a8fc6ef8dc6fa2f2816a.bundle.js} +11 -11
  48. package/dist/{141.32117cd8775dbe8fcbae.bundle.js → 140.2bf9ff7d38dd8ff616af.bundle.js} +1 -1
  49. package/dist/{142.15e37af8c96cf9dc3e7f.bundle.js → 141.f710186615c337b2fae6.bundle.js} +1 -1
  50. package/dist/{143.fdd4fcbb5282cd2dd46b.bundle.js → 142.fd312126fe70574b15e3.bundle.js} +1 -1
  51. package/dist/{144.7cb8a8402955c6168ecb.bundle.js → 143.b31bed2d13b249d84ad0.bundle.js} +1 -1
  52. package/dist/{145.3fa30ed06e9163633a2e.bundle.js → 144.9f1e5dd5f0d1e6f382fd.bundle.js} +1 -1
  53. package/dist/{146.68ce65959f5884311fde.bundle.js → 145.33d55443d1dd19a0bacb.bundle.js} +1 -1
  54. package/dist/{147.ed592ab631dcbf041ddf.bundle.js → 146.7765ae4e0ecce35603f4.bundle.js} +1 -1
  55. package/dist/{148.97728d94afb4d290c123.bundle.js → 147.5d44d89036a267b899c1.bundle.js} +1 -1
  56. package/dist/{149.1201e5f6027054c6193b.bundle.js → 148.f25d2d396c86c31714f6.bundle.js} +1 -1
  57. package/dist/{150.c93958d2d24c3a9df09c.bundle.js → 149.f7dbe3a9918a4684fa64.bundle.js} +1 -1
  58. package/dist/{15.1fef7c75d6d3884c7477.bundle.js → 15.5e160943e2ce5fc32b3f.bundle.js} +1 -1
  59. package/dist/{151.18c5954b695558d8a75a.bundle.js → 150.c69c89d996b1a696f1b1.bundle.js} +1 -1
  60. package/dist/{152.d6af0cde3e1dd9fc8c1d.bundle.js → 151.23df73ebedae9acb9f8a.bundle.js} +1 -1
  61. package/dist/{153.eea3436e5f2ed6af5805.bundle.js → 152.050964735a12306f4d8d.bundle.js} +1 -1
  62. package/dist/{154.43b33419d000ca35797f.bundle.js → 153.450de3a974ca576d4f76.bundle.js} +1 -1
  63. package/dist/{155.8d7e2682ad34c9270fe0.bundle.js → 154.e4cfb640ab1ca3cd4286.bundle.js} +1 -1
  64. package/dist/{156.c27889fee0b5465eb925.bundle.js → 155.e07768c450476750f15e.bundle.js} +1 -1
  65. package/dist/{157.a9267e161a99f7c397f0.bundle.js → 156.0eea43daab882951002d.bundle.js} +1 -1
  66. package/dist/{158.19fb300f24fd7a14210a.bundle.js → 157.8647e0cfa6d9b22fba1c.bundle.js} +1 -1
  67. package/dist/{159.ceb87dd0c514721e6f26.bundle.js → 158.e2eb018ac1b578ce4b4e.bundle.js} +1 -1
  68. package/dist/{160.2eade0d127800de8d588.bundle.js → 159.a377c78f9b79f34833cd.bundle.js} +1 -1
  69. package/dist/16.72c5de6792b2fb3d40cb.bundle.js +1 -0
  70. package/dist/{161.294da81ed3f45c1250a1.bundle.js → 160.4f9ada4c29a100824fb1.bundle.js} +1 -1
  71. package/dist/{162.a75b63430f79142fcc5d.bundle.js → 161.d048c37d7e9b3ee1528b.bundle.js} +1 -1
  72. package/dist/{163.c1a4bf8dab21603362fb.bundle.js → 162.f08b5bef113ac7ac925d.bundle.js} +1 -1
  73. package/dist/{164.17088ebd990ca168d11d.bundle.js → 163.efa08aaff2e3cdda3711.bundle.js} +1 -1
  74. package/dist/{165.9d560c84a71954a90956.bundle.js → 164.1654634aa86b14797f13.bundle.js} +1 -1
  75. package/dist/{166.4da4ef4df1cd67bf395a.bundle.js → 165.3e5cfde1214c42087e41.bundle.js} +1 -1
  76. package/dist/{167.c132aacfb909005eccc6.bundle.js → 166.bb6f7d1b5cc9bc3ac381.bundle.js} +1 -1
  77. package/dist/{168.a4c723a0068a42dad17b.bundle.js → 167.7c7fd26d09c91dbd9c55.bundle.js} +1 -1
  78. package/dist/{169.06b8e5fedae202dcff73.bundle.js → 168.6a3e67fea55b932f3090.bundle.js} +1 -1
  79. package/dist/{170.26d8ef1cedc67545299a.bundle.js → 169.a9310a747d8bf7366f97.bundle.js} +1 -1
  80. package/dist/{16.bd171e40126f074bf5d9.bundle.js → 17.ce810873458ff1ffca06.bundle.js} +2 -2
  81. package/dist/{171.fd8a4420cd7a4b283b3f.bundle.js → 170.cf2599059e3e923207a4.bundle.js} +1 -1
  82. package/dist/{172.a8bd733aa0e091a38664.bundle.js → 171.a1608fd5e4c899b96352.bundle.js} +1 -1
  83. package/dist/{173.d3a4eb2812be244a1d32.bundle.js → 172.c42d95c2edad241cf688.bundle.js} +1 -1
  84. package/dist/{174.d794bc6b1c46138c6613.bundle.js → 173.18301f20eb503ef8a27a.bundle.js} +1 -1
  85. package/dist/{175.5e8c384818bb17dd9aab.bundle.js → 174.4a15711f0dd5f8ce0919.bundle.js} +1 -1
  86. package/dist/{176.746d6385829d2a680cd1.bundle.js → 175.a73ae90b613da5e597c5.bundle.js} +1 -1
  87. package/dist/{177.86021de382ed87019173.bundle.js → 176.4f84bdfcc0197d750474.bundle.js} +1 -1
  88. package/dist/{178.b7569fc8228e2ef12525.bundle.js → 177.080a382546a2c07c54c8.bundle.js} +1 -1
  89. package/dist/{179.631668faa65967a635b9.bundle.js → 178.456581d02bb705a29124.bundle.js} +1 -1
  90. package/dist/{180.6551aa17a9e417574db2.bundle.js → 179.9cd9059a32896097ca5f.bundle.js} +1 -1
  91. package/dist/{17.68b542dd822f35968787.bundle.js → 18.05b6388e2622fda2a4e1.bundle.js} +1 -1
  92. package/dist/{181.5f8b15d991de41170b3c.bundle.js → 180.5e55e866b1afe07594b5.bundle.js} +1 -1
  93. package/dist/181.95f7ef7fc792b50c2cc6.bundle.js +1 -0
  94. package/dist/{184.805cf439b2adef6bb8a7.bundle.js → 184.badf1727b917eb1cc3a3.bundle.js} +1 -1
  95. package/dist/{185.83602499d7b5740b0232.bundle.js → 185.dd5dc8cbc36ea29c75d1.bundle.js} +1 -1
  96. package/dist/{187.35cfddfd9308fabd0798.bundle.js → 187.cd3cd4940779cc26c789.bundle.js} +1 -1
  97. package/dist/{189.b0bac492836f82dcdfc8.bundle.js → 189.ba20e7d03ba9d5662145.bundle.js} +1 -1
  98. package/dist/{18.953ec403f684734e2311.bundle.js → 19.a017cb971598b8f97d9d.bundle.js} +1 -1
  99. package/dist/{195.3d16b1e1b1d2dafd9cc4.bundle.js → 195.a88587cea9417bf47167.bundle.js} +1 -1
  100. package/dist/{2.0d59ab629b316a74f299.bundle.js → 2.b24d9c8f4b672452f0cf.bundle.js} +2 -2
  101. package/dist/{19.09865b8ff553217fec92.bundle.js → 20.8ab4bf04280797eee840.bundle.js} +1 -1
  102. package/dist/{206.092c305505663ce80fac.bundle.js → 206.a4ee3c3fffdf85a82752.bundle.js} +1 -1
  103. package/dist/{20.570db04dfd68538d4a39.bundle.js → 21.a563810cf92e995c13c3.bundle.js} +1 -1
  104. package/dist/{215.5b427a823993da06a4ec.bundle.js → 215.658744c3b46d8dc85366.bundle.js} +1 -1
  105. package/dist/{21.62ad93276e37e4ac702f.bundle.js → 22.f7fed8a367c43a44d346.bundle.js} +2 -2
  106. package/dist/23.f3a3443a579f798ac397.bundle.js +2 -0
  107. package/dist/{239.7847b00aedc190fd0c6a.bundle.js → 239.b02f686988986a34e9b7.bundle.js} +1 -1
  108. package/dist/24.89d0c908a57f6cc21ce1.bundle.js +2 -0
  109. package/dist/{247.f993b0c29022d6f15136.bundle.js → 247.70459005b0d253fcecb7.bundle.js} +1 -1
  110. package/dist/{249.bcb3610366e645f33995.bundle.js → 249.9a6257284542082278c2.bundle.js} +1 -1
  111. package/dist/25.1679fde85cc933df66f0.bundle.js +2 -0
  112. package/dist/{25.a16bf1536f9beb3a61c8.bundle.js → 26.fe862a850ff9f06e4945.bundle.js} +1 -1
  113. package/dist/{263.3335aaa1b90fea9ad424.bundle.js → 263.87b1d661b837f6acba82.bundle.js} +1 -1
  114. package/dist/{268.35a3fd52026094e7d15b.bundle.js → 268.1760717d55d1cce059d8.bundle.js} +1 -1
  115. package/dist/{26.e292a4da414e671fbe56.bundle.js → 27.3b2aa542f87461dc430e.bundle.js} +2 -2
  116. package/dist/{276.6c6b691f8eee5a07acbb.bundle.js → 276.9414df55f6f14dff2306.bundle.js} +1 -1
  117. package/dist/{277.fc89f60cb5c8b0755f15.bundle.js → 277.a91dd1008205eb4f5162.bundle.js} +1 -1
  118. package/dist/{27.0ef07ce77591c681e79d.bundle.js → 28.a4203eb16286d27639bd.bundle.js} +1 -1
  119. package/dist/280.4e90409f55584b089387.bundle.js +1 -0
  120. package/dist/{284.6a0d07f30f21f0f4be50.bundle.js → 284.30dc35180864dfbc2927.bundle.js} +1 -1
  121. package/dist/{28.070e1e29848334dc9ebb.bundle.js → 29.d7f53701e435afe11038.bundle.js} +1 -1
  122. package/dist/{290.490de8b61f494279836a.bundle.js → 290.d1f08b23cd58260b1226.bundle.js} +1 -1
  123. package/dist/{3.8428e684412876d7abd1.bundle.js → 3.325ae6955d167cf629b6.bundle.js} +1 -1
  124. package/dist/30.dfba97d073872a68a48b.bundle.js +1 -0
  125. package/dist/{304.70aa09bcb7382d94da7a.bundle.js → 304.b6372799dca7f4e9f712.bundle.js} +1 -1
  126. package/dist/{30.1f68f17a4430a7df9cd9.bundle.js → 31.efc8d1b5a18dbec9a9aa.bundle.js} +1 -1
  127. package/dist/{310.a44534336e78f61eb546.bundle.js → 310.484b2c9a5912e27c15b1.bundle.js} +1 -1
  128. package/dist/315.d4c6d40909267d14a01b.bundle.js +1 -0
  129. package/dist/{31.c1cda21566969e913a57.bundle.js → 32.39304475fbf4b36b2a43.bundle.js} +1 -1
  130. package/dist/{322.7c4db969edcd5ded15fa.bundle.js → 322.36a6899c0565b022e54d.bundle.js} +1 -1
  131. package/dist/{323.d4666997f49a2f813fc2.bundle.js → 323.dcb289cffe4ff71d53a4.bundle.js} +1 -1
  132. package/dist/{324.020e9c4d1e9873cd9e3e.bundle.js → 324.180650d6f3bd6b4adb4d.bundle.js} +1 -1
  133. package/dist/{325.52a67b5eb37e212db794.bundle.js → 325.b4db54955a4ce097ad2f.bundle.js} +1 -1
  134. package/dist/{326.73f77ba8f2c8871554a0.bundle.js → 326.c5d3853822abe1e86a44.bundle.js} +1 -1
  135. package/dist/{32.5b1d35866a8521c0ddd8.bundle.js → 33.750b03f61268eaf2623b.bundle.js} +1 -1
  136. package/dist/330.bb63d5fc20b2bcd4d339.bundle.js +1 -0
  137. package/dist/{332.290a55c149676f8b12bc.bundle.js → 331.dcf5bf6589ac6508f678.bundle.js} +1 -1
  138. package/dist/{333.c68c64b311929e005970.bundle.js → 332.9d03e71ea008a855fa21.bundle.js} +1 -1
  139. package/dist/333.0b9d6cf9eaddcf7fced8.bundle.js +1 -0
  140. package/dist/{336.85b41400f26a45c913d2.bundle.js → 334.594168bf09ec20c0a3ca.bundle.js} +1 -1
  141. package/dist/{337.be3ec594318206dc00e8.bundle.js → 335.8ba957523219aa412abc.bundle.js} +1 -1
  142. package/dist/{338.915990e8e5e0ee62b4d1.bundle.js → 336.34e1704cf1ebe667954f.bundle.js} +1 -1
  143. package/dist/{339.b0202e92037aba9cb17d.bundle.js → 337.8481172aedfa9b3e2ae5.bundle.js} +1 -1
  144. package/dist/{340.90a0259ff21debda0ed7.bundle.js → 338.f28c4ee33fc99bbfb9d0.bundle.js} +1 -1
  145. package/dist/{341.6f383e4e7b8992f8aea6.bundle.js → 339.c669b86c15f773126998.bundle.js} +1 -1
  146. package/dist/34.cf1c5d51e0bfbf10fe2e.bundle.js +1 -0
  147. package/dist/{342.1da6fe384b21e903637d.bundle.js → 340.72090fb9be58672bf42d.bundle.js} +1 -1
  148. package/dist/{343.5d92dd5674501400d188.bundle.js → 341.97cd72809c4207c6d1da.bundle.js} +1 -1
  149. package/dist/{344.43a9237134f205770ce2.bundle.js → 342.865fb5893eb67ed6ac7c.bundle.js} +1 -1
  150. package/dist/{345.01c18050b4be81825691.bundle.js → 343.1e0cb72cc52ef6f3a593.bundle.js} +1 -1
  151. package/dist/{346.cdbb73c02ebb13454de5.bundle.js → 344.37dde32d5cb2fdbf6630.bundle.js} +1 -1
  152. package/dist/{347.48420a4e8b6af4c30cf5.bundle.js → 345.7b096bd8435e4ab16889.bundle.js} +1 -1
  153. package/dist/{348.eb0c9e5cf2e6f0e66bf2.bundle.js → 346.a4cd577a9e8aa56875d2.bundle.js} +1 -1
  154. package/dist/{349.62cda39dc01594143a0b.bundle.js → 347.35843e38ac1e710251fb.bundle.js} +1 -1
  155. package/dist/{350.015bc2bbf9e045ebea7e.bundle.js → 348.54a4ceaed66e168609a7.bundle.js} +1 -1
  156. package/dist/{351.fff6d1022304bda921f0.bundle.js → 349.2b5a807450bcf89aa7a3.bundle.js} +1 -1
  157. package/dist/{33.6f0a59e5fd188a8ce2fc.bundle.js → 35.ec76ac07567c2d176a4b.bundle.js} +1 -1
  158. package/dist/{352.5a29fe2cc31e8c3d7b5d.bundle.js → 350.5bba8d09243b3ffc8d27.bundle.js} +1 -1
  159. package/dist/{353.9c0c64bdfd84177d3c1b.bundle.js → 351.00c6d019c3ee260bbbb7.bundle.js} +1 -1
  160. package/dist/{354.cbb2e30901240d068afc.bundle.js → 352.216f8da48bf6779cbe8a.bundle.js} +1 -1
  161. package/dist/{355.92484d90d33cb01731cd.bundle.js → 353.8c810994084e57e681af.bundle.js} +1 -1
  162. package/dist/{356.c9f3f2d892ee4ae0f994.bundle.js → 354.7e3a75ab06e7bbc6e391.bundle.js} +1 -1
  163. package/dist/{357.9ba93f216d695ec04f0e.bundle.js → 355.4bf835922000865b78ff.bundle.js} +1 -1
  164. package/dist/{358.f54aa69efc0ddeea425d.bundle.js → 356.2fb2e095f752291fc36a.bundle.js} +1 -1
  165. package/dist/{359.7c5836271c880c903e3e.bundle.js → 357.7a005297fb7a35544edd.bundle.js} +1 -1
  166. package/dist/{360.fd188c7eb77ecf4bc041.bundle.js → 358.b81cae8ad3c6d372d78a.bundle.js} +1 -1
  167. package/dist/{361.38d8e51020cd5de85195.bundle.js → 359.da5bb8979c09500c9731.bundle.js} +1 -1
  168. package/dist/{34.f5a79845264515ae6574.bundle.js → 36.5ce24e912050a85868aa.bundle.js} +1 -1
  169. package/dist/{362.dc87ac4c16d14af79658.bundle.js → 360.b82aba282a9d8061d236.bundle.js} +1 -1
  170. package/dist/{363.1f0c267f2e8149e447d5.bundle.js → 361.bf3bd5dac44b4779b072.bundle.js} +1 -1
  171. package/dist/{364.6decef5064677280593e.bundle.js → 362.18f0adca82e101c4e5b9.bundle.js} +1 -1
  172. package/dist/{365.ab9b6229226d0d8c3c90.bundle.js → 363.242e5a4aba7c76394d71.bundle.js} +1 -1
  173. package/dist/{366.a8401578ca9a025b7bbf.bundle.js → 364.c8b7a1ca0adf6f6ab5d1.bundle.js} +1 -1
  174. package/dist/{367.476201de3d45ce3d4363.bundle.js → 365.da6f9e3b79056fbc9935.bundle.js} +1 -1
  175. package/dist/{368.1547e3f6478d479da027.bundle.js → 366.933e620636c9518da77e.bundle.js} +1 -1
  176. package/dist/{369.d3c2d2e8c3127df3db3d.bundle.js → 367.333dbacb07d920cb4f35.bundle.js} +1 -1
  177. package/dist/{370.34bec85793d564dbc5ee.bundle.js → 368.b996e000118fd2d48023.bundle.js} +1 -1
  178. package/dist/{371.d215bb7b41b208637d88.bundle.js → 369.e9f183ffff429673e575.bundle.js} +1 -1
  179. package/dist/{35.cb4a1994570fcd048ff3.bundle.js → 37.31c75f57d06df83316c6.bundle.js} +1 -1
  180. package/dist/{372.c76dbc1f58c39ef9e9c9.bundle.js → 370.2df5d6d470f8c4cf16de.bundle.js} +1 -1
  181. package/dist/{373.d7b80790d7ceeb3e66c8.bundle.js → 371.6e98e61425dae465956a.bundle.js} +1 -1
  182. package/dist/{374.a78220a75a28b71edd15.bundle.js → 372.8dc712fa11b03b7cb4a0.bundle.js} +1 -1
  183. package/dist/{375.ad5936cde217fd1cd24b.bundle.js → 373.23df17a1f315ef2daedf.bundle.js} +1 -1
  184. package/dist/{376.b56eccfc38f4ff00dcac.bundle.js → 374.4dd4eb5cc82b451d8945.bundle.js} +1 -1
  185. package/dist/{377.0307f5e28ae10b2e5559.bundle.js → 375.d5b1e69a6423a38c9caf.bundle.js} +1 -1
  186. package/dist/{378.8a0d517c55b0350a47a2.bundle.js → 376.be83e1d73d4b5595017c.bundle.js} +1 -1
  187. package/dist/{379.baebd3f64a0c560ac950.bundle.js → 377.43c7d29f15618ab44a3d.bundle.js} +1 -1
  188. package/dist/{380.765f42a738c22bda1042.bundle.js → 378.a5375562ce0b67f8382b.bundle.js} +1 -1
  189. package/dist/{381.bbf26c624dea07cfb7a8.bundle.js → 379.42bcccb9366be5787688.bundle.js} +1 -1
  190. package/dist/38.1dfb5763064c2adaebd6.bundle.js +1 -0
  191. package/dist/{382.d6ca2271ad6cf3b331da.bundle.js → 380.fbd0b1c517e7f117b69c.bundle.js} +1 -1
  192. package/dist/{383.53043bc87ea19731b4a6.bundle.js → 381.f5f789cf35400f2c9639.bundle.js} +1 -1
  193. package/dist/{384.ea90d9b7352ddcef14a8.bundle.js → 382.421cd82a9eb002f6843c.bundle.js} +1 -1
  194. package/dist/{385.b006e205b113c4fce1cb.bundle.js → 383.e5540db47682edab834d.bundle.js} +1 -1
  195. package/dist/{386.2f621d0ba89b312ca82a.bundle.js → 384.f1c40e0e60f01d8aba9a.bundle.js} +1 -1
  196. package/dist/{387.7ad24de0a13fda2ae400.bundle.js → 385.48c5e5379f7dfac726ab.bundle.js} +1 -1
  197. package/dist/{388.efbe814406005b02e54c.bundle.js → 386.7e64e8d9c4aac0bbdb45.bundle.js} +1 -1
  198. package/dist/{389.64fbc1cce1d5fee57949.bundle.js → 387.e9a84b8c2892dda2f650.bundle.js} +1 -1
  199. package/dist/{390.b568f37210661a38d3ba.bundle.js → 388.2e6dfb15fbcd6462c3d3.bundle.js} +1 -1
  200. package/dist/{391.9ea58d3642d9ee8cc0b1.bundle.js → 389.5b0ede46232d8f8f4d66.bundle.js} +1 -1
  201. package/dist/39.78d988e336bd9d4f7cd4.bundle.js +1 -0
  202. package/dist/{392.9afe6ea9382e0fbe82db.bundle.js → 390.6036e2ff582e87acaec1.bundle.js} +1 -1
  203. package/dist/{393.a8e39fc0249cbb7db9bc.bundle.js → 391.90a84270ddca2ebe03eb.bundle.js} +1 -1
  204. package/dist/392.e0c451e90d8b605ed2bd.bundle.js +1 -0
  205. package/dist/393.3bfc31b44bfdba16d49c.bundle.js +1 -0
  206. package/dist/{396.547c7fde7bc12cc9d3db.bundle.js → 394.97f198143c473525a230.bundle.js} +1 -1
  207. package/dist/{397.0a97a309be2c1da989ab.bundle.js → 395.6ce498a744a986e8ff86.bundle.js} +1 -1
  208. package/dist/{398.6badaf34f20203bada77.bundle.js → 396.aefb86d4ebef8ff2a297.bundle.js} +1 -1
  209. package/dist/{399.f12d38319a9a79933e5a.bundle.js → 397.79cd207a9f02d868df10.bundle.js} +1 -1
  210. package/dist/{4.345ad2617e3517f75565.bundle.js → 4.6e3aeb8eee6cde5ba990.bundle.js} +1 -1
  211. package/dist/{38.a8c8099f2e8a4f3c778f.bundle.js → 40.4cc11d63e6bcfb257927.bundle.js} +1 -1
  212. package/dist/{39.c95b44b1252f8486526f.bundle.js → 41.8564cea4b8d2e978c0fa.bundle.js} +1 -1
  213. package/dist/{40.945b15bca4903efd9b71.bundle.js → 42.d7e29d98febe1327f20d.bundle.js} +1 -1
  214. package/dist/{41.b8d121d5ec004cf9dea1.bundle.js → 43.970f6e2bb8846b2712b8.bundle.js} +1 -1
  215. package/dist/{42.82eacf4859c6cbd5f51f.bundle.js → 44.bcc6eace48b1d6434e62.bundle.js} +1 -1
  216. package/dist/{43.2b4a9d33022e90ac0be2.bundle.js → 45.9b655ea07221e5e2a517.bundle.js} +1 -1
  217. package/dist/{44.595e88a34ef82254fe25.bundle.js → 46.a29d923276330b841abe.bundle.js} +1 -1
  218. package/dist/{45.c470ec6048e1039fd0aa.bundle.js → 47.ba8a59361b7bef07c6a4.bundle.js} +1 -1
  219. package/dist/{46.d0220c9f624074d7bfd4.bundle.js → 48.c31e4bbc3f21fe58fd65.bundle.js} +1 -1
  220. package/dist/{47.060a414a4eaf36ed34cb.bundle.js → 49.929061b5beba2ec97451.bundle.js} +1 -1
  221. package/dist/{5.cb396084f605672543e7.bundle.js → 5.b2096856419b1a06ea75.bundle.js} +1 -1
  222. package/dist/{48.d5bc567583d5e25547dc.bundle.js → 50.20572266650787d7ee91.bundle.js} +1 -1
  223. package/dist/{49.6ec3a9dc86537f805bde.bundle.js → 51.920803b51e86c1f8d45a.bundle.js} +1 -1
  224. package/dist/{50.e91318aac4d8d77785be.bundle.js → 52.42e7bb5a56f5f4c75241.bundle.js} +1 -1
  225. package/dist/{51.6de9a6ab46d8827104d0.bundle.js → 53.ffce7c0ac6b025c53b75.bundle.js} +1 -1
  226. package/dist/{53.bb3c7f37e60f65c29021.bundle.js → 54.ee14bd02621e6b4667b8.bundle.js} +1 -1
  227. package/dist/{54.67e090bb4a052816c714.bundle.js → 55.409784fff5aff351a7fe.bundle.js} +1 -1
  228. package/dist/{55.c55aabd6a1f8b25f2580.bundle.js → 56.b8582f61d881c1cad5e7.bundle.js} +1 -1
  229. package/dist/{56.5e98db705e0a6efb1d07.bundle.js → 57.a298ee7bb5d22e8419f8.bundle.js} +1 -1
  230. package/dist/{57.abc7849d969a76057940.bundle.js → 58.e8c5b3956ece53354494.bundle.js} +1 -1
  231. package/dist/{58.50571f2fffe2f1460096.bundle.js → 59.6b5fd868c31cfb6a2762.bundle.js} +1 -1
  232. package/dist/{6.7346c251ed4a977575f2.bundle.js → 6.fa03286d27c8ae9a8ab2.bundle.js} +1 -1
  233. package/dist/{59.f2dbfcba177233488235.bundle.js → 60.686d916962bfb4056a6c.bundle.js} +1 -1
  234. package/dist/{60.7ad08e1ea896217fdac9.bundle.js → 61.0f5b5f053325f96a3f34.bundle.js} +1 -1
  235. package/dist/{61.6bc066c34ff785f50028.bundle.js → 62.b60e36b63fe11c962d52.bundle.js} +1 -1
  236. package/dist/{62.1dc54be1544831eb448b.bundle.js → 63.732d2a81f1389f90c8c9.bundle.js} +1 -1
  237. package/dist/{63.4aa2e5a87569d01c0ed7.bundle.js → 64.f3a6be2dd7fa51c4f3d4.bundle.js} +1 -1
  238. package/dist/{64.36ebe11edac1da1b0d98.bundle.js → 65.72826a0c206575c1e2b0.bundle.js} +2 -2
  239. package/dist/{65.896a3eaa522be746be60.bundle.js → 66.2d6293e2aff634d498fe.bundle.js} +1 -1
  240. package/dist/{67.83356de3de8509b1e165.bundle.js → 67.ada6349f0f83da3f3256.bundle.js} +1 -1
  241. package/dist/68.7237eac2d4aeac9a56bd.bundle.js +1 -0
  242. package/dist/{69.a739e488b08255da4565.bundle.js → 69.07b17e35f4356b0316a6.bundle.js} +1 -1
  243. package/dist/{7.07d30055aad7da6c8fcf.bundle.js → 7.cd9f66de5a80daeb89da.bundle.js} +1 -1
  244. package/dist/{70.1a91b4a4b85d13a69710.bundle.js → 70.857ff29191ca36ed5b48.bundle.js} +1 -1
  245. package/dist/{71.43ffebf29bde40ba3f77.bundle.js → 71.55f2d00c428565282880.bundle.js} +1 -1
  246. package/dist/{72.9f992138ec54216a251f.bundle.js → 72.aec349c178c91727485d.bundle.js} +1 -1
  247. package/dist/{74.291594bc989e21f2aba6.bundle.js → 74.ba6d30bda6286ae239d5.bundle.js} +1 -1
  248. package/dist/{75.676ae7a419fe23e4a872.bundle.js → 75.8020265074f8b85a9038.bundle.js} +1 -1
  249. package/dist/{77.8cbbc8fec14ad506f2f1.bundle.js → 77.5dd4b9ee10abc4d51d9d.bundle.js} +1 -1
  250. package/dist/{78.f22bca93459642c8f680.bundle.js → 78.4a3b2d46d28b4844917e.bundle.js} +1 -1
  251. package/dist/{79.bfb074733534a6247c06.bundle.js → 79.fcb63f57ab3b465fe83a.bundle.js} +1 -1
  252. package/dist/8.61d7d1eb310f8cdc62a6.bundle.js +1 -0
  253. package/dist/{80.cc1cebcc79df1bfccc83.bundle.js → 80.ed230d0ab87e71ce20a0.bundle.js} +1 -1
  254. package/dist/{81.d8af8695c90555e2969a.bundle.js → 81.a5122117f8d64f9e4593.bundle.js} +1 -1
  255. package/dist/{82.79dcf025720340cc80be.bundle.js → 82.8d0172da4ec38841ff65.bundle.js} +1 -1
  256. package/dist/{83.e40c2ed0a82336d2a200.bundle.js → 83.06f9155fd9d2840c9e0d.bundle.js} +1 -1
  257. package/dist/84.7a6bd4dcc42d89095d9d.bundle.js +1 -0
  258. package/dist/{87.3b21eccdeca424f07078.bundle.js → 85.7c2f09c86407294a40ba.bundle.js} +1 -1
  259. package/dist/{88.591fff6c8f27d6dada6f.bundle.js → 86.80e2092b94da006fef06.bundle.js} +1 -1
  260. package/dist/87.81bb296620f4b3a5fddd.bundle.js +1 -0
  261. package/dist/{89.fd4df0be29181be0c0ea.bundle.js → 88.ea0225ac48d9f5b7b8ee.bundle.js} +1 -1
  262. package/dist/{90.eec16c54cc9f9015f59f.bundle.js → 89.dcb04f91d7e151b1a309.bundle.js} +1 -1
  263. package/dist/9.fec09ce429afc7d37e5c.bundle.js +1 -0
  264. package/dist/{91.1325c47ab1e1bde6f2f4.bundle.js → 90.0b163611c3037b07a007.bundle.js} +1 -1
  265. package/dist/91.ae39d2216929928ed44e.bundle.js +1 -0
  266. package/dist/{93.de6030748b9e71e4f2cb.bundle.js → 92.e809512eeabf7ebef765.bundle.js} +1 -1
  267. package/dist/{94.8d63afe2e8cf0489199a.bundle.js → 93.eacf11b216749ef24662.bundle.js} +1 -1
  268. package/dist/{95.565e12014a029895a47e.bundle.js → 94.ea51ce6e0a719f162375.bundle.js} +1 -1
  269. package/dist/{96.43c4ab175d5100f42417.bundle.js → 95.0dc5550911d3d0d871da.bundle.js} +1 -1
  270. package/dist/{97.2aa9813bb8e2ddcf9e41.bundle.js → 96.f35153db1bf3b90d2abc.bundle.js} +1 -1
  271. package/dist/{98.fbabe5fb9ba60ec4359f.bundle.js → 97.5f0cbc7c62c5871a1dbb.bundle.js} +1 -1
  272. package/dist/{99.3058922e7c3afd38944e.bundle.js → 98.6711ad20bbd77dd418d8.bundle.js} +1 -1
  273. package/dist/99.35c79bc748869bc79a91.bundle.js +1 -0
  274. package/dist/{bundle.60e6c247af87899d5130.bundle.js → bundle.f19c8bb3b73aeddf1f27.bundle.js} +5 -5
  275. package/dist/css/cluster-nodes-configuration.css +100 -0
  276. package/dist/css/clustermanagement.css +80 -0
  277. package/dist/i18n/locale-en.json +43 -34
  278. package/dist/i18n/locale-fr.json +43 -34
  279. package/dist/index.html +3 -3
  280. package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +368 -0
  281. package/dist/js/angular/clustermanagement/templates/modal/edit-cluster-nodes-modal.html +17 -0
  282. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  283. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  284. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  285. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
  286. package/dist/js/angular/security/templates/user.html +1 -1
  287. package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
  288. package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
  289. package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
  290. package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
  291. package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
  292. package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +2 -2
  293. package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
  294. package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
  295. package/dist/license-checker.json +2 -2
  296. package/dist/pages/aclmanagement.html +2 -2
  297. package/dist/pages/autocomplete.html +1 -1
  298. package/dist/pages/choose-repository-type.html +1 -1
  299. package/dist/pages/cluster-management/clusterInfo.html +7 -17
  300. package/dist/pages/create-index.html +1 -1
  301. package/dist/pages/dependencies.html +1 -1
  302. package/dist/pages/domainRangeInfo.html +2 -2
  303. package/dist/pages/edit.html +1 -1
  304. package/dist/pages/explore.html +1 -1
  305. package/dist/pages/export.html +1 -1
  306. package/dist/pages/find.html +1 -1
  307. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  308. package/dist/pages/graphs-visualizations.html +7 -7
  309. package/dist/pages/guides.html +1 -1
  310. package/dist/pages/import.html +6 -4
  311. package/dist/pages/jdbc-create.html +1 -1
  312. package/dist/pages/monitor/backup-and-restore.html +1 -1
  313. package/dist/pages/monitor/queries.html +1 -1
  314. package/dist/pages/monitor/resources.html +1 -1
  315. package/dist/pages/namespaces.html +2 -2
  316. package/dist/pages/plugins.html +1 -1
  317. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  318. package/dist/pages/rdfrank.html +2 -2
  319. package/dist/pages/repositories.html +1 -1
  320. package/dist/pages/repository.html +1 -1
  321. package/dist/pages/similarity-indexes.html +1 -1
  322. package/dist/pages/sparql-editor.html +1 -1
  323. package/dist/pages/sparql-template-create.html +1 -1
  324. package/dist/pages/ux-test1.html +2 -2
  325. package/dist/pages/webapi.html +2 -2
  326. package/dist/{polyfills-dom.713c6eb5d06e88d29f04.bundle.js → polyfills-dom.798fd2050f81c0dff613.bundle.js} +1 -1
  327. package/dist/res/swagger5/index.html +12 -12
  328. package/dist/{vendors~polyfills-core-js.96a1bbab5b3376633c87.bundle.js → vendors~polyfills-core-js.b7d53dddc781f5fdc222.bundle.js} +1 -1
  329. package/package.json +1 -1
  330. package/dist/100.3d74de00f030601e9489.bundle.js +0 -1
  331. package/dist/128.fa3084ee3aa636a6943d.bundle.js +0 -1
  332. package/dist/130.70c607ca456d4d3e4425.bundle.js +0 -1
  333. package/dist/134.95838ee457c1daabe365.bundle.js +0 -1
  334. package/dist/137.365af441e64339f760a1.bundle.js +0 -1
  335. package/dist/14.50fce7384e1b3706c9ce.bundle.js +0 -1
  336. package/dist/22.7630e43856dd3c39f7c4.bundle.js +0 -2
  337. package/dist/23.3c512a27f64f3278dbe0.bundle.js +0 -2
  338. package/dist/24.bb3d63db25359da4f29c.bundle.js +0 -2
  339. package/dist/280.7a1fff29dbaae2ab91a2.bundle.js +0 -1
  340. package/dist/29.a86d9d0af0b450c51ec6.bundle.js +0 -1
  341. package/dist/315.b56535ccf659e0dc2b00.bundle.js +0 -1
  342. package/dist/330.54d08af7ae2a1b1543d4.bundle.js +0 -1
  343. package/dist/331.7ad05387c5ea80f14b3b.bundle.js +0 -1
  344. package/dist/334.b18e698ff9268dd2f3c0.bundle.js +0 -1
  345. package/dist/335.283607f4b4419c912c3a.bundle.js +0 -1
  346. package/dist/36.6b37b8a1eb9f42181b77.bundle.js +0 -1
  347. package/dist/37.36f01213afb3bece36cc.bundle.js +0 -1
  348. package/dist/394.488259a20fcc3f78c877.bundle.js +0 -1
  349. package/dist/395.6a033799cf93451ad83f.bundle.js +0 -1
  350. package/dist/52.b8414a9fb196b747d2a6.bundle.js +0 -1
  351. package/dist/66.f7242d9a5ed559431ea7.bundle.js +0 -1
  352. package/dist/68.270fc7723abcb2e37f46.bundle.js +0 -1
  353. package/dist/8.861e38cf9146e3e75649.bundle.js +0 -1
  354. package/dist/84.564dbdaadac4d8f943e6.bundle.js +0 -1
  355. package/dist/85.a26dd294cbde346e535a.bundle.js +0 -1
  356. package/dist/86.a0e03ca9e6b275e5d86c.bundle.js +0 -1
  357. package/dist/9.ef09c58a5a6d39c69a24.bundle.js +0 -1
  358. package/dist/92.9f757b1920f681d4001a.bundle.js +0 -1
  359. package/dist/js/angular/clustermanagement/templates/modal/add-nodes-dialog.html +0 -67
  360. package/dist/js/angular/clustermanagement/templates/modal/cluster-create-dialog.html +0 -173
  361. package/dist/js/angular/clustermanagement/templates/modal/remove-nodes-dialog.html +0 -39
  362. package/dist/js/angular/clustermanagement/templates/modal/replace-nodes-dialog.html +0 -86
  363. /package/dist/{vendor.097ea64a1a6385ba13cb.bundle.js → vendor.3ae36bbbdf44fc52984f.bundle.js} +0 -0
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[40],{231:function(e,t,n){"use strict";n.r(t);var r=n(528),a=n(553),i=n(517),o=n(518);n(11);function s(e,t,n,s,c,l,d,u,f,h,p,y,v){return{restrict:"AE",template:'<div id="classChart"></div>',scope:{classHierarchyData:"=",flattenedClassNames:"=",selectedClass:"=",currentSliderValue:"=",showClassInfoPanel:"=",showExternalElements:"=",hidePrefixes:"=",currentBrowserLimit:"="},link:function(d,g,m){!function(d,g){var m,x,w=d3.pack().size([780,780]),S=d3.scaleLinear().domain([0,4]).range(["hsl(19, 70%, 90%)","hsl(19, 70%, 50%)"]).interpolate(d3.interpolateHcl),C=d3.select("#classChart").insert("svg:svg","h2").attr("viewBox","0 0 800 800").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null);function E(){return C.append("svg:g").attrs({id:"main-group",transform:"translate(400,400)"})}function T(){return"true"===p.get(y.CLASS_HIERARCHY_HIDE_PREFIXES)}function R(){var e=o.a.Export.getCSSRules("css/rdf-class-hierarchy-labels.css?v=2.8.0-TR12");d3.selectAll("#main-group").append("defs"),$("defs").append('<style type="text/css"><![CDATA['+e+"]]></style>"),d3.selectAll("g").style("opacity",1);var t=o.a.Export.generateBase64ImageSource("#classChart svg");d3.select(this).attrs({href:t,download:"class-hierarchy-"+l.getActiveRepository()+".svg"})}d.hidePrefixes=T();var A,H,P=E();if(!d.classHierarchyData.classCount&&l.getActiveRepository()&&!l.isSystemRepository()){e.loader=!0,e.hierarchyError=!1;const t=p.get("classHierarchy-selectedGraph-"+l.getActiveRepository());n.getClassHierarchyData(null!==t?t.contextID.uri:"").success((function(t,n,r){e.loader=!1,207===n&&u.warning(v.instant("graphexplore.update.diagram"),v.instant("graphexplore.repository.data.changed")),d.classHierarchyData=t,d3.select("#download-svg").on("mouseover",R)})).error((function(t){e.loader=!1,e.hierarchyError=getError(t),u.error(v.instant("graphexplore.error.request.failed",{name:h,error:getError(t)}))}))}var I,b,k,L,N,D,F,z={};function O(n,o,l,u){b&&b(),k&&k(),d3.selectAll("#main-group").remove(),P=E(),a.a.SingleChild.addPlaceholders(n,!0),(x=d3.hierarchy(n)).sum((function(e){return e.size})),I=l||x,w(x);var p,y=x.descendants();I.isInFocusTransitive=!0,a.a.SingleChild.removePlaceholders(y),a.a.SingleChild.centerNodes(y),a.a.SingleChild.makePositionsRelativeToZero(y),m||(m=Object(r.a)().attr("class","d3-tip").customPosition((function(e,t){return{top:"inherit",bottom:s.innerHeight-t.clientY+"px",right:s.innerWidth-t.clientX+"px"}})).html((function(e){return e.data.name})),C.call(m));var v=P.selectAll("circle").data(y).enter().append("g");o.doFade&&v.each((function(e){i.a.Transition.fadeIn(d3.select(this),550)}));var g,T=[],R=v.append("circle").attr("class",(function(e){return e.data.role})).attr("guide-selector",(function(e){return"class-"+e.data.name})).style("fill",(function(e){return e.children?S(e.depth):"#E0D0D0"})).each((function(e){if(e.circle=d3.select(this),e.data.name!==h){var t=e.data.name;T.push({name:t}),z[[t]]=e,e.circle.classed("rdf-class",!0),e.circle.on("mouseover",(function(t){o.noPrefixes||e.textHidden?m.show(e,t):m.hide(e)})),e.circle.on("mouseout",m.hide)}})).on("gdb-focus",(e,t)=>H(t)).on("gdb-zoom",(e,t)=>W(t));function L(e){d3.selectAll(".selected").classed("selected",e.selected=!1),e.circle.classed("selected",e.selected=!0),g=e}function N(){d.showClassInfoPanel=!1}T&&(T=_.uniqBy(T,"name"),d.flattenedClassNames=T);var D=i.a.Click.delayDblClick();d3.selectAll(".parent, .topLevelParent, .child, .root").call(D),H=function(e){W(e),e.data.name===h?(N(),d3.selectAll(".selected").classed("selected",!1)):(L(e),d.selectedClass=g,d.showClassInfoPanel=!0,d.$on("sidePanelClosed",(function(t){d3.selectAll(".selected").classed("selected",e.selected=!1)})))},D.on("click",(function(e,t){t.data.id&&s.history.pushState({id:t.data.id},"classHierarchyPage"+t.data.id,"hierarchy#"+t.data.id),m.hide(),H(t)})),D.on("dblclick",(function(t,r){r!==n&&(m.hide(),L(r),e.$broadcast("goToDomainRangeGraphView",g,I),t.stopPropagation())}));var F=0;C.on("wheel",(function(e){m.hide(),e.preventDefault(),e.stopPropagation();var t=(new Date).getTime();if(t-F>100){F=t;var n="";e.deltaY<=-1?n="in":e.deltaY>=1&&(n="out");var r=e.target.__data__;if(r||(r=I),"in"===n){if(r!==I){for(;r.parent&&!r.parent.isInFocusTransitive;)r=r.parent;r.depth<I.depth&&(r=I)}if(r===I&&r.children){for(var a=r.children[0],i=1;i<r.children.length;i++)r.children[i].sortingRank>a.sortingRank&&(a=r.children[i]);a.children&&(r=a)}else r.children||(r=r.parent);W(r,!0)}else"out"===n&&(r=I.parent)&&W(r,!0);I.data.name===h&&s.history.replaceState({id:1},"classHierarchyPage1","hierarchy#1"),U()}}));var $=P.selectAll("text").data(y).enter().append("text").attr("class",(function(e){return e.children&&e.children.length?"label":"label child-label"})).each((function(e){e.textSel=d3.select(this)}));o.noPrefixes?($.each((function(e){var t=e.data.name.indexOf(":");e.data.name.indexOf("http://")>-1?e.noPrefixName=e.data.name:t>-1&&(e.noPrefixName=e.data.name.substring(t+1))})),$.style("font-size",(function(e){return i.a.Text.calcFontSize(e.noPrefixName,e.r)})).text((function(e){return i.a.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r/3)}))):$.style("font-size",(function(e){return i.a.Text.calcFontSize(e.data.name,e.r)})).text((function(e){return i.a.Text.getTextWithElipsisIfNeeded(e.data.name,e.r/3)})),$.style("display",(function(e){return e.parent&&e.parent.data===I.data?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,null):(e.textHidden=!0,"none")})),o.doFade&&!o.keepPrevState&&$.each((function(e){i.a.Transition.fadeIn(d3.select(this),550)})),A=function(){function e(e){e&&R.each((function(t){+e===t.data.id&&H(t)}))}var n=t.hash();s.onpopstate=function(t){t.state&&e(t.state.id)},e(n)};var O=P.selectAll("circle, text");function M(e,t){var n=800/e[2];p=e,O.attr("transform",(function(t){return"translate("+(t.x-e[0])*n+","+(t.y-e[1])*n+")"})),R.attr("r",(function(e){return e.r*n})),t&&$.each((function(e){e.data.fullName!==I.data.topLevelParentUri&&I.data.topLevelParentUri!==h||(e.textSel.style("display","none"),I.children&&I.children.length?_.each(I.children,(function(e){e.textSel.style("display","inline")})):I.textSel.style("display","inline"),I.parent&&_.each(I.parent.children,(function(e){e.data.name!==I.data.name&&e.textSel.style("display","inline")})))})),$.style("font-size",(function(e){return o.noPrefixes?i.a.Text.calcFontSize(e.noPrefixName,e.r*n):i.a.Text.calcFontSize(e.data.name,e.r*n)})).text((function(e){return o.noPrefixes?i.a.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r*n/3):i.a.Text.getTextWithElipsisIfNeeded(e.data.name,e.r*n/3)}))}function V(e){var t=2*e+20;return 2*e/t<.3&&(t=2*e+2),t}function B(e){!e.isInFocusTransitive&&e.parent&&e.parent.isInFocusTransitive?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,this.style.display=""):(e.textHidden=!0,this.style.display="none")}function W(e,t){if(c((function(){d.showExternalElements=e.data.name===h})),I!==e&&(e.data.id&&s.history.replaceState({id:e.data.id},"classHierarchyPage"+e.data.id,"hierarchy#"+e.data.id),e.children||(e=e.parent,I!==e))){if(t&&(N(),d3.selectAll(".selected").classed("selected",!1)),I.parent)for(var n=I;n;)n.isInFocusTransitive=!1,n=n.parent;for(n=e;n;)n.isInFocusTransitive=!!n.children,n=n.parent;if(2*(I=e).r/(2*I.r+20)<.3||d.currentSliderValue>d.currentBrowserLimit)M([I.x,I.y,V(I.r)]),$.each((function(e){B.call(this,e)}));else d3.transition().duration(f).tween("zoom",(function(e){var t=d3.interpolateZoom(p,[I.x,I.y,V(I.r)]);return function(e){M(t(e))}})).selectAll("text").each(B)}}M([I.x,I.y,V(I.r)],u),b=d.$on("rootFocus",(function(){s.history.pushState({id:1},"classHierarchyPage1","hierarchy#1"),H(x)})),k=d.$on("classSearch",(function(e){H(e)}))}function U(){const t=d.classHierarchyData.classCount;let n=p.get(y.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);(!n||n>t)&&(n=t,p.set(y.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,n)),e.$broadcast("classCount",t,n)}window.addEventListener("resize",U),window.addEventListener("beforeunload",(function e(){window.removeEventListener("resize",U),window.removeEventListener("beforeunload",e)})),d.$watch("classHierarchyData",(function(){L&&L(),N&&N(),D&&D(),F&&F();var e=T();if(d.classHierarchyData.classCount){U();var t=_.cloneDeep(d.classHierarchyData);var n,r,a=function(e){return e.descendants().sort((function(e,t){return e.data.sortingRank>t.data.sortingRank?-1:e.data.sortingRank<t.data.sortingRank||e.data.depth>t.data.depth?1:e.data.depth<t.data.depth?-1:0}))}(d3.hierarchy(t));function i(e,t){const a={keepPrevState:!0,noPrefixes:T()};r=a.noPrefixes,O(n||e,a,I,!0),c((function(){p.set(y.CLASS_HIERARCHY_SWITCH_PREFIXES,t),A()}),70)}function o(e,a,o){if(!e)return;p.set(y.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,e),n={name:h,children:[]};const s=new Set;for(let t=1;t<=e;t++)s.add(a[t].data.id),a[t].parent===a[0]&&n.children.push(a[t].data);if(function e(t){if(!t.children)return;const n=[];for(const e of t.children)s.has(e.id)&&n.push($.extend({},e));t.children=n;for(const n of t.children)e(n)}(n),o){r=angular.isUndefined(r)?T():r;O(n,{noPrefixes:r})}else i(t)}var s,l=p.get(y.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);if(l)o(l,a);else{var u={doFade:!0,keepPrevState:!0,noPrefixes:T()};O(t,u),A()}L=d.$watch("hidePrefixes",(function(n){angular.isUndefined(n)||e?e=void 0:c((function(){!function(e){angular.isUndefined(e)||p.set(y.CLASS_HIERARCHY_HIDE_PREFIXES,e)}(n),i(t,!0)}),50)}),!0),N=d.$watch("currentSliderValue",(function(e){o(e,a,!0)}),!0),F=d.$on("onEnterKeypressSearchAction",(function(e){s&&H(s)})),D=d.$on("searchedClass",(function(e,t){(s=z[t.name])&&H(s)}))}}),!0)}(d)}}}angular.module("graphdb.framework.graphexplore.directives.class",["graphdb.framework.graphexplore.controllers.class","graphdb.framework.utils.localstorageadapter"]).constant("ZOOM_DURATION",500).constant("ROOT_OBJ_NAME","RDF Class Hierarchy").directive("rdfClassHierarchy",s),s.$inject=["$rootScope","$location","GraphDataRestService","$window","$timeout","$repositories","$licenseService","toastr","ZOOM_DURATION","ROOT_OBJ_NAME","LocalStorageAdapter","LSKeys","$translate"]},504:function(e,t,n){var r,a;r=[n(514)],void 0===(a=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),n=select(this);for(var r in e)n.attr(r,e[r])}))}function t(e,t){for(var n in t)e.attr(n,t[n]);return e}return"undefined"==typeof d3&&(d3=n(514)),d3.selection.prototype.attrs=function(n){return("function"==typeof n?e:t)(this,n)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){const e=this.parentNode.firstChild;e&&this.parentNode.insertBefore(this,e)}))},d3}.apply(t,r))||(e.exports=a)},517:function(e,t,n){"use strict";n(504);var r=r||{};r.Text=function(){function e(e,t,n,r){n=n||10;var a=t/3;return"string"==typeof e?(a*=10/(e.substring(0,t/3).length+1.5),a+=1,e.match(/[\u0900-\u0DFF\u1100-\u11FF\u2E80-\u2EFF\u3000-\u9FFF]/)&&(a*=.6),a<n&&(a=n),Math.round(a)):(a<n&&(a=n),Math.round(a))}return{calcFontSizeRaw:e,calcFontSize:function(t,n,r,a){return e(t,n,r)+"px"},getTextWithElipsisIfNeeded:function(e,t){return"string"==typeof e&&e.length>t?e.substring(0,t-3)+"...":e}}}(),r.Transition={fadeIn:function(e,t){e.style("opacity",0).transition().duration(t).style("opacity",1)},fadeOut:function(e,t){e.style("opacity",1).transition().duration(t).style("opacity",0)}},r.Click=function(){const e=function(e,n){let r,a=1,i=arguments.length;for(;++a<i;)r=arguments[a],e[r]=t(e,n,n[r]);return e};function t(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}return{delayDblClick:function(){var t=d3.dispatch("click","dblclick");return e((function(e){var n,r=null;e.on("mousedown",(function(){n=d3.pointer(document.body),+new Date})),e.on("mouseup",(function(e,a){var i,o,s;(o=n,s=d3.pointer(document.body),Math.sqrt(Math.pow(o[0]-s[0],2),Math.pow(o[1]-s[1],2))>5)||(r?(window.clearTimeout(r),r=null,t.call("dblclick",e,e,a)):r=window.setTimeout((i=e,function(){t.call("click",i,i,a),r=null}),250))}))}),t,"on")}}}(),t.a=r},518:function(e,t,n){"use strict";n(504);var r=r||{};r.Export={getCSSRules:function(e){const t=$('link[href="'+e+'"]')[0].sheet.rules;let n="";return _.each(t,(function(e){n+=e.cssText})),n},generateBase64ImageSource:function(e){e||(e="svg");const t=d3.selectAll(e).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(t)))}},t.a=r},528:function(e,t,n){"use strict";t.a=function(){var e=function(){return"n"},t=function(){return[0,0]},n=function(){return" "},r=u(),a=null,i=null,o=null,s=null;function c(e){var t;a="svg"===(t=(t=e).node()).tagName.toLowerCase()?t:t.ownerSVGElement,i=a.createSVGPoint(),document.body.appendChild(r)}c.show=function(){var r=Array.prototype.slice.call(arguments);r[r.length-1]instanceof SVGElement&&(o=r.pop());var a,i=n.apply(this,r),u=t.apply(this,r),h=e.apply(this,r),p=f(),y=d.length,v=document.documentElement.scrollTop||document.body.scrollTop,g=document.documentElement.scrollLeft||document.body.scrollLeft,m=s.apply(this,r);for(p.html(i).style("opacity",1).style("pointer-events","all");y--;)p.classed(d[y],!1);const x=r.filter(e=>e instanceof Event);return a=l.get(h).apply(this,x),m?Object.keys(m).forEach((function(e){p.style(e,m[e])})):p.classed(h,!0).style("top",a.top+u[0]+v+"px").style("left",a.left+u[1]+g+"px"),c},c.hide=function(){return f().style("opacity",0).style("pointer-events","none"),c},c.attr=function(e,t){if(arguments.length<2&&"string"==typeof e)return f().attr(e);var n=Array.prototype.slice.call(arguments);return d3.selection.prototype.attr.apply(f(),n),c},c.style=function(e,t){if(arguments.length<2&&"string"==typeof e)return f().style(e);var n=Array.prototype.slice.call(arguments);return d3.selection.prototype.style.apply(f(),n),c},c.direction=function(t){return arguments.length?(e=null==t?t:p(t),c):e},c.offset=function(e){return arguments.length?(t=null==e?e:p(e),c):t},c.html=function(e){return arguments.length?(n=null==e?e:p(e),c):n},c.customPosition=function(e){return arguments.length?(s=null==e?e:p(e),c):s},c.destroy=function(){return r&&(f().remove(),r=null),c};var l=new Map(Object.entries({n:function(e){var t=h(e);return{top:t.n.y-r.offsetHeight,left:t.n.x-r.offsetWidth/2}},s:function(e){var t=h(e);return{top:t.s.y,left:t.s.x-r.offsetWidth/2}},e:function(e){var t=h(e);return{top:t.e.y-r.offsetHeight/2,left:t.e.x}},w:function(e){var t=h(e);return{top:t.w.y-r.offsetHeight/2,left:t.w.x-r.offsetWidth}},nw:function(e){var t=h(e);return{top:t.nw.y-r.offsetHeight,left:t.nw.x-r.offsetWidth}},ne:function(e){var t=h(e);return{top:t.ne.y-r.offsetHeight,left:t.ne.x}},sw:function(e){var t=h(e);return{top:t.sw.y,left:t.sw.x-r.offsetWidth}},se:function(e){var t=h(e);return{top:t.se.y,left:t.e.x}}})),d=l.keys();function u(){var e=d3.select(document.createElement("div"));return e.style("position","absolute").style("top",0).style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),e.node()}function f(){return null===r&&(r=u(),document.body.appendChild(r)),d3.select(r)}function h(e){for(var t=o||e.target;void 0===t.getScreenCTM&&"undefined"===t.parentNode;)t=t.parentNode;var n={},r=t.getScreenCTM(),a=t.getBBox(),s=a.width,c=a.height,l=a.x,d=a.y;return i.x=l,i.y=d,n.nw=i.matrixTransform(r),i.x+=s,n.ne=i.matrixTransform(r),i.y+=c,n.se=i.matrixTransform(r),i.x-=s,n.sw=i.matrixTransform(r),i.y-=c/2,n.w=i.matrixTransform(r),i.x+=s,n.e=i.matrixTransform(r),i.x-=s/2,i.y-=c/2,n.n=i.matrixTransform(r),i.y+=c,n.s=i.matrixTransform(r),n}function p(e){return"function"==typeof e?e:function(){return e}}return c}},553:function(e,t,n){"use strict";var r=r||{};r.SingleChild={addPlaceholders:function e(t,n){if(t.children){for(var r=0;r<t.children.length;r++)e(t.children[r]);if(1===t.children.length){var a=1.2*t.size;n&&(a=.1*t.children[0].size),t.children.push({name:"placeholder",size:a})}}},removePlaceholders:function e(t){for(var n=t.length-1;n>=0;n--){var r=t[n];"placeholder"===r.data.name?t.splice(n,1):r.children&&e(r.children)}},centerNodes:function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.children&&1===n.children.length){var r=n.x-n.children[0].x;n.children[0].x+=r,a(n.children[0],r)}}function a(e,t){if(e.children)for(var n=0;n<e.children.length;n++)e.children[n].x+=t,a(e.children[n],t)}},makePositionsRelativeToZero:function(e){for(var t=e[0].x,n=e[0].y,r=0;r<e.length;r++){var a=e[r];a.x-=t,a.y-=n}}},t.a=r}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[42],{231:function(e,t,n){"use strict";n.r(t);var r=n(526),a=n(551),i=n(515),o=n(516);n(11);function s(e,t,n,s,c,l,d,u,f,h,p,y,v){return{restrict:"AE",template:'<div id="classChart"></div>',scope:{classHierarchyData:"=",flattenedClassNames:"=",selectedClass:"=",currentSliderValue:"=",showClassInfoPanel:"=",showExternalElements:"=",hidePrefixes:"=",currentBrowserLimit:"="},link:function(d,g,m){!function(d,g){var m,x,w=d3.pack().size([780,780]),S=d3.scaleLinear().domain([0,4]).range(["hsl(19, 70%, 90%)","hsl(19, 70%, 50%)"]).interpolate(d3.interpolateHcl),C=d3.select("#classChart").insert("svg:svg","h2").attr("viewBox","0 0 800 800").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null);function E(){return C.append("svg:g").attrs({id:"main-group",transform:"translate(400,400)"})}function T(){return"true"===p.get(y.CLASS_HIERARCHY_HIDE_PREFIXES)}function R(){var e=o.a.Export.getCSSRules("css/rdf-class-hierarchy-labels.css?v=2.8.0-TR13");d3.selectAll("#main-group").append("defs"),$("defs").append('<style type="text/css"><![CDATA['+e+"]]></style>"),d3.selectAll("g").style("opacity",1);var t=o.a.Export.generateBase64ImageSource("#classChart svg");d3.select(this).attrs({href:t,download:"class-hierarchy-"+l.getActiveRepository()+".svg"})}d.hidePrefixes=T();var A,H,P=E();if(!d.classHierarchyData.classCount&&l.getActiveRepository()&&!l.isSystemRepository()){e.loader=!0,e.hierarchyError=!1;const t=p.get("classHierarchy-selectedGraph-"+l.getActiveRepository());n.getClassHierarchyData(null!==t?t.contextID.uri:"").success((function(t,n,r){e.loader=!1,207===n&&u.warning(v.instant("graphexplore.update.diagram"),v.instant("graphexplore.repository.data.changed")),d.classHierarchyData=t,d3.select("#download-svg").on("mouseover",R)})).error((function(t){e.loader=!1,e.hierarchyError=getError(t),u.error(v.instant("graphexplore.error.request.failed",{name:h,error:getError(t)}))}))}var I,b,k,L,N,D,F,z={};function O(n,o,l,u){b&&b(),k&&k(),d3.selectAll("#main-group").remove(),P=E(),a.a.SingleChild.addPlaceholders(n,!0),(x=d3.hierarchy(n)).sum((function(e){return e.size})),I=l||x,w(x);var p,y=x.descendants();I.isInFocusTransitive=!0,a.a.SingleChild.removePlaceholders(y),a.a.SingleChild.centerNodes(y),a.a.SingleChild.makePositionsRelativeToZero(y),m||(m=Object(r.a)().attr("class","d3-tip").customPosition((function(e,t){return{top:"inherit",bottom:s.innerHeight-t.clientY+"px",right:s.innerWidth-t.clientX+"px"}})).html((function(e){return e.data.name})),C.call(m));var v=P.selectAll("circle").data(y).enter().append("g");o.doFade&&v.each((function(e){i.a.Transition.fadeIn(d3.select(this),550)}));var g,T=[],R=v.append("circle").attr("class",(function(e){return e.data.role})).attr("guide-selector",(function(e){return"class-"+e.data.name})).style("fill",(function(e){return e.children?S(e.depth):"#E0D0D0"})).each((function(e){if(e.circle=d3.select(this),e.data.name!==h){var t=e.data.name;T.push({name:t}),z[[t]]=e,e.circle.classed("rdf-class",!0),e.circle.on("mouseover",(function(t){o.noPrefixes||e.textHidden?m.show(e,t):m.hide(e)})),e.circle.on("mouseout",m.hide)}})).on("gdb-focus",(e,t)=>H(t)).on("gdb-zoom",(e,t)=>W(t));function L(e){d3.selectAll(".selected").classed("selected",e.selected=!1),e.circle.classed("selected",e.selected=!0),g=e}function N(){d.showClassInfoPanel=!1}T&&(T=_.uniqBy(T,"name"),d.flattenedClassNames=T);var D=i.a.Click.delayDblClick();d3.selectAll(".parent, .topLevelParent, .child, .root").call(D),H=function(e){W(e),e.data.name===h?(N(),d3.selectAll(".selected").classed("selected",!1)):(L(e),d.selectedClass=g,d.showClassInfoPanel=!0,d.$on("sidePanelClosed",(function(t){d3.selectAll(".selected").classed("selected",e.selected=!1)})))},D.on("click",(function(e,t){t.data.id&&s.history.pushState({id:t.data.id},"classHierarchyPage"+t.data.id,"hierarchy#"+t.data.id),m.hide(),H(t)})),D.on("dblclick",(function(t,r){r!==n&&(m.hide(),L(r),e.$broadcast("goToDomainRangeGraphView",g,I),t.stopPropagation())}));var F=0;C.on("wheel",(function(e){m.hide(),e.preventDefault(),e.stopPropagation();var t=(new Date).getTime();if(t-F>100){F=t;var n="";e.deltaY<=-1?n="in":e.deltaY>=1&&(n="out");var r=e.target.__data__;if(r||(r=I),"in"===n){if(r!==I){for(;r.parent&&!r.parent.isInFocusTransitive;)r=r.parent;r.depth<I.depth&&(r=I)}if(r===I&&r.children){for(var a=r.children[0],i=1;i<r.children.length;i++)r.children[i].sortingRank>a.sortingRank&&(a=r.children[i]);a.children&&(r=a)}else r.children||(r=r.parent);W(r,!0)}else"out"===n&&(r=I.parent)&&W(r,!0);I.data.name===h&&s.history.replaceState({id:1},"classHierarchyPage1","hierarchy#1"),U()}}));var $=P.selectAll("text").data(y).enter().append("text").attr("class",(function(e){return e.children&&e.children.length?"label":"label child-label"})).each((function(e){e.textSel=d3.select(this)}));o.noPrefixes?($.each((function(e){var t=e.data.name.indexOf(":");e.data.name.indexOf("http://")>-1?e.noPrefixName=e.data.name:t>-1&&(e.noPrefixName=e.data.name.substring(t+1))})),$.style("font-size",(function(e){return i.a.Text.calcFontSize(e.noPrefixName,e.r)})).text((function(e){return i.a.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r/3)}))):$.style("font-size",(function(e){return i.a.Text.calcFontSize(e.data.name,e.r)})).text((function(e){return i.a.Text.getTextWithElipsisIfNeeded(e.data.name,e.r/3)})),$.style("display",(function(e){return e.parent&&e.parent.data===I.data?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,null):(e.textHidden=!0,"none")})),o.doFade&&!o.keepPrevState&&$.each((function(e){i.a.Transition.fadeIn(d3.select(this),550)})),A=function(){function e(e){e&&R.each((function(t){+e===t.data.id&&H(t)}))}var n=t.hash();s.onpopstate=function(t){t.state&&e(t.state.id)},e(n)};var O=P.selectAll("circle, text");function M(e,t){var n=800/e[2];p=e,O.attr("transform",(function(t){return"translate("+(t.x-e[0])*n+","+(t.y-e[1])*n+")"})),R.attr("r",(function(e){return e.r*n})),t&&$.each((function(e){e.data.fullName!==I.data.topLevelParentUri&&I.data.topLevelParentUri!==h||(e.textSel.style("display","none"),I.children&&I.children.length?_.each(I.children,(function(e){e.textSel.style("display","inline")})):I.textSel.style("display","inline"),I.parent&&_.each(I.parent.children,(function(e){e.data.name!==I.data.name&&e.textSel.style("display","inline")})))})),$.style("font-size",(function(e){return o.noPrefixes?i.a.Text.calcFontSize(e.noPrefixName,e.r*n):i.a.Text.calcFontSize(e.data.name,e.r*n)})).text((function(e){return o.noPrefixes?i.a.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r*n/3):i.a.Text.getTextWithElipsisIfNeeded(e.data.name,e.r*n/3)}))}function V(e){var t=2*e+20;return 2*e/t<.3&&(t=2*e+2),t}function B(e){!e.isInFocusTransitive&&e.parent&&e.parent.isInFocusTransitive?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,this.style.display=""):(e.textHidden=!0,this.style.display="none")}function W(e,t){if(c((function(){d.showExternalElements=e.data.name===h})),I!==e&&(e.data.id&&s.history.replaceState({id:e.data.id},"classHierarchyPage"+e.data.id,"hierarchy#"+e.data.id),e.children||(e=e.parent,I!==e))){if(t&&(N(),d3.selectAll(".selected").classed("selected",!1)),I.parent)for(var n=I;n;)n.isInFocusTransitive=!1,n=n.parent;for(n=e;n;)n.isInFocusTransitive=!!n.children,n=n.parent;if(2*(I=e).r/(2*I.r+20)<.3||d.currentSliderValue>d.currentBrowserLimit)M([I.x,I.y,V(I.r)]),$.each((function(e){B.call(this,e)}));else d3.transition().duration(f).tween("zoom",(function(e){var t=d3.interpolateZoom(p,[I.x,I.y,V(I.r)]);return function(e){M(t(e))}})).selectAll("text").each(B)}}M([I.x,I.y,V(I.r)],u),b=d.$on("rootFocus",(function(){s.history.pushState({id:1},"classHierarchyPage1","hierarchy#1"),H(x)})),k=d.$on("classSearch",(function(e){H(e)}))}function U(){const t=d.classHierarchyData.classCount;let n=p.get(y.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);(!n||n>t)&&(n=t,p.set(y.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,n)),e.$broadcast("classCount",t,n)}window.addEventListener("resize",U),window.addEventListener("beforeunload",(function e(){window.removeEventListener("resize",U),window.removeEventListener("beforeunload",e)})),d.$watch("classHierarchyData",(function(){L&&L(),N&&N(),D&&D(),F&&F();var e=T();if(d.classHierarchyData.classCount){U();var t=_.cloneDeep(d.classHierarchyData);var n,r,a=function(e){return e.descendants().sort((function(e,t){return e.data.sortingRank>t.data.sortingRank?-1:e.data.sortingRank<t.data.sortingRank||e.data.depth>t.data.depth?1:e.data.depth<t.data.depth?-1:0}))}(d3.hierarchy(t));function i(e,t){const a={keepPrevState:!0,noPrefixes:T()};r=a.noPrefixes,O(n||e,a,I,!0),c((function(){p.set(y.CLASS_HIERARCHY_SWITCH_PREFIXES,t),A()}),70)}function o(e,a,o){if(!e)return;p.set(y.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,e),n={name:h,children:[]};const s=new Set;for(let t=1;t<=e;t++)s.add(a[t].data.id),a[t].parent===a[0]&&n.children.push(a[t].data);if(function e(t){if(!t.children)return;const n=[];for(const e of t.children)s.has(e.id)&&n.push($.extend({},e));t.children=n;for(const n of t.children)e(n)}(n),o){r=angular.isUndefined(r)?T():r;O(n,{noPrefixes:r})}else i(t)}var s,l=p.get(y.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);if(l)o(l,a);else{var u={doFade:!0,keepPrevState:!0,noPrefixes:T()};O(t,u),A()}L=d.$watch("hidePrefixes",(function(n){angular.isUndefined(n)||e?e=void 0:c((function(){!function(e){angular.isUndefined(e)||p.set(y.CLASS_HIERARCHY_HIDE_PREFIXES,e)}(n),i(t,!0)}),50)}),!0),N=d.$watch("currentSliderValue",(function(e){o(e,a,!0)}),!0),F=d.$on("onEnterKeypressSearchAction",(function(e){s&&H(s)})),D=d.$on("searchedClass",(function(e,t){(s=z[t.name])&&H(s)}))}}),!0)}(d)}}}angular.module("graphdb.framework.graphexplore.directives.class",["graphdb.framework.graphexplore.controllers.class","graphdb.framework.utils.localstorageadapter"]).constant("ZOOM_DURATION",500).constant("ROOT_OBJ_NAME","RDF Class Hierarchy").directive("rdfClassHierarchy",s),s.$inject=["$rootScope","$location","GraphDataRestService","$window","$timeout","$repositories","$licenseService","toastr","ZOOM_DURATION","ROOT_OBJ_NAME","LocalStorageAdapter","LSKeys","$translate"]},502:function(e,t,n){var r,a;r=[n(512)],void 0===(a=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),n=select(this);for(var r in e)n.attr(r,e[r])}))}function t(e,t){for(var n in t)e.attr(n,t[n]);return e}return"undefined"==typeof d3&&(d3=n(512)),d3.selection.prototype.attrs=function(n){return("function"==typeof n?e:t)(this,n)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){const e=this.parentNode.firstChild;e&&this.parentNode.insertBefore(this,e)}))},d3}.apply(t,r))||(e.exports=a)},515:function(e,t,n){"use strict";n(502);var r=r||{};r.Text=function(){function e(e,t,n,r){n=n||10;var a=t/3;return"string"==typeof e?(a*=10/(e.substring(0,t/3).length+1.5),a+=1,e.match(/[\u0900-\u0DFF\u1100-\u11FF\u2E80-\u2EFF\u3000-\u9FFF]/)&&(a*=.6),a<n&&(a=n),Math.round(a)):(a<n&&(a=n),Math.round(a))}return{calcFontSizeRaw:e,calcFontSize:function(t,n,r,a){return e(t,n,r)+"px"},getTextWithElipsisIfNeeded:function(e,t){return"string"==typeof e&&e.length>t?e.substring(0,t-3)+"...":e}}}(),r.Transition={fadeIn:function(e,t){e.style("opacity",0).transition().duration(t).style("opacity",1)},fadeOut:function(e,t){e.style("opacity",1).transition().duration(t).style("opacity",0)}},r.Click=function(){const e=function(e,n){let r,a=1,i=arguments.length;for(;++a<i;)r=arguments[a],e[r]=t(e,n,n[r]);return e};function t(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}return{delayDblClick:function(){var t=d3.dispatch("click","dblclick");return e((function(e){var n,r=null;e.on("mousedown",(function(){n=d3.pointer(document.body),+new Date})),e.on("mouseup",(function(e,a){var i,o,s;(o=n,s=d3.pointer(document.body),Math.sqrt(Math.pow(o[0]-s[0],2),Math.pow(o[1]-s[1],2))>5)||(r?(window.clearTimeout(r),r=null,t.call("dblclick",e,e,a)):r=window.setTimeout((i=e,function(){t.call("click",i,i,a),r=null}),250))}))}),t,"on")}}}(),t.a=r},516:function(e,t,n){"use strict";n(502);var r=r||{};r.Export={getCSSRules:function(e){const t=$('link[href="'+e+'"]')[0].sheet.rules;let n="";return _.each(t,(function(e){n+=e.cssText})),n},generateBase64ImageSource:function(e){e||(e="svg");const t=d3.selectAll(e).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(t)))}},t.a=r},526:function(e,t,n){"use strict";t.a=function(){var e=function(){return"n"},t=function(){return[0,0]},n=function(){return" "},r=u(),a=null,i=null,o=null,s=null;function c(e){var t;a="svg"===(t=(t=e).node()).tagName.toLowerCase()?t:t.ownerSVGElement,i=a.createSVGPoint(),document.body.appendChild(r)}c.show=function(){var r=Array.prototype.slice.call(arguments);r[r.length-1]instanceof SVGElement&&(o=r.pop());var a,i=n.apply(this,r),u=t.apply(this,r),h=e.apply(this,r),p=f(),y=d.length,v=document.documentElement.scrollTop||document.body.scrollTop,g=document.documentElement.scrollLeft||document.body.scrollLeft,m=s.apply(this,r);for(p.html(i).style("opacity",1).style("pointer-events","all");y--;)p.classed(d[y],!1);const x=r.filter(e=>e instanceof Event);return a=l.get(h).apply(this,x),m?Object.keys(m).forEach((function(e){p.style(e,m[e])})):p.classed(h,!0).style("top",a.top+u[0]+v+"px").style("left",a.left+u[1]+g+"px"),c},c.hide=function(){return f().style("opacity",0).style("pointer-events","none"),c},c.attr=function(e,t){if(arguments.length<2&&"string"==typeof e)return f().attr(e);var n=Array.prototype.slice.call(arguments);return d3.selection.prototype.attr.apply(f(),n),c},c.style=function(e,t){if(arguments.length<2&&"string"==typeof e)return f().style(e);var n=Array.prototype.slice.call(arguments);return d3.selection.prototype.style.apply(f(),n),c},c.direction=function(t){return arguments.length?(e=null==t?t:p(t),c):e},c.offset=function(e){return arguments.length?(t=null==e?e:p(e),c):t},c.html=function(e){return arguments.length?(n=null==e?e:p(e),c):n},c.customPosition=function(e){return arguments.length?(s=null==e?e:p(e),c):s},c.destroy=function(){return r&&(f().remove(),r=null),c};var l=new Map(Object.entries({n:function(e){var t=h(e);return{top:t.n.y-r.offsetHeight,left:t.n.x-r.offsetWidth/2}},s:function(e){var t=h(e);return{top:t.s.y,left:t.s.x-r.offsetWidth/2}},e:function(e){var t=h(e);return{top:t.e.y-r.offsetHeight/2,left:t.e.x}},w:function(e){var t=h(e);return{top:t.w.y-r.offsetHeight/2,left:t.w.x-r.offsetWidth}},nw:function(e){var t=h(e);return{top:t.nw.y-r.offsetHeight,left:t.nw.x-r.offsetWidth}},ne:function(e){var t=h(e);return{top:t.ne.y-r.offsetHeight,left:t.ne.x}},sw:function(e){var t=h(e);return{top:t.sw.y,left:t.sw.x-r.offsetWidth}},se:function(e){var t=h(e);return{top:t.se.y,left:t.e.x}}})),d=l.keys();function u(){var e=d3.select(document.createElement("div"));return e.style("position","absolute").style("top",0).style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),e.node()}function f(){return null===r&&(r=u(),document.body.appendChild(r)),d3.select(r)}function h(e){for(var t=o||e.target;void 0===t.getScreenCTM&&"undefined"===t.parentNode;)t=t.parentNode;var n={},r=t.getScreenCTM(),a=t.getBBox(),s=a.width,c=a.height,l=a.x,d=a.y;return i.x=l,i.y=d,n.nw=i.matrixTransform(r),i.x+=s,n.ne=i.matrixTransform(r),i.y+=c,n.se=i.matrixTransform(r),i.x-=s,n.sw=i.matrixTransform(r),i.y-=c/2,n.w=i.matrixTransform(r),i.x+=s,n.e=i.matrixTransform(r),i.x-=s/2,i.y-=c/2,n.n=i.matrixTransform(r),i.y+=c,n.s=i.matrixTransform(r),n}function p(e){return"function"==typeof e?e:function(){return e}}return c}},551:function(e,t,n){"use strict";var r=r||{};r.SingleChild={addPlaceholders:function e(t,n){if(t.children){for(var r=0;r<t.children.length;r++)e(t.children[r]);if(1===t.children.length){var a=1.2*t.size;n&&(a=.1*t.children[0].size),t.children.push({name:"placeholder",size:a})}}},removePlaceholders:function e(t){for(var n=t.length-1;n>=0;n--){var r=t[n];"placeholder"===r.data.name?t.splice(n,1):r.children&&e(r.children)}},centerNodes:function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.children&&1===n.children.length){var r=n.x-n.children[0].x;n.children[0].x+=r,a(n.children[0],r)}}function a(e,t){if(e.children)for(var n=0;n<e.children.length;n++)e.children[n].x+=t,a(e.children[n],t)}},makePositionsRelativeToZero:function(e){for(var t=e[0].x,n=e[0].y,r=0;r<e.length;r++){var a=e[r];a.x-=t,a.y-=n}}},t.a=r}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[41,186,211,253,314],{169:function(e,t,n){"use strict";n.r(t),n.d(t,"ConnectorCommand",(function(){return r}));const r={CREATE:"create",REPAIR:"repair",DROP:"drop"}},175:function(e,t,n){"use strict";n.r(t),n.d(t,"BeforeUpdateQueryResult",(function(){return r})),n.d(t,"BeforeUpdateQueryResultStatus",(function(){return o}));class r{constructor(e,t,n,r){this.status=e,this.mesage=r,this.messageLabelKey=t,this.parameters=n}}const o={ERROR:"error",SUCCESS:"success"}},178:function(e,t,n){"use strict";n.r(t),n.d(t,"CancelAbortingQuery",(function(){return r}));class r extends Error{}},283:function(e,t,n){"use strict";n.r(t);var r=n(136),o=n(110),a=(n(85),n(184),n(15)),s=n(111),i=n(169),u=n(175),c=n(102),d=n(0),l=n(86),p=n(112),g=n(178),m=n(13);n(17);function y(e,t,n,y,f,h,C,S,R,v,E,b,w,q,A,Q,U,T){this.repository="";let O=C.getActiveRepository(),P=C.isActiveRepoOntopType();t.yasguiConfig=void 0,t.savedQueryConfig=void 0,t.prefixes={},t.inferUserSetting=!0,t.sameAsUserSetting=!0;const x=new Map;let L=!1;t.updateConfig=e=>{t.yasguiConfig={endpoint:_,componentId:p.VIEW_SPARQL_EDITOR,prefixes:t.prefixes,infer:P||t.inferUserSetting,sameAs:P||t.sameAsUserSetting,yasrToolbarPlugins:[H],beforeUpdateQuery:K(),outputHandlers:new Map([[c.EventDataType.QUERY_EXECUTED,B],[c.EventDataType.REQUEST_ABORTED,D]]),clearState:void 0!==e&&e}},t.getActiveRepositoryNoError=()=>O;const _=e=>{const t=(e=>{const t=e.getTab();if(t)return t.getYasqe()})(e);if(t)return C.resolveSparqlEndpoint(t.getQueryMode())},B=e=>{const t=x.get(e.tabId);t&&(t.dismiss(),x.delete(e.tabId))},D=e=>{if(e&&m.QueryMode.UPDATE!==e.queryMode){const t=e.getRepository(),n=e.getQueryTrackAlias();t&&n&&A.deleteQuery(n,t)}},M=e=>{const t=e[o.RouteConstants.savedQueryName],n=e[o.RouteConstants.savedQueryOwner];E.getSavedQuery(t,n).then(e=>{const t=Object(r.savedQueryResponseMapper)(e);k(t).then(j).finally(N)}).catch(e=>{R.error(v.instant("query.editor.missing.saved.query.data.error",{savedQueryName:t,error:getError(e)}))})},$=e=>{const t=e[o.RouteConstants.name],n=e[o.RouteConstants.query],a=e[o.RouteConstants.owner],s=Object(r.buildQueryModel)(n,t,a,!0);k(s).then(j).finally(N)},k=e=>a.YasguiComponentDirectiveUtil.getOntotextYasguiElementAsync("#query-editor").then(t=>t.openTab(e)).then(e=>a.YasguiComponentDirectiveUtil.highlightTabName(e)),N=()=>{L=!0,y.search({}),y.replace()},j=()=>Object(l.toBoolean)(y.search().execute)?a.YasguiComponentDirectiveUtil.getOntotextYasguiElementAsync("#query-editor").then(I).then(Y):Promise.resolve(),I=e=>e.getQueryMode().then(t=>({yasguiComponent:e,queryMode:t})),Y=({yasguiComponent:e,queryMode:t})=>"update"!==t?e.query():new Promise(t=>{const n=v.instant("confirm.execute"),r=Object(d.decodeHTML)(v.instant("query.editor.automatically.execute.update.warning"));q.openConfirmation(n,r,()=>t(e.query()),()=>t())}),H={createElement:e=>{const t=document.createElement("span");t.classList.add("explore-visual-graph-button-name");const n=document.createElement("button");return n.classList.add("explore-visual-graph-button"),n.classList.add("icon-data"),n.onclick=function(){const t={query:e.yasqe.getValue(),sameAs:e.yasqe.getSameAs(),inference:e.yasqe.getInfer()};y.path("graphs-visualizations").search(t)},n.appendChild(t),n},updateElement:(e,t)=>{if(e.classList.add("hidden"),!t.hasResults())return;const n=t.yasqe.getQueryType();s.QueryType.CONSTRUCT!==n&&s.QueryType.DESCRIBE!==n||e.classList.remove("hidden"),e.querySelector(".explore-visual-graph-button-name").innerText=v.instant("query.editor.visual.btn")},getOrder:()=>2},F=(e,t)=>({key:e,value:t}),z=e=>[F("name",e.data.name)],J=(e,n,r)=>{const o=t.$new(!0);o.beingBuiltConnector={percentDone:0,status:{processedEntities:0,estimatedEntities:0,indexedEntities:0,entitiesPerSecond:0},actionName:e,eta:"-",inline:!1,iri:n,name:r,doneCallback:function(){a.dismiss("cancel")}},o.getHumanReadableSeconds=t.getHumanReadableSeconds;const a=S.open({templateUrl:"pages/connectorProgress.html",controller:"CreateProgressCtrl",size:"lg",backdrop:"static",scope:o});return a},K=()=>(e,t)=>b.checkConnector(e).then(e=>e.data.command?e.data.hasSupport?i.ConnectorCommand.CREATE===e.data.command?((e,t)=>{const n=J(v.instant("externalsync.creating"),e.data.iri,e.data.name);return x.set(t,n),new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.SUCCESS,"created.connector",z(e))})(e,t):i.ConnectorCommand.REPAIR===e.data.command?((e,t)=>{const n=J(v.instant("externalsync.repairing"),e.data.iri,e.data.name);return x.set(t,n),new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.SUCCESS,"query.editor.repaired.connector",z(e))})(e,t):i.ConnectorCommand.DROP===e.data.command?(e=>new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.SUCCESS,"externalsync.delete.success.msg",z(e)))(e):void 0:(e=>{const t=[F("connectorName",e.data.connectorName),F("pluginName",e.data.pluginName)];return new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.ERROR,"query.editor.inactive.plugin.warning.msg",t)})(e):new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.SUCCESS)).catch(e=>{console.log("Checking connector error: ",e)}),V=e=>{const n=document.querySelectorAll('script[src*="https://www.gstatic.com/"]');if(n.length>0){const e=f.getLanguage();let t="module.js";if("en"!==e&&(t=`module__${e}.js`),!Array.prototype.some.call(n,e=>e.src.includes(t)))return void location.reload()}Promise.all([h.getPrincipal(),C.getPrefixes(O)]).then(([n,r])=>{t.prefixes=r,(e=>{t.inferUserSetting=e.appSettings.DEFAULT_INFERENCE,t.sameAsUserSetting=e.appSettings.DEFAULT_SAMEAS})(n),((e=!1)=>{t.updateConfig(e);const n=y.search();n.hasOwnProperty(o.RouteConstants.savedQueryName)?M(n):n.hasOwnProperty(o.RouteConstants.query)?$(n):w.isActive()&&k()})(e)})},G=[],W=e=>{const t=a.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor");t&&t.abortAllRequests().then(()=>{})};window.addEventListener("beforeunload",W);const X=e=>new Promise((t,n)=>{if(!e||e.queriesCount<1&&e.updatesCount<1)return void t();const r=v.instant("common.confirm"),o=Object(d.decodeHTML)((e=>{let t="view.sparql-editor.leave_page.run_queries.confirmation.";!e||e.queriesCount<1?t+="none_queries_":1===e.queriesCount?t+="one_query_":t+="queries_",e.updatesCount&&0!==e.updatesCount?1===e.updatesCount?t+="one_update":t+="updates":t+="non_updates",t+=".message";const n={queriesCount:e.queriesCount,updatesCount:e.updatesCount};return v.instant(t,n)})(e));q.openSimpleModal({title:r,message:o,warning:!0}).result.then((function(){t()}),(function(){n(new g.CancelAbortingQuery)}))});let Z=void 0;G.push(e.$on("$locationChangeStart",e=>{if(L)return void(L=!1);const t=a.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor");if(!t||Z)return;e.preventDefault();const n=y.path(),r=y.search();t.getOngoingRequestsInfo().then(e=>X(e)).then(()=>t.abortAllRequests()).then(()=>{Z=!0,y.path(n).search(r)}).catch(e=>{if(!(e instanceof g.CancelAbortingQuery))throw e})}));const ee=()=>{U.set(T.SPARQL_LAST_REPO,O)};G.push(t.$on("language-changed",(function(){location.reload()}))),G.push(Q.subscribe("before-language-change",(function(e){return new Promise(t=>{q.openSimpleModal({title:v.instant("query.editor.language.change.warning.title"),message:v.instant("query.editor.reload.page.warning"),warning:!0}).result.then((function(){t(e)}),(function(){e.cancel=!0,t(e)}))})}))),G.push(t.$on("$destroy",()=>{ee(),G.forEach(e=>e()),window.removeEventListener("beforeunload",W)})),G.push(t.$watch(t.getActiveRepositoryObject,e=>{e&&(O=C.getActiveRepository(),P=C.isActiveRepoOntopType(e),U.get(T.SPARQL_LAST_REPO)!==O?(V(!0),ee()):V(!1))}))}angular.module("graphdb.framework.sparql-editor.controllers",["ui.bootstrap","graphdb.framework.rest.connectors.service","graphdb.framework.externalsync.controllers","graphdb.framework.utils.event-emitter-service","graphdb.framework.utils.localstorageadapter"]).controller("SparqlEditorCtrl",y),y.$inject=["$rootScope","$scope","$q","$location","$languageService","$jwtAuth","$repositories","$uibModal","toastr","$translate","SparqlRestService","ConnectorsRestService","GuidesService","ModalService","MonitoringRestService","EventEmitterService","LocalStorageAdapter","LSKeys"]},369:function(e,t,n){"use strict";n.r(t);n(283),n(120);angular.module("graphdb.framework.sparql-editor",["ui.bootstrap","graphdb.framework.sparql-editor.controllers","graphdb.framework.core.directives.yasgui-component"])},86:function(e,t,n){"use strict";n.r(t),n.d(t,"removeSpecialChars",(function(){return o})),n.d(t,"toBoolean",(function(){return a})),n.d(t,"toTitleCase",(function(){return s}));var r=n(30);const o=e=>e.replace(/[()']/g,""),a=e=>"string"==typeof e?"true"===e:Boolean(e),s=e=>e?Object(r.upperFirst)(e.toLowerCase()):e}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[43,186,211,253,314],{169:function(e,t,n){"use strict";n.r(t),n.d(t,"ConnectorCommand",(function(){return r}));const r={CREATE:"create",REPAIR:"repair",DROP:"drop"}},175:function(e,t,n){"use strict";n.r(t),n.d(t,"BeforeUpdateQueryResult",(function(){return r})),n.d(t,"BeforeUpdateQueryResultStatus",(function(){return o}));class r{constructor(e,t,n,r){this.status=e,this.mesage=r,this.messageLabelKey=t,this.parameters=n}}const o={ERROR:"error",SUCCESS:"success"}},178:function(e,t,n){"use strict";n.r(t),n.d(t,"CancelAbortingQuery",(function(){return r}));class r extends Error{}},283:function(e,t,n){"use strict";n.r(t);var r=n(137),o=n(110),a=(n(85),n(184),n(15)),s=n(111),i=n(169),u=n(175),c=n(101),d=n(0),l=n(86),p=n(112),g=n(178),m=n(13);n(17);function y(e,t,n,y,f,h,C,S,R,v,E,b,w,q,A,Q,U,T){this.repository="";let O=C.getActiveRepository(),P=C.isActiveRepoOntopType();t.yasguiConfig=void 0,t.savedQueryConfig=void 0,t.prefixes={},t.inferUserSetting=!0,t.sameAsUserSetting=!0;const x=new Map;let L=!1;t.updateConfig=e=>{t.yasguiConfig={endpoint:_,componentId:p.VIEW_SPARQL_EDITOR,prefixes:t.prefixes,infer:P||t.inferUserSetting,sameAs:P||t.sameAsUserSetting,yasrToolbarPlugins:[H],beforeUpdateQuery:K(),outputHandlers:new Map([[c.EventDataType.QUERY_EXECUTED,B],[c.EventDataType.REQUEST_ABORTED,D]]),clearState:void 0!==e&&e}},t.getActiveRepositoryNoError=()=>O;const _=e=>{const t=(e=>{const t=e.getTab();if(t)return t.getYasqe()})(e);if(t)return C.resolveSparqlEndpoint(t.getQueryMode())},B=e=>{const t=x.get(e.tabId);t&&(t.dismiss(),x.delete(e.tabId))},D=e=>{if(e&&m.QueryMode.UPDATE!==e.queryMode){const t=e.getRepository(),n=e.getQueryTrackAlias();t&&n&&A.deleteQuery(n,t)}},M=e=>{const t=e[o.RouteConstants.savedQueryName],n=e[o.RouteConstants.savedQueryOwner];E.getSavedQuery(t,n).then(e=>{const t=Object(r.savedQueryResponseMapper)(e);k(t).then(j).finally(N)}).catch(e=>{R.error(v.instant("query.editor.missing.saved.query.data.error",{savedQueryName:t,error:getError(e)}))})},$=e=>{const t=e[o.RouteConstants.name],n=e[o.RouteConstants.query],a=e[o.RouteConstants.owner],s=Object(r.buildQueryModel)(n,t,a,!0);k(s).then(j).finally(N)},k=e=>a.YasguiComponentDirectiveUtil.getOntotextYasguiElementAsync("#query-editor").then(t=>t.openTab(e)).then(e=>a.YasguiComponentDirectiveUtil.highlightTabName(e)),N=()=>{L=!0,y.search({}),y.replace()},j=()=>Object(l.toBoolean)(y.search().execute)?a.YasguiComponentDirectiveUtil.getOntotextYasguiElementAsync("#query-editor").then(I).then(Y):Promise.resolve(),I=e=>e.getQueryMode().then(t=>({yasguiComponent:e,queryMode:t})),Y=({yasguiComponent:e,queryMode:t})=>"update"!==t?e.query():new Promise(t=>{const n=v.instant("confirm.execute"),r=Object(d.decodeHTML)(v.instant("query.editor.automatically.execute.update.warning"));q.openConfirmation(n,r,()=>t(e.query()),()=>t())}),H={createElement:e=>{const t=document.createElement("span");t.classList.add("explore-visual-graph-button-name");const n=document.createElement("button");return n.classList.add("explore-visual-graph-button"),n.classList.add("icon-data"),n.onclick=function(){const t={query:e.yasqe.getValue(),sameAs:e.yasqe.getSameAs(),inference:e.yasqe.getInfer()};y.path("graphs-visualizations").search(t)},n.appendChild(t),n},updateElement:(e,t)=>{if(e.classList.add("hidden"),!t.hasResults())return;const n=t.yasqe.getQueryType();s.QueryType.CONSTRUCT!==n&&s.QueryType.DESCRIBE!==n||e.classList.remove("hidden"),e.querySelector(".explore-visual-graph-button-name").innerText=v.instant("query.editor.visual.btn")},getOrder:()=>2},F=(e,t)=>({key:e,value:t}),z=e=>[F("name",e.data.name)],J=(e,n,r)=>{const o=t.$new(!0);o.beingBuiltConnector={percentDone:0,status:{processedEntities:0,estimatedEntities:0,indexedEntities:0,entitiesPerSecond:0},actionName:e,eta:"-",inline:!1,iri:n,name:r,doneCallback:function(){a.dismiss("cancel")}},o.getHumanReadableSeconds=t.getHumanReadableSeconds;const a=S.open({templateUrl:"pages/connectorProgress.html",controller:"CreateProgressCtrl",size:"lg",backdrop:"static",scope:o});return a},K=()=>(e,t)=>b.checkConnector(e).then(e=>e.data.command?e.data.hasSupport?i.ConnectorCommand.CREATE===e.data.command?((e,t)=>{const n=J(v.instant("externalsync.creating"),e.data.iri,e.data.name);return x.set(t,n),new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.SUCCESS,"created.connector",z(e))})(e,t):i.ConnectorCommand.REPAIR===e.data.command?((e,t)=>{const n=J(v.instant("externalsync.repairing"),e.data.iri,e.data.name);return x.set(t,n),new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.SUCCESS,"query.editor.repaired.connector",z(e))})(e,t):i.ConnectorCommand.DROP===e.data.command?(e=>new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.SUCCESS,"externalsync.delete.success.msg",z(e)))(e):void 0:(e=>{const t=[F("connectorName",e.data.connectorName),F("pluginName",e.data.pluginName)];return new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.ERROR,"query.editor.inactive.plugin.warning.msg",t)})(e):new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.SUCCESS)).catch(e=>{console.log("Checking connector error: ",e)}),V=e=>{const n=document.querySelectorAll('script[src*="https://www.gstatic.com/"]');if(n.length>0){const e=f.getLanguage();let t="module.js";if("en"!==e&&(t=`module__${e}.js`),!Array.prototype.some.call(n,e=>e.src.includes(t)))return void location.reload()}Promise.all([h.getPrincipal(),C.getPrefixes(O)]).then(([n,r])=>{t.prefixes=r,(e=>{t.inferUserSetting=e.appSettings.DEFAULT_INFERENCE,t.sameAsUserSetting=e.appSettings.DEFAULT_SAMEAS})(n),((e=!1)=>{t.updateConfig(e);const n=y.search();n.hasOwnProperty(o.RouteConstants.savedQueryName)?M(n):n.hasOwnProperty(o.RouteConstants.query)?$(n):w.isActive()&&k()})(e)})},G=[],W=e=>{const t=a.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor");t&&t.abortAllRequests().then(()=>{})};window.addEventListener("beforeunload",W);const X=e=>new Promise((t,n)=>{if(!e||e.queriesCount<1&&e.updatesCount<1)return void t();const r=v.instant("common.confirm"),o=Object(d.decodeHTML)((e=>{let t="view.sparql-editor.leave_page.run_queries.confirmation.";!e||e.queriesCount<1?t+="none_queries_":1===e.queriesCount?t+="one_query_":t+="queries_",e.updatesCount&&0!==e.updatesCount?1===e.updatesCount?t+="one_update":t+="updates":t+="non_updates",t+=".message";const n={queriesCount:e.queriesCount,updatesCount:e.updatesCount};return v.instant(t,n)})(e));q.openSimpleModal({title:r,message:o,warning:!0}).result.then((function(){t()}),(function(){n(new g.CancelAbortingQuery)}))});let Z=void 0;G.push(e.$on("$locationChangeStart",e=>{if(L)return void(L=!1);const t=a.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor");if(!t||Z)return;e.preventDefault();const n=y.path(),r=y.search();t.getOngoingRequestsInfo().then(e=>X(e)).then(()=>t.abortAllRequests()).then(()=>{Z=!0,y.path(n).search(r)}).catch(e=>{if(!(e instanceof g.CancelAbortingQuery))throw e})}));const ee=()=>{U.set(T.SPARQL_LAST_REPO,O)};G.push(t.$on("language-changed",(function(){location.reload()}))),G.push(Q.subscribe("before-language-change",(function(e){return new Promise(t=>{q.openSimpleModal({title:v.instant("query.editor.language.change.warning.title"),message:v.instant("query.editor.reload.page.warning"),warning:!0}).result.then((function(){t(e)}),(function(){e.cancel=!0,t(e)}))})}))),G.push(t.$on("$destroy",()=>{ee(),G.forEach(e=>e()),window.removeEventListener("beforeunload",W)})),G.push(t.$watch(t.getActiveRepositoryObject,e=>{e&&(O=C.getActiveRepository(),P=C.isActiveRepoOntopType(e),U.get(T.SPARQL_LAST_REPO)!==O?(V(!0),ee()):V(!1))}))}angular.module("graphdb.framework.sparql-editor.controllers",["ui.bootstrap","graphdb.framework.rest.connectors.service","graphdb.framework.externalsync.controllers","graphdb.framework.utils.event-emitter-service","graphdb.framework.utils.localstorageadapter"]).controller("SparqlEditorCtrl",y),y.$inject=["$rootScope","$scope","$q","$location","$languageService","$jwtAuth","$repositories","$uibModal","toastr","$translate","SparqlRestService","ConnectorsRestService","GuidesService","ModalService","MonitoringRestService","EventEmitterService","LocalStorageAdapter","LSKeys"]},369:function(e,t,n){"use strict";n.r(t);n(283),n(120);angular.module("graphdb.framework.sparql-editor",["ui.bootstrap","graphdb.framework.sparql-editor.controllers","graphdb.framework.core.directives.yasgui-component"])},86:function(e,t,n){"use strict";n.r(t),n.d(t,"removeSpecialChars",(function(){return o})),n.d(t,"toBoolean",(function(){return a})),n.d(t,"toTitleCase",(function(){return s}));var r=n(30);const o=e=>e.replace(/[()']/g,""),a=e=>"string"==typeof e?"true"===e:Boolean(e),s=e=>e?Object(r.upperFirst)(e.toLowerCase()):e}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[42,225,229,230,233,235],{158:function(t,i,s){"use strict";s.r(i),s.d(i,"YasrPluginName",(function(){return e}));const e={EXTENDED_TABLE:"extended_table",RAW_RESPONSE:"response",TABLE:"table"}},267:function(t,i,s){"use strict";s.r(i),s.d(i,"YasguiOrientation",(function(){return e}));const e={VERTICAL:"orientation-vertical",HORIZONTAL:"orientation-horizontal"}},268:function(t,i,s){"use strict";s.r(i),s.d(i,"YasguiQueryHttpMethod",(function(){return e}));const e={POST:"POST",GET:"GET"}},338:function(t,i,s){"use strict";s.r(i),s.d(i,"OntotextYasguiConfig",(function(){return u}));var e=s(74),o=s(267),n=s(268),r=s(82),a=s(158);class u{constructor(){this.render=e.RenderingMode.YASGUI,this.orientation=o.YasguiOrientation.VERTICAL,this.showEditorTabs=!0,this.showResultTabs=!0,this.showResultInfo=!0,this.showToolbar=!0,this.showControlBar=!0,this.showQueryButton=!0,this.showQueryLoader=!0,this.endpoint="",this.i18n=void 0,this.method=n.YasguiQueryHttpMethod.GET,this.headers=void 0,this.infer=void 0,this.immutableInfer=void 0,this.sameAs=void 0,this.immutableSameAs=void 0,this.clearState=!1,this.copyEndpointOnNewTab=!0,this.componentId=void 0,this.yasqeMode=r.YasqeMode.WRITE,this.query=void 0,this.initialQuery=void 0,this.defaultTabNameLabelKey=void 0,this.yasqeActionButtons=void 0,this.createShareableLink=null,this.populateFromUrl=!1,this.prefixes=void 0,this.defaultPlugin=a.YasrPluginName.EXTENDED_TABLE,this.pluginOrder=[a.YasrPluginName.EXTENDED_TABLE,a.YasrPluginName.RAW_RESPONSE],this.pluginsConfigurations=void 0,this.pageSize=1e3,this.paginationOn=!0,this.downloadAsOn=!0,this.maxPersistentResponseSize=5e5,this.yasqeAutocomplete=void 0,this.isVirtualRepository=void 0,this.beforeUpdateQuery=void 0,this.getRepositoryStatementsCount=void 0,this.onQueryAborted=void 0,this.yasrToolbarPlugins=void 0,this.getCellContent=(t,i)=>"",this.sparqlResponse=void 0}}},74:function(t,i,s){"use strict";s.r(i),s.d(i,"RenderingMode",(function(){return e}));const e={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},82:function(t,i,s){"use strict";s.r(i),s.d(i,"YasqeMode",(function(){return e}));const e={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[44,225,229,230,233,235],{158:function(t,i,s){"use strict";s.r(i),s.d(i,"YasrPluginName",(function(){return e}));const e={EXTENDED_TABLE:"extended_table",RAW_RESPONSE:"response",TABLE:"table"}},267:function(t,i,s){"use strict";s.r(i),s.d(i,"YasguiOrientation",(function(){return e}));const e={VERTICAL:"orientation-vertical",HORIZONTAL:"orientation-horizontal"}},268:function(t,i,s){"use strict";s.r(i),s.d(i,"YasguiQueryHttpMethod",(function(){return e}));const e={POST:"POST",GET:"GET"}},338:function(t,i,s){"use strict";s.r(i),s.d(i,"OntotextYasguiConfig",(function(){return u}));var e=s(74),o=s(267),n=s(268),r=s(82),a=s(158);class u{constructor(){this.render=e.RenderingMode.YASGUI,this.orientation=o.YasguiOrientation.VERTICAL,this.showEditorTabs=!0,this.showResultTabs=!0,this.showResultInfo=!0,this.showToolbar=!0,this.showControlBar=!0,this.showQueryButton=!0,this.showQueryLoader=!0,this.endpoint="",this.i18n=void 0,this.method=n.YasguiQueryHttpMethod.GET,this.headers=void 0,this.infer=void 0,this.immutableInfer=void 0,this.sameAs=void 0,this.immutableSameAs=void 0,this.clearState=!1,this.copyEndpointOnNewTab=!0,this.componentId=void 0,this.yasqeMode=r.YasqeMode.WRITE,this.query=void 0,this.initialQuery=void 0,this.defaultTabNameLabelKey=void 0,this.yasqeActionButtons=void 0,this.createShareableLink=null,this.populateFromUrl=!1,this.prefixes=void 0,this.defaultPlugin=a.YasrPluginName.EXTENDED_TABLE,this.pluginOrder=[a.YasrPluginName.EXTENDED_TABLE,a.YasrPluginName.RAW_RESPONSE],this.pluginsConfigurations=void 0,this.pageSize=1e3,this.paginationOn=!0,this.downloadAsOn=!0,this.maxPersistentResponseSize=5e5,this.yasqeAutocomplete=void 0,this.isVirtualRepository=void 0,this.beforeUpdateQuery=void 0,this.getRepositoryStatementsCount=void 0,this.onQueryAborted=void 0,this.yasrToolbarPlugins=void 0,this.getCellContent=(t,i)=>"",this.sparqlResponse=void 0}}},74:function(t,i,s){"use strict";s.r(i),s.d(i,"RenderingMode",(function(){return e}));const e={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},82:function(t,i,s){"use strict";s.r(i),s.d(i,"YasqeMode",(function(){return e}));const e={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[43,225,233,251,252,311],{179:function(e,t,r){"use strict";r.r(t),r.d(t,"SparqlTemplateError",(function(){return a}));class a extends Error{}},180:function(e,t,r){"use strict";r.r(t),r.d(t,"DEFAULT_SPARQL_QUERY",(function(){return a})),r.d(t,"SparqlTemplateInfo",(function(){return n}));const a="PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX ex: <http://example.com#>\nDELETE {\n ?subject ex:myPredicate ?oldValue .\n} INSERT {\n ?subject ex:myPredicate ?newValue .\n} WHERE {\n ?id rdf:type ex:MyType .\n ?subject ex:isRelatedTo ?id .\n}\n";class n{constructor(e=a,t=!0,r){this.query=e,this.templateID=r,this.isNewTemplate=t,this.templateExist=!1,this.isValidTemplateId=!0,this.isValidQuery=!0,this.isValidQueryMode=!0}}},284:function(e,t,r){"use strict";r.r(t);r(7),r(32),r(34),r(87),r(35),r(17);var a=r(0),n=r(180),s=r(179),i=r(82),o=r(74),l=r(15);function p(e,t,r,a,n,s,i){e.pluginName="sparql-template",e.setPluginIsActive=function(t){e.pluginIsActive=t},e.getSparqlTemplates=function(){s.isLicenseValid()&&t.getActiveRepository()&&!t.isActiveRepoOntopType()&&!t.isActiveRepoFedXType()?r.getSparqlTemplates(t.getActiveRepository()).success((function(t){e.sparqlTemplateIds=t})).error((function(e){const t=getError(e);a.error(t,i.instant("sparql.template.get.templates.error"))})):e.sparqlTemplateIds=[]},e.$watch((function(){return t.getActiveRepository()}),(function(){e.getSparqlTemplates()})),e.deleteTemplate=function(s){n.openSimpleModal({title:i.instant("common.warning"),message:i.instant("sparql.template.delete.template.warning",{templateID:s}),warning:!0}).result.then((function(){r.deleteSparqlTemplate(s,t.getActiveRepository()).success((function(){a.success(s,i.instant("sparql.template.delete.template.success")),e.getSparqlTemplates()})).error((function(e){a.error(getError(e),i.instant("sparql.template.delete.template.failure",{templateID:s}))}))}))}}function c(e,t,r,p,c,m,u,d,f,g,T,q,h,I,y,E){e.initialQuery=n.DEFAULT_SPARQL_QUERY,e.sparqlTemplateInfo=new n.SparqlTemplateInfo(e.initialQuery),e.title="",e.saveOrUpdateExecuted=!1,e.isDirty=!1,e.language=E.getLanguage(),e.canEditActiveRepo=!1;let w=!0;e.saveTemplate=function(){e.saveOrUpdateExecuted=!0,A()||Y();const t=e.sparqlTemplateInfo.isNewTemplate?S:b;M(e.sparqlTemplateInfo).then(Q).then(D).then(x).then(t).then(V).catch(e=>{e instanceof s.SparqlTemplateError||console.log(e)})},e.isTemplateIdValid=e=>T.isValidIri(e,e.toString()),e.markDirty=()=>{e.isDirty=!0},e.markPristine=()=>{e.isDirty=!1};const v=(t,r=n.DEFAULT_SPARQL_QUERY)=>{e.sparqlTemplateInfo.query=r,e.sparqlTemplateInfo.templateID=j(),e.sparqlTemplateInfo.isNewTemplate=!e.sparqlTemplateInfo.templateID,U(),e.yasguiConfig={showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showYasqeActionButtons:!1,showYasqeResizer:!1,yasqeActionButtons:l.DISABLE_YASQE_BUTTONS_CONFIGURATION,showQueryButton:!1,initialQuery:e.sparqlTemplateInfo.query,componentId:"sparql-template",prefixes:t,render:o.RenderingMode.YASQE,maxPersistentResponseSize:0,yasqeMode:e.canEditActiveRepo?i.YasqeMode.WRITE:i.YasqeMode.PROTECTED}},S=e=>R(e).then($).then(P),R=t=>f.getSparqlTemplates(c.getActiveRepository()).then((function(r){return t.templateExist=r.data.find(t=>t===e.sparqlTemplateInfo.templateID),t})).catch((function(e){const t=getError(e);return p.error(t,h.instant("sparql.template.get.templates.error")),Promise.reject(new s.SparqlTemplateError("Failed to retrieve sparql templates."))})),D=e=>L().isQueryValid().then(t=>(e.isValidQuery=t,e.isValidQuery?e:Promise.reject(new s.SparqlTemplateError("Invalid query.")))),A=()=>e.sparqlTemplateInfo.isNewTemplate||e.isDirty,$=e=>new Promise((t,r)=>{if(e.templateExist){const n=Object(a.decodeHTML)(h.instant("sparql.template.existing.template.error",{templateID:e.templateID})),i=h.instant("common.confirm.save");C(i,n,()=>t(e),()=>r(new s.SparqlTemplateError("Save not confirmed.")))}else t(e)});function P(t){return f.createSparqlTemplate(t,c.getActiveRepository()).then((function(){return t.isNewTemplate=!1,e.markPristine(),p.success(t.templateID,h.instant("save.sparql.template.success.msg")),t})).catch((function(e){const r=getError(e);return p.error(r,h.instant("save.sparql.template.failure.msg",{templateID:t.templateID})),Promise.reject(new s.SparqlTemplateError("Failed to save the new template: "+t.templateID))}))}const b=t=>f.updateSparqlTemplate(t,c.getActiveRepository()).then((function(){return t.isNewTemplate=!1,e.markPristine(),p.success(e.sparqlTemplateInfo.templateID,h.instant("update.sparql.template.success.msg")),t})).catch((function(e){const r=getError(e);return p.error(r,h.instant("save.sparql.template.failure.msg",{templateID:t.templateID})),Promise.reject(new s.SparqlTemplateError("Failed to update the template: "+t.templateID))})),Q=e=>L().getQuery().then(t=>(e.query=t,e)),x=e=>L().getQueryMode().then(t=>(e.isValidQueryMode="update"===t,e.isValidQueryMode?e:Promise.reject(new s.SparqlTemplateError("Query mode is not valid.")))),M=t=>new Promise((r,a)=>{t.templateID?(t.isValidTemplateId=e.isTemplateIdValid(t.templateID),t.isValidTemplateId?r(t):a(new s.SparqlTemplateError("Template identifier is not valid."))):a(new s.SparqlTemplateError("A required template identifier is missing."))}),V=()=>{setTimeout((function(){Y()}),1e3)},j=()=>{const e=r.hash()||"";return(r.search().templateID||"")+(e?"#"+e:"")},U=()=>{e.title=(e.sparqlTemplateInfo.templateID?h.instant("edit"):h.instant("common.create.btn"))+" "+h.instant("view.sparql.template.title")},Y=()=>{r.url("/sparql-templates")},k=(t,r)=>{e.queryIsRunning=t,e.loaderMessage=e.queryIsRunning?r:""},L=()=>l.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor"),C=(e,t,r,a)=>{q.openSimpleModal({title:e,message:t,warning:!0}).result.then((function(){angular.isFunction(r)&&r()}),(function(){angular.isFunction(a)&&a()}))},F=()=>{window.removeEventListener("beforeunload",N),O.forEach(e=>e())},N=t=>{e.isDirty&&(t.returnValue=!0)},O=[];O.push(e.$on("queryChanged",(t,r)=>{r.dirty?e.markDirty():e.markPristine()})),O.push(t.$on("$translateChangeSuccess",()=>{e.language=E.getLanguage(),U()})),O.push(e.$on("$locationChangeStart",(t,a)=>{if(e.isDirty){t.preventDefault();const e=h.instant("common.confirm"),n=h.instant("jdbc.warning.unsaved.changes");C(e,n,()=>{F();const e=r.absUrl().length-r.url().length,t=a.substring(e);r.path(t)})}else F()})),O.push(y.subscribe("repositoryWillChangeEvent",t=>new Promise((function(r){if(e.sparqlTemplateInfo.isNewTemplate)return void r(t);const a=()=>{e.isDirty=!1,Y(),r(t)};if(e.isDirty){const e=()=>{t.cancel=!0,r(t)},n=h.instant("common.confirm"),s=h.instant("jdbc.warning.unsaved.changes");C(n,s,a,e)}else a()})))),O.push(e.$on("$destroy",F)),window.addEventListener("beforeunload",N);const _=()=>{const t=`${h.instant("common.refreshing.namespaces")}. ${h.instant("common.extra.message")}`;k(!0,t),e.sparqlTemplateInfo.templateID=j();const r=c.getActiveRepository();e.sparqlTemplateInfo.templateID?Promise.all([c.getPrefixes(r),f.getSparqlTemplate(e.sparqlTemplateInfo.templateID,r)]).then(([e,t])=>v(e,t.data)).finally(()=>k(!1)):c.getPrefixes(r).then(e=>v(e)).finally(()=>k(!1))};O.push(e.$watch(e.getActiveRepositoryObject,t=>{t&&(e.canEditActiveRepo=e.canWriteActiveRepo(),w?(_(),w=!1):Y())}))}angular.module("graphdb.framework.sparql-template.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.monitoring.service","toastr","graphdb.framework.utils.event-emitter-service"],["graphdb.framework.utils.notifications"]).controller("SparqlTemplatesCtrl",p).controller("SparqlTemplateCreateCtrl",c),p.$inject=["$scope","$repositories","SparqlTemplatesRestService","toastr","ModalService","$licenseService","$translate"],c.$inject=["$scope","$rootScope","$location","toastr","$repositories","$window","$timeout","$interval","SparqlTemplatesRestService","RDF4JRepositoriesRestService","UriUtils","ModalService","$translate","$q","EventEmitterService","$languageService"]},74:function(e,t,r){"use strict";r.r(t),r.d(t,"RenderingMode",(function(){return a}));const a={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},82:function(e,t,r){"use strict";r.r(t),r.d(t,"YasqeMode",(function(){return a}));const a={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}},87:function(e,t){function r(e,t){return{showToastMessageWithDelay:function(r){return new Promise(a=>{e.success(t.instant(r)),setTimeout(a,200)})}}}angular.module("graphdb.framework.utils.notifications",[]).factory("Notifications",r),r.$inject=["toastr","$translate"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[45,225,233,251,252,311],{179:function(e,t,r){"use strict";r.r(t),r.d(t,"SparqlTemplateError",(function(){return a}));class a extends Error{}},180:function(e,t,r){"use strict";r.r(t),r.d(t,"DEFAULT_SPARQL_QUERY",(function(){return a})),r.d(t,"SparqlTemplateInfo",(function(){return n}));const a="PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX ex: <http://example.com#>\nDELETE {\n ?subject ex:myPredicate ?oldValue .\n} INSERT {\n ?subject ex:myPredicate ?newValue .\n} WHERE {\n ?id rdf:type ex:MyType .\n ?subject ex:isRelatedTo ?id .\n}\n";class n{constructor(e=a,t=!0,r){this.query=e,this.templateID=r,this.isNewTemplate=t,this.templateExist=!1,this.isValidTemplateId=!0,this.isValidQuery=!0,this.isValidQueryMode=!0}}},284:function(e,t,r){"use strict";r.r(t);r(7),r(32),r(34),r(87),r(35),r(17);var a=r(0),n=r(180),s=r(179),i=r(82),o=r(74),l=r(15);function p(e,t,r,a,n,s,i){e.pluginName="sparql-template",e.setPluginIsActive=function(t){e.pluginIsActive=t},e.getSparqlTemplates=function(){s.isLicenseValid()&&t.getActiveRepository()&&!t.isActiveRepoOntopType()&&!t.isActiveRepoFedXType()?r.getSparqlTemplates(t.getActiveRepository()).success((function(t){e.sparqlTemplateIds=t})).error((function(e){const t=getError(e);a.error(t,i.instant("sparql.template.get.templates.error"))})):e.sparqlTemplateIds=[]},e.$watch((function(){return t.getActiveRepository()}),(function(){e.getSparqlTemplates()})),e.deleteTemplate=function(s){n.openSimpleModal({title:i.instant("common.warning"),message:i.instant("sparql.template.delete.template.warning",{templateID:s}),warning:!0}).result.then((function(){r.deleteSparqlTemplate(s,t.getActiveRepository()).success((function(){a.success(s,i.instant("sparql.template.delete.template.success")),e.getSparqlTemplates()})).error((function(e){a.error(getError(e),i.instant("sparql.template.delete.template.failure",{templateID:s}))}))}))}}function c(e,t,r,p,c,m,u,d,f,g,T,q,h,I,y,E){e.initialQuery=n.DEFAULT_SPARQL_QUERY,e.sparqlTemplateInfo=new n.SparqlTemplateInfo(e.initialQuery),e.title="",e.saveOrUpdateExecuted=!1,e.isDirty=!1,e.language=E.getLanguage(),e.canEditActiveRepo=!1;let w=!0;e.saveTemplate=function(){e.saveOrUpdateExecuted=!0,A()||Y();const t=e.sparqlTemplateInfo.isNewTemplate?S:b;M(e.sparqlTemplateInfo).then(Q).then(D).then(x).then(t).then(V).catch(e=>{e instanceof s.SparqlTemplateError||console.log(e)})},e.isTemplateIdValid=e=>T.isValidIri(e,e.toString()),e.markDirty=()=>{e.isDirty=!0},e.markPristine=()=>{e.isDirty=!1};const v=(t,r=n.DEFAULT_SPARQL_QUERY)=>{e.sparqlTemplateInfo.query=r,e.sparqlTemplateInfo.templateID=j(),e.sparqlTemplateInfo.isNewTemplate=!e.sparqlTemplateInfo.templateID,U(),e.yasguiConfig={showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showYasqeActionButtons:!1,showYasqeResizer:!1,yasqeActionButtons:l.DISABLE_YASQE_BUTTONS_CONFIGURATION,showQueryButton:!1,initialQuery:e.sparqlTemplateInfo.query,componentId:"sparql-template",prefixes:t,render:o.RenderingMode.YASQE,maxPersistentResponseSize:0,yasqeMode:e.canEditActiveRepo?i.YasqeMode.WRITE:i.YasqeMode.PROTECTED}},S=e=>R(e).then($).then(P),R=t=>f.getSparqlTemplates(c.getActiveRepository()).then((function(r){return t.templateExist=r.data.find(t=>t===e.sparqlTemplateInfo.templateID),t})).catch((function(e){const t=getError(e);return p.error(t,h.instant("sparql.template.get.templates.error")),Promise.reject(new s.SparqlTemplateError("Failed to retrieve sparql templates."))})),D=e=>L().isQueryValid().then(t=>(e.isValidQuery=t,e.isValidQuery?e:Promise.reject(new s.SparqlTemplateError("Invalid query.")))),A=()=>e.sparqlTemplateInfo.isNewTemplate||e.isDirty,$=e=>new Promise((t,r)=>{if(e.templateExist){const n=Object(a.decodeHTML)(h.instant("sparql.template.existing.template.error",{templateID:e.templateID})),i=h.instant("common.confirm.save");C(i,n,()=>t(e),()=>r(new s.SparqlTemplateError("Save not confirmed.")))}else t(e)});function P(t){return f.createSparqlTemplate(t,c.getActiveRepository()).then((function(){return t.isNewTemplate=!1,e.markPristine(),p.success(t.templateID,h.instant("save.sparql.template.success.msg")),t})).catch((function(e){const r=getError(e);return p.error(r,h.instant("save.sparql.template.failure.msg",{templateID:t.templateID})),Promise.reject(new s.SparqlTemplateError("Failed to save the new template: "+t.templateID))}))}const b=t=>f.updateSparqlTemplate(t,c.getActiveRepository()).then((function(){return t.isNewTemplate=!1,e.markPristine(),p.success(e.sparqlTemplateInfo.templateID,h.instant("update.sparql.template.success.msg")),t})).catch((function(e){const r=getError(e);return p.error(r,h.instant("save.sparql.template.failure.msg",{templateID:t.templateID})),Promise.reject(new s.SparqlTemplateError("Failed to update the template: "+t.templateID))})),Q=e=>L().getQuery().then(t=>(e.query=t,e)),x=e=>L().getQueryMode().then(t=>(e.isValidQueryMode="update"===t,e.isValidQueryMode?e:Promise.reject(new s.SparqlTemplateError("Query mode is not valid.")))),M=t=>new Promise((r,a)=>{t.templateID?(t.isValidTemplateId=e.isTemplateIdValid(t.templateID),t.isValidTemplateId?r(t):a(new s.SparqlTemplateError("Template identifier is not valid."))):a(new s.SparqlTemplateError("A required template identifier is missing."))}),V=()=>{setTimeout((function(){Y()}),1e3)},j=()=>{const e=r.hash()||"";return(r.search().templateID||"")+(e?"#"+e:"")},U=()=>{e.title=(e.sparqlTemplateInfo.templateID?h.instant("edit"):h.instant("common.create.btn"))+" "+h.instant("view.sparql.template.title")},Y=()=>{r.url("/sparql-templates")},k=(t,r)=>{e.queryIsRunning=t,e.loaderMessage=e.queryIsRunning?r:""},L=()=>l.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor"),C=(e,t,r,a)=>{q.openSimpleModal({title:e,message:t,warning:!0}).result.then((function(){angular.isFunction(r)&&r()}),(function(){angular.isFunction(a)&&a()}))},F=()=>{window.removeEventListener("beforeunload",N),O.forEach(e=>e())},N=t=>{e.isDirty&&(t.returnValue=!0)},O=[];O.push(e.$on("queryChanged",(t,r)=>{r.dirty?e.markDirty():e.markPristine()})),O.push(t.$on("$translateChangeSuccess",()=>{e.language=E.getLanguage(),U()})),O.push(e.$on("$locationChangeStart",(t,a)=>{if(e.isDirty){t.preventDefault();const e=h.instant("common.confirm"),n=h.instant("jdbc.warning.unsaved.changes");C(e,n,()=>{F();const e=r.absUrl().length-r.url().length,t=a.substring(e);r.path(t)})}else F()})),O.push(y.subscribe("repositoryWillChangeEvent",t=>new Promise((function(r){if(e.sparqlTemplateInfo.isNewTemplate)return void r(t);const a=()=>{e.isDirty=!1,Y(),r(t)};if(e.isDirty){const e=()=>{t.cancel=!0,r(t)},n=h.instant("common.confirm"),s=h.instant("jdbc.warning.unsaved.changes");C(n,s,a,e)}else a()})))),O.push(e.$on("$destroy",F)),window.addEventListener("beforeunload",N);const _=()=>{const t=`${h.instant("common.refreshing.namespaces")}. ${h.instant("common.extra.message")}`;k(!0,t),e.sparqlTemplateInfo.templateID=j();const r=c.getActiveRepository();e.sparqlTemplateInfo.templateID?Promise.all([c.getPrefixes(r),f.getSparqlTemplate(e.sparqlTemplateInfo.templateID,r)]).then(([e,t])=>v(e,t.data)).finally(()=>k(!1)):c.getPrefixes(r).then(e=>v(e)).finally(()=>k(!1))};O.push(e.$watch(e.getActiveRepositoryObject,t=>{t&&(e.canEditActiveRepo=e.canWriteActiveRepo(),w?(_(),w=!1):Y())}))}angular.module("graphdb.framework.sparql-template.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.monitoring.service","toastr","graphdb.framework.utils.event-emitter-service"],["graphdb.framework.utils.notifications"]).controller("SparqlTemplatesCtrl",p).controller("SparqlTemplateCreateCtrl",c),p.$inject=["$scope","$repositories","SparqlTemplatesRestService","toastr","ModalService","$licenseService","$translate"],c.$inject=["$scope","$rootScope","$location","toastr","$repositories","$window","$timeout","$interval","SparqlTemplatesRestService","RDF4JRepositoriesRestService","UriUtils","ModalService","$translate","$q","EventEmitterService","$languageService"]},74:function(e,t,r){"use strict";r.r(t),r.d(t,"RenderingMode",(function(){return a}));const a={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},82:function(e,t,r){"use strict";r.r(t),r.d(t,"YasqeMode",(function(){return a}));const a={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}},87:function(e,t){function r(e,t){return{showToastMessageWithDelay:function(r){return new Promise(a=>{e.success(t.instant(r)),setTimeout(a,200)})}}}angular.module("graphdb.framework.utils.notifications",[]).factory("Notifications",r),r.$inject=["toastr","$translate"]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[44,76,225,245,246,247],{143:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityQueryType",(function(){return s}));const s={DATA:"DATA",SEARCH:"SEARCH",ANALOGICAL:"ANALOGICAL"}},270:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexInfo",(function(){return y}));var s=t(79),r=t(143),a=t(74);const n=new RegExp("^[a-zA-Z0-9-_]+$");class y{constructor(){this.similarityIndex=new s.SimilarityIndex,this.isNameExist=!1,this.invalidSelectQueryType=!1,this.invalidSelectQuery=!1,this.invalidSearchQueryType=!1,this.invalidSearchQuery=!1,this.invalidAnalogicalQueryType=!1,this.invalidAnalogicalQuery=!1,this.selectedQueryType=r.SimilarityQueryType.DATA,this.selectedYasguiRenderMode=a.RenderingMode.YASQE}setQuery(e,i){const t=i||this.selectedQueryType;r.SimilarityQueryType.DATA!==t?r.SimilarityQueryType.SEARCH!==t?r.SimilarityQueryType.ANALOGICAL===t&&(this.similarityIndex.analogicalQuery=e):this.similarityIndex.searchQuery=e:this.similarityIndex.selectQuery=e}getQuery(e){switch(e||this.selectedQueryType){case r.SimilarityQueryType.DATA:return this.similarityIndex.selectQuery;case r.SimilarityQueryType.SEARCH:return this.similarityIndex.searchQuery;case r.SimilarityQueryType.ANALOGICAL:return this.similarityIndex.analogicalQuery}}markInvalidQuery(e,i=!0){const t=e||this.selectedQueryType;r.SimilarityQueryType.DATA!==t?r.SimilarityQueryType.SEARCH!==t?r.SimilarityQueryType.ANALOGICAL===t&&(this.invalidAnalogicalQuery=i):this.invalidSearchQuery=i:this.invalidSelectQuery=i}markInvalidQueryType(e,i=!0){const t=e||this.selectedQueryType;r.SimilarityQueryType.DATA!==t?r.SimilarityQueryType.SEARCH!==t?r.SimilarityQueryType.ANALOGICAL===t&&(this.invalidAnalogicalQueryType=i):this.invalidSearchQueryType=i:this.invalidSelectQueryType=i}setSelectedQueryType(e){this.selectedQueryType=e}getSelectedQueryType(){return this.selectedQueryType}setSelectedYasguiRenderMode(e){this.selectedYasguiRenderMode=e}getSelectedYasguiRenderMode(){return this.selectedYasguiRenderMode}isDataQueryTypeSelected(){return r.SimilarityQueryType.DATA===this.selectedQueryType}isSearchQueryTypeSelected(){return r.SimilarityQueryType.SEARCH===this.selectedQueryType}isAnalogicalQueryTypeSelected(){return r.SimilarityQueryType.ANALOGICAL===this.selectedQueryType}isTextType(){return this.similarityIndex.isTextType()}isPredicationType(){return this.similarityIndex.isPredicationType()}isTextLiteralType(){return this.similarityIndex.isTextLiteralType()}hasName(){return!!this.similarityIndex.name}isNameValid(){return n.test(this.similarityIndex.name)}hasSelectQuery(){return!!this.similarityIndex.selectQuery}hasSearchQuery(){return!!this.similarityIndex.searchQuery}hasAnalogicalQuery(){return!!this.similarityIndex.analogicalQuery}isYasqeRenderMode(){return a.RenderingMode.YASQE===this.getSelectedYasguiRenderMode()}isYasrRenderMode(){return a.RenderingMode.YASR===this.getSelectedYasguiRenderMode()}getName(){return this.similarityIndex.name}setName(e){this.similarityIndex.name=e}setInputIndex(e){this.similarityIndex.inputIndex=e}getInputIndex(){return this.similarityIndex.inputIndex}setLiteralIndex(e=!1){this.similarityIndex.isLiteralIndex=e}getSimilarityIndex(){return this.similarityIndex}setStopList(e){this.similarityIndex.stopList=e}getStopList(){return this.similarityIndex.stopList}setAnalyzer(e="org.apache.lucene.analysis.en.EnglishAnalyzer"){this.similarityIndex.analyzer=e}getAnalyzer(){return this.similarityIndex.analyzer}setType(e){this.similarityIndex.type=e}getType(){return this.similarityIndex.type}setOptions(e){this.similarityIndex.options=e}getOptions(){return this.similarityIndex.options}getInference(){return this.similarityIndex.infer}getSameAs(){return this.similarityIndex.sameAs}}},74:function(e,i,t){"use strict";t.r(i),t.d(i,"RenderingMode",(function(){return s}));const s={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},77:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexType",(function(){return s}));const s={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:e=>s.TEXT===e,isTextLiteralType:e=>s.TEXT_LITERAL===e,isPredicationType:e=>s.PREDICATION===e}},78:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexStatus",(function(){return s}));const s={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:e=>s.CREATING===e,isBuildingStatus:e=>s.BUILDING===e,isBuiltStatus:e=>s.BUILT===e,isRebuildingStatus:e=>s.REBUILDING===e,isOutdatedStatus:e=>s.OUTDATED===e,isInterruptedStatus:e=>s.INTERRUPTED===e,isObsoleteStatus:e=>s.OBSOLETE===e,isFailedStatus:e=>s.FAILED===e}},79:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndex",(function(){return a}));var s=t(77),r=t(78);class a{constructor(){this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=s.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""}isTextType(){return s.SimilarityIndexType.isTextType(this.type)}isTextLiteralType(){return s.SimilarityIndexType.isTextLiteralType(this.type)}isPredicationType(){return s.SimilarityIndexType.isPredicationType(this.type)}isCreatingStatus(){return r.SimilarityIndexStatus.isCreatingStatus(this.status)}isBuildingStatus(){return r.SimilarityIndexStatus.isBuildingStatus(this.status)}isBuiltStatus(){return r.SimilarityIndexStatus.isBuiltStatus(this.status)}isRebuildingStatus(){return r.SimilarityIndexStatus.isRebuildingStatus(this.status)}isOutdatedStatus(){return r.SimilarityIndexStatus.isOutdatedStatus(this.status)}isInterruptedStatus(){return r.SimilarityIndexStatus.isInterruptedStatus(this.status)}isObsoleteStatus(){return r.SimilarityIndexStatus.isObsoleteStatus(this.status)}isFailedStatus(){return r.SimilarityIndexStatus.isFailedStatus(this.status)}}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[46,76,225,245,246,247],{144:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityQueryType",(function(){return s}));const s={DATA:"DATA",SEARCH:"SEARCH",ANALOGICAL:"ANALOGICAL"}},270:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexInfo",(function(){return y}));var s=t(79),r=t(144),a=t(74);const n=new RegExp("^[a-zA-Z0-9-_]+$");class y{constructor(){this.similarityIndex=new s.SimilarityIndex,this.isNameExist=!1,this.invalidSelectQueryType=!1,this.invalidSelectQuery=!1,this.invalidSearchQueryType=!1,this.invalidSearchQuery=!1,this.invalidAnalogicalQueryType=!1,this.invalidAnalogicalQuery=!1,this.selectedQueryType=r.SimilarityQueryType.DATA,this.selectedYasguiRenderMode=a.RenderingMode.YASQE}setQuery(e,i){const t=i||this.selectedQueryType;r.SimilarityQueryType.DATA!==t?r.SimilarityQueryType.SEARCH!==t?r.SimilarityQueryType.ANALOGICAL===t&&(this.similarityIndex.analogicalQuery=e):this.similarityIndex.searchQuery=e:this.similarityIndex.selectQuery=e}getQuery(e){switch(e||this.selectedQueryType){case r.SimilarityQueryType.DATA:return this.similarityIndex.selectQuery;case r.SimilarityQueryType.SEARCH:return this.similarityIndex.searchQuery;case r.SimilarityQueryType.ANALOGICAL:return this.similarityIndex.analogicalQuery}}markInvalidQuery(e,i=!0){const t=e||this.selectedQueryType;r.SimilarityQueryType.DATA!==t?r.SimilarityQueryType.SEARCH!==t?r.SimilarityQueryType.ANALOGICAL===t&&(this.invalidAnalogicalQuery=i):this.invalidSearchQuery=i:this.invalidSelectQuery=i}markInvalidQueryType(e,i=!0){const t=e||this.selectedQueryType;r.SimilarityQueryType.DATA!==t?r.SimilarityQueryType.SEARCH!==t?r.SimilarityQueryType.ANALOGICAL===t&&(this.invalidAnalogicalQueryType=i):this.invalidSearchQueryType=i:this.invalidSelectQueryType=i}setSelectedQueryType(e){this.selectedQueryType=e}getSelectedQueryType(){return this.selectedQueryType}setSelectedYasguiRenderMode(e){this.selectedYasguiRenderMode=e}getSelectedYasguiRenderMode(){return this.selectedYasguiRenderMode}isDataQueryTypeSelected(){return r.SimilarityQueryType.DATA===this.selectedQueryType}isSearchQueryTypeSelected(){return r.SimilarityQueryType.SEARCH===this.selectedQueryType}isAnalogicalQueryTypeSelected(){return r.SimilarityQueryType.ANALOGICAL===this.selectedQueryType}isTextType(){return this.similarityIndex.isTextType()}isPredicationType(){return this.similarityIndex.isPredicationType()}isTextLiteralType(){return this.similarityIndex.isTextLiteralType()}hasName(){return!!this.similarityIndex.name}isNameValid(){return n.test(this.similarityIndex.name)}hasSelectQuery(){return!!this.similarityIndex.selectQuery}hasSearchQuery(){return!!this.similarityIndex.searchQuery}hasAnalogicalQuery(){return!!this.similarityIndex.analogicalQuery}isYasqeRenderMode(){return a.RenderingMode.YASQE===this.getSelectedYasguiRenderMode()}isYasrRenderMode(){return a.RenderingMode.YASR===this.getSelectedYasguiRenderMode()}getName(){return this.similarityIndex.name}setName(e){this.similarityIndex.name=e}setInputIndex(e){this.similarityIndex.inputIndex=e}getInputIndex(){return this.similarityIndex.inputIndex}setLiteralIndex(e=!1){this.similarityIndex.isLiteralIndex=e}getSimilarityIndex(){return this.similarityIndex}setStopList(e){this.similarityIndex.stopList=e}getStopList(){return this.similarityIndex.stopList}setAnalyzer(e="org.apache.lucene.analysis.en.EnglishAnalyzer"){this.similarityIndex.analyzer=e}getAnalyzer(){return this.similarityIndex.analyzer}setType(e){this.similarityIndex.type=e}getType(){return this.similarityIndex.type}setOptions(e){this.similarityIndex.options=e}getOptions(){return this.similarityIndex.options}getInference(){return this.similarityIndex.infer}getSameAs(){return this.similarityIndex.sameAs}}},74:function(e,i,t){"use strict";t.r(i),t.d(i,"RenderingMode",(function(){return s}));const s={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},77:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexType",(function(){return s}));const s={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:e=>s.TEXT===e,isTextLiteralType:e=>s.TEXT_LITERAL===e,isPredicationType:e=>s.PREDICATION===e}},78:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexStatus",(function(){return s}));const s={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:e=>s.CREATING===e,isBuildingStatus:e=>s.BUILDING===e,isBuiltStatus:e=>s.BUILT===e,isRebuildingStatus:e=>s.REBUILDING===e,isOutdatedStatus:e=>s.OUTDATED===e,isInterruptedStatus:e=>s.INTERRUPTED===e,isObsoleteStatus:e=>s.OBSOLETE===e,isFailedStatus:e=>s.FAILED===e}},79:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndex",(function(){return a}));var s=t(77),r=t(78);class a{constructor(){this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=s.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""}isTextType(){return s.SimilarityIndexType.isTextType(this.type)}isTextLiteralType(){return s.SimilarityIndexType.isTextLiteralType(this.type)}isPredicationType(){return s.SimilarityIndexType.isPredicationType(this.type)}isCreatingStatus(){return r.SimilarityIndexStatus.isCreatingStatus(this.status)}isBuildingStatus(){return r.SimilarityIndexStatus.isBuildingStatus(this.status)}isBuiltStatus(){return r.SimilarityIndexStatus.isBuiltStatus(this.status)}isRebuildingStatus(){return r.SimilarityIndexStatus.isRebuildingStatus(this.status)}isOutdatedStatus(){return r.SimilarityIndexStatus.isOutdatedStatus(this.status)}isInterruptedStatus(){return r.SimilarityIndexStatus.isInterruptedStatus(this.status)}isObsoleteStatus(){return r.SimilarityIndexStatus.isObsoleteStatus(this.status)}isFailedStatus(){return r.SimilarityIndexStatus.isFailedStatus(this.status)}}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[45,101,248,249,290],{107:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilaritySearchType",(function(){return r}));const r={SEARCH_TERM:"searchTerm",SEARCH_ANALOGICAL:"searchAnalogical",SEARCH_ENTITY:"searchEntity",SEARCH_ENTITY_PREDICATE:"searchEntityPredicate",SEARCH_DOCUMENT:"searchDocumentID",isSearchTermType:e=>r.SEARCH_TERM===e,isSearchAnalogicalType:e=>r.SEARCH_ANALOGICAL===e,isSearchEntityType:e=>r.SEARCH_ENTITY===e,isSearchEntityPredicateType:e=>r.SEARCH_ENTITY_PREDICATE===e,isSearchDocumentType:e=>r.SEARCH_DOCUMENT===e}},176:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityResultType",(function(){return r}));const r={TERM_RESULT:"termResult",DOCUMENT_RESULT:"documentResult",ENTITY_RESULT:"entityResult",isResultDocumentType:e=>r.DOCUMENT_RESULT===e,isResultTermType:e=>r.TERM_RESULT===e}},177:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilaritySearch",(function(){return a}));var r=t(107);class a{constructor(){this.type=r.SimilaritySearchType.SEARCH_TERM,this.predicate="",this.termOrSubject=""}isSearchAnalogicalType(){return r.SimilaritySearchType.isSearchAnalogicalType(this.type)}isSearchTermType(){return r.SimilaritySearchType.isSearchTermType(this.type)}isSearchEntityType(){return r.SimilaritySearchType.isSearchEntityType(this.type)}isSearchEntityPredicateType(){return r.SimilaritySearchType.isSearchEntityPredicateType(this.type)}isSearchDocumentType(){return r.SimilaritySearchType.isSearchDocumentType(this.type)}}},282:function(e,i,t){"use strict";t.r(i);var r=t(0),a=t(107),s=t(176),c=t(78),n=t(77),l=t(83),o=t(177),y=t(74);function p(e,i,t,p,u,d,m,S,h,T,g,R,x,I){const E="http://www.ontotext.com/graphdb/similarity/",A="http://www.ontotext.com/graphdb/similarity/psi/",b=A+"any";e.pluginName="similarity",e.pluginIsActive=!0,e.isLoading=!1,e.selectedSimilarityIndex=void 0,e.similarityIndexStatus=c.SimilarityIndexStatus,e.similarityIndexType=n.SimilarityIndexType,e.similaritySearchType=a.SimilaritySearchType,e.searchType=a.SimilaritySearchType.SEARCH_TERM,e.similarityResultType=s.SimilarityResultType,e.resultType=s.SimilarityResultType.TERM_RESULT,e.info=g,e.isGraphDBRepository=void 0,e.canEditRepo=e.canWriteActiveRepo(),e.loadSimilarityIndexesTimer=void 0,e.loadSimilarityIndexes=()=>{e.isGraphDBRepository&&e.pluginIsActive&&h.getIndexes().success(i=>e.similarityIndexes=Object(l.mapIndexesResponseToSimilarityIndex)(i)).error(e=>t.error(getError(e),x.instant("similarity.could.not.get.indexes.error")))},e.reloadSimilarityIndexes=()=>{e.loadSimilarityIndexes(),e.loadSimilarityIndexesTimer||(e.loadSimilarityIndexesTimer=i((function(){e.$broadcast("checkIsActive"),"false"!==$("#indexes-table").attr("aria-expanded")&&e.loadSimilarityIndexes()}),5e3))},e.goToSimilarityIndex=i=>{(i.isBuiltStatus()||i.isOutdatedStatus()||i.isRebuildingStatus())&&(e.empty=!0,e.selectedSimilarityIndex!==i&&(e.lastSearch=void 0,e.selectedSimilarityIndex=i),i.isTextType()?e.searchType=a.SimilaritySearchType.SEARCH_TERM:i.isPredicationType()&&(e.searchType=a.SimilaritySearchType.SEARCH_ENTITY),(i.isTextType()||i.isPredicationType())&&$("#indexes-table").collapse("hide"))},e.performSearch=(i,r,a,s,c)=>{e.isLoading=!0,D(a,r);const n=q(i,r,a,s,c);I.getQueryResult(p.getActiveRepository(),n,"application/x-sparqlstar-results+json, application/sparql-results+json;q=0.9, */*;q=0.8").then(e=>H(e)).catch(e=>t.error(getError(e.data),x.instant("similarity.get.resource.error"))).finally(()=>e.isLoading=!1)},e.viewSearchQuery=()=>{let i;i=e.lastSearch.isSearchAnalogicalType()?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type];let t=[],r="";t=i.match(/[a-zA-Z0-9-]+:<http:\/\/www.ontotext.com\/graphdb\/similarity\/instance\/>/),r=null==t?"similarity-index":t[0].substring(0,t[0].indexOf(":"));const s=i.replace("?index",r+":"+e.selectedSimilarityIndex.name).replace("?query",e.lastSearch.termOrSubject).replace("?searchType",(e.selectedSimilarityIndex.isTextType()?":":"psi:")+(e.lastSearch.isSearchEntityPredicateType()?a.SimilaritySearchType.SEARCH_ENTITY:e.lastSearch.type)).replace("?resultType",e.selectedSimilarityIndex.isTextType()?":"+e.resultType:"psi:entityResult").replace("?parameters",Q(e.searchParameters?e.searchParameters:"")).replace("?psiPredicate",e.lastSearch.predicate?C(e.lastSearch.predicate):C(b)).replace("?givenSubject",C(e.analogicalSubject)).replace("?givenObject",C(e.analogicalObject)).replace("?searchSubject",C(e.searchSubject));S.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:()=>s}})},e.deleteSimilarityIndex=i=>{m.openSimpleModal({title:x.instant("common.confirm"),message:x.instant("similarity.delete.index.warning",{name:i.name}),warning:!0}).result.then((function(){h.deleteIndex(i).then(()=>e.loadSimilarityIndexes()).catch(e=>t.error(getError(e)))}))},e.viewCreateQuery=e=>{h.getQuery({indexName:e.name,indexOptions:e.options,query:e.selectQuery,indexStopList:e.stopList,queryInference:e.infer,querySameAs:e.sameAs,viewType:e.type,indexAnalyzer:e.analyzer}).success(e=>{S.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:()=>e}})})},e.rebuildIndex=i=>{i.searchQuery||(i.searchQuery=i.type?e.searchQueries[i.type]:e.searchQueries.text),m.openSimpleModal({title:x.instant("common.confirm"),message:Object(r.decodeHTML)(x.instant("similarity.rebuild.index.warning",{name:i.name})),warning:!0}).result.then(()=>{i.status=c.SimilarityIndexStatus.REBUILDING,h.rebuildIndex(i).catch(e=>t.error(getError(e)))})},e.setPluginIsActive=i=>{e.pluginIsActive=i},e.encodeURIComponent=e=>encodeURIComponent(e),e.copyToClipboardResult=e=>{m.openCopyToClipboardModal(e)},e.trimIRI=e=>_.trim(e,"<>"),e.updateSearchType=i=>{e.searchType=i},e.updateResultType=i=>{e.resultType=i},e.editSimilarityIndex=e=>{f(e)},e.cloneSimilataryIndex=e=>{f(e,!0)},e.setPsiSubject=i=>{e.psiSubject=i},e.setAnalogicalSubject=i=>{e.analogicalSubject=i},e.setAnalogicalObject=i=>{e.analogicalObject=i};const f=(e,i=!1)=>{const t={selectQuery:e.selectQuery,options:e.options,name:e.name,editSearchQuery:!i,infer:e.infer,sameAs:e.sameAs,stopList:e.stopList,type:e.type,analyzer:e.analyzer,searchQuery:e.searchQuery?e.searchQuery:"",analogicalQuery:e.analogicalQuery?e.analogicalQuery:""};d.path("similarity/index/create").search(t)},w=()=>{const i=e.getActiveRepository();i&&e.activeRepository!==i&&(e.canEditRepo=e.canWriteActiveRepo(),e.activeRepository=i,e.isGraphDBRepository=j(),e.isGraphDBRepository&&(u.isLicenseValid()&&e.reloadSimilarityIndexes(),v()))},v=()=>{h.getSearchQueries().success(i=>e.searchQueries=i).error(e=>t.error(getError(e),x.instant("similarity.could.not.get.search.queries.error")))},Q=e=>'"'+e+'"',C=e=>void 0===e||e.startsWith("<<")&&e.endsWith(">>")?e:"<"+e+">",j=()=>e.getActiveRepository()&&!e.isActiveRepoOntopType()&&!e.isActiveRepoFedXType(),L=[];L.push(e.$on("repositoryIsSet",w));e.$on("$destroy",()=>{O(),e.loadSimilarityIndexesTimer&&i.cancel(e.loadSimilarityIndexesTimer)});const O=()=>{L.forEach(e=>e())};L.push(e.$on("autocompleteStatus",()=>{u.isLicenseValid()&&(e.getAutocompletePromise=T.checkAutocompleteStatus())}));L.push(e.$watch("searchType",()=>{e.empty=!0}));const P=e.$watch(e.getActiveRepositoryObject,e=>{e&&(w(),P())}),q=(i,t,r,c,n)=>{const l={query:M(e.lastSearch.type),$index:C("http://www.ontotext.com/graphdb/similarity/instance/"+i.name),$query:e.lastSearch.termOrSubject,$searchType:C((e.selectedSimilarityIndex.isTextType()?E:A)+(a.SimilaritySearchType.isSearchEntityPredicateType(r)?a.SimilaritySearchType.SEARCH_ENTITY:r)),$resultType:C(e.selectedSimilarityIndex.isTextType()?E+c:A+s.SimilarityResultType.ENTITY_RESULT),$parameters:Q(n)};return a.SimilaritySearchType.isSearchEntityPredicateType(r)&&(l.$psiPredicate=e.lastSearch.predicate?C(e.lastSearch.predicate):C(b)),a.SimilaritySearchType.isSearchAnalogicalType(r)&&(e.searchSubject=t,l.$givenSubject=C(e.analogicalSubject),l.$givenObject=C(e.analogicalObject),l.$searchSubject=C(t)),l},D=(i,t)=>{e.lastSearch=new o.SimilaritySearch,e.lastSearch.type=i,a.SimilaritySearchType.isSearchEntityPredicateType(i)&&(e.lastSearch.predicate=t),e.lastSearch.termOrSubject=N(e.lastSearch.type,t,e.psiSubject)},M=i=>{let t;return t=a.SimilaritySearchType.isSearchAnalogicalType(i)?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type],t},N=(e,i,t)=>{let r=i;return r=a.SimilaritySearchType.isSearchEntityPredicateType(e)?t:a.SimilaritySearchType.isSearchTermType(e)?Q(r):C(r),r},H=i=>{e.yasguiConfig={showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showQueryButton:!1,downloadAsOn:!1,showResultInfo:!1,componentId:"similarity-list-component",maxPersistentResponseSize:0,render:y.RenderingMode.YASR,sparqlResponse:i.data}}}angular.module("graphdb.framework.similarity.controllers.list",[]).controller("SimilarityCtrl",p),p.$inject=["$scope","$interval","toastr","$repositories","$licenseService","$location","ModalService","$uibModal","SimilarityRestService","AutocompleteRestService","productInfo","RDF4JRepositoriesRestService","$translate","SparqlRestService"]},367:function(e,i,t){"use strict";t.r(i);t(7),t(31),t(37),t(90),t(282),t(291),t(120);angular.module("graphdb.framework.similarity",["graphdb.framework.core.controllers","graphdb.framework.core.directives","graphdb.framework.rest.similarity.service","graphdb.framework.similarity.controllers.create","graphdb.framework.similarity.controllers.list","graphdb.framework.core.directives.yasgui-component"])},90:function(e,i){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",t),t.$inject=["$http","$repositories"];function t(e){return{getIndexes:function(i,t){if(i)return e.get("rest/similarity",{headers:{"X-GraphDB-Repository":i,"X-GraphDB-Repository-Location":t}});return e.get("rest/similarity")},getSearchQueries:function(){return e.get("rest/similarity/config")},rebuildIndex:function(e){return i("PUT",e.name,e.options,e.selectQuery,e.searchQuery,e.analogicalQuery,e.stopList,e.infer,e.sameAs,e.type)},deleteIndex:function(i){return e.delete("rest/similarity?name="+i.name)},createIndex:i,getSamples:function(){return e.get("rest/similarity/samples")},getQuery:function(i){return e.get("rest/similarity/query",{params:{name:i.indexName,options:i.indexOptions,stopList:i.indexStopList,selectQuery:i.query,infer:i.queryInference,sameAs:i.querySameAs,type:i.viewType,analyzer:i.indexAnalyzer}})},saveSearchQuery:function(i){return e({method:"put",url:"rest/similarity/search-query",data:i})}};function i(i,t,r,a,s,c,n,l,o,y,p){return e({method:i,url:"rest/similarity",noCancelOnRouteChange:!0,data:{name:t,options:r,selectQuery:a,stopList:n,infer:l,sameAs:o,type:y,analyzer:p,searchQuery:s,analogicalQuery:c}})}}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[47,100,248,249,290],{106:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilaritySearchType",(function(){return r}));const r={SEARCH_TERM:"searchTerm",SEARCH_ANALOGICAL:"searchAnalogical",SEARCH_ENTITY:"searchEntity",SEARCH_ENTITY_PREDICATE:"searchEntityPredicate",SEARCH_DOCUMENT:"searchDocumentID",isSearchTermType:e=>r.SEARCH_TERM===e,isSearchAnalogicalType:e=>r.SEARCH_ANALOGICAL===e,isSearchEntityType:e=>r.SEARCH_ENTITY===e,isSearchEntityPredicateType:e=>r.SEARCH_ENTITY_PREDICATE===e,isSearchDocumentType:e=>r.SEARCH_DOCUMENT===e}},176:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityResultType",(function(){return r}));const r={TERM_RESULT:"termResult",DOCUMENT_RESULT:"documentResult",ENTITY_RESULT:"entityResult",isResultDocumentType:e=>r.DOCUMENT_RESULT===e,isResultTermType:e=>r.TERM_RESULT===e}},177:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilaritySearch",(function(){return a}));var r=t(106);class a{constructor(){this.type=r.SimilaritySearchType.SEARCH_TERM,this.predicate="",this.termOrSubject=""}isSearchAnalogicalType(){return r.SimilaritySearchType.isSearchAnalogicalType(this.type)}isSearchTermType(){return r.SimilaritySearchType.isSearchTermType(this.type)}isSearchEntityType(){return r.SimilaritySearchType.isSearchEntityType(this.type)}isSearchEntityPredicateType(){return r.SimilaritySearchType.isSearchEntityPredicateType(this.type)}isSearchDocumentType(){return r.SimilaritySearchType.isSearchDocumentType(this.type)}}},282:function(e,i,t){"use strict";t.r(i);var r=t(0),a=t(106),s=t(176),c=t(78),n=t(77),l=t(83),o=t(177),y=t(74);function p(e,i,t,p,u,d,m,S,h,T,g,R,x,I){const E="http://www.ontotext.com/graphdb/similarity/",A="http://www.ontotext.com/graphdb/similarity/psi/",b=A+"any";e.pluginName="similarity",e.pluginIsActive=!0,e.isLoading=!1,e.selectedSimilarityIndex=void 0,e.similarityIndexStatus=c.SimilarityIndexStatus,e.similarityIndexType=n.SimilarityIndexType,e.similaritySearchType=a.SimilaritySearchType,e.searchType=a.SimilaritySearchType.SEARCH_TERM,e.similarityResultType=s.SimilarityResultType,e.resultType=s.SimilarityResultType.TERM_RESULT,e.info=g,e.isGraphDBRepository=void 0,e.canEditRepo=e.canWriteActiveRepo(),e.loadSimilarityIndexesTimer=void 0,e.loadSimilarityIndexes=()=>{e.isGraphDBRepository&&e.pluginIsActive&&h.getIndexes().success(i=>e.similarityIndexes=Object(l.mapIndexesResponseToSimilarityIndex)(i)).error(e=>t.error(getError(e),x.instant("similarity.could.not.get.indexes.error")))},e.reloadSimilarityIndexes=()=>{e.loadSimilarityIndexes(),e.loadSimilarityIndexesTimer||(e.loadSimilarityIndexesTimer=i((function(){e.$broadcast("checkIsActive"),"false"!==$("#indexes-table").attr("aria-expanded")&&e.loadSimilarityIndexes()}),5e3))},e.goToSimilarityIndex=i=>{(i.isBuiltStatus()||i.isOutdatedStatus()||i.isRebuildingStatus())&&(e.empty=!0,e.selectedSimilarityIndex!==i&&(e.lastSearch=void 0,e.selectedSimilarityIndex=i),i.isTextType()?e.searchType=a.SimilaritySearchType.SEARCH_TERM:i.isPredicationType()&&(e.searchType=a.SimilaritySearchType.SEARCH_ENTITY),(i.isTextType()||i.isPredicationType())&&$("#indexes-table").collapse("hide"))},e.performSearch=(i,r,a,s,c)=>{e.isLoading=!0,D(a,r);const n=q(i,r,a,s,c);I.getQueryResult(p.getActiveRepository(),n,"application/x-sparqlstar-results+json, application/sparql-results+json;q=0.9, */*;q=0.8").then(e=>H(e)).catch(e=>t.error(getError(e.data),x.instant("similarity.get.resource.error"))).finally(()=>e.isLoading=!1)},e.viewSearchQuery=()=>{let i;i=e.lastSearch.isSearchAnalogicalType()?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type];let t=[],r="";t=i.match(/[a-zA-Z0-9-]+:<http:\/\/www.ontotext.com\/graphdb\/similarity\/instance\/>/),r=null==t?"similarity-index":t[0].substring(0,t[0].indexOf(":"));const s=i.replace("?index",r+":"+e.selectedSimilarityIndex.name).replace("?query",e.lastSearch.termOrSubject).replace("?searchType",(e.selectedSimilarityIndex.isTextType()?":":"psi:")+(e.lastSearch.isSearchEntityPredicateType()?a.SimilaritySearchType.SEARCH_ENTITY:e.lastSearch.type)).replace("?resultType",e.selectedSimilarityIndex.isTextType()?":"+e.resultType:"psi:entityResult").replace("?parameters",Q(e.searchParameters?e.searchParameters:"")).replace("?psiPredicate",e.lastSearch.predicate?C(e.lastSearch.predicate):C(b)).replace("?givenSubject",C(e.analogicalSubject)).replace("?givenObject",C(e.analogicalObject)).replace("?searchSubject",C(e.searchSubject));S.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:()=>s}})},e.deleteSimilarityIndex=i=>{m.openSimpleModal({title:x.instant("common.confirm"),message:x.instant("similarity.delete.index.warning",{name:i.name}),warning:!0}).result.then((function(){h.deleteIndex(i).then(()=>e.loadSimilarityIndexes()).catch(e=>t.error(getError(e)))}))},e.viewCreateQuery=e=>{h.getQuery({indexName:e.name,indexOptions:e.options,query:e.selectQuery,indexStopList:e.stopList,queryInference:e.infer,querySameAs:e.sameAs,viewType:e.type,indexAnalyzer:e.analyzer}).success(e=>{S.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:()=>e}})})},e.rebuildIndex=i=>{i.searchQuery||(i.searchQuery=i.type?e.searchQueries[i.type]:e.searchQueries.text),m.openSimpleModal({title:x.instant("common.confirm"),message:Object(r.decodeHTML)(x.instant("similarity.rebuild.index.warning",{name:i.name})),warning:!0}).result.then(()=>{i.status=c.SimilarityIndexStatus.REBUILDING,h.rebuildIndex(i).catch(e=>t.error(getError(e)))})},e.setPluginIsActive=i=>{e.pluginIsActive=i},e.encodeURIComponent=e=>encodeURIComponent(e),e.copyToClipboardResult=e=>{m.openCopyToClipboardModal(e)},e.trimIRI=e=>_.trim(e,"<>"),e.updateSearchType=i=>{e.searchType=i},e.updateResultType=i=>{e.resultType=i},e.editSimilarityIndex=e=>{f(e)},e.cloneSimilataryIndex=e=>{f(e,!0)},e.setPsiSubject=i=>{e.psiSubject=i},e.setAnalogicalSubject=i=>{e.analogicalSubject=i},e.setAnalogicalObject=i=>{e.analogicalObject=i};const f=(e,i=!1)=>{const t={selectQuery:e.selectQuery,options:e.options,name:e.name,editSearchQuery:!i,infer:e.infer,sameAs:e.sameAs,stopList:e.stopList,type:e.type,analyzer:e.analyzer,searchQuery:e.searchQuery?e.searchQuery:"",analogicalQuery:e.analogicalQuery?e.analogicalQuery:""};d.path("similarity/index/create").search(t)},w=()=>{const i=e.getActiveRepository();i&&e.activeRepository!==i&&(e.canEditRepo=e.canWriteActiveRepo(),e.activeRepository=i,e.isGraphDBRepository=j(),e.isGraphDBRepository&&(u.isLicenseValid()&&e.reloadSimilarityIndexes(),v()))},v=()=>{h.getSearchQueries().success(i=>e.searchQueries=i).error(e=>t.error(getError(e),x.instant("similarity.could.not.get.search.queries.error")))},Q=e=>'"'+e+'"',C=e=>void 0===e||e.startsWith("<<")&&e.endsWith(">>")?e:"<"+e+">",j=()=>e.getActiveRepository()&&!e.isActiveRepoOntopType()&&!e.isActiveRepoFedXType(),L=[];L.push(e.$on("repositoryIsSet",w));e.$on("$destroy",()=>{O(),e.loadSimilarityIndexesTimer&&i.cancel(e.loadSimilarityIndexesTimer)});const O=()=>{L.forEach(e=>e())};L.push(e.$on("autocompleteStatus",()=>{u.isLicenseValid()&&(e.getAutocompletePromise=T.checkAutocompleteStatus())}));L.push(e.$watch("searchType",()=>{e.empty=!0}));const P=e.$watch(e.getActiveRepositoryObject,e=>{e&&(w(),P())}),q=(i,t,r,c,n)=>{const l={query:M(e.lastSearch.type),$index:C("http://www.ontotext.com/graphdb/similarity/instance/"+i.name),$query:e.lastSearch.termOrSubject,$searchType:C((e.selectedSimilarityIndex.isTextType()?E:A)+(a.SimilaritySearchType.isSearchEntityPredicateType(r)?a.SimilaritySearchType.SEARCH_ENTITY:r)),$resultType:C(e.selectedSimilarityIndex.isTextType()?E+c:A+s.SimilarityResultType.ENTITY_RESULT),$parameters:Q(n)};return a.SimilaritySearchType.isSearchEntityPredicateType(r)&&(l.$psiPredicate=e.lastSearch.predicate?C(e.lastSearch.predicate):C(b)),a.SimilaritySearchType.isSearchAnalogicalType(r)&&(e.searchSubject=t,l.$givenSubject=C(e.analogicalSubject),l.$givenObject=C(e.analogicalObject),l.$searchSubject=C(t)),l},D=(i,t)=>{e.lastSearch=new o.SimilaritySearch,e.lastSearch.type=i,a.SimilaritySearchType.isSearchEntityPredicateType(i)&&(e.lastSearch.predicate=t),e.lastSearch.termOrSubject=N(e.lastSearch.type,t,e.psiSubject)},M=i=>{let t;return t=a.SimilaritySearchType.isSearchAnalogicalType(i)?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type],t},N=(e,i,t)=>{let r=i;return r=a.SimilaritySearchType.isSearchEntityPredicateType(e)?t:a.SimilaritySearchType.isSearchTermType(e)?Q(r):C(r),r},H=i=>{e.yasguiConfig={showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showQueryButton:!1,downloadAsOn:!1,showResultInfo:!1,componentId:"similarity-list-component",maxPersistentResponseSize:0,render:y.RenderingMode.YASR,sparqlResponse:i.data}}}angular.module("graphdb.framework.similarity.controllers.list",[]).controller("SimilarityCtrl",p),p.$inject=["$scope","$interval","toastr","$repositories","$licenseService","$location","ModalService","$uibModal","SimilarityRestService","AutocompleteRestService","productInfo","RDF4JRepositoriesRestService","$translate","SparqlRestService"]},367:function(e,i,t){"use strict";t.r(i);t(7),t(31),t(37),t(89),t(282),t(291),t(120);angular.module("graphdb.framework.similarity",["graphdb.framework.core.controllers","graphdb.framework.core.directives","graphdb.framework.rest.similarity.service","graphdb.framework.similarity.controllers.create","graphdb.framework.similarity.controllers.list","graphdb.framework.core.directives.yasgui-component"])},89:function(e,i){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",t),t.$inject=["$http","$repositories"];function t(e){return{getIndexes:function(i,t){if(i)return e.get("rest/similarity",{headers:{"X-GraphDB-Repository":i,"X-GraphDB-Repository-Location":t}});return e.get("rest/similarity")},getSearchQueries:function(){return e.get("rest/similarity/config")},rebuildIndex:function(e){return i("PUT",e.name,e.options,e.selectQuery,e.searchQuery,e.analogicalQuery,e.stopList,e.infer,e.sameAs,e.type)},deleteIndex:function(i){return e.delete("rest/similarity?name="+i.name)},createIndex:i,getSamples:function(){return e.get("rest/similarity/samples")},getQuery:function(i){return e.get("rest/similarity/query",{params:{name:i.indexName,options:i.indexOptions,stopList:i.indexStopList,selectQuery:i.query,infer:i.queryInference,sameAs:i.querySameAs,type:i.viewType,analyzer:i.indexAnalyzer}})},saveSearchQuery:function(i){return e({method:"put",url:"rest/similarity/search-query",data:i})}};function i(i,t,r,a,s,c,n,l,o,y,p){return e({method:i,url:"rest/similarity",noCancelOnRouteChange:!0,data:{name:t,options:r,selectQuery:a,stopList:n,infer:l,sameAs:o,type:y,analyzer:p,searchQuery:s,analogicalQuery:c}})}}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[46,62,77,104,258,259],{122:function(t,s,e){"use strict";e.r(s),e.d(s,"ChatAnswerModel",(function(){return a}));class a{constructor(t={}){this._chatId=t.chatId,this._chatName=t.chatName||"",this._timestamp=t.timestamp,this._messages=t.messages||[]}get chatId(){return this._chatId}set chatId(t){this._chatId=t}get chatName(){return this._chatName}set chatName(t){this._chatName=t}get timestamp(){return this._timestamp}set timestamp(t){this._timestamp=t}get messages(){return this._messages}set messages(t){this._messages=t}}},137:function(t,s,e){"use strict";e.r(s),e.d(s,"chatMessageModelListMapper",(function(){return n})),e.d(s,"chatItemsModelMapper",(function(){return r})),e.d(s,"chatMessageModelMapper",(function(){return m})),e.d(s,"chatAnswerModelMapper",(function(){return c}));var a=e(73),i=e(80),h=e(122);const n=t=>t?t.map(t=>m(t)):[],r=(t=[])=>{const s=[];let e;return t.forEach(t=>{if(a.CHAT_MESSAGE_ROLE.USER===t.role){e&&s.push(e);const a=t.conversationId;e=new i.ChatItemModel(a,m(t))}else e.answers.push(m(t)),e.agentId=t.agentId}),e&&s.push(e),new i.ChatItemsListModel(s)},m=t=>{if(t)return new a.ChatMessageModel({id:t.id,role:t.role,message:t.message,timestamp:t.timestamp,data:t})},c=t=>{if(t)return new h.ChatAnswerModel({chatId:t.id,chatName:t.name,timestamp:t.timestamp,messages:n(t.messages)})}},213:function(t,s,e){"use strict";e.r(s),e.d(s,"chatsListMapper",(function(){return m})),e.d(s,"chatModelMapper",(function(){return c}));var a=e(91),i=e(16),h=e(137),n=e(80);const r=Object(i.md5HashGenerator)(),m=t=>{if(!t)return new a.ChatsListModel;const s=t.map(t=>c(t));return new a.ChatsListModel(s)},c=t=>{if(t)return new a.ChatModel({id:t.id,name:t.name,timestamp:t.timestamp,chatHistory:t.messages&&t.messages.length?Object(h.chatItemsModelMapper)(t.messages):new n.ChatItemsListModel},r)}},73:function(t,s,e){"use strict";e.r(s),e.d(s,"ChatMessageModel",(function(){return a})),e.d(s,"CHAT_MESSAGE_ROLE",(function(){return i}));class a{constructor(t){this._id=t.id,this._role=t.role,this._message=t.message,this._timestamp=t.timestamp}get id(){return this._id}set id(t){this._id=t}get role(){return this._role}set role(t){this._role=t}get message(){return this._message}set message(t){this._message=t}get timestamp(){return this._timestamp}set timestamp(t){this._timestamp=t}}const i={USER:"user",ASSISTANT:"assistant"}},80:function(t,s,e){"use strict";e.r(s),e.d(s,"ChatItemModel",(function(){return i})),e.d(s,"ChatItemsListModel",(function(){return h}));var a=e(73);class i{constructor(t,s){this._chatId=t,this._agentId=void 0,this._question=s,this._answers=[]}get chatId(){return this._chatId}set chatId(t){this._chatId=t}get agentId(){return this._agentId}set agentId(t){this._agentId=t}get question(){return this._question}set question(t){this._question=t}get answers(){return this._answers}set answers(t){this._answers=t}setQuestionMessage(t){this._question||(this._question=new a.ChatMessageModel({role:a.CHAT_MESSAGE_ROLE.USER})),this._question.message=t}getQuestionMessage(){return this._question.message}toCreateChatRequestPayload(){return{agentId:this._agentId,question:this._question.message}}toAskRequestPayload(){return{conversationId:this._chatId,agentId:this._agentId,question:this._question.message}}toExplainResponsePayload(t){return{conversationId:this._chatId,answerId:t}}}class h{constructor(t=[]){this._items=t}isEmpty(){return 0===this._items.length}appendItem(t){this._items.push(t)}get items(){return this._items}set items(t){this._items=t||[]}getLast(){if(!this.isEmpty())return this._items[this._items.length-1]}}},91:function(t,s,e){"use strict";e.r(s),e.d(s,"ChatModel",(function(){return i})),e.d(s,"ChatByDayModel",(function(){return h})),e.d(s,"ChatsListModel",(function(){return n}));var a=e(80);class i{constructor(t,s){this.hashGenerator=s,this._id=t.id,this._name=t.name,this._timestamp=t.timestamp,this._chatHistory=t.chatHistory||new a.ChatItemsListModel,this.hash=this.generateHash()}generateHash(){return this.hashGenerator(JSON.stringify(this))}get id(){return this._id}set id(t){this._id=t}get name(){return this._name}set name(t){this.generateHash(),this._name=t}get timestamp(){return this._timestamp}set timestamp(t){this._timestamp=t}get chatHistory(){return this._chatHistory}set chatHistory(t){this._chatHistory=t||new a.ChatItemsListModel}toRenameRequestPayload(){return{name:this._name}}}class h{constructor(t){this._day=t.day,this._timestamp=t.timestamp,this._chats=t.chats}get day(){return this._day}set day(t){this._day=t}get timestamp(){return this._timestamp}set timestamp(t){this._timestamp=t}get chats(){return this._chats}set chats(t){this._chats=t}}class n{constructor(t){this._chats=t||[],this._chatsByDay=[],this.sortByTime(),this.updateChatsByDay()}sortByTime(){this._chats.sort((t,s)=>s.timestamp-t.timestamp)}updateChatTimestamp(t,s){const e=this._chats.find(s=>s.id===t);e&&(e.timestamp=s),this.sortByTime(),this.updateChatsByDay()}deleteChat(t){this._chats=this._chats.filter(s=>s.id!==t.id),this.sortByTime(),this.updateChatsByDay()}updateChatsByDay(){this._chatsByDay=[],this._chats.forEach(t=>{const s=new Date(1e3*t.timestamp).toDateString(),e=this._chatsByDay.find(t=>t.day===s);e?e.chats.push(t):this._chatsByDay.push(new h({day:s,timestamp:1e3*t.timestamp,chats:[t]}))})}appendChat(t){this._chats.push(t),this.sortByTime(),this.updateChatsByDay()}replaceChat(t,s){this._chats=this._chats.map(e=>e.id===s.id?t:e),this.sortByTime(),this.updateChatsByDay()}isEmpty(){return 0===this._chats.length}getFirstChat(){return this._chats[0]}deselectAll(){this._chats.forEach(t=>{t.selected=!1})}selectChat(t){this.deselectAll(),this._chats.forEach(s=>{s.selected=s.id===t.id})}getChat(t){return this._chats.find(s=>s.id===t)}getNonPersistedChat(){return this._chats.find(t=>!t.id)}renameChat(t){const s=this._chats.find(s=>s.id===t.id);s&&(s.name=t.name)}get chats(){return this._chats}set chats(t){this._chats=t}get chatsByDay(){return this._chatsByDay}set chatsByDay(t){this._chatsByDay=t}}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[48,63,77,103,258,259],{122:function(t,s,e){"use strict";e.r(s),e.d(s,"ChatAnswerModel",(function(){return a}));class a{constructor(t={}){this._chatId=t.chatId,this._chatName=t.chatName||"",this._timestamp=t.timestamp,this._messages=t.messages||[]}get chatId(){return this._chatId}set chatId(t){this._chatId=t}get chatName(){return this._chatName}set chatName(t){this._chatName=t}get timestamp(){return this._timestamp}set timestamp(t){this._timestamp=t}get messages(){return this._messages}set messages(t){this._messages=t}}},138:function(t,s,e){"use strict";e.r(s),e.d(s,"chatMessageModelListMapper",(function(){return n})),e.d(s,"chatItemsModelMapper",(function(){return r})),e.d(s,"chatMessageModelMapper",(function(){return m})),e.d(s,"chatAnswerModelMapper",(function(){return c}));var a=e(73),i=e(80),h=e(122);const n=t=>t?t.map(t=>m(t)):[],r=(t=[])=>{const s=[];let e;return t.forEach(t=>{if(a.CHAT_MESSAGE_ROLE.USER===t.role){e&&s.push(e);const a=t.conversationId;e=new i.ChatItemModel(a,m(t))}else e.answers.push(m(t)),e.agentId=t.agentId}),e&&s.push(e),new i.ChatItemsListModel(s)},m=t=>{if(t)return new a.ChatMessageModel({id:t.id,role:t.role,message:t.message,timestamp:t.timestamp,data:t})},c=t=>{if(t)return new h.ChatAnswerModel({chatId:t.id,chatName:t.name,timestamp:t.timestamp,messages:n(t.messages)})}},213:function(t,s,e){"use strict";e.r(s),e.d(s,"chatsListMapper",(function(){return m})),e.d(s,"chatModelMapper",(function(){return c}));var a=e(90),i=e(16),h=e(138),n=e(80);const r=Object(i.md5HashGenerator)(),m=t=>{if(!t)return new a.ChatsListModel;const s=t.map(t=>c(t));return new a.ChatsListModel(s)},c=t=>{if(t)return new a.ChatModel({id:t.id,name:t.name,timestamp:t.timestamp,chatHistory:t.messages&&t.messages.length?Object(h.chatItemsModelMapper)(t.messages):new n.ChatItemsListModel},r)}},73:function(t,s,e){"use strict";e.r(s),e.d(s,"ChatMessageModel",(function(){return a})),e.d(s,"CHAT_MESSAGE_ROLE",(function(){return i}));class a{constructor(t){this._id=t.id,this._role=t.role,this._message=t.message,this._timestamp=t.timestamp}get id(){return this._id}set id(t){this._id=t}get role(){return this._role}set role(t){this._role=t}get message(){return this._message}set message(t){this._message=t}get timestamp(){return this._timestamp}set timestamp(t){this._timestamp=t}}const i={USER:"user",ASSISTANT:"assistant"}},80:function(t,s,e){"use strict";e.r(s),e.d(s,"ChatItemModel",(function(){return i})),e.d(s,"ChatItemsListModel",(function(){return h}));var a=e(73);class i{constructor(t,s){this._chatId=t,this._agentId=void 0,this._question=s,this._answers=[]}get chatId(){return this._chatId}set chatId(t){this._chatId=t}get agentId(){return this._agentId}set agentId(t){this._agentId=t}get question(){return this._question}set question(t){this._question=t}get answers(){return this._answers}set answers(t){this._answers=t}setQuestionMessage(t){this._question||(this._question=new a.ChatMessageModel({role:a.CHAT_MESSAGE_ROLE.USER})),this._question.message=t}getQuestionMessage(){return this._question.message}toCreateChatRequestPayload(){return{agentId:this._agentId,question:this._question.message}}toAskRequestPayload(){return{conversationId:this._chatId,agentId:this._agentId,question:this._question.message}}toExplainResponsePayload(t){return{conversationId:this._chatId,answerId:t}}}class h{constructor(t=[]){this._items=t}isEmpty(){return 0===this._items.length}appendItem(t){this._items.push(t)}get items(){return this._items}set items(t){this._items=t||[]}getLast(){if(!this.isEmpty())return this._items[this._items.length-1]}}},90:function(t,s,e){"use strict";e.r(s),e.d(s,"ChatModel",(function(){return i})),e.d(s,"ChatByDayModel",(function(){return h})),e.d(s,"ChatsListModel",(function(){return n}));var a=e(80);class i{constructor(t,s){this.hashGenerator=s,this._id=t.id,this._name=t.name,this._timestamp=t.timestamp,this._chatHistory=t.chatHistory||new a.ChatItemsListModel,this.hash=this.generateHash()}generateHash(){return this.hashGenerator(JSON.stringify(this))}get id(){return this._id}set id(t){this._id=t}get name(){return this._name}set name(t){this.generateHash(),this._name=t}get timestamp(){return this._timestamp}set timestamp(t){this._timestamp=t}get chatHistory(){return this._chatHistory}set chatHistory(t){this._chatHistory=t||new a.ChatItemsListModel}toRenameRequestPayload(){return{name:this._name}}}class h{constructor(t){this._day=t.day,this._timestamp=t.timestamp,this._chats=t.chats}get day(){return this._day}set day(t){this._day=t}get timestamp(){return this._timestamp}set timestamp(t){this._timestamp=t}get chats(){return this._chats}set chats(t){this._chats=t}}class n{constructor(t){this._chats=t||[],this._chatsByDay=[],this.sortByTime(),this.updateChatsByDay()}sortByTime(){this._chats.sort((t,s)=>s.timestamp-t.timestamp)}updateChatTimestamp(t,s){const e=this._chats.find(s=>s.id===t);e&&(e.timestamp=s),this.sortByTime(),this.updateChatsByDay()}deleteChat(t){this._chats=this._chats.filter(s=>s.id!==t.id),this.sortByTime(),this.updateChatsByDay()}updateChatsByDay(){this._chatsByDay=[],this._chats.forEach(t=>{const s=new Date(1e3*t.timestamp).toDateString(),e=this._chatsByDay.find(t=>t.day===s);e?e.chats.push(t):this._chatsByDay.push(new h({day:s,timestamp:1e3*t.timestamp,chats:[t]}))})}appendChat(t){this._chats.push(t),this.sortByTime(),this.updateChatsByDay()}replaceChat(t,s){this._chats=this._chats.map(e=>e.id===s.id?t:e),this.sortByTime(),this.updateChatsByDay()}isEmpty(){return 0===this._chats.length}getFirstChat(){return this._chats[0]}deselectAll(){this._chats.forEach(t=>{t.selected=!1})}selectChat(t){this.deselectAll(),this._chats.forEach(s=>{s.selected=s.id===t.id})}getChat(t){return this._chats.find(s=>s.id===t)}getNonPersistedChat(){return this._chats.find(t=>!t.id)}renameChat(t){const s=this._chats.find(s=>s.id===t.id);s&&(s.name=t.name)}get chats(){return this._chats}set chats(t){this._chats=t}get chatsByDay(){return this._chatsByDay}set chatsByDay(t){this._chatsByDay=t}}}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[47,97,187,188,281],{103:function(e,t,n){"use strict";n.r(t);n(85);var s=n(93),r=n(76);function o(e){const t=(t,n)=>e.getConnectors(t,n).then(e=>Object(s.connectorTypesListMapper)(e.data)),n=(t,n,r)=>e.hasConnector(encodeURIComponent(t),n,r).then(e=>Object(s.connectorsMapper)(e.data));return{getConnectorTypes:t,getConnectorsByType:n,getConnectorPrefixByName:(e,n,s)=>t(n,s).then(t=>{const n=t.getConnectorByName(e);return n?n.prefix:null}),getConnectorsByTypeAsSelectMenuOptions:(e,t,s)=>n(e,t,s).then(e=>e.connectors.map(e=>new r.SelectMenuOptionsModel({value:e.name,label:e.name})))}}angular.module("graphdb.framework.core.services.connectors",["graphdb.framework.rest.connectors.service"]).factory("ConnectorsService",o),o.$inject=["ConnectorsRestService"]},76:function(e,t,n){"use strict";n.r(t),n.d(t,"SelectMenuOptionsModel",(function(){return s})),n.d(t,"TextFieldModel",(function(){return r})),n.d(t,"NumericRangeModel",(function(){return o}));class s{constructor({label:e,value:t,selected:n=!1,data:s={}}){this._label=e,this._value=t,this._selected=n,this._data=s}get label(){return this._label}set label(e){this._label=e}get value(){return this._value}set value(e){this._value=e}get selected(){return this._selected}set selected(e){this._selected=e}get data(){return this._data}set data(e){this._data=e}}class r{constructor(e){this._value=e.value,this._minLength=e.minLength,this._maxLength=e.maxLength}get value(){return this._value}set value(e){this._value=e}get maxLength(){return this._maxLength}set maxLength(e){this._maxLength=e}get minLength(){return this._minLength}set minLength(e){this._minLength=e}}class o{constructor(e){this._value=e.value,this._minValue=e.minValue,this._maxValue=e.maxValue,this._step=e.step}get value(){return this._value}set value(e){this._value=e}get minValue(){return this._minValue}set minValue(e){this._minValue=e}get maxValue(){return this._maxValue}set maxValue(e){this._maxValue=e}get step(){return this._step}set step(e){this._step=e}}},85:function(e,t){angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",n),n.$inject=["$http"];function n(e){return{getConnectors:function(t,n){if(t)return e.get("rest/connectors",{headers:{"X-GraphDB-Repository":t,"X-GraphDB-Repository-Location":n}});return e.get("rest/connectors")},initConnector:function(t){return e.get("rest/connectors/options?prefix="+t)},hasConnector:function(t,n,s){if(n)return e.get("rest/connectors/existing?prefix="+t,{headers:{"X-GraphDB-Repository":n,"X-GraphDB-Repository-Location":s}});return e.get("rest/connectors/existing?prefix="+t)},checkConnector:function(t){return e.post("rest/connectors/check",t,{headers:{"Content-Type":"text/plain"}})}}}},89:function(e,t,n){"use strict";n.r(t),n.d(t,"ConnectorTypesListModel",(function(){return s})),n.d(t,"ConnectorTypeModel",(function(){return r})),n.d(t,"ConnectorListModel",(function(){return o})),n.d(t,"ConnectorModel",(function(){return c})),n.d(t,"ConnectorSettingsModel",(function(){return i}));class s{constructor(e={}){this._connectors=e.connectors||[]}getConnectorByName(e){return this._connectors.find(t=>t.name===e)}get connectors(){return this._connectors}set connectors(e){this._connectors=e}}class r{constructor(e){this._name=e.name,this._prefix=e.prefix}get name(){return this._name}set name(e){this._name=e}get prefix(){return this._prefix}set prefix(e){this._prefix=e}}class o{constructor(e=[]){this._connectors=e.connectors}get connectors(){return this._connectors}set connectors(e){this._connectors=e}}class c{constructor(e){this._name=e.name,this._settings=new i(e)}get settings(){return this._settings}set settings(e){this._settings=e}get name(){return this._name}set name(e){this._name=e}}class i{constructor(e){this._settings=e.values||{}}get settings(){return this._settings}set settings(e){this._settings=e}}},93:function(e,t,n){"use strict";n.r(t),n.d(t,"connectorTypesListMapper",(function(){return r})),n.d(t,"connectorsMapper",(function(){return o}));var s=n(89);const r=e=>{const t=new s.ConnectorTypesListModel;return e?(t.connectors=Object.keys(e).map(t=>new s.ConnectorTypeModel({name:t,prefix:e[t]})),t):t},o=e=>{const t=new s.ConnectorListModel;return e?(t.connectors=e.map(e=>new s.ConnectorModel(e)),t):t}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[49,96,187,188,281],{102:function(e,t,n){"use strict";n.r(t);n(85);var s=n(92),r=n(76);function o(e){const t=(t,n)=>e.getConnectors(t,n).then(e=>Object(s.connectorTypesListMapper)(e.data)),n=(t,n,r)=>e.hasConnector(encodeURIComponent(t),n,r).then(e=>Object(s.connectorsMapper)(e.data));return{getConnectorTypes:t,getConnectorsByType:n,getConnectorPrefixByName:(e,n,s)=>t(n,s).then(t=>{const n=t.getConnectorByName(e);return n?n.prefix:null}),getConnectorsByTypeAsSelectMenuOptions:(e,t,s)=>n(e,t,s).then(e=>e.connectors.map(e=>new r.SelectMenuOptionsModel({value:e.name,label:e.name})))}}angular.module("graphdb.framework.core.services.connectors",["graphdb.framework.rest.connectors.service"]).factory("ConnectorsService",o),o.$inject=["ConnectorsRestService"]},76:function(e,t,n){"use strict";n.r(t),n.d(t,"SelectMenuOptionsModel",(function(){return s})),n.d(t,"TextFieldModel",(function(){return r})),n.d(t,"NumericRangeModel",(function(){return o}));class s{constructor({label:e,value:t,selected:n=!1,data:s={}}){this._label=e,this._value=t,this._selected=n,this._data=s}get label(){return this._label}set label(e){this._label=e}get value(){return this._value}set value(e){this._value=e}get selected(){return this._selected}set selected(e){this._selected=e}get data(){return this._data}set data(e){this._data=e}}class r{constructor(e){this._value=e.value,this._minLength=e.minLength,this._maxLength=e.maxLength}get value(){return this._value}set value(e){this._value=e}get maxLength(){return this._maxLength}set maxLength(e){this._maxLength=e}get minLength(){return this._minLength}set minLength(e){this._minLength=e}}class o{constructor(e){this._value=e.value,this._minValue=e.minValue,this._maxValue=e.maxValue,this._step=e.step}get value(){return this._value}set value(e){this._value=e}get minValue(){return this._minValue}set minValue(e){this._minValue=e}get maxValue(){return this._maxValue}set maxValue(e){this._maxValue=e}get step(){return this._step}set step(e){this._step=e}}},85:function(e,t){angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",n),n.$inject=["$http"];function n(e){return{getConnectors:function(t,n){if(t)return e.get("rest/connectors",{headers:{"X-GraphDB-Repository":t,"X-GraphDB-Repository-Location":n}});return e.get("rest/connectors")},initConnector:function(t){return e.get("rest/connectors/options?prefix="+t)},hasConnector:function(t,n,s){if(n)return e.get("rest/connectors/existing?prefix="+t,{headers:{"X-GraphDB-Repository":n,"X-GraphDB-Repository-Location":s}});return e.get("rest/connectors/existing?prefix="+t)},checkConnector:function(t){return e.post("rest/connectors/check",t,{headers:{"Content-Type":"text/plain"}})}}}},88:function(e,t,n){"use strict";n.r(t),n.d(t,"ConnectorTypesListModel",(function(){return s})),n.d(t,"ConnectorTypeModel",(function(){return r})),n.d(t,"ConnectorListModel",(function(){return o})),n.d(t,"ConnectorModel",(function(){return c})),n.d(t,"ConnectorSettingsModel",(function(){return i}));class s{constructor(e={}){this._connectors=e.connectors||[]}getConnectorByName(e){return this._connectors.find(t=>t.name===e)}get connectors(){return this._connectors}set connectors(e){this._connectors=e}}class r{constructor(e){this._name=e.name,this._prefix=e.prefix}get name(){return this._name}set name(e){this._name=e}get prefix(){return this._prefix}set prefix(e){this._prefix=e}}class o{constructor(e=[]){this._connectors=e.connectors}get connectors(){return this._connectors}set connectors(e){this._connectors=e}}class c{constructor(e){this._name=e.name,this._settings=new i(e)}get settings(){return this._settings}set settings(e){this._settings=e}get name(){return this._name}set name(e){this._name=e}}class i{constructor(e){this._settings=e.values||{}}get settings(){return this._settings}set settings(e){this._settings=e}}},92:function(e,t,n){"use strict";n.r(t),n.d(t,"connectorTypesListMapper",(function(){return r})),n.d(t,"connectorsMapper",(function(){return o}));var s=n(88);const r=e=>{const t=new s.ConnectorTypesListModel;return e?(t.connectors=Object.keys(e).map(t=>new s.ConnectorTypeModel({name:t,prefix:e[t]})),t):t},o=e=>{const t=new s.ConnectorListModel;return e?(t.connectors=e.map(e=>new s.ConnectorModel(e)),t):t}}}]);