graphdb-workbench 2.7.0-RC10 → 2.7.0-RC11

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 (189) hide show
  1. package/dist/{10.3b75f9b445ae56353102.bundle.js → 10.57edfec05379d783ffaa.bundle.js} +1 -1
  2. package/dist/100.468b84c65c7b8c06657d.bundle.js +1 -0
  3. package/dist/{100.a7c19fae5a8cbda20b25.bundle.js → 101.37e41d12f25ce7c3b6fc.bundle.js} +1 -1
  4. package/dist/{101.1f3cd878e9a9cc77ee5c.bundle.js → 102.73ff72236ce70b195ca5.bundle.js} +1 -1
  5. package/dist/{102.9e5cf4eb94b4c2d32120.bundle.js → 103.40f2dbdccc572f7875b3.bundle.js} +1 -1
  6. package/dist/{103.b1c32225b9ece4a53caf.bundle.js → 104.60b9a1f31027d37caf14.bundle.js} +1 -1
  7. package/dist/{104.0aa23866934e732b43fb.bundle.js → 105.8ec8714c5344f807f679.bundle.js} +1 -1
  8. package/dist/{105.f42e5f60b2b6c4c51c01.bundle.js → 106.e5a060ed01c6159adbba.bundle.js} +1 -1
  9. package/dist/{106.dd66485a23af2dc54d4f.bundle.js → 107.9501561f24a33fd8ac99.bundle.js} +1 -1
  10. package/dist/{107.aedf10dde9b07831accb.bundle.js → 108.27bef479890bf24da4e2.bundle.js} +1 -1
  11. package/dist/{108.5ff1e8562d06d058ac9e.bundle.js → 109.e153a8c496a21a2fd6c1.bundle.js} +1 -1
  12. package/dist/{109.bc1848170730e185a8f1.bundle.js → 110.0874d2482d370e16d419.bundle.js} +1 -1
  13. package/dist/{110.a53b8d7c7bcae019633e.bundle.js → 111.7822b8d4ffbfe8ec478c.bundle.js} +1 -1
  14. package/dist/{111.78a4380ec939323b8a7a.bundle.js → 112.304a72db9cb77abefe78.bundle.js} +1 -1
  15. package/dist/{112.ca8417d4c66e58da5c64.bundle.js → 113.632f84d1dfd1d4a6c1bc.bundle.js} +1 -1
  16. package/dist/{113.c58fac0d131015bd1977.bundle.js → 114.6a65bbedc013e1309ded.bundle.js} +1 -1
  17. package/dist/{114.f2f86ecd7f275ed5cad8.bundle.js → 115.74fc384b158fa53b2789.bundle.js} +1 -1
  18. package/dist/{115.213ec461a012036d4ca9.bundle.js → 116.44bbe19c8267478cfe47.bundle.js} +1 -1
  19. package/dist/{116.8ecec5f32418d208fc6a.bundle.js → 117.d3d85fee4a3d81b18e15.bundle.js} +1 -1
  20. package/dist/{117.3452aaa7a836d1a05e20.bundle.js → 118.90d7cffadf0edb7dab22.bundle.js} +1 -1
  21. package/dist/{118.b8a09b0e93407839c90b.bundle.js → 119.25046aae4f906a3b9457.bundle.js} +1 -1
  22. package/dist/{12.5279362c787cbea006ba.bundle.js → 12.34fc1969079cc9595592.bundle.js} +1 -1
  23. package/dist/{119.c3e1ba63d64aa4fcf1fa.bundle.js → 120.3d0da2f33c1998e15059.bundle.js} +1 -1
  24. package/dist/{120.a8126c4f338d7c86e47e.bundle.js → 121.af7399fc572a60de3061.bundle.js} +1 -1
  25. package/dist/{121.71dfd143f92944037469.bundle.js → 122.59b4ea10d7a9b22fc9db.bundle.js} +1 -1
  26. package/dist/{122.f2e00ee61e45cb7d5cbd.bundle.js → 123.58e05dcc2a75e24f84ff.bundle.js} +1 -1
  27. package/dist/{123.8a85052c1b6beb0466be.bundle.js → 124.12578c32900e1dd77742.bundle.js} +1 -1
  28. package/dist/{124.b06274da4e068e36b7b7.bundle.js → 125.14767fcefae0676044e6.bundle.js} +1 -1
  29. package/dist/{125.9725c0ccecbbaca411eb.bundle.js → 126.0e93fab2297ba7757766.bundle.js} +1 -1
  30. package/dist/{126.0519656523e92b7c2e06.bundle.js → 127.7151226dc5c7143c6a7d.bundle.js} +1 -1
  31. package/dist/{127.6f2ac2f0e8becab839df.bundle.js → 128.31535237e77713023ab3.bundle.js} +1 -1
  32. package/dist/{128.a01b8403a8740da8342d.bundle.js → 129.d71a9882363b278a7918.bundle.js} +1 -1
  33. package/dist/{13.63e9cdc04419763f78e0.bundle.js → 13.e207ca4692eb5eafdb34.bundle.js} +1 -1
  34. package/dist/{129.b0c41b31dae7b4455c19.bundle.js → 130.234b58f1812b976eebe0.bundle.js} +1 -1
  35. package/dist/{130.34afc477a350436fc8dc.bundle.js → 131.f6aec556f49c78da8665.bundle.js} +1 -1
  36. package/dist/{131.d7651a4c029cc6ae66a2.bundle.js → 132.bda2e1408a049ad349b2.bundle.js} +1 -1
  37. package/dist/{132.7cabb2eba24cf0aff5e7.bundle.js → 133.f9aae73e47de861bb86e.bundle.js} +1 -1
  38. package/dist/{133.bc5488c4e64ac972ba50.bundle.js → 134.a5c33a40d2b84ab5b624.bundle.js} +1 -1
  39. package/dist/{134.0dda0bac2d85007bf4fb.bundle.js → 135.e3e8ff0d0cce2e980f9b.bundle.js} +1 -1
  40. package/dist/{135.846c15a7186934c7ac5c.bundle.js → 136.49d2a1a7cfb9325f793a.bundle.js} +1 -1
  41. package/dist/{136.3ffaabd60269055ef444.bundle.js → 137.c66ea292a9fd631984e5.bundle.js} +1 -1
  42. package/dist/{137.a7dc6533247068a82e53.bundle.js → 138.cb759fc495f9ce8e21ce.bundle.js} +1 -1
  43. package/dist/{138.6c6389192f0b8727f3d1.bundle.js → 139.7537655f500bab3e9c21.bundle.js} +1 -1
  44. package/dist/{14.be132430a246b44435ee.bundle.js → 14.43acd2f156a53df80ef3.bundle.js} +1 -1
  45. package/dist/{139.5db35c1edc9bba2589cf.bundle.js → 140.74aba9df15b050c129d9.bundle.js} +1 -1
  46. package/dist/{140.c49ecdaaa433836cec57.bundle.js → 141.60071851020a1bc11595.bundle.js} +1 -1
  47. package/dist/{141.ace2d85cc8ecd4ace34c.bundle.js → 142.8906dd00536438b339df.bundle.js} +1 -1
  48. package/dist/{142.894e59d3064abc42c366.bundle.js → 143.b1a2222304f8efe71776.bundle.js} +1 -1
  49. package/dist/{143.5c11f29f0cdf1e6f9608.bundle.js → 144.bed1362e8e1bf28f2474.bundle.js} +1 -1
  50. package/dist/{144.e41c29b4818c2ca3fb7e.bundle.js → 145.ead9efabb724dfeb0e19.bundle.js} +1 -1
  51. package/dist/{145.6b3f28e8519ce25b65ea.bundle.js → 146.5c85b4c6e5b066c1b871.bundle.js} +1 -1
  52. package/dist/{146.132e4d5cb434492d41d2.bundle.js → 147.c172219a8a4bd0f6c056.bundle.js} +1 -1
  53. package/dist/148.28bebc68de5695208221.bundle.js +1 -1
  54. package/dist/{152.865b18df2ac28ef28078.bundle.js → 152.fd9cb512ba8bedc15507.bundle.js} +1 -1
  55. package/dist/{156.3ac85092fa49d3be113c.bundle.js → 156.e7ffc37f18a10ada269f.bundle.js} +1 -1
  56. package/dist/{157.88f1c9b305530ad53441.bundle.js → 157.a5a2fcf86cd4591328e2.bundle.js} +1 -1
  57. package/dist/{159.d3792698d8f88ffcac60.bundle.js → 159.9f9a14177b39fc786c17.bundle.js} +1 -1
  58. package/dist/{164.af2fb98833814003feb6.bundle.js → 164.365d82382389763c06cb.bundle.js} +1 -1
  59. package/dist/{17.53cf947d28b6ecce4309.bundle.js → 17.d345f7a57e026f463d39.bundle.js} +2 -2
  60. package/dist/{18.3302a3f7db37a3988901.bundle.js → 18.07f22adcb2f148d03e26.bundle.js} +2 -2
  61. package/dist/{19.900622efefdab5add4e2.bundle.js → 19.85f1a48b7913642b239e.bundle.js} +2 -2
  62. package/dist/{2.8716e7c2b9569dfc7ba6.bundle.js → 2.7b0a5d2579b6b7257131.bundle.js} +1 -1
  63. package/dist/{20.19574aee5ab98f022ca1.bundle.js → 20.daa5d35c7d1831cc5cf0.bundle.js} +1 -1
  64. package/dist/{209.99e11bb3f6e9c6db8257.bundle.js → 209.a909bddd992adb645378.bundle.js} +1 -1
  65. package/dist/{23.50d8f1f4e8cc2c7b076e.bundle.js → 23.b50b4669edd5ad306f22.bundle.js} +1 -1
  66. package/dist/{253.021dd4ac29f763628a24.bundle.js → 253.bb1bd65d3e6c61a6f5d6.bundle.js} +1 -1
  67. package/dist/{26.57d9f2112df593bc77f0.bundle.js → 26.8ad4918de5482a06b67c.bundle.js} +1 -1
  68. package/dist/{27.1ad6d1355fcc75a17262.bundle.js → 27.df53c5d5f2930ef08e4c.bundle.js} +1 -1
  69. package/dist/28.0102a82041b6de2bd7eb.bundle.js +1 -1
  70. package/dist/29.15213e151364f5ecfcd5.bundle.js +1 -1
  71. package/dist/{30.5542232baad7f0010625.bundle.js → 30.4514f5f4afe415b37880.bundle.js} +1 -1
  72. package/dist/300.cef8eccb11324bcfdb36.bundle.js +1 -1
  73. package/dist/302.7a5d2ba28bd6479a77be.bundle.js +1 -1
  74. package/dist/303.e817b957f010153de97a.bundle.js +1 -1
  75. package/dist/304.fd2e766c67cd966f6751.bundle.js +1 -1
  76. package/dist/{31.98395cccc5e134d5319f.bundle.js → 31.e78e222d7d47059845ad.bundle.js} +1 -1
  77. package/dist/{325.f6a3e4e6432a00d1f8be.bundle.js → 325.f1c7d3c71d42eceec2b7.bundle.js} +1 -1
  78. package/dist/333.9f051c77b4c6747b320c.bundle.js +1 -1
  79. package/dist/{34.10b05742f90a9a949aef.bundle.js → 34.c5d4046c4a906590b979.bundle.js} +1 -1
  80. package/dist/{35.b6ff831d23c9d1de0ec0.bundle.js → 35.be4bf3d4b15b52e27211.bundle.js} +1 -1
  81. package/dist/36.78b8f848caf7bdc9198a.bundle.js +1 -0
  82. package/dist/{37.97a5e82817ac54694296.bundle.js → 37.d2ae2e371207ad86bec9.bundle.js} +2 -2
  83. package/dist/{38.f6041187665bc215d153.bundle.js → 38.d2aa54f612cc98de1873.bundle.js} +1 -1
  84. package/dist/{39.719bd49ac8c6a00075e2.bundle.js → 39.11231e3f962a5f7829d3.bundle.js} +1 -1
  85. package/dist/{4.a302df9d22b6802d4188.bundle.js → 4.e5fe4357b7f37e9116d5.bundle.js} +1 -1
  86. package/dist/{40.cb4ef56b6e5c35d70053.bundle.js → 40.ac59185f49718c365e62.bundle.js} +1 -1
  87. package/dist/42.52befbab22e69bb433f4.bundle.js +1 -1
  88. package/dist/{43.a14ed226108ed51282fb.bundle.js → 43.233285dfc7aef5be7dcd.bundle.js} +1 -1
  89. package/dist/{44.4b79a61547bde1dfd221.bundle.js → 44.9b4db47f9b4eacae74c8.bundle.js} +1 -1
  90. package/dist/{45.c76c260958df1812fb29.bundle.js → 45.4ca8ccc2869c69541bd2.bundle.js} +1 -1
  91. package/dist/{46.b4a3c9ad26f60f115724.bundle.js → 46.c99d54d49a3a8c8c74fb.bundle.js} +1 -1
  92. package/dist/{48.124e623e31da21b2d84f.bundle.js → 48.ef7c3726e21a241b4a74.bundle.js} +1 -1
  93. package/dist/{49.e5ee0f0c776c4a4f857e.bundle.js → 49.9c98607bda2dc4067139.bundle.js} +1 -1
  94. package/dist/{50.02797a2ba3a5e064c3f8.bundle.js → 50.c6d501eacad89e9e3c07.bundle.js} +1 -1
  95. package/dist/51.eedd6b5923ea71c40843.bundle.js +1 -1
  96. package/dist/{52.1f2597b5cee732c9705d.bundle.js → 52.e4d04f36ee8c9d6397f5.bundle.js} +1 -1
  97. package/dist/{53.39e65d94255896c0520c.bundle.js → 53.ad8b904f0110eb3cb50d.bundle.js} +1 -1
  98. package/dist/{54.16d381b2ca7af74a0cd2.bundle.js → 54.c03f9ac261bd787b2126.bundle.js} +1 -1
  99. package/dist/{55.45452a41131cea5da314.bundle.js → 55.0b7694fbe2d3c1947d92.bundle.js} +1 -1
  100. package/dist/{56.673cb25a0d6f4037983c.bundle.js → 56.2e7cf8fffc6a1c47313a.bundle.js} +1 -1
  101. package/dist/{58.c1fc4be2b8a593d8e122.bundle.js → 58.9f4b098efc1fa6145087.bundle.js} +1 -1
  102. package/dist/{59.fc53ee4d576f8b099bc7.bundle.js → 59.53531269a8e4d1db4a18.bundle.js} +1 -1
  103. package/dist/{6.5effe182f70b8498c7ba.bundle.js → 6.235db10971e1a372c502.bundle.js} +1 -1
  104. package/dist/{60.27ad1acdcf55184c8474.bundle.js → 60.af48672c6f42704f3299.bundle.js} +1 -1
  105. package/dist/{61.2e4785600afde117a142.bundle.js → 61.a617b16ec93bbe525f65.bundle.js} +1 -1
  106. package/dist/{62.a58103f0c522570c4347.bundle.js → 62.42c03cc9243d6571127e.bundle.js} +1 -1
  107. package/dist/{63.cf7d24970abfb7cfe98e.bundle.js → 63.64ce2b98622dbe24c7bc.bundle.js} +1 -1
  108. package/dist/{66.b8e22e89b19bc91261ec.bundle.js → 66.d39d14eb328ff5e2a05d.bundle.js} +1 -1
  109. package/dist/{67.7ddaee08c5a0b421af6d.bundle.js → 67.b59ad8f26d05ba647b4e.bundle.js} +1 -1
  110. package/dist/{68.1d791af9e845784a8880.bundle.js → 68.e35370ccce13710c3acb.bundle.js} +1 -1
  111. package/dist/{69.7d4bba11620335a50ca8.bundle.js → 69.3bfdada10a3dacf44239.bundle.js} +1 -1
  112. package/dist/{70.05b0c297b022b6e493c2.bundle.js → 70.c5931f01c244a495732b.bundle.js} +1 -1
  113. package/dist/73.7f80da13b41078a74843.bundle.js +1 -0
  114. package/dist/{73.94be4391dc3e9e335559.bundle.js → 74.f4f4c73f00bb1ae4ab90.bundle.js} +1 -1
  115. package/dist/{74.8df75b6e3d1dfabeb5c0.bundle.js → 75.3d45cc4984cfa9972806.bundle.js} +1 -1
  116. package/dist/{75.ee66b7f6000e39fc61bb.bundle.js → 76.fe25268d76b0f0a7875b.bundle.js} +1 -1
  117. package/dist/{76.8aba13a77fb5a97e7bdb.bundle.js → 77.c62d489ec10cf04974d1.bundle.js} +1 -1
  118. package/dist/{77.643036b87b051f66934d.bundle.js → 78.2a1cb6d68bcde87b0f0a.bundle.js} +1 -1
  119. package/dist/{78.1a2fb7ffb2dbba51fa53.bundle.js → 79.497206ebb2ad072db9b1.bundle.js} +1 -1
  120. package/dist/8.ec6881a9e10b7d4c503a.bundle.js +1 -0
  121. package/dist/{79.68c75b9414fdde0b4941.bundle.js → 80.1fe57145fdbb67e5f9f1.bundle.js} +1 -1
  122. package/dist/{80.193a97e2662b0ddae572.bundle.js → 81.e15366bb81da124add5a.bundle.js} +1 -1
  123. package/dist/{81.bceebb5bfc15ff1c8201.bundle.js → 82.0ad959010d4c00aec31a.bundle.js} +1 -1
  124. package/dist/{82.7e881c82bb895f506db9.bundle.js → 83.f404b787e86f1508f5f4.bundle.js} +1 -1
  125. package/dist/{83.b9d344c5bb3ef8cd6a39.bundle.js → 84.967decab8154c2144d4e.bundle.js} +1 -1
  126. package/dist/{84.c3dcf4edb7eda30d8a76.bundle.js → 85.4fb67b667b3cf484a9a8.bundle.js} +1 -1
  127. package/dist/{85.6dbea6d0893cab9fe3cd.bundle.js → 86.b2b35213d0ccaca8e725.bundle.js} +1 -1
  128. package/dist/{86.fd9ed2b3ecb3c0e29af9.bundle.js → 87.61f0a5f274d87859acb0.bundle.js} +1 -1
  129. package/dist/{87.9a3624d96ddcaa02f545.bundle.js → 88.d490ef07d9ba9996c455.bundle.js} +1 -1
  130. package/dist/{88.d7ddaf2388f11c0f7f1d.bundle.js → 89.ac54378a96143c74cd1c.bundle.js} +1 -1
  131. package/dist/{9.0b4566ecbc6303730254.bundle.js → 9.dcf78d743d24c5a1dd30.bundle.js} +1 -1
  132. package/dist/{89.70bad05e1e767c88070c.bundle.js → 90.5556ac56573bea09a7ff.bundle.js} +1 -1
  133. package/dist/{90.48ba882cbcefcfa293e6.bundle.js → 91.6e6421ce74a5dab21342.bundle.js} +1 -1
  134. package/dist/{91.c9fe95ee8181621b2b67.bundle.js → 92.2099f8e6c8bda81df23e.bundle.js} +1 -1
  135. package/dist/{92.56567720a4d9cb5d636b.bundle.js → 93.91bcf6af4f2cb865f971.bundle.js} +1 -1
  136. package/dist/{93.1b59ddc59ca69073e40d.bundle.js → 94.988cc1669cd64f980cd4.bundle.js} +1 -1
  137. package/dist/{94.37c432be41c67bda04b3.bundle.js → 95.afff0a4c33382bd1ed81.bundle.js} +1 -1
  138. package/dist/{95.927c93e834785ba3e8fc.bundle.js → 96.babb34b1317abe847f48.bundle.js} +1 -1
  139. package/dist/{96.df80d527a908284823a7.bundle.js → 97.885a73aa0360fd138b06.bundle.js} +1 -1
  140. package/dist/{97.dadfc83f845cba14dbea.bundle.js → 98.4682c01b8beedb7ee99f.bundle.js} +1 -1
  141. package/dist/{98.a0fd93ba5edf42d6ce80.bundle.js → 99.27862271b2265d287af4.bundle.js} +1 -1
  142. package/dist/{bundle.9059091e7db749b738d6.bundle.js → bundle.c670cd85dc33e3a033be.bundle.js} +3 -3
  143. package/dist/i18n/locale-en.json +1 -0
  144. package/dist/i18n/locale-fr.json +1 -0
  145. package/dist/index.html +3 -3
  146. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  147. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  148. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  149. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
  150. package/dist/js/angular/import/templates/settingsModal.html +1 -1
  151. package/dist/js/angular/security/templates/user.html +1 -1
  152. package/dist/license-checker.json +2 -2
  153. package/dist/pages/aclmanagement.html +2 -2
  154. package/dist/pages/autocomplete.html +1 -1
  155. package/dist/pages/choose-repository-type.html +1 -1
  156. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  157. package/dist/pages/create-index.html +1 -1
  158. package/dist/pages/dependencies.html +1 -1
  159. package/dist/pages/domainRangeInfo.html +2 -2
  160. package/dist/pages/edit.html +1 -1
  161. package/dist/pages/explore.html +1 -1
  162. package/dist/pages/export.html +1 -1
  163. package/dist/pages/find.html +1 -1
  164. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  165. package/dist/pages/graphs-visualizations.html +7 -7
  166. package/dist/pages/guides.html +1 -1
  167. package/dist/pages/import.html +2 -2
  168. package/dist/pages/jdbc-create.html +1 -1
  169. package/dist/pages/monitor/backup-and-restore.html +1 -1
  170. package/dist/pages/monitor/queries.html +1 -1
  171. package/dist/pages/monitor/resources.html +1 -1
  172. package/dist/pages/namespaces.html +2 -2
  173. package/dist/pages/plugins.html +1 -1
  174. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  175. package/dist/pages/rdfrank.html +2 -2
  176. package/dist/pages/repositories.html +1 -1
  177. package/dist/pages/repository.html +1 -1
  178. package/dist/pages/similarity-indexes.html +1 -1
  179. package/dist/pages/sparql-editor.html +1 -1
  180. package/dist/pages/sparql-template-create.html +1 -1
  181. package/dist/pages/ux-test1.html +2 -2
  182. package/dist/pages/webapi.html +2 -2
  183. package/dist/res/swagger5/index.html +12 -12
  184. package/package.json +1 -1
  185. package/dist/147.03811f041f88de868144.bundle.js +0 -1
  186. package/dist/36.4a2ca5b3b0b5571a5f53.bundle.js +0 -1
  187. package/dist/8.f4bcde9e8e2df3034d0a.bundle.js +0 -1
  188. package/dist/99.3d92c7f2ff9b6baf6660.bundle.js +0 -1
  189. /package/dist/{vendor.acd22d7c1f0c1af24305.bundle.js → vendor.4158e85ef261380e9ea5.bundle.js} +0 -0
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[10,34,46,55,194,202,214,215,216,217,220,273],{104:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityQueryType",(function(){return r}));const r={DATA:"DATA",SEARCH:"SEARCH",ANALOGICAL:"ANALOGICAL"}},105:function(e,i,t){"use strict";t.r(i),t.d(i,"mapIndexesResponseToSimilarityIndex",(function(){return n}));var r=t(76);const n=e=>e.map(e=>{const i=new r.SimilarityIndex;return i.type=e.type,i.stopList=e.stopList,i.status=e.status,i.selectQuery=e.selectQuery,i.searchQuery=e.searchQuery,i.sameAs=e.sameAs,i.options=e.options,i.name=e.name,i.infer=e.infer,i.analyzer=e.analyzer,i.analogicalQuery=e.analogicalQuery,i})},221:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexError",(function(){return r}));class r extends Error{}},222:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexInfo",(function(){return y}));var r=t(76),n=t(104),s=t(65);const a=new RegExp("^[a-zA-Z0-9-_]+$");class y{constructor(){this.similarityIndex=new r.SimilarityIndex,this.isNameExist=!1,this.invalidSelectQueryType=!1,this.invalidSelectQuery=!1,this.invalidSearchQueryType=!1,this.invalidSearchQuery=!1,this.invalidAnalogicalQueryType=!1,this.invalidAnalogicalQuery=!1,this.selectedQueryType=n.SimilarityQueryType.DATA,this.selectedYasguiRenderMode=s.RenderingMode.YASQE}setQuery(e,i){const t=i||this.selectedQueryType;n.SimilarityQueryType.DATA!==t?n.SimilarityQueryType.SEARCH!==t?n.SimilarityQueryType.ANALOGICAL===t&&(this.similarityIndex.analogicalQuery=e):this.similarityIndex.searchQuery=e:this.similarityIndex.selectQuery=e}getQuery(e){switch(e||this.selectedQueryType){case n.SimilarityQueryType.DATA:return this.similarityIndex.selectQuery;case n.SimilarityQueryType.SEARCH:return this.similarityIndex.searchQuery;case n.SimilarityQueryType.ANALOGICAL:return this.similarityIndex.analogicalQuery}}markInvalidQuery(e,i=!0){const t=e||this.selectedQueryType;n.SimilarityQueryType.DATA!==t?n.SimilarityQueryType.SEARCH!==t?n.SimilarityQueryType.ANALOGICAL===t&&(this.invalidAnalogicalQuery=i):this.invalidSearchQuery=i:this.invalidSelectQuery=i}markInvalidQueryType(e,i=!0){const t=e||this.selectedQueryType;n.SimilarityQueryType.DATA!==t?n.SimilarityQueryType.SEARCH!==t?n.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 n.SimilarityQueryType.DATA===this.selectedQueryType}isSearchQueryTypeSelected(){return n.SimilarityQueryType.SEARCH===this.selectedQueryType}isAnalogicalQueryTypeSelected(){return n.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 a.test(this.similarityIndex.name)}hasSelectQuery(){return!!this.similarityIndex.selectQuery}hasSearchQuery(){return!!this.similarityIndex.searchQuery}hasAnalogicalQuery(){return!!this.similarityIndex.analogicalQuery}isYasqeRenderMode(){return s.RenderingMode.YASQE===this.getSelectedYasguiRenderMode()}isYasrRenderMode(){return s.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}}},223:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityViewMode",(function(){return r}));const r={CREATE:"CREATE",EDIT:"EDIT",CLONE:"CLONE"}},245:function(e,i,t){"use strict";t.r(i);t(68),t(10),t(15);var r=t(105),n=t(14),s=t(65),a=t(67),y=t(223),o=t(104),l=t(70),d=t(221),u=t(94),c=t(222);function I(e,i,t,I,m,S,p,h,T,x,g,Q,E,A,f,v){e.productInfo=h,e.SimilarityQueryType=o.SimilarityQueryType,e.SimilarityIndexType=l.SimilarityIndexType,e.similarityIndexInfo=void 0,e.samples=void 0,e.yasguiConfig=void 0,e.saveOrUpdateExecuted=!1,e.loadingControllerResources=!1,e.helpHidden=1===g.get(Q.HIDE_SIMILARITY_HELP);let R=!1,L=void 0,w=void 0,C=void 0,M=y.SimilarityViewMode.CREATE;e.changeSimilarityIndexType=(i,t=o.SimilarityQueryType.DATA)=>{e.similarityIndexInfo.setType(i),e.similarityIndexInfo.isPredicationType()?e.samples=w[l.SimilarityIndexType.PREDICATION]:e.samples=w[l.SimilarityIndexType.TEXT],e.changeQueryTab(t).then(i=>{P(e.similarityIndexInfo),e.setEditorQuery(e.similarityIndexInfo.getQuery())})},e.changeQueryTab=i=>{const t=e.similarityIndexInfo.getSelectedQueryType();return t===i?Promise.resolve():(e.similarityIndexInfo.setSelectedQueryType(i),D(e.similarityIndexInfo,t).then(e=>Z(e,t)).then(e=>K(e,t)).catch(e=>{e instanceof d.SimilarityIndexError||console.log(e)}).finally(()=>{const i=H();e.similarityIndexInfo.setSelectedYasguiRenderMode(s.RenderingMode.YASQE),i.changeRenderMode(e.similarityIndexInfo.getSelectedYasguiRenderMode()),e.similarityIndexInfo.isDataQueryTypeSelected()?i.showYasqeActionButton([n.YasqeButtonName.INFER_STATEMENTS,n.YasqeButtonName.EXPANDS_RESULTS]):i.hideYasqeActionButton([n.YasqeButtonName.INFER_STATEMENTS,n.YasqeButtonName.EXPANDS_RESULTS]),i.setQuery(e.similarityIndexInfo.getQuery())}))},e.createSimilarityIndex=()=>{e.saveOrUpdateExecuted=!0,D(e.similarityIndexInfo).then(Z).then(K).then(z).then(k).then(e=>_(e.getSimilarityIndex())).catch(e=>{e instanceof d.SimilarityIndexError||i.error(getError(e),E.instant("similarity.could.not.get.indexes.error"))})},e.viewQuery=()=>{D(e.similarityIndexInfo).then(z).then(N).then(O).catch(e=>i.error(getError(e)))},e.preview=()=>{D(e.similarityIndexInfo).then(K).then(Z).then(()=>{const i=H();e.similarityIndexInfo.setSelectedYasguiRenderMode(s.RenderingMode.YASR),i.query(e.similarityIndexInfo.getSelectedYasguiRenderMode())})},e.saveSearchQuery=function(){e.saveOrUpdateExecuted=!0,R||V(),e.saveOrUpdateExecuted=!0,D(e.similarityIndexInfo).then(F).then(Z).then(K).then(X).then(J).then(b).then(U).catch(e=>{e instanceof d.SimilarityIndexError||i.error(getError(e),E.instant("similarity.change.query.error"))})},e.setEditorQuery=i=>{e.similarityIndexInfo.markInvalidQuery(void 0,!1),e.similarityIndexInfo.markInvalidQueryType(void 0,!1),e.yasguiConfig?H().setQuery(i):q({initialQuery:i||" "})},e.similarityIndexNameChanged=()=>{e.setDirty(),e.similarityIndexInfo.isNameExist=!1},e.queryChanged=()=>{e.setDirty(),e.similarityIndexInfo.markInvalidQuery(void 0,!1),e.similarityIndexInfo.markInvalidQueryType(void 0,!1)},e.isCloneViewMode=()=>y.SimilarityViewMode.CLONE===M,e.isEditViewMode=()=>y.SimilarityViewMode.EDIT===M,e.isCreateViewMode=()=>y.SimilarityViewMode.CREATE===M,e.setDirty=()=>{R=!0},e.isYasqeShown=()=>e.similarityIndexInfo&&e.similarityIndexInfo.isYasqeRenderMode(),e.isYasrShown=()=>e.similarityIndexInfo&&e.similarityIndexInfo.isYasrRenderMode(),e.showEditor=()=>{const i=H();i.abortQuery().then(()=>i.setQuery(e.similarityIndexInfo.getQuery())).then(()=>(e.similarityIndexInfo.setSelectedYasguiRenderMode(s.RenderingMode.YASQE),i.changeRenderMode(e.similarityIndexInfo.getSelectedYasguiRenderMode())))},e.toggleHelp=i=>{void 0===i&&(i=g.get(Q.HIDE_SIMILARITY_HELP)),1!==i?(g.set(Q.HIDE_SIMILARITY_HELP,1),e.helpHidden=!0):(g.set(Q.HIDE_SIMILARITY_HELP,0),e.helpHidden=!1)},e.getCloseBtnMsg=function(){let i=e.editSearchQuery?E.instant("similarity.query.edition.msg"):E.instant("similarity.index.creation.msg");return E.instant("similarity.close.btn.msg",{operation:i})},e.hasQueryError=()=>{const i=e.similarityIndexInfo.getSelectedQueryType();return o.SimilarityQueryType.DATA===i?e.hasSelectQueryError():o.SimilarityQueryType.SEARCH===i?e.hasSearchQueryError():o.SimilarityQueryType.ANALOGICAL===i&&e.hasAnalogicalQueryError()},e.hasSelectQueryError=()=>!e.similarityIndexInfo.hasSelectQuery()||e.similarityIndexInfo.invalidSelectQuery||e.similarityIndexInfo.invalidSelectQueryType,e.hasSearchQueryError=()=>!e.similarityIndexInfo.hasSearchQuery()||e.similarityIndexInfo.invalidSearchQuery||e.similarityIndexInfo.invalidSearchQueryType,e.hasAnalogicalQueryError=()=>!e.similarityIndexInfo.hasAnalogicalQuery()||e.similarityIndexInfo.invalidAnalogicalQuery||e.similarityIndexInfo.invalidAnalogicalQueryType,e.getQueryErrorMessage=()=>{const i=e.similarityIndexInfo.getSelectedQueryType();let t=!1,r=!1,n=!1;o.SimilarityQueryType.DATA===i?(t=!e.similarityIndexInfo.hasSelectQuery(),r=e.similarityIndexInfo.invalidSelectQueryType,n=e.similarityIndexInfo.invalidSelectQuery):o.SimilarityQueryType.SEARCH===i?(t=!e.similarityIndexInfo.hasSearchQuery(),r=e.similarityIndexInfo.invalidSearchQueryType,n=e.similarityIndexInfo.invalidSearchQuery):o.SimilarityQueryType.ANALOGICAL===i&&(t=!e.similarityIndexInfo.hasAnalogicalQuery(),r=e.similarityIndexInfo.invalidAnalogicalQueryType,n=e.similarityIndexInfo.invalidAnalogicalQuery);const s={queryType:E.instant(`similarity.query.type.${i}.name`)};return t?E.instant("similarity.error.query.empty",s):n?E.instant("similarity.error.query.invalid",s):r?E.instant("similarity.error.query.invalid_type",s):""};const D=(e,i)=>H().getQuery().then(t=>e.setQuery(t,i)).then(()=>e),N=e=>m.getQuery({indexName:e.getName(),indexOptions:e.getOptions(),query:e.getQuery(),indexStopList:e.getStopList(),queryInference:e.getInference(),querySameAs:e.getSameAs(),viewType:e.getSelectedQueryType(),indexAnalyzer:e.getAnalyzer()}).then(e=>e.data),O=e=>{e&&t.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return e}}})},P=i=>{const t=i.getType();if(!e.isEditViewMode()&&L&&(i.setQuery(L[t],o.SimilarityQueryType.SEARCH),i.setQuery(L.analogical,o.SimilarityQueryType.ANALOGICAL)),w)if(l.SimilarityIndexType.PREDICATION===t){const e=w[l.SimilarityIndexType.PREDICATION].predication;i.setQuery(e,o.SimilarityQueryType.DATA)}else{const e=w[l.SimilarityIndexType.TEXT].literals;i.setQuery(e,o.SimilarityQueryType.DATA)}},Y=()=>{const t=new c.SimilarityIndexInfo;t.setName(G()),t.setType(j()),t.setSelectedQueryType(e.isEditViewMode()?o.SimilarityQueryType.SEARCH:o.SimilarityQueryType.DATA);const n=p.search().options;n?t.setOptions(n):t.setOptions(t.isTextType()?"-termweight idf":""),P(t);const s=p.search().searchQuery;s&&t.setQuery(s,o.SimilarityQueryType.SEARCH);const a=p.search().selectQuery;a&&t.setQuery(a,o.SimilarityQueryType.DATA);const y=p.search().analogicalQuery;if(y&&t.setQuery(y,o.SimilarityQueryType.ANALOGICAL),t.isTextType()){t.setStopList(p.search().stopList),t.setAnalyzer(p.search().analyzer);const e=$(t.getSimilarityIndex(),"-literal_index");void 0!==e&&t.setLiteralIndex(e)}return t.isPredicationType()?m.getIndexes().then(i=>{const n=Object(r.mapIndexesResponseToSimilarityIndex)(i.data).filter(e=>e.isTextLiteralType()&&(e.isBuiltStatus()||e.isOutdatedStatus())).map(e=>e.name);if(e.literalIndexes=["no-index"].concat(n),void 0===t.getInputIndex()){const i=$(t.getSimilarityIndex(),"-input_index");if(void 0!==i)for(let r=0;r<e.literalIndexes.length;r++)i===e.literalIndexes[r]&&t.setInputIndex(e.literalIndexes[r])}return void 0===t.getInputIndex()&&t.setInputIndex(e.literalIndexes[0]),t}).catch((function(e){const t=getError(e);i.error(t,E.instant("similarity.could.not.get.indexes.error"))})):Promise.resolve(t)},q=i=>{const t={endpoint:B,componentId:"create-index",showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showYasqeActionButtons:!1,showQueryButton:!1,downloadAsOn:!1,showResultInfo:!1,showYasqeResizer:!1,pageSize:100,prefixes:C,render:e.similarityIndexInfo.getSelectedYasguiRenderMode(),yasqeActionButtons:e.isEditViewMode()||!e.similarityIndexInfo.isDataQueryTypeSelected()?n.DISABLE_YASQE_BUTTONS_CONFIGURATION:n.INFERRED_AND_SAME_AS_BUTTONS_CONFIGURATION,maxPersistentResponseSize:0,yasqeMode:e.canWriteActiveRepo()?a.YasqeMode.WRITE:a.YasqeMode.PROTECTED},r={};angular.extend(r,t,i),e.yasguiConfig=r},B=()=>"repositories/"+A.getActiveRepository(),_=t=>{if(void 0!==e.literalIndexes){const i=t.inputIndex;i!==e.literalIndexes[0]&&(t.options=t.options+(""===t.options?"":" ")+"-input_index "+i)}return"true"===t.isLiteralIndex&&(t.options=t.options+(""===t.options?"":" ")+"-literal_index true",t.type=l.SimilarityIndexType.TEXT_LITERAL),V(),R=!1,m.createIndex("POST",t.name,t.options,t.selectQuery,t.searchQuery,t.isPredicationType()?t.analogicalQuery:"",t.stopList,t.infer,t.sameAs,t.type,t.analyzer).then(()=>(i.success(E.instant("similarity.create.index.successfully")),t)).catch((function(e){const t=getError(e);return i.error(t,E.instant("similarity.create.index.error")),console.log(t),Promise.reject(new d.SimilarityIndexError("Could not create index."))}))},U=async e=>{await T.showToastMessageWithDelay(e?"similarity.changed.search.query.msg":"similarity.changed.analogical.query.msg"),p.url("similarity")},b=e=>{const i=e.isSearchQueryTypeSelected();let t={name:e.getSimilarityIndex().name,changedQuery:e.getQuery(),isSearchQuery:i};return m.saveSearchQuery(JSON.stringify(t)).then(()=>(R=!1,i))},V=()=>{setTimeout(()=>p.url("similarity"),100)},H=()=>n.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor"),G=()=>{const i=p.search().name||"";return e.isCloneViewMode()?`${E.instant("similarity.copy_of.prefix")}_${i}`:i},j=()=>{const e=p.search().type;return void 0===e||e.startsWith("text")?l.SimilarityIndexType.TEXT:e},$=(e,i)=>{const t=e.options.split(" ");for(let r=0;r<t.length;r++)if(t[r]===i&&r+1<t.length){const i=t[r+1];return delete t[r],delete t[r+1],e.options=t.join(" "),i}},z=e=>Promise.all([F(e).then(W).then(X).then(J).then(K).then(Z)]).then(()=>e),k=e=>m.getIndexes().then(i=>i.data.some(i=>i.name===e.getName())?(e.isNameExist=!0,Promise.reject(new d.SimilarityIndexError("Similarity index name exists."))):e),F=e=>e.getSimilarityIndex().name?e.isNameValid()?Promise.resolve(e):Promise.reject(new d.SimilarityIndexError("Invalid similarity name.")):Promise.reject(new d.SimilarityIndexError("Missing similarity name.")),W=e=>e.hasSelectQuery()?e.invalidSelectQuery?Promise.reject(new d.SimilarityIndexError("Invalid select query")):e.invalidSelectQueryType?Promise.reject(new d.SimilarityIndexError("Invalid select query type")):Promise.resolve(e):Promise.reject(new d.SimilarityIndexError("Missing select query.")),X=e=>e.hasSearchQuery()?e.invalidSearchQuery?Promise.reject(new d.SimilarityIndexError("Invalid search query")):e.invalidSearchQueryType?Promise.reject(new d.SimilarityIndexError("Invalid search query type")):Promise.resolve(e):Promise.reject(new d.SimilarityIndexError("Missing search query.")),J=e=>e.isPredicationType()&&!e.hasAnalogicalQuery()?Promise.reject(new d.SimilarityIndexError("Missing analogical query.")):e.invalidAnalogicalQuery?Promise.reject(new d.SimilarityIndexError("Invalid analogical query")):e.invalidAnalogicalQueryType?Promise.reject(new d.SimilarityIndexError("Invalid analogical query type")):Promise.resolve(e),K=(e,i)=>H().getQueryType().then(t=>u.QueryType.SELECT!==t?(e.markInvalidQueryType(i),Promise.reject(new d.SimilarityIndexError("Query type is not valid."))):(e.markInvalidQueryType(i,!1),e)),Z=(e,i)=>H().isQueryValid().then(t=>t?(e.markInvalidQuery(i,!1),e):(e.markInvalidQuery(i),Promise.reject(new d.SimilarityIndexError("Query is not valid.")))),ee=(e,i,t,r)=>{v.openSimpleModal({title:e,message:i,warning:!0}).result.then((function(){angular.isFunction(t)&&t()}),(function(){angular.isFunction(r)&&r()}))},ie=()=>{e.isYasrShown()&&e.similarityIndexInfo.isDataQueryTypeSelected()&&e.showEditor(),e.canEditActiveRepo=e.canWriteActiveRepo();const i={...e.yasguiConfig,yasqeMode:e.canWriteActiveRepo()};q(i)},te=e=>{R&&(e.returnValue=!0)},re=()=>{window.removeEventListener("beforeunload",te),ne.forEach(e=>e())},ne=[];ne.push(f.subscribe("repositoryWillChangeEvent",i=>new Promise((function(t){if(e.isCreateViewMode()||e.isCloneViewMode())return void t(i);const r=()=>{R=!1,V(),t(i)};if(R){const e=()=>{i.cancel=!0,t(i)},n=E.instant("common.confirm"),s=E.instant("similarity.warning.unsaved.changes");ee(n,s,r,e)}else r()})))),ne.push(e.$on("$locationChangeStart",(e,i)=>{if(R){e.preventDefault();const t=E.instant("common.confirm"),r=E.instant("similarity.warning.unsaved.changes");ee(t,r,()=>{re();const e=p.absUrl().length-p.url().length,t=i.substring(e);p.path(t)})}else re()})),ne.push(e.$on("$destroy",re)),window.addEventListener("beforeunload",te),M=(()=>{if(void 0===p.search().name)return y.SimilarityViewMode.CREATE;const e=p.search().editSearchQuery;return void 0===e?y.SimilarityViewMode.CLONE:"string"==typeof e?"false"===e?y.SimilarityViewMode.CLONE:y.SimilarityViewMode.EDIT:e?y.SimilarityViewMode.EDIT:y.SimilarityViewMode.CLONE})();const se=e.$watch((function(){return e.getActiveRepositoryObject()}),(function(i){i&&(e.loadingControllerResources=!0,Promise.all([m.getSearchQueries(),m.getSamples(),A.getPrefixes(i.id)]).then(([i,t,r])=>{e.canEditActiveRepo=e.canWriteActiveRepo(),L=i?i.data:[],w=t?t.data:[],C=r,Y().then(i=>{e.similarityIndexInfo=i;let t=o.SimilarityQueryType.DATA;e.isEditViewMode()&&(t=o.SimilarityQueryType.SEARCH),e.changeSimilarityIndexType(i.getType(),t)})}).catch(i=>{console.log(i),e.repositoryError=getError(i)}).finally(()=>{ne.push(e.$on("repositoryIsSet",ie)),se(),e.loadingControllerResources=!1}))}))}angular.module("graphdb.framework.similarity.controllers.create",["graphdb.framework.utils.notifications","graphdb.framework.utils.localstorageadapter"]).controller("CreateSimilarityIdxCtrl",I),I.$inject=["$scope","toastr","$uibModal","$timeout","SimilarityRestService","SparqlRestService","$location","productInfo","Notifications","RDF4JRepositoriesRestService","LocalStorageAdapter","LSKeys","$translate","$repositories","EventEmitterService","ModalService"]},65:function(e,i,t){"use strict";t.r(i),t.d(i,"RenderingMode",(function(){return r}));const r={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},67:function(e,i,t){"use strict";t.r(i),t.d(i,"YasqeMode",(function(){return r}));const r={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}},68:function(e,i){function t(e,i){return{showToastMessageWithDelay:function(t){return new Promise(r=>{e.success(i.instant(t)),setTimeout(r,200)})}}}angular.module("graphdb.framework.utils.notifications",[]).factory("Notifications",t),t.$inject=["toastr","$translate"]},70:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexType",(function(){return r}));const r={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:e=>r.TEXT===e,isTextLiteralType:e=>r.TEXT_LITERAL===e,isPredicationType:e=>r.PREDICATION===e}},72:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexStatus",(function(){return r}));const r={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:e=>r.CREATING===e,isBuildingStatus:e=>r.BUILDING===e,isBuiltStatus:e=>r.BUILT===e,isRebuildingStatus:e=>r.REBUILDING===e,isOutdatedStatus:e=>r.OUTDATED===e,isInterruptedStatus:e=>r.INTERRUPTED===e,isObsoleteStatus:e=>r.OBSOLETE===e,isFailedStatus:e=>r.FAILED===e}},76:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndex",(function(){return s}));var r=t(70),n=t(72);class s{constructor(){this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=r.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""}isTextType(){return r.SimilarityIndexType.isTextType(this.type)}isTextLiteralType(){return r.SimilarityIndexType.isTextLiteralType(this.type)}isPredicationType(){return r.SimilarityIndexType.isPredicationType(this.type)}isCreatingStatus(){return n.SimilarityIndexStatus.isCreatingStatus(this.status)}isBuildingStatus(){return n.SimilarityIndexStatus.isBuildingStatus(this.status)}isBuiltStatus(){return n.SimilarityIndexStatus.isBuiltStatus(this.status)}isRebuildingStatus(){return n.SimilarityIndexStatus.isRebuildingStatus(this.status)}isOutdatedStatus(){return n.SimilarityIndexStatus.isOutdatedStatus(this.status)}isInterruptedStatus(){return n.SimilarityIndexStatus.isInterruptedStatus(this.status)}isObsoleteStatus(){return n.SimilarityIndexStatus.isObsoleteStatus(this.status)}isFailedStatus(){return n.SimilarityIndexStatus.isFailedStatus(this.status)}}}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[10,34,46,55,194,202,214,215,216,217,220,273],{104:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityQueryType",(function(){return r}));const r={DATA:"DATA",SEARCH:"SEARCH",ANALOGICAL:"ANALOGICAL"}},105:function(e,i,t){"use strict";t.r(i),t.d(i,"mapIndexesResponseToSimilarityIndex",(function(){return n}));var r=t(77);const n=e=>e.map(e=>{const i=new r.SimilarityIndex;return i.type=e.type,i.stopList=e.stopList,i.status=e.status,i.selectQuery=e.selectQuery,i.searchQuery=e.searchQuery,i.sameAs=e.sameAs,i.options=e.options,i.name=e.name,i.infer=e.infer,i.analyzer=e.analyzer,i.analogicalQuery=e.analogicalQuery,i})},221:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexError",(function(){return r}));class r extends Error{}},222:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexInfo",(function(){return y}));var r=t(77),n=t(104),s=t(65);const a=new RegExp("^[a-zA-Z0-9-_]+$");class y{constructor(){this.similarityIndex=new r.SimilarityIndex,this.isNameExist=!1,this.invalidSelectQueryType=!1,this.invalidSelectQuery=!1,this.invalidSearchQueryType=!1,this.invalidSearchQuery=!1,this.invalidAnalogicalQueryType=!1,this.invalidAnalogicalQuery=!1,this.selectedQueryType=n.SimilarityQueryType.DATA,this.selectedYasguiRenderMode=s.RenderingMode.YASQE}setQuery(e,i){const t=i||this.selectedQueryType;n.SimilarityQueryType.DATA!==t?n.SimilarityQueryType.SEARCH!==t?n.SimilarityQueryType.ANALOGICAL===t&&(this.similarityIndex.analogicalQuery=e):this.similarityIndex.searchQuery=e:this.similarityIndex.selectQuery=e}getQuery(e){switch(e||this.selectedQueryType){case n.SimilarityQueryType.DATA:return this.similarityIndex.selectQuery;case n.SimilarityQueryType.SEARCH:return this.similarityIndex.searchQuery;case n.SimilarityQueryType.ANALOGICAL:return this.similarityIndex.analogicalQuery}}markInvalidQuery(e,i=!0){const t=e||this.selectedQueryType;n.SimilarityQueryType.DATA!==t?n.SimilarityQueryType.SEARCH!==t?n.SimilarityQueryType.ANALOGICAL===t&&(this.invalidAnalogicalQuery=i):this.invalidSearchQuery=i:this.invalidSelectQuery=i}markInvalidQueryType(e,i=!0){const t=e||this.selectedQueryType;n.SimilarityQueryType.DATA!==t?n.SimilarityQueryType.SEARCH!==t?n.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 n.SimilarityQueryType.DATA===this.selectedQueryType}isSearchQueryTypeSelected(){return n.SimilarityQueryType.SEARCH===this.selectedQueryType}isAnalogicalQueryTypeSelected(){return n.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 a.test(this.similarityIndex.name)}hasSelectQuery(){return!!this.similarityIndex.selectQuery}hasSearchQuery(){return!!this.similarityIndex.searchQuery}hasAnalogicalQuery(){return!!this.similarityIndex.analogicalQuery}isYasqeRenderMode(){return s.RenderingMode.YASQE===this.getSelectedYasguiRenderMode()}isYasrRenderMode(){return s.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}}},223:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityViewMode",(function(){return r}));const r={CREATE:"CREATE",EDIT:"EDIT",CLONE:"CLONE"}},245:function(e,i,t){"use strict";t.r(i);t(68),t(10),t(15);var r=t(105),n=t(14),s=t(65),a=t(67),y=t(223),o=t(104),l=t(70),d=t(221),u=t(94),c=t(222);function I(e,i,t,I,m,S,p,h,T,x,g,Q,E,A,f,v){e.productInfo=h,e.SimilarityQueryType=o.SimilarityQueryType,e.SimilarityIndexType=l.SimilarityIndexType,e.similarityIndexInfo=void 0,e.samples=void 0,e.yasguiConfig=void 0,e.saveOrUpdateExecuted=!1,e.loadingControllerResources=!1,e.helpHidden=1===g.get(Q.HIDE_SIMILARITY_HELP);let R=!1,L=void 0,w=void 0,C=void 0,M=y.SimilarityViewMode.CREATE;e.changeSimilarityIndexType=(i,t=o.SimilarityQueryType.DATA)=>{e.similarityIndexInfo.setType(i),e.similarityIndexInfo.isPredicationType()?e.samples=w[l.SimilarityIndexType.PREDICATION]:e.samples=w[l.SimilarityIndexType.TEXT],e.changeQueryTab(t).then(i=>{P(e.similarityIndexInfo),e.setEditorQuery(e.similarityIndexInfo.getQuery())})},e.changeQueryTab=i=>{const t=e.similarityIndexInfo.getSelectedQueryType();return t===i?Promise.resolve():(e.similarityIndexInfo.setSelectedQueryType(i),D(e.similarityIndexInfo,t).then(e=>Z(e,t)).then(e=>K(e,t)).catch(e=>{e instanceof d.SimilarityIndexError||console.log(e)}).finally(()=>{const i=H();e.similarityIndexInfo.setSelectedYasguiRenderMode(s.RenderingMode.YASQE),i.changeRenderMode(e.similarityIndexInfo.getSelectedYasguiRenderMode()),e.similarityIndexInfo.isDataQueryTypeSelected()?i.showYasqeActionButton([n.YasqeButtonName.INFER_STATEMENTS,n.YasqeButtonName.EXPANDS_RESULTS]):i.hideYasqeActionButton([n.YasqeButtonName.INFER_STATEMENTS,n.YasqeButtonName.EXPANDS_RESULTS]),i.setQuery(e.similarityIndexInfo.getQuery())}))},e.createSimilarityIndex=()=>{e.saveOrUpdateExecuted=!0,D(e.similarityIndexInfo).then(Z).then(K).then(z).then(k).then(e=>_(e.getSimilarityIndex())).catch(e=>{e instanceof d.SimilarityIndexError||i.error(getError(e),E.instant("similarity.could.not.get.indexes.error"))})},e.viewQuery=()=>{D(e.similarityIndexInfo).then(z).then(N).then(O).catch(e=>i.error(getError(e)))},e.preview=()=>{D(e.similarityIndexInfo).then(K).then(Z).then(()=>{const i=H();e.similarityIndexInfo.setSelectedYasguiRenderMode(s.RenderingMode.YASR),i.query(e.similarityIndexInfo.getSelectedYasguiRenderMode())})},e.saveSearchQuery=function(){e.saveOrUpdateExecuted=!0,R||V(),e.saveOrUpdateExecuted=!0,D(e.similarityIndexInfo).then(F).then(Z).then(K).then(X).then(J).then(b).then(U).catch(e=>{e instanceof d.SimilarityIndexError||i.error(getError(e),E.instant("similarity.change.query.error"))})},e.setEditorQuery=i=>{e.similarityIndexInfo.markInvalidQuery(void 0,!1),e.similarityIndexInfo.markInvalidQueryType(void 0,!1),e.yasguiConfig?H().setQuery(i):q({initialQuery:i||" "})},e.similarityIndexNameChanged=()=>{e.setDirty(),e.similarityIndexInfo.isNameExist=!1},e.queryChanged=()=>{e.setDirty(),e.similarityIndexInfo.markInvalidQuery(void 0,!1),e.similarityIndexInfo.markInvalidQueryType(void 0,!1)},e.isCloneViewMode=()=>y.SimilarityViewMode.CLONE===M,e.isEditViewMode=()=>y.SimilarityViewMode.EDIT===M,e.isCreateViewMode=()=>y.SimilarityViewMode.CREATE===M,e.setDirty=()=>{R=!0},e.isYasqeShown=()=>e.similarityIndexInfo&&e.similarityIndexInfo.isYasqeRenderMode(),e.isYasrShown=()=>e.similarityIndexInfo&&e.similarityIndexInfo.isYasrRenderMode(),e.showEditor=()=>{const i=H();i.abortQuery().then(()=>i.setQuery(e.similarityIndexInfo.getQuery())).then(()=>(e.similarityIndexInfo.setSelectedYasguiRenderMode(s.RenderingMode.YASQE),i.changeRenderMode(e.similarityIndexInfo.getSelectedYasguiRenderMode())))},e.toggleHelp=i=>{void 0===i&&(i=g.get(Q.HIDE_SIMILARITY_HELP)),1!==i?(g.set(Q.HIDE_SIMILARITY_HELP,1),e.helpHidden=!0):(g.set(Q.HIDE_SIMILARITY_HELP,0),e.helpHidden=!1)},e.getCloseBtnMsg=function(){let i=e.editSearchQuery?E.instant("similarity.query.edition.msg"):E.instant("similarity.index.creation.msg");return E.instant("similarity.close.btn.msg",{operation:i})},e.hasQueryError=()=>{const i=e.similarityIndexInfo.getSelectedQueryType();return o.SimilarityQueryType.DATA===i?e.hasSelectQueryError():o.SimilarityQueryType.SEARCH===i?e.hasSearchQueryError():o.SimilarityQueryType.ANALOGICAL===i&&e.hasAnalogicalQueryError()},e.hasSelectQueryError=()=>!e.similarityIndexInfo.hasSelectQuery()||e.similarityIndexInfo.invalidSelectQuery||e.similarityIndexInfo.invalidSelectQueryType,e.hasSearchQueryError=()=>!e.similarityIndexInfo.hasSearchQuery()||e.similarityIndexInfo.invalidSearchQuery||e.similarityIndexInfo.invalidSearchQueryType,e.hasAnalogicalQueryError=()=>!e.similarityIndexInfo.hasAnalogicalQuery()||e.similarityIndexInfo.invalidAnalogicalQuery||e.similarityIndexInfo.invalidAnalogicalQueryType,e.getQueryErrorMessage=()=>{const i=e.similarityIndexInfo.getSelectedQueryType();let t=!1,r=!1,n=!1;o.SimilarityQueryType.DATA===i?(t=!e.similarityIndexInfo.hasSelectQuery(),r=e.similarityIndexInfo.invalidSelectQueryType,n=e.similarityIndexInfo.invalidSelectQuery):o.SimilarityQueryType.SEARCH===i?(t=!e.similarityIndexInfo.hasSearchQuery(),r=e.similarityIndexInfo.invalidSearchQueryType,n=e.similarityIndexInfo.invalidSearchQuery):o.SimilarityQueryType.ANALOGICAL===i&&(t=!e.similarityIndexInfo.hasAnalogicalQuery(),r=e.similarityIndexInfo.invalidAnalogicalQueryType,n=e.similarityIndexInfo.invalidAnalogicalQuery);const s={queryType:E.instant(`similarity.query.type.${i}.name`)};return t?E.instant("similarity.error.query.empty",s):n?E.instant("similarity.error.query.invalid",s):r?E.instant("similarity.error.query.invalid_type",s):""};const D=(e,i)=>H().getQuery().then(t=>e.setQuery(t,i)).then(()=>e),N=e=>m.getQuery({indexName:e.getName(),indexOptions:e.getOptions(),query:e.getQuery(),indexStopList:e.getStopList(),queryInference:e.getInference(),querySameAs:e.getSameAs(),viewType:e.getSelectedQueryType(),indexAnalyzer:e.getAnalyzer()}).then(e=>e.data),O=e=>{e&&t.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return e}}})},P=i=>{const t=i.getType();if(!e.isEditViewMode()&&L&&(i.setQuery(L[t],o.SimilarityQueryType.SEARCH),i.setQuery(L.analogical,o.SimilarityQueryType.ANALOGICAL)),w)if(l.SimilarityIndexType.PREDICATION===t){const e=w[l.SimilarityIndexType.PREDICATION].predication;i.setQuery(e,o.SimilarityQueryType.DATA)}else{const e=w[l.SimilarityIndexType.TEXT].literals;i.setQuery(e,o.SimilarityQueryType.DATA)}},Y=()=>{const t=new c.SimilarityIndexInfo;t.setName(G()),t.setType(j()),t.setSelectedQueryType(e.isEditViewMode()?o.SimilarityQueryType.SEARCH:o.SimilarityQueryType.DATA);const n=p.search().options;n?t.setOptions(n):t.setOptions(t.isTextType()?"-termweight idf":""),P(t);const s=p.search().searchQuery;s&&t.setQuery(s,o.SimilarityQueryType.SEARCH);const a=p.search().selectQuery;a&&t.setQuery(a,o.SimilarityQueryType.DATA);const y=p.search().analogicalQuery;if(y&&t.setQuery(y,o.SimilarityQueryType.ANALOGICAL),t.isTextType()){t.setStopList(p.search().stopList),t.setAnalyzer(p.search().analyzer);const e=$(t.getSimilarityIndex(),"-literal_index");void 0!==e&&t.setLiteralIndex(e)}return t.isPredicationType()?m.getIndexes().then(i=>{const n=Object(r.mapIndexesResponseToSimilarityIndex)(i.data).filter(e=>e.isTextLiteralType()&&(e.isBuiltStatus()||e.isOutdatedStatus())).map(e=>e.name);if(e.literalIndexes=["no-index"].concat(n),void 0===t.getInputIndex()){const i=$(t.getSimilarityIndex(),"-input_index");if(void 0!==i)for(let r=0;r<e.literalIndexes.length;r++)i===e.literalIndexes[r]&&t.setInputIndex(e.literalIndexes[r])}return void 0===t.getInputIndex()&&t.setInputIndex(e.literalIndexes[0]),t}).catch((function(e){const t=getError(e);i.error(t,E.instant("similarity.could.not.get.indexes.error"))})):Promise.resolve(t)},q=i=>{const t={endpoint:B,componentId:"create-index",showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showYasqeActionButtons:!1,showQueryButton:!1,downloadAsOn:!1,showResultInfo:!1,showYasqeResizer:!1,pageSize:100,prefixes:C,render:e.similarityIndexInfo.getSelectedYasguiRenderMode(),yasqeActionButtons:e.isEditViewMode()||!e.similarityIndexInfo.isDataQueryTypeSelected()?n.DISABLE_YASQE_BUTTONS_CONFIGURATION:n.INFERRED_AND_SAME_AS_BUTTONS_CONFIGURATION,maxPersistentResponseSize:0,yasqeMode:e.canWriteActiveRepo()?a.YasqeMode.WRITE:a.YasqeMode.PROTECTED},r={};angular.extend(r,t,i),e.yasguiConfig=r},B=()=>"repositories/"+A.getActiveRepository(),_=t=>{if(void 0!==e.literalIndexes){const i=t.inputIndex;i!==e.literalIndexes[0]&&(t.options=t.options+(""===t.options?"":" ")+"-input_index "+i)}return"true"===t.isLiteralIndex&&(t.options=t.options+(""===t.options?"":" ")+"-literal_index true",t.type=l.SimilarityIndexType.TEXT_LITERAL),V(),R=!1,m.createIndex("POST",t.name,t.options,t.selectQuery,t.searchQuery,t.isPredicationType()?t.analogicalQuery:"",t.stopList,t.infer,t.sameAs,t.type,t.analyzer).then(()=>(i.success(E.instant("similarity.create.index.successfully")),t)).catch((function(e){const t=getError(e);return i.error(t,E.instant("similarity.create.index.error")),console.log(t),Promise.reject(new d.SimilarityIndexError("Could not create index."))}))},U=async e=>{await T.showToastMessageWithDelay(e?"similarity.changed.search.query.msg":"similarity.changed.analogical.query.msg"),p.url("similarity")},b=e=>{const i=e.isSearchQueryTypeSelected();let t={name:e.getSimilarityIndex().name,changedQuery:e.getQuery(),isSearchQuery:i};return m.saveSearchQuery(JSON.stringify(t)).then(()=>(R=!1,i))},V=()=>{setTimeout(()=>p.url("similarity"),100)},H=()=>n.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor"),G=()=>{const i=p.search().name||"";return e.isCloneViewMode()?`${E.instant("similarity.copy_of.prefix")}_${i}`:i},j=()=>{const e=p.search().type;return void 0===e||e.startsWith("text")?l.SimilarityIndexType.TEXT:e},$=(e,i)=>{const t=e.options.split(" ");for(let r=0;r<t.length;r++)if(t[r]===i&&r+1<t.length){const i=t[r+1];return delete t[r],delete t[r+1],e.options=t.join(" "),i}},z=e=>Promise.all([F(e).then(W).then(X).then(J).then(K).then(Z)]).then(()=>e),k=e=>m.getIndexes().then(i=>i.data.some(i=>i.name===e.getName())?(e.isNameExist=!0,Promise.reject(new d.SimilarityIndexError("Similarity index name exists."))):e),F=e=>e.getSimilarityIndex().name?e.isNameValid()?Promise.resolve(e):Promise.reject(new d.SimilarityIndexError("Invalid similarity name.")):Promise.reject(new d.SimilarityIndexError("Missing similarity name.")),W=e=>e.hasSelectQuery()?e.invalidSelectQuery?Promise.reject(new d.SimilarityIndexError("Invalid select query")):e.invalidSelectQueryType?Promise.reject(new d.SimilarityIndexError("Invalid select query type")):Promise.resolve(e):Promise.reject(new d.SimilarityIndexError("Missing select query.")),X=e=>e.hasSearchQuery()?e.invalidSearchQuery?Promise.reject(new d.SimilarityIndexError("Invalid search query")):e.invalidSearchQueryType?Promise.reject(new d.SimilarityIndexError("Invalid search query type")):Promise.resolve(e):Promise.reject(new d.SimilarityIndexError("Missing search query.")),J=e=>e.isPredicationType()&&!e.hasAnalogicalQuery()?Promise.reject(new d.SimilarityIndexError("Missing analogical query.")):e.invalidAnalogicalQuery?Promise.reject(new d.SimilarityIndexError("Invalid analogical query")):e.invalidAnalogicalQueryType?Promise.reject(new d.SimilarityIndexError("Invalid analogical query type")):Promise.resolve(e),K=(e,i)=>H().getQueryType().then(t=>u.QueryType.SELECT!==t?(e.markInvalidQueryType(i),Promise.reject(new d.SimilarityIndexError("Query type is not valid."))):(e.markInvalidQueryType(i,!1),e)),Z=(e,i)=>H().isQueryValid().then(t=>t?(e.markInvalidQuery(i,!1),e):(e.markInvalidQuery(i),Promise.reject(new d.SimilarityIndexError("Query is not valid.")))),ee=(e,i,t,r)=>{v.openSimpleModal({title:e,message:i,warning:!0}).result.then((function(){angular.isFunction(t)&&t()}),(function(){angular.isFunction(r)&&r()}))},ie=()=>{e.isYasrShown()&&e.similarityIndexInfo.isDataQueryTypeSelected()&&e.showEditor(),e.canEditActiveRepo=e.canWriteActiveRepo();const i={...e.yasguiConfig,yasqeMode:e.canWriteActiveRepo()};q(i)},te=e=>{R&&(e.returnValue=!0)},re=()=>{window.removeEventListener("beforeunload",te),ne.forEach(e=>e())},ne=[];ne.push(f.subscribe("repositoryWillChangeEvent",i=>new Promise((function(t){if(e.isCreateViewMode()||e.isCloneViewMode())return void t(i);const r=()=>{R=!1,V(),t(i)};if(R){const e=()=>{i.cancel=!0,t(i)},n=E.instant("common.confirm"),s=E.instant("similarity.warning.unsaved.changes");ee(n,s,r,e)}else r()})))),ne.push(e.$on("$locationChangeStart",(e,i)=>{if(R){e.preventDefault();const t=E.instant("common.confirm"),r=E.instant("similarity.warning.unsaved.changes");ee(t,r,()=>{re();const e=p.absUrl().length-p.url().length,t=i.substring(e);p.path(t)})}else re()})),ne.push(e.$on("$destroy",re)),window.addEventListener("beforeunload",te),M=(()=>{if(void 0===p.search().name)return y.SimilarityViewMode.CREATE;const e=p.search().editSearchQuery;return void 0===e?y.SimilarityViewMode.CLONE:"string"==typeof e?"false"===e?y.SimilarityViewMode.CLONE:y.SimilarityViewMode.EDIT:e?y.SimilarityViewMode.EDIT:y.SimilarityViewMode.CLONE})();const se=e.$watch((function(){return e.getActiveRepositoryObject()}),(function(i){i&&(e.loadingControllerResources=!0,Promise.all([m.getSearchQueries(),m.getSamples(),A.getPrefixes(i.id)]).then(([i,t,r])=>{e.canEditActiveRepo=e.canWriteActiveRepo(),L=i?i.data:[],w=t?t.data:[],C=r,Y().then(i=>{e.similarityIndexInfo=i;let t=o.SimilarityQueryType.DATA;e.isEditViewMode()&&(t=o.SimilarityQueryType.SEARCH),e.changeSimilarityIndexType(i.getType(),t)})}).catch(i=>{console.log(i),e.repositoryError=getError(i)}).finally(()=>{ne.push(e.$on("repositoryIsSet",ie)),se(),e.loadingControllerResources=!1}))}))}angular.module("graphdb.framework.similarity.controllers.create",["graphdb.framework.utils.notifications","graphdb.framework.utils.localstorageadapter"]).controller("CreateSimilarityIdxCtrl",I),I.$inject=["$scope","toastr","$uibModal","$timeout","SimilarityRestService","SparqlRestService","$location","productInfo","Notifications","RDF4JRepositoriesRestService","LocalStorageAdapter","LSKeys","$translate","$repositories","EventEmitterService","ModalService"]},65:function(e,i,t){"use strict";t.r(i),t.d(i,"RenderingMode",(function(){return r}));const r={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},67:function(e,i,t){"use strict";t.r(i),t.d(i,"YasqeMode",(function(){return r}));const r={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}},68:function(e,i){function t(e,i){return{showToastMessageWithDelay:function(t){return new Promise(r=>{e.success(i.instant(t)),setTimeout(r,200)})}}}angular.module("graphdb.framework.utils.notifications",[]).factory("Notifications",t),t.$inject=["toastr","$translate"]},70:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexType",(function(){return r}));const r={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:e=>r.TEXT===e,isTextLiteralType:e=>r.TEXT_LITERAL===e,isPredicationType:e=>r.PREDICATION===e}},72:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndexStatus",(function(){return r}));const r={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:e=>r.CREATING===e,isBuildingStatus:e=>r.BUILDING===e,isBuiltStatus:e=>r.BUILT===e,isRebuildingStatus:e=>r.REBUILDING===e,isOutdatedStatus:e=>r.OUTDATED===e,isInterruptedStatus:e=>r.INTERRUPTED===e,isObsoleteStatus:e=>r.OBSOLETE===e,isFailedStatus:e=>r.FAILED===e}},77:function(e,i,t){"use strict";t.r(i),t.d(i,"SimilarityIndex",(function(){return s}));var r=t(70),n=t(72);class s{constructor(){this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=r.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""}isTextType(){return r.SimilarityIndexType.isTextType(this.type)}isTextLiteralType(){return r.SimilarityIndexType.isTextLiteralType(this.type)}isPredicationType(){return r.SimilarityIndexType.isPredicationType(this.type)}isCreatingStatus(){return n.SimilarityIndexStatus.isCreatingStatus(this.status)}isBuildingStatus(){return n.SimilarityIndexStatus.isBuildingStatus(this.status)}isBuiltStatus(){return n.SimilarityIndexStatus.isBuiltStatus(this.status)}isRebuildingStatus(){return n.SimilarityIndexStatus.isRebuildingStatus(this.status)}isOutdatedStatus(){return n.SimilarityIndexStatus.isOutdatedStatus(this.status)}isInterruptedStatus(){return n.SimilarityIndexStatus.isInterruptedStatus(this.status)}isObsoleteStatus(){return n.SimilarityIndexStatus.isObsoleteStatus(this.status)}isFailedStatus(){return n.SimilarityIndexStatus.isFailedStatus(this.status)}}}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[100],{254:function(e,r){PluginRegistry.add("route",{url:"/monitor/backup-and-restore",module:"graphdb.framework.monitoring.backupandrestore",path:"backup-and-restore/app",chunk:"monitor-backup-and-restore",controller:"BackupAndRestoreCtrl",templateUrl:"pages/monitor/backup-and-restore.html",title:"view.monitoring.backup_and_restore.title",helpInfo:"view.monitoring.backup_and_restore.helpInfo"}),PluginRegistry.add("main.menu",{items:[{label:"Backup and Restore",labelKey:"menu.backup_and_restore.label",href:"monitor/backup-and-restore",order:2,parent:"Monitor",guideSelector:"sub-menu-backup-and-restore"}]})}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[100],{147:function(t,e){angular.module("graphdb.framework.chatgpt.controllers",["toastr","graphdb.framework.utils.localstorageadapter"]).controller("ChatGptCtrl",o).controller("ChatGptSettingsCtrl",n),o.$inject=["$scope","$http","$timeout","$translate","$uibModal","$repositories","toastr","ModalService","LocalStorageAdapter"];function o(t,e,o,n,r,s,i,a,c){function l(){o(()=>{document.getElementById("messages-scrollable").scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})},0)}function u(){t.history=[],t.askSettings={queryTemplate:{query:"string"},groundTruths:[],echoVectorQuery:!1,topK:5};const e=c.get("ttyg"),o=s.getActiveRepository();if(e&&e[o]){const n=e[o];n.history&&(t.history=n.history),t.connectorID=n.connectorID,n.askSettings&&(t.askSettings=n.askSettings)}l()}function g(){const e=c.get("ttyg")||{};e[s.getActiveRepository()]={history:t.history,connectorID:t.connectorID,askSettings:t.askSettings},c.set("ttyg",e)}t.helpTemplateUrl="js/angular/chatgpt/templates/chatInfo.html",t.getIcon=function(t){return"question"===t?"user":"assistant"===t?"data":"help"},t.ask=function(){if(!t.question.trim())return;const o=t.history.filter(t=>!t.error),n={connectorID:t.connectorID,question:t.question,askSettings:t.askSettings,history:o},r={role:"question",content:t.question};e.post("rest/chat/retrieval?repositoryID="+s.getActiveRepository(),n).then(e=>{t.history.pop(),e.data.forEach(e=>t.history.push(e))}).catch(t=>{r.error=!0,i.error(getError(t,0,100))}).finally(()=>{t.loader=!1,l(),g()}),t.history.push(r),t.loader=!0,l(),t.question=""},t.clear=function(){a.openSimpleModal({title:n.instant("common.confirm"),message:n.instant("ttyg.clear.history.confirmation"),warning:!0}).result.then((function(){t.history=[],g()}))},t.openSettings=function(){r.open({templateUrl:"js/angular/chatgpt/templates/modal/settings.html",controller:"ChatGptSettingsCtrl",size:"lg",resolve:{data:function(){return{askSettings:t.askSettings,connectorID:t.connectorID}}}}).result.then((function(e){t.connectorID=e.connectorID,t.askSettings=e.askSettings,g()}))},t.$on("repositoryIsSet",(function(){u()})),s.getActiveRepository()&&u()}function n(t,e,o,n){t.dialogTitle=e.instant("ttyg.settings.title"),t.save=function(){if(t.form.$valid){const e={queryTemplate:JSON.parse(t.queryTemplate),groundTruths:t.groundTruths.split("\n"),topK:t.topK,echoVectorQuery:t.echoVectorQuery};o.close({askSettings:e,connectorID:t.connectorID})}},t.cancel=function(){o.dismiss("cancel")},t.connectorID=n.connectorID,t.queryTemplate=JSON.stringify(n.askSettings.queryTemplate,null," "),t.topK=n.askSettings.topK,t.echoVectorQuery=n.askSettings.echoVectorQuery,t.groundTruths=n.askSettings.groundTruths.map(t=>t.trim()).filter(t=>""!==t).join("\n")}n.$inject=["$scope","$translate","$uibModalInstance","data"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[101],{147:function(t,e){angular.module("graphdb.framework.chatgpt.controllers",["toastr","graphdb.framework.utils.localstorageadapter"]).controller("ChatGptCtrl",o).controller("ChatGptSettingsCtrl",n),o.$inject=["$scope","$http","$timeout","$translate","$uibModal","$repositories","toastr","ModalService","LocalStorageAdapter"];function o(t,e,o,n,r,s,i,a,c){function l(){o(()=>{document.getElementById("messages-scrollable").scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})},0)}function u(){t.history=[],t.askSettings={queryTemplate:{query:"string"},groundTruths:[],echoVectorQuery:!1,topK:5};const e=c.get("ttyg"),o=s.getActiveRepository();if(e&&e[o]){const n=e[o];n.history&&(t.history=n.history),t.connectorID=n.connectorID,n.askSettings&&(t.askSettings=n.askSettings)}l()}function g(){const e=c.get("ttyg")||{};e[s.getActiveRepository()]={history:t.history,connectorID:t.connectorID,askSettings:t.askSettings},c.set("ttyg",e)}t.helpTemplateUrl="js/angular/chatgpt/templates/chatInfo.html",t.getIcon=function(t){return"question"===t?"user":"assistant"===t?"data":"help"},t.ask=function(){if(!t.question.trim())return;const o=t.history.filter(t=>!t.error),n={connectorID:t.connectorID,question:t.question,askSettings:t.askSettings,history:o},r={role:"question",content:t.question};e.post("rest/chat/retrieval?repositoryID="+s.getActiveRepository(),n).then(e=>{t.history.pop(),e.data.forEach(e=>t.history.push(e))}).catch(t=>{r.error=!0,i.error(getError(t,0,100))}).finally(()=>{t.loader=!1,l(),g()}),t.history.push(r),t.loader=!0,l(),t.question=""},t.clear=function(){a.openSimpleModal({title:n.instant("common.confirm"),message:n.instant("ttyg.clear.history.confirmation"),warning:!0}).result.then((function(){t.history=[],g()}))},t.openSettings=function(){r.open({templateUrl:"js/angular/chatgpt/templates/modal/settings.html",controller:"ChatGptSettingsCtrl",size:"lg",resolve:{data:function(){return{askSettings:t.askSettings,connectorID:t.connectorID}}}}).result.then((function(e){t.connectorID=e.connectorID,t.askSettings=e.askSettings,g()}))},t.$on("repositoryIsSet",(function(){u()})),s.getActiveRepository()&&u()}function n(t,e,o,n){t.dialogTitle=e.instant("ttyg.settings.title"),t.save=function(){if(t.form.$valid){const e={queryTemplate:JSON.parse(t.queryTemplate),groundTruths:t.groundTruths.split("\n"),topK:t.topK,echoVectorQuery:t.echoVectorQuery};o.close({askSettings:e,connectorID:t.connectorID})}},t.cancel=function(){o.dismiss("cancel")},t.connectorID=n.connectorID,t.queryTemplate=JSON.stringify(n.askSettings.queryTemplate,null," "),t.topK=n.askSettings.topK,t.echoVectorQuery=n.askSettings.echoVectorQuery,t.groundTruths=n.askSettings.groundTruths.map(t=>t.trim()).filter(t=>""!==t).join("\n")}n.$inject=["$scope","$translate","$uibModalInstance","data"]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[101],{256:function(e,t){PluginRegistry.add("route",[{url:"/chatgpt",templateUrl:"js/angular/chatgpt/templates/chat.html",module:"graphdb.framework.chatgpt",path:"chatgpt/app",controller:"ChatGptCtrl",title:"menu.ttyg.label",helpInfo:"ttyg.helpInfo"}]),PluginRegistry.add("main.menu",{items:[{label:"Lab",labelKey:"menu.lab.label",href:"#",order:6,role:"IS_AUTHENTICATED_FULLY",icon:"fa fa-flask",guideSelector:"menu-lab"},{label:"Talk to Your Graph",labelKey:"menu.ttyg.label",href:"chatgpt",order:20,role:"ROLE_USER",parent:"Lab",guideSelector:"sub-menu-ttyg"}]})}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[102],{256:function(e,t){PluginRegistry.add("route",[{url:"/chatgpt",templateUrl:"js/angular/chatgpt/templates/chat.html",module:"graphdb.framework.chatgpt",path:"chatgpt/app",controller:"ChatGptCtrl",title:"menu.ttyg.label",helpInfo:"ttyg.helpInfo"}]),PluginRegistry.add("main.menu",{items:[{label:"Lab",labelKey:"menu.lab.label",href:"#",order:6,role:"IS_AUTHENTICATED_FULLY",icon:"fa fa-flask",guideSelector:"menu-lab"},{label:"Talk to Your Graph",labelKey:"menu.ttyg.label",href:"chatgpt",order:20,role:"ROLE_USER",parent:"Lab",guideSelector:"sub-menu-ttyg"}]})}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[102],{153:function(o,n){function t(o,n,t,e,a){o.newLocation={uri:"",authType:"signature",username:"",password:"",active:!1},o.docBase=function(o){return"https://graphdb.ontotext.com/documentation/"+o.productShortVersion}(e),o.isValidLocation=()=>(o.newLocation.uri.length<6||0===o.newLocation.uri.indexOf("http:")||0===o.newLocation.uri.indexOf("https:"))&&o.newLocation.uri.indexOf("/repositories")<=-1,o.ok=()=>{o.newLocation?n.close(o.newLocation):t.error(a.instant("location.cannot.be.empty.error"))},o.cancel=()=>{n.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.add-location",[]).controller("AddLocationFromClusterCtrl",t),t.$inject=["$scope","$uibModalInstance","toastr","productInfo","$translate"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[103],{153:function(o,n){function t(o,n,t,e,a){o.newLocation={uri:"",authType:"signature",username:"",password:"",active:!1},o.docBase=function(o){return"https://graphdb.ontotext.com/documentation/"+o.productShortVersion}(e),o.isValidLocation=()=>(o.newLocation.uri.length<6||0===o.newLocation.uri.indexOf("http:")||0===o.newLocation.uri.indexOf("https:"))&&o.newLocation.uri.indexOf("/repositories")<=-1,o.ok=()=>{o.newLocation?n.close(o.newLocation):t.error(a.instant("location.cannot.be.empty.error"))},o.cancel=()=>{n.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.add-location",[]).controller("AddLocationFromClusterCtrl",t),t.$inject=["$scope","$uibModalInstance","toastr","productInfo","$translate"]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[103],{152:function(e,c){function l(e,c){e.forceDelete=!1,e.ok=()=>{c.close(e.forceDelete)},e.cancel=()=>{c.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.delete-cluster",[]).controller("DeleteClusterCtrl",l),l.$inject=["$scope","$uibModalInstance"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[104],{152:function(e,c){function l(e,c){e.forceDelete=!1,e.ok=()=>{c.close(e.forceDelete)},e.cancel=()=>{c.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.delete-cluster",[]).controller("DeleteClusterCtrl",l),l.$inject=["$scope","$uibModalInstance"]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[104],{149:function(e,o){function s(e,o,s){const n=_.cloneDeep(s.clusterModel);e.clusterNodes=n.nodes,e.clusterNodes.forEach(e=>e.shouldRemove=!1),e.nodesToRemoveCount=0,e.leftNodesLessThanTwo=!1,e.toggleNode=(o,s)=>{s.shouldRemove=!s.shouldRemove,s.shouldRemove?e.nodesToRemoveCount++:e.nodesToRemoveCount--,e.leftNodesLessThanTwo=e.clusterNodes.length-e.nodesToRemoveCount<2},e.ok=()=>{const s=e.clusterNodes.filter(e=>e.shouldRemove);o.close(s)},e.cancel=()=>{o.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.remove-nodes",[]).controller("RemoveNodesDialogCtrl",s),s.$inject=["$scope","$uibModalInstance","data"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[105],{149:function(e,o){function s(e,o,s){const n=_.cloneDeep(s.clusterModel);e.clusterNodes=n.nodes,e.clusterNodes.forEach(e=>e.shouldRemove=!1),e.nodesToRemoveCount=0,e.leftNodesLessThanTwo=!1,e.toggleNode=(o,s)=>{s.shouldRemove=!s.shouldRemove,s.shouldRemove?e.nodesToRemoveCount++:e.nodesToRemoveCount--,e.leftNodesLessThanTwo=e.clusterNodes.length-e.nodesToRemoveCount<2},e.ok=()=>{const s=e.clusterNodes.filter(e=>e.shouldRemove);o.close(s)},e.cancel=()=>{o.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers.remove-nodes",[]).controller("RemoveNodesDialogCtrl",s),s.$inject=["$scope","$uibModalInstance","data"]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[105],{79:function(n,e,t){"use strict";t.r(e),t.d(e,"UPDATE_CLUSTER",(function(){return u})),t.d(e,"DELETE_CLUSTER",(function(){return r})),t.d(e,"CLICK_IN_VIEW",(function(){return E})),t.d(e,"NODE_SELECTED",(function(){return c})),t.d(e,"CREATE_CLUSTER",(function(){return d})),t.d(e,"MODEL_UPDATED",(function(){return o}));const u="updateCluster",r="deleteCluster",E="clickInView",c="nodeSelected",d="createCluster",o="modelUpdated"}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[106],{80:function(n,e,t){"use strict";t.r(e),t.d(e,"UPDATE_CLUSTER",(function(){return u})),t.d(e,"DELETE_CLUSTER",(function(){return r})),t.d(e,"CLICK_IN_VIEW",(function(){return E})),t.d(e,"NODE_SELECTED",(function(){return c})),t.d(e,"CREATE_CLUSTER",(function(){return d})),t.d(e,"MODEL_UPDATED",(function(){return o}));const u="updateCluster",r="deleteCluster",E="clickInView",c="nodeSelected",d="createCluster",o="modelUpdated"}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[106],{258:function(e,t){PluginRegistry.add("route",[{url:"/cluster",module:"graphdb.framework.clustermanagement",chunk:"clustermanagement",path:"clustermanagement/app",controller:"ClusterManagementCtrl",templateUrl:"pages/cluster-management/clusterInfo.html",helpInfo:"view.clusterManagement.helpInfo",title:"view.clusterManagement.title"}]),PluginRegistry.add("main.menu",{items:[{label:"Cluster",labelKey:"menu.cluster.label",href:"cluster",order:20,role:"ROLE_USER",parent:"Setup",guideSelector:"sub-menu-cluster"}]})}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[107],{258:function(e,t){PluginRegistry.add("route",[{url:"/cluster",module:"graphdb.framework.clustermanagement",chunk:"clustermanagement",path:"clustermanagement/app",controller:"ClusterManagementCtrl",templateUrl:"pages/cluster-management/clusterInfo.html",helpInfo:"view.clusterManagement.helpInfo",title:"view.clusterManagement.title"}]),PluginRegistry.add("main.menu",{items:[{label:"Cluster",labelKey:"menu.cluster.label",href:"cluster",order:20,role:"ROLE_USER",parent:"Setup",guideSelector:"sub-menu-cluster"}]})}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[107],{148:function(e,n){function t(e){let n,t=!1;function i(){return t}function r(n){t=n,e.emit("showClusterConfigurationPanel",i())}function o(){return n}return{updateClusterViewD3Container:function(t){n=t,e.emit("clusterViewD3ContainerChanged",o())},getClusterViewD3Container:o,onClusterViewD3ContainerUpdated:function(n){return e.subscribe("clusterViewD3ContainerChanged",()=>n(o()))},getShowClusterConfigurationPanel:i,setShowClusterConfigurationPanel:r,showClusterConfigurationPanel:function(){r(!0)},hideClusterConfigurationPanel:function(){r(!1)},onShowClusterConfigurationPanel:function(n){return e.subscribe("showClusterConfigurationPanel",()=>n(i()))}}}angular.module("graphdb.framework.clustermanagement.services.cluster-view-context-service",[]).factory("ClusterViewContextService",t),t.$inject=["EventEmitterService"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[108],{148:function(e,n){function t(e){let n,t=!1;function i(){return t}function r(n){t=n,e.emit("showClusterConfigurationPanel",i())}function o(){return n}return{updateClusterViewD3Container:function(t){n=t,e.emit("clusterViewD3ContainerChanged",o())},getClusterViewD3Container:o,onClusterViewD3ContainerUpdated:function(n){return e.subscribe("clusterViewD3ContainerChanged",()=>n(o()))},getShowClusterConfigurationPanel:i,setShowClusterConfigurationPanel:r,showClusterConfigurationPanel:function(){r(!0)},hideClusterConfigurationPanel:function(){r(!1)},onShowClusterConfigurationPanel:function(n){return e.subscribe("showClusterConfigurationPanel",()=>n(i()))}}}angular.module("graphdb.framework.clustermanagement.services.cluster-view-context-service",[]).factory("ClusterViewContextService",t),t.$inject=["EventEmitterService"]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[108],{78:function(t,r,e){"use strict";e.r(r);e(33);function n(t,r,e,n,o){return{addLocation:function(){let t;return e.open({templateUrl:"js/angular/templates/modal/add-location.html",windowClass:"addLocationDialog",controller:"AddLocationFromClusterCtrl"}).result.then(e=>(t=e,t.isLocal=!1,t.endpoint=t.uri,function(t){let e;return n.addLocation(t).catch(t=>{const e=getError(t.data,t.status);return r.error(e,o.instant("common.error")),!1}).then(t=>!!t&&a()).then(r=>{if(!1!==r)return e=r.find(r=>r.endpoint===t.uri),e})}(t)))},getLocationsWithRpcAddresses:a};function a(){return n.getLocations().then((function(t){return t.data.map(t=>({isLocal:t.local,endpoint:t.uri,rpcAddress:t.rpcAddress||"",error:t.errorMsg}))})).catch((function(t){const e=getError(t.data,t.status);r.error(e,o.instant("common.error"))})).then(t=>{if(t)return function(t){const r=t.filter(t=>!t.isLocal&&!t.error).map(t=>function(t){return n.getLocationRpcAddress(t.endpoint)}(t).then(r=>(t.rpcAddress=r.data,t.isAvailable=!0,t)).catch(r=>{t.isAvailable=!1,t.error=getError(r.data,r.status)}));return Promise.allSettled(r).then(()=>t)}(t)})}}angular.module("graphdb.framework.clustermanagement.services.remote-locations",[]).factory("RemoteLocationsService",n),n.$inject=["$http","toastr","$uibModal","LocationsRestService","$translate"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[109],{79:function(t,r,e){"use strict";e.r(r);e(33);function n(t,r,e,n,o){return{addLocation:function(){let t;return e.open({templateUrl:"js/angular/templates/modal/add-location.html",windowClass:"addLocationDialog",controller:"AddLocationFromClusterCtrl"}).result.then(e=>(t=e,t.isLocal=!1,t.endpoint=t.uri,function(t){let e;return n.addLocation(t).catch(t=>{const e=getError(t.data,t.status);return r.error(e,o.instant("common.error")),!1}).then(t=>!!t&&a()).then(r=>{if(!1!==r)return e=r.find(r=>r.endpoint===t.uri),e})}(t)))},getLocationsWithRpcAddresses:a};function a(){return n.getLocations().then((function(t){return t.data.map(t=>({isLocal:t.local,endpoint:t.uri,rpcAddress:t.rpcAddress||"",error:t.errorMsg}))})).catch((function(t){const e=getError(t.data,t.status);r.error(e,o.instant("common.error"))})).then(t=>{if(t)return function(t){const r=t.filter(t=>!t.isLocal&&!t.error).map(t=>function(t){return n.getLocationRpcAddress(t.endpoint)}(t).then(r=>(t.rpcAddress=r.data,t.isAvailable=!0,t)).catch(r=>{t.isAvailable=!1,t.error=getError(r.data,r.status)}));return Promise.allSettled(r).then(()=>t)}(t)})}}angular.module("graphdb.framework.clustermanagement.services.remote-locations",[]).factory("RemoteLocationsService",n),n.$inject=["$http","toastr","$uibModal","LocationsRestService","$translate"]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[109],{86:function(e,n,o){"use strict";function t(e,n,o,t,r){e.JSONLDModes=[{name:"framed",link:"http://www.w3.org/ns/json-ld#framed"},{name:"expanded",link:"http://www.w3.org/ns/json-ld#expanded"},{name:"flattened",link:"http://www.w3.org/ns/json-ld#flattened"},{name:"compacted",link:"http://www.w3.org/ns/json-ld#compacted"}],e.JSONLDModesNames=e.JSONLDModes.reduce((function(e,n){return e[n.name]=n.name,e}),{}),e.JSONLDFramedModes=[e.JSONLDModesNames.framed],e.JSONLDContextModes=[e.JSONLDModesNames.compacted,e.JSONLDModesNames.flattened],e.defaultMode=e.JSONLDModes.find(e=>"expanded"===e.name),e.currentMode=e.defaultMode,e.link=null,e.fileFormat=r.toLowerCase(),e.setJSONLDSettingsToLocalStorage=function(e,n,r){o.set(t.JSONLD_EXPORT_SETTINGS,JSON.stringify({jsonldFormName:e,jsonldFormLink:n,jsonldLink:r}))},e.cancel=function(){n.dismiss()},e.reset=function(){e.currentMode=e.defaultMode,e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.clearLinkInput=function(){e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.exportJsonLD=function(){e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link),n.close({currentMode:e.currentMode,link:e.link})};!function(){const n=o.get(t.JSONLD_EXPORT_SETTINGS);n&&(e.currentMode=e.JSONLDModes.find(e=>e.name===n.jsonldFormName),e.link=n.jsonldLink)}()}o.r(n),o.d(n,"ExportSettingsCtrl",(function(){return t})),angular.module("graphdb.framework.core.components.export-settings-modal",["graphdb.framework.utils.localstorageadapter"]).controller("ExportSettingsCtrl",t),t.$inject=["$scope","$uibModalInstance","LocalStorageAdapter","LSKeys","format"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[110],{86:function(e,n,o){"use strict";function t(e,n,o,t,r){e.JSONLDModes=[{name:"framed",link:"http://www.w3.org/ns/json-ld#framed"},{name:"expanded",link:"http://www.w3.org/ns/json-ld#expanded"},{name:"flattened",link:"http://www.w3.org/ns/json-ld#flattened"},{name:"compacted",link:"http://www.w3.org/ns/json-ld#compacted"}],e.JSONLDModesNames=e.JSONLDModes.reduce((function(e,n){return e[n.name]=n.name,e}),{}),e.JSONLDFramedModes=[e.JSONLDModesNames.framed],e.JSONLDContextModes=[e.JSONLDModesNames.compacted,e.JSONLDModesNames.flattened],e.defaultMode=e.JSONLDModes.find(e=>"expanded"===e.name),e.currentMode=e.defaultMode,e.link=null,e.fileFormat=r.toLowerCase(),e.setJSONLDSettingsToLocalStorage=function(e,n,r){o.set(t.JSONLD_EXPORT_SETTINGS,JSON.stringify({jsonldFormName:e,jsonldFormLink:n,jsonldLink:r}))},e.cancel=function(){n.dismiss()},e.reset=function(){e.currentMode=e.defaultMode,e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.clearLinkInput=function(){e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.exportJsonLD=function(){e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link),n.close({currentMode:e.currentMode,link:e.link})};!function(){const n=o.get(t.JSONLD_EXPORT_SETTINGS);n&&(e.currentMode=e.JSONLDModes.find(e=>e.name===n.jsonldFormName),e.link=n.jsonldLink)}()}o.r(n),o.d(n,"ExportSettingsCtrl",(function(){return t})),angular.module("graphdb.framework.core.components.export-settings-modal",["graphdb.framework.utils.localstorageadapter"]).controller("ExportSettingsCtrl",t),t.$inject=["$scope","$uibModalInstance","LocalStorageAdapter","LSKeys","format"]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[110],{160:function(e,t){function i(e){return{restrict:"A",scope:{min:"=",max:"="},link:function(t,i,n){const o={debounce:_.debounce,delay:100,loadDelay:10,compressor:1,min:n.fitTextMin||"inherit",max:n.fitTextMax||"inherit",calcSize:10,lines:1},a=i.parent(),c=i[0],l=c.style,f=window.getComputedStyle(i[0],null),r=i.children().length||o.lines,s="inherit"===o.min?f["font-size"]:o.min,d="inherit"===o.max?f["font-size"]:o.max,p=f["line-height"],u=f.display;let h;function m(){const e=o.calcSize*r/c.offsetWidth/r;return Math.max(Math.min(function(e){const t=parseFloat(getComputedStyle(a[0]).paddingLeft),i=parseFloat(getComputedStyle(a[0]).paddingRight);return(a[0].offsetWidth-(t+i))*e*o.compressor}(e),parseFloat(d)),parseFloat(s))}function w(){h&&e.cancel(h),h=e((function(){c.offsetHeight*c.offsetWidth!=0&&(l.fontSize=o.calcSize+"px",l.lineHeight="1",l.display="inline-block",l.fontSize=m()+"px",l.lineHeight=p,l.display=u)}),o.loadDelay)}t.$watch((function(){return[a[0].offsetWidth,i[0].offsetWidth].join("_")}),(function(){w()})),$(window).on("resize",o.debounce((function(){t.$apply(w)}),o.delay)),t.$on("$destroy",(function(){h&&e.cancel(h),$(window).off("resize")}))}}}angular.module("graphdb.framework.core.directives.fittext",[]).directive("fitText",i),i.$inject=["$timeout"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[111],{160:function(e,t){function i(e){return{restrict:"A",scope:{min:"=",max:"="},link:function(t,i,n){const o={debounce:_.debounce,delay:100,loadDelay:10,compressor:1,min:n.fitTextMin||"inherit",max:n.fitTextMax||"inherit",calcSize:10,lines:1},a=i.parent(),c=i[0],l=c.style,f=window.getComputedStyle(i[0],null),r=i.children().length||o.lines,s="inherit"===o.min?f["font-size"]:o.min,d="inherit"===o.max?f["font-size"]:o.max,p=f["line-height"],u=f.display;let h;function m(){const e=o.calcSize*r/c.offsetWidth/r;return Math.max(Math.min(function(e){const t=parseFloat(getComputedStyle(a[0]).paddingLeft),i=parseFloat(getComputedStyle(a[0]).paddingRight);return(a[0].offsetWidth-(t+i))*e*o.compressor}(e),parseFloat(d)),parseFloat(s))}function w(){h&&e.cancel(h),h=e((function(){c.offsetHeight*c.offsetWidth!=0&&(l.fontSize=o.calcSize+"px",l.lineHeight="1",l.display="inline-block",l.fontSize=m()+"px",l.lineHeight=p,l.display=u)}),o.loadDelay)}t.$watch((function(){return[a[0].offsetWidth,i[0].offsetWidth].join("_")}),(function(){w()})),$(window).on("resize",o.debounce((function(){t.$apply(w)}),o.delay)),t.$on("$destroy",(function(){h&&e.cancel(h),$(window).off("resize")}))}}}angular.module("graphdb.framework.core.directives.fittext",[]).directive("fitText",i),i.$inject=["$timeout"]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[111],{80:function(a,e){angular.module("graphdb.framework.core.directives.paginations",[]).directive("paginations",(function(){return{template:'<uib-pagination class="nav navbar-right" total-items="matchedElements.length" items-per-page="pageSize" ng-model="page" ng-change="changePagination()" direction-links="false" boundary-links="true" max-size="5" rotate="true"></uib-pagination>'}}))}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[112],{81:function(a,e){angular.module("graphdb.framework.core.directives.paginations",[]).directive("paginations",(function(){return{template:'<uib-pagination class="nav navbar-right" total-items="matchedElements.length" items-per-page="pageSize" ng-model="page" ng-change="changePagination()" direction-links="false" boundary-links="true" max-size="5" rotate="true"></uib-pagination>'}}))}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[112],{39:function(e,t){let a=0,o=setInterval((function(){a++,5===a&&$(".ot-splash div").text("GraphDB Workbench is still loading but it's taking longer than usual, please wait..."),10===a&&$(".ot-splash div").text("If the Workbench hasn't loaded yet, please try to clear your browser cache and reload the page."),(a>=10||"block"!==$(".ot-splash").css("display"))&&(clearInterval(o),o=void 0,a=void 0)}),2e3)}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[113],{39:function(e,t){let a=0,o=setInterval((function(){a++,5===a&&$(".ot-splash div").text("GraphDB Workbench is still loading but it's taking longer than usual, please wait..."),10===a&&$(".ot-splash div").text("If the Workbench hasn't loaded yet, please try to clear your browser cache and reload the page."),(a>=10||"block"!==$(".ot-splash").css("display"))&&(clearInterval(o),o=void 0,a=void 0)}),2e3)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[113],{161:function(n,e){function a(n){const e=["en","fr"];let a;return{getTranslations:()=>(a||(a={},e.forEach(e=>a[e]=n.getTranslationTable(e))),a)}}angular.module("graphdb.framework.core.services.translation-service",[]).service("TranslationService",a),a.$inject=["$translate"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[114],{161:function(n,e){function a(n){const e=["en","fr"];let a;return{getTranslations:()=>(a||(a={},e.forEach(e=>a[e]=n.getTranslationTable(e))),a)}}angular.module("graphdb.framework.core.services.translation-service",[]).service("TranslationService",a),a.$inject=["$translate"]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[114],{169:function(r,i,e){"use strict";e.r(i);e(29);angular.module("graphdb.framework.explore.directives",["graphdb.framework.utils.uriutils"]).directive("uri",["UriUtils",function(r){return{require:"ngModel",link:function(i,e,t,n){n.$parsers.unshift((function(i){if(!angular.isUndefined(i)&&i.length>0){const e=r.validateRdfUri(i);return n.$setValidity("searchStr",e),e?i:void 0}return n.$setValidity("searchStr",!0),i})),n.$formatters.unshift((function(i){return angular.isUndefined(i)||n.$setValidity("searchStr",r.validateRdfUri),i}))}}}])}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[115],{169:function(r,i,e){"use strict";e.r(i);e(29);angular.module("graphdb.framework.explore.directives",["graphdb.framework.utils.uriutils"]).directive("uri",["UriUtils",function(r){return{require:"ngModel",link:function(i,e,t,n){n.$parsers.unshift((function(i){if(!angular.isUndefined(i)&&i.length>0){const e=r.validateRdfUri(i);return n.$setValidity("searchStr",e),e?i:void 0}return n.$setValidity("searchStr",!0),i})),n.$formatters.unshift((function(i){return angular.isUndefined(i)||n.$setValidity("searchStr",r.validateRdfUri),i}))}}}])}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[115],{260:function(e,r){PluginRegistry.add("route",[{url:"/resource",module:"graphdb.framework.explore",chunk:"explore",path:"explore/app",controller:"ExploreCtrl",templateUrl:"pages/explore.html",title:"view.resource.title"},{url:"/resource/edit",module:"graphdb.framework.explore",chunk:"explore",path:"explore/app",controller:"EditResourceCtrl",templateUrl:"pages/edit.html",title:"view.resource.title"},{url:"/resource/:any*",module:"graphdb.framework.explore",chunk:"explore",path:"explore/app",controller:"ExploreCtrl",templateUrl:"pages/explore.html",title:"view.resource.title"}]),PluginRegistry.add("main.menu",{items:[{label:"Explore",labelKey:"menu.explore.label",href:"#",order:1,role:"IS_AUTHENTICATED_FULLY",icon:"icon-data",guideSelector:"menu-explore"}]})}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[116],{260:function(e,r){PluginRegistry.add("route",[{url:"/resource",module:"graphdb.framework.explore",chunk:"explore",path:"explore/app",controller:"ExploreCtrl",templateUrl:"pages/explore.html",title:"view.resource.title"},{url:"/resource/edit",module:"graphdb.framework.explore",chunk:"explore",path:"explore/app",controller:"EditResourceCtrl",templateUrl:"pages/edit.html",title:"view.resource.title"},{url:"/resource/:any*",module:"graphdb.framework.explore",chunk:"explore",path:"explore/app",controller:"ExploreCtrl",templateUrl:"pages/explore.html",title:"view.resource.title"}]),PluginRegistry.add("main.menu",{items:[{label:"Explore",labelKey:"menu.explore.label",href:"#",order:1,role:"IS_AUTHENTICATED_FULLY",icon:"icon-data",guideSelector:"menu-explore"}]})}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[116],{167:function(e,t){function a(){return{transformToTrig:function(e){let t="";const a={};for(let t=0;t<e.length;t++){const l=e[t];if(void 0===l.context?l.context="":l.context=_.trim(l.context),angular.isUndefined(a[l.context])){const e=[];e.push(l),a[l.context]=e}else a[l.context].push(l)}const l=Object.keys(a);for(let e=0;e<l.length;e++){const n=l[e];t+=""===n?"\n{":"\n<"+n+"> {";const w=a[n];for(let e=0;e<w.length;e++){const a=w[e];t+="\n\t<"+a.subject+"> <"+a.predicate+"> ";let l=a.object.value;"uri"===a.object.type?t+="<"+l+"> .":l.toString().includes('"')?("'"===l[0]&&(l='"'+l.slice(1,l.length)),l[l.length-1]&&(l=l.slice(0,-1)+'"'),t+="'''"+l+"'''"+(a.object.datatype?"^^<"+a.object.datatype+">":a.object.lang?"@"+a.object.lang:"")+" ."):t+='"""'+l+'"""'+(a.object.datatype?"^^<"+a.object.datatype+">":a.object.lang?"@"+a.object.lang:"")+" ."}t+="\n}"}return t},buildStatements:function(e,t){const a=[];if(!_.isEmpty(e.data)){const l=e.data[t],n=Object.keys(l);for(let e=0;e<n.length;e++){const w=n[e],o=l[w];for(let e=0;e<o.length;e++){const l=o[e];for(let e=0;e<l.graphs.length;e++){let n=l.graphs[e];"http://www.ontotext.com/explicit"===n&&(n=""),l.lang&&(l.datatype=""),l.datatype||(l.datatype=""),a.push({subject:t,predicate:w,object:{value:l.value,type:l.type,datatype:l.datatype,lang:l.lang},context:n})}}}}return a},getDatatypeOptions:function(){return[{value:"",label:"string"},{value:"http://www.w3.org/2001/XMLSchema#boolean",label:"boolean"},{value:"http://www.w3.org/2001/XMLSchema#decimal",label:"decimal"},{value:"http://www.w3.org/2001/XMLSchema#integer",label:"integer"},{value:"http://www.w3.org/2001/XMLSchema#double",label:"double"},{value:"http://www.w3.org/2001/XMLSchema#float",label:"float"},{value:"http://www.w3.org/2001/XMLSchema#date",label:"date"},{value:"http://www.w3.org/2001/XMLSchema#time",label:"time"},{value:"http://www.w3.org/2001/XMLSchema#dateTime",label:"date time"},{value:"http://www.w3.org/2001/XMLSchema#byte",label:"byte"},{value:"http://www.w3.org/2001/XMLSchema#short",label:"short"},{value:"http://www.w3.org/2001/XMLSchema#int",label:"int"},{value:"http://www.w3.org/2001/XMLSchema#long",label:"long"},{value:"http://www.w3.org/2001/XMLSchema#unsignedByte",label:"unsigned byte"},{value:"http://www.w3.org/2001/XMLSchema#unsignedShort",label:"unsigned short"},{value:"http://www.w3.org/2001/XMLSchema#unsignedInt",label:"unsigned int"},{value:"http://www.w3.org/2001/XMLSchema#unsignedLong",label:"unsigned long"},{value:"http://www.w3.org/2001/XMLSchema#positoveInteger",label:"positive integer"},{value:"http://www.w3.org/2001/XMLSchema#nonNegativeInteger",label:"non-negative integer"},{value:"http://www.w3.org/2001/XMLSchema#negativeInteger",label:"negative integer"},{value:"http://www.w3.org/2001/XMLSchema#nonPositiveInteger",label:"non-positive integer"},{value:"http://www.w3.org/2001/XMLSchema#gYear",label:"gYear"},{value:"http://www.w3.org/2001/XMLSchema#gMonth",label:"gMonth"},{value:"http://www.w3.org/2001/XMLSchema#gDay",label:"gDay"},{value:"http://www.w3.org/2001/XMLSchema#gYearMonth",label:"gYearMonth"},{value:"http://www.w3.org/2001/XMLSchema#gMonthDay",label:"gMonthDay"},{value:"http://www.w3.org/2001/XMLSchema#duration",label:"duration"},{value:"http://www.w3.org/2001/XMLSchema#hexBinary",label:"hex binary"},{value:"http://www.w3.org/2001/XMLSchema#base64Binary",label:"base64 binary"}]}}}angular.module("graphdb.framework.explore.services",[]).factory("StatementsService",a),a.$inject=[]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[117],{167:function(e,t){function a(){return{transformToTrig:function(e){let t="";const a={};for(let t=0;t<e.length;t++){const l=e[t];if(void 0===l.context?l.context="":l.context=_.trim(l.context),angular.isUndefined(a[l.context])){const e=[];e.push(l),a[l.context]=e}else a[l.context].push(l)}const l=Object.keys(a);for(let e=0;e<l.length;e++){const n=l[e];t+=""===n?"\n{":"\n<"+n+"> {";const w=a[n];for(let e=0;e<w.length;e++){const a=w[e];t+="\n\t<"+a.subject+"> <"+a.predicate+"> ";let l=a.object.value;"uri"===a.object.type?t+="<"+l+"> .":l.toString().includes('"')?("'"===l[0]&&(l='"'+l.slice(1,l.length)),l[l.length-1]&&(l=l.slice(0,-1)+'"'),t+="'''"+l+"'''"+(a.object.datatype?"^^<"+a.object.datatype+">":a.object.lang?"@"+a.object.lang:"")+" ."):t+='"""'+l+'"""'+(a.object.datatype?"^^<"+a.object.datatype+">":a.object.lang?"@"+a.object.lang:"")+" ."}t+="\n}"}return t},buildStatements:function(e,t){const a=[];if(!_.isEmpty(e.data)){const l=e.data[t],n=Object.keys(l);for(let e=0;e<n.length;e++){const w=n[e],o=l[w];for(let e=0;e<o.length;e++){const l=o[e];for(let e=0;e<l.graphs.length;e++){let n=l.graphs[e];"http://www.ontotext.com/explicit"===n&&(n=""),l.lang&&(l.datatype=""),l.datatype||(l.datatype=""),a.push({subject:t,predicate:w,object:{value:l.value,type:l.type,datatype:l.datatype,lang:l.lang},context:n})}}}}return a},getDatatypeOptions:function(){return[{value:"",label:"string"},{value:"http://www.w3.org/2001/XMLSchema#boolean",label:"boolean"},{value:"http://www.w3.org/2001/XMLSchema#decimal",label:"decimal"},{value:"http://www.w3.org/2001/XMLSchema#integer",label:"integer"},{value:"http://www.w3.org/2001/XMLSchema#double",label:"double"},{value:"http://www.w3.org/2001/XMLSchema#float",label:"float"},{value:"http://www.w3.org/2001/XMLSchema#date",label:"date"},{value:"http://www.w3.org/2001/XMLSchema#time",label:"time"},{value:"http://www.w3.org/2001/XMLSchema#dateTime",label:"date time"},{value:"http://www.w3.org/2001/XMLSchema#byte",label:"byte"},{value:"http://www.w3.org/2001/XMLSchema#short",label:"short"},{value:"http://www.w3.org/2001/XMLSchema#int",label:"int"},{value:"http://www.w3.org/2001/XMLSchema#long",label:"long"},{value:"http://www.w3.org/2001/XMLSchema#unsignedByte",label:"unsigned byte"},{value:"http://www.w3.org/2001/XMLSchema#unsignedShort",label:"unsigned short"},{value:"http://www.w3.org/2001/XMLSchema#unsignedInt",label:"unsigned int"},{value:"http://www.w3.org/2001/XMLSchema#unsignedLong",label:"unsigned long"},{value:"http://www.w3.org/2001/XMLSchema#positoveInteger",label:"positive integer"},{value:"http://www.w3.org/2001/XMLSchema#nonNegativeInteger",label:"non-negative integer"},{value:"http://www.w3.org/2001/XMLSchema#negativeInteger",label:"negative integer"},{value:"http://www.w3.org/2001/XMLSchema#nonPositiveInteger",label:"non-positive integer"},{value:"http://www.w3.org/2001/XMLSchema#gYear",label:"gYear"},{value:"http://www.w3.org/2001/XMLSchema#gMonth",label:"gMonth"},{value:"http://www.w3.org/2001/XMLSchema#gDay",label:"gDay"},{value:"http://www.w3.org/2001/XMLSchema#gYearMonth",label:"gYearMonth"},{value:"http://www.w3.org/2001/XMLSchema#gMonthDay",label:"gMonthDay"},{value:"http://www.w3.org/2001/XMLSchema#duration",label:"duration"},{value:"http://www.w3.org/2001/XMLSchema#hexBinary",label:"hex binary"},{value:"http://www.w3.org/2001/XMLSchema#base64Binary",label:"base64 binary"}]}}}angular.module("graphdb.framework.explore.services",[]).factory("StatementsService",a),a.$inject=[]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[117],{262:function(e,r){PluginRegistry.add("route",{url:"/graphs",module:"graphdb.framework.impex.export",path:"export/app",chunk:"export",controller:"ExportCtrl",templateUrl:"pages/export.html",title:"menu.graphs.overview.label",helpInfo:"view.export.ctr.helpInfo "}),PluginRegistry.add("main.menu",{items:[{label:"Explore",labelKey:"menu.explore.label",href:"#",order:1,role:"IS_AUTHENTICATED_FULLY",icon:"icon-data",guideSelector:"menu-explore"},{label:"Graphs overview",labelKey:"menu.graphs.overview.label",href:"graphs",order:0,role:"IS_AUTHENTICATED_FULLY",parent:"Explore",guideSelector:"sub-menu-graph-overview"}]})}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[118],{262:function(e,r){PluginRegistry.add("route",{url:"/graphs",module:"graphdb.framework.impex.export",path:"export/app",chunk:"export",controller:"ExportCtrl",templateUrl:"pages/export.html",title:"menu.graphs.overview.label",helpInfo:"view.export.ctr.helpInfo "}),PluginRegistry.add("main.menu",{items:[{label:"Explore",labelKey:"menu.explore.label",href:"#",order:1,role:"IS_AUTHENTICATED_FULLY",icon:"icon-data",guideSelector:"menu-explore"},{label:"Graphs overview",labelKey:"menu.graphs.overview.label",href:"graphs",order:0,role:"IS_AUTHENTICATED_FULLY",parent:"Explore",guideSelector:"sub-menu-graph-overview"}]})}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[118],{171:function(r,e,t){"use strict";t.r(e);t(7);angular.module("graphdb.framework.externalsync.directives",[]).directive("createProgress",(function(){return{templateUrl:"pages/connectorProgress.html",controller:"CreateProgressCtrl",restrict:"EA"}}))}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[119],{171:function(r,e,t){"use strict";t.r(e);t(7);angular.module("graphdb.framework.externalsync.directives",[]).directive("createProgress",(function(){return{templateUrl:"pages/connectorProgress.html",controller:"CreateProgressCtrl",restrict:"EA"}}))}}]);
@@ -1,2 +1,2 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[12,109,249,270],{170:function(e,t){angular.module("graphdb.framework.rest.export.service",[]).factory("ExportRestService",n),n.$inject=["$http","$repositories","$translate"];function n(e,t,n){return{getExportedStatementsAsJSONLD:function(t,n,o,r,a){const i=`repositories/${n.id}/statements?infer=false`,s={location:n.location},l={accept:a.accept};Array.isArray(t)?s.context=t.map(e=>decodeURIComponent(e)):t&&(s.context=decodeURIComponent(o[t.value].exportUri));r&&(s.authToken=r);a.link&&""!==a.link&&(l.link=a.link);return e({url:i,method:"GET",params:s,headers:l,responseType:"blob"}).then((function(e){const t=e.data;let n=e.headers()["content-disposition"].split("filename=")[1];return n=n.substring(0,n.length),{data:t,filename:n}}))}}}},241:function(e,t,n){"use strict";n.r(t);n(7),n(26),n(27),n(96),n(170);var o=n(463),r=n(0),a=n(64),i=n(86);angular.module("graphdb.framework.impex.export.controllers",["ngCookies","ui.bootstrap","toastr","graphdb.framework.core.services.repositories","graphdb.framework.core.services.jwtauth","graphdb.workbench.utils.filetypes","graphdb.framework.rest.export.service"]).controller("ExportCtrl",["$scope","$http","$location","$timeout","ModalService","filterFilter","$repositories","toastr","ExportRestService","RDF4JRepositoriesRestService","FileTypes","$translate","AuthTokenService","$uibModal",function(e,t,n,s,l,p,c,d,u,g,f,h,m,x){e.getActiveRepository=function(){return c.getActiveRepository()},e.exportFormats=f,e.deleting={},e.showExportDDTooltip=!0,e.page=1,e.pageSize=10,e.pageSizeOptions=[10,20,50,100],e.displayGraphs=[],e.exportFilter="",e.export=!0,e.exportMultipleGraphs=!1,e.repoExportFormat={name:"TriG",type:"application/x-trig",extension:".trig"},e.selectedGraphs={exportGraphs:{}},e.$watch((function(){return c.getActiveRepository()}),(function(){e.exportFilter="",e.getGraphs(),e.selectedAll=!1,s((function(){e.changePageSize(10)}),100)})),e.isShacl=function(e){return"http%3A%2F%2Frdf4j.org%2Fschema%2Frdf4j%23SHACLShapeGraph"===e},e.getGraphs=function(){e.getActiveRepository()?(e.loader=!0,g.getGraphs(e.getActiveRepository()).success((function(t){t.results.bindings.unshift({contextID:{type:"default",value:"import.default.graph"}}),e.graphsByValue={},Object.keys(t.results.bindings).forEach((function(n){const o=t.results.bindings[n];"bnode"===o.contextID.type?o.contextID.value="_:"+o.contextID.value:"default"===o.contextID.type?(o.contextID.uri=encodeURIComponent("http://www.openrdf.org/schema/sesame#nil"),o.contextID.clearUri="DEFAULT",o.contextID.exportUri="null",o.contextID.longName="default graph"):(o.contextID.uri=encodeURIComponent(o.contextID.value),o.contextID.clearUri="GRAPH <"+o.contextID.value+">",o.contextID.exportUri=encodeURIComponent("<"+o.contextID.value+">"),o.contextID.longName="named graph "+o.contextID.value),e.graphsByValue[o.contextID.value]=o.contextID})),e.graphs=t.results.bindings,e.filteredGraphs=Object(a.cloneDeep)(e.graphs),e.displayGraphs=e.filteredGraphs.slice(e.pageSize*(e.page-1),e.pageSize*e.page),e.loader=!1,e.selectedGraphs.exportGraphs={},e.matchedElements=e.graphs})).error((function(t,n){const o=getError(t,n);"There is no active location!"===o&&(c.setRepository(""),d.error(o,h.instant("common.error"))),e.loader=!1}))):e.loader=!1},e.onGraphSearch=function(){e.matchedElements=[],e.deselectAll(),e.filterResults()},e.filterResults=function(){angular.forEach(e.graphs,(function(t){-1!==t.contextID.value.indexOf(e.exportFilter)&&e.matchedElements.push(t)}))},e.downloadExport=function(e,t){let n=e+"&Accept="+encodeURIComponent(t.type);const o=m.getAuthToken();o&&(n=n+"&authToken="+encodeURIComponent(o));let r=window.open(n);s((function(){"about:blank"!==r.document.location.href&&(r.close(),d.error("Could not export graph. Check GraphDB logs for detailed reason."))}),100)},e.openExportDDTooltip=function(){e.showExportDDTooltip&&(s((function(){$("#tooltipTarget").trigger("showExportDDTooltip")}),0),s((function(){$("#tooltipTarget").trigger("showExportDDTooltip")}),3e3),e.showExportDDTooltip=!1)},e.exportRepo=function(t,n){"application/rdf+xml"===t.type||"text/plain"===t.type||"text/turtle"===t.type||"application/x-turtlestar"===t.type||"text/rdf+n3"===t.type?l.openSimpleModal({title:h.instant("common.warning"),message:Object(r.decodeHTML)(h.instant("export.format.warning.msg")),warning:!0}).result.then((function(){e.startDownload(t,n)})):e.startDownload(t,n)},e.openJSONLDExportSettings=function(t,n){x.open({templateUrl:"js/angular/core/components/export-settings-modal/exportSettingsModal.html",controller:i.ExportSettingsCtrl,size:"lg",scope:e,resolve:{format:function(){return t.name}}}).result.then((function(r){const a="framed"===r.currentMode.name?"frame":"context",i=r.link?`<${r.link}>; rel="http://www.w3.org/ns/json-ld#${a}"`:"";!function(e,t,n,r,a,i){const s={accept:e.type+";profile="+i.link,link:n};u.getExportedStatementsAsJSONLD(t,r,a,m.getAuthToken(),s).then((function({data:e,filename:t}){Object(o.saveAs)(e,t)})).catch((function(e){e.data.text().then(t=>{431===e.status?d.error(e.statusText,h.instant("common.error")):d.error(t,h.instant("common.error"))})}))}(t,n,i,c.getActiveRepositoryObject(),e.graphsByValue,r.currentMode)}))},e.startDownload=function(t,n){let o;const r=c.getActiveRepositoryObject();o=n?`repositories/${r.id}/statements?infer=false&context=${e.graphsByValue[n.value].exportUri}&location=${encodeURIComponent(r.location)}`:`repositories/${r.id}/statements?infer=false&location=${encodeURIComponent(r.location)}`,e.downloadExport(o,t)},e.hasMultipleSelected=function(){if(_.isEmpty(e.selectedGraphs.exportGraphs))return!_.isEmpty(e.selectedGraphs.exportGraphs);for(const t in e.selectedGraphs.exportGraphs)if(!0===e.selectedGraphs.exportGraphs[t])return!0;return!1},e.openJSONLDExportSettingsForSelectedGraphs=function(t){const n=Object.keys(e.selectedGraphs.exportGraphs).filter(t=>e.selectedGraphs.exportGraphs[t]).map(t=>e.graphsByValue[t].exportUri);n?e.openJSONLDExportSettings(t,n):l.openSimpleModal({title:h.instant("export.multiple.graph"),message:h.instant("export.check.graphs.msg"),warning:!0})},e.exportSelectedGraphs=function(t){let n="";for(const t in e.selectedGraphs.exportGraphs)e.selectedGraphs.exportGraphs[t]&&(n+="context="+e.graphsByValue[t].exportUri+"&");if(n){const o=function(){n=n.substring(0,n.length-1);const o="repositories/"+e.getActiveRepository()+"/statements?infer=false&"+n;e.downloadExport(o,t)};"application/rdf+xml"===t.type||"text/plain"===t.type||"text/turtle"===t.type||"application/x-turtlestar"===t.type||"text/rdf+n3"===t.type?l.openSimpleModal({title:h.instant("common.warning"),message:Object(r.decodeHTML)(h.instant("export.format.warning.msg")),warning:!0}).result.then((function(){o()})):o()}else l.openSimpleModal({title:h.instant("export.multiple.graph"),message:h.instant("export.check.graphs.msg"),warning:!0})},e.$watch("exportFilter",(function(){if(e.filteredGraphs=p(e.graphs,e.exportFilter),e.getActiveRepository()&&angular.element(document).find(".btn.btn-secondary.btn-sm.dropdown-toggle span").length){const t=angular.element(document).find(".btn.btn-secondary.btn-sm.dropdown-toggle span")[0].innerHTML.trim();let n;"All"===t&&(n=e.filteredGraphs.length),e.filteredGraphs&&e.filteredGraphs.length>e.pageSize&&"All"!==t&&(n=e.pageSize),e.changePageSize(n),e.changePagination()}})),e.changePagination=function(){e.selectedAll=!1,angular.isDefined(e.filteredGraphs)&&(e.displayGraphs=e.filteredGraphs.slice(e.pageSize*(e.page-1),e.pageSize*e.page))},e.changePageSize=function(t){$(".ot-graph-page-size").removeClass("active"),e.page=1,t&&(e.pageSize=t,e.changePagination()),e.filteredGraphs&&""!==e.exportFilter&&(e.displayGraphs=e.filteredGraphs)},e.checkAll=function(){e.selectedAll=e.selectedAll||!1,angular.forEach(e.displayGraphs,(function(t){t.contextID.uri&&(e.selectedGraphs.exportGraphs[t.contextID.value]=e.selectedAll)}))},e.deselectAll=function(){e.selectedAll=!1,angular.forEach(e.displayGraphs,(function(t){t.contextID.uri&&(e.selectedGraphs.exportGraphs[t.contextID.value]=!1)}))},e.dropRepository=function(){e.canWriteActiveRepo()&&(e.deleting["*"]=!0,l.openSimpleModal({title:h.instant("export.confirm.clear.msg"),message:h.instant("export.warning.clear.repo.msg",{repo:c.getActiveRepository()}),warning:!0}).result.then((function(){s((function(){g.addStatements(c.getActiveRepository(),"update=CLEAR ALL").then((function(){e.deleting["*"]=!1,d.success(h.instant("export.cleared.repo",{repo:c.getActiveRepository()})),e.getGraphs()}),(function(t){e.deleting["*"]=!1;const n=t.data;"string"==typeof n&&n.indexOf("Clearing all statements in the repository is incompatible with collecting history")>-1?d.error(h.instant("export.clearing.statements.warning")):d.error(h.instant("export.cleared.repo.failed.msg",{repo:c.getActiveRepository()}),t)}))}),100)})))},e.dropContext=function(t){e.canWriteActiveRepo()&&(angular.isDefined(t)?function(t){const n=t.contextID.longName;e.deleting[t]=!0,l.openSimpleModal({title:h.instant("export.confirm.clear.graph"),message:h.instant("export.clear.graph.warning",{longName:n}),warning:!0}).result.then((function(){s((function(){const o="update=CLEAR "+t.contextID.clearUri;g.addStatements(c.getActiveRepository(),o).then((function(){e.deleting[t]=!1,d.success(h.instant("export.cleared.graph",{longName:n})),e.getGraphs(),e.exportFilter="",e.filteredGraphs.length=0,e.updateResults(),e.changePageSize(e.pageSize)}),(function(o){e.deleting[t]=!1,d.error(h.instant("export.clear.graph.msg",{longName:n}),getError(o,o.status))}))}),100)}),(function(){e.deleting[t]=!1}))}(t):function(t){const n=[];angular.forEach(e.selectedGraphs.exportGraphs,(function(e,t){e&&n.push(t)})),n.length>0&&(e.deleting[t]=!0,l.openSimpleModal({title:h.instant("export.confirm.clear.graph"),message:h.instant("export.warning.clear.graph.msg"),warning:!0}).result.then((function(){s((function(){let t=0;angular.forEach(n,(function(o){const r="update=CLEAR "+e.graphsByValue[o].clearUri;g.addStatements(c.getActiveRepository(),r).then((function(){e.loader=!0,e.selectedGraphs.exportGraphs[o]=!1,delete e.selectedGraphs.exportGraphs[o],t++,n.length===t&&(e.selectedAll=!1,e.exportFilter="",e.filteredGraphs.length=0,e.getGraphs(),e.updateResults(),e.changePageSize(e.pageSize),d.success(h.instant("export.cleared.graph.msg")),e.loader=!1)}),(function(t){const n=e.graphsByValue[o].longName;d.error(h.instant("export.clear.graph.msg",{longName:n}),getError(t,t.status)),e.selectedAll=!1}))}))}),100)}),(function(){e.deleting[t]=!1})))}(t))}}])},462:function(e,t){(function(t){e.exports=t}).call(this,{})},463:function(e,t,n){var o,r=r||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},o=t.createElementNS("http://www.w3.org/1999/xhtml","a"),r=e.webkitRequestFileSystem,a=e.requestFileSystem||r||e.mozRequestFileSystem,i=function(t){(e.setImmediate||e.setTimeout)((function(){throw t}),0)},s=0,l=function(t){var o=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?o():setTimeout(o,500)},p=function(e,t,n){for(var o=(t=[].concat(t)).length;o--;){var r=e["on"+t[o]];if("function"==typeof r)try{r.call(e,n||e)}catch(e){i(e)}}},c=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e},d=function(t,i){t=c(t);var d,u,g,f=this,h=t.type,m=!1,x=function(){p(f,"writestart progress write writeend".split(" "))},y=function(){(!m&&d||(d=n().createObjectURL(t)),u)?u.location.href=d:null==e.open(d,"_blank")&&"undefined"!=typeof safari&&(e.location.href=d);f.readyState=f.DONE,x(),l(d)},w=function(e){return function(){if(f.readyState!==f.DONE)return e.apply(this,arguments)}},S={create:!0,exclusive:!1};if(f.readyState=f.INIT,i||(i="download"),o)return d=n().createObjectURL(t),o.href=d,o.download=i,void setTimeout((function(){var e,t;e=o,t=new MouseEvent("click"),e.dispatchEvent(t),x(),l(d),f.readyState=f.DONE}));e.chrome&&h&&"application/octet-stream"!==h&&(g=t.slice||t.webkitSlice,t=g.call(t,0,t.size,"application/octet-stream"),m=!0),r&&"download"!==i&&(i+=".download"),("application/octet-stream"===h||r)&&(u=e),a?(s+=t.size,a(e.TEMPORARY,s,w((function(e){e.root.getDirectory("saved",S,w((function(e){var n=function(){e.getFile(i,S,w((function(e){e.createWriter(w((function(n){n.onwriteend=function(t){u.location.href=e.toURL(),f.readyState=f.DONE,p(f,"writeend",t),l(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach((function(e){n["on"+e]=f["on"+e]})),n.write(t),f.abort=function(){n.abort(),f.readyState=f.DONE},f.readyState=f.WRITING})),y)})),y)};e.getFile(i,{create:!1},w((function(e){e.remove(),n()})),w((function(e){e.code===e.NOT_FOUND_ERR?n():y()})))})),y)})),y)):y()},u=d.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t){return navigator.msSaveOrOpenBlob(c(e),t)}:(u.abort=function(){this.readyState=this.DONE,p(this,"abort")},u.readyState=u.INIT=0,u.WRITING=1,u.DONE=2,u.error=u.onwritestart=u.onprogress=u.onwrite=u.onabort=u.onerror=u.onwriteend=null,function(e,t){return new d(e,t)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[12,110,249,270],{170:function(e,t){angular.module("graphdb.framework.rest.export.service",[]).factory("ExportRestService",n),n.$inject=["$http","$repositories","$translate"];function n(e,t,n){return{getExportedStatementsAsJSONLD:function(t,n,o,r,a){const i=`repositories/${n.id}/statements?infer=false`,s={location:n.location},l={accept:a.accept};Array.isArray(t)?s.context=t.map(e=>decodeURIComponent(e)):t&&(s.context=decodeURIComponent(o[t.value].exportUri));r&&(s.authToken=r);a.link&&""!==a.link&&(l.link=a.link);return e({url:i,method:"GET",params:s,headers:l,responseType:"blob"}).then((function(e){const t=e.data;let n=e.headers()["content-disposition"].split("filename=")[1];return n=n.substring(0,n.length),{data:t,filename:n}}))}}}},241:function(e,t,n){"use strict";n.r(t);n(7),n(26),n(27),n(96),n(170);var o=n(463),r=n(0),a=n(64),i=n(86);angular.module("graphdb.framework.impex.export.controllers",["ngCookies","ui.bootstrap","toastr","graphdb.framework.core.services.repositories","graphdb.framework.core.services.jwtauth","graphdb.workbench.utils.filetypes","graphdb.framework.rest.export.service"]).controller("ExportCtrl",["$scope","$http","$location","$timeout","ModalService","filterFilter","$repositories","toastr","ExportRestService","RDF4JRepositoriesRestService","FileTypes","$translate","AuthTokenService","$uibModal",function(e,t,n,s,l,p,c,d,u,g,f,h,m,x){e.getActiveRepository=function(){return c.getActiveRepository()},e.exportFormats=f,e.deleting={},e.showExportDDTooltip=!0,e.page=1,e.pageSize=10,e.pageSizeOptions=[10,20,50,100],e.displayGraphs=[],e.exportFilter="",e.export=!0,e.exportMultipleGraphs=!1,e.repoExportFormat={name:"TriG",type:"application/x-trig",extension:".trig"},e.selectedGraphs={exportGraphs:{}},e.$watch((function(){return c.getActiveRepository()}),(function(){e.exportFilter="",e.getGraphs(),e.selectedAll=!1,s((function(){e.changePageSize(10)}),100)})),e.isShacl=function(e){return"http%3A%2F%2Frdf4j.org%2Fschema%2Frdf4j%23SHACLShapeGraph"===e},e.getGraphs=function(){e.getActiveRepository()?(e.loader=!0,g.getGraphs(e.getActiveRepository()).success((function(t){t.results.bindings.unshift({contextID:{type:"default",value:"import.default.graph"}}),e.graphsByValue={},Object.keys(t.results.bindings).forEach((function(n){const o=t.results.bindings[n];"bnode"===o.contextID.type?o.contextID.value="_:"+o.contextID.value:"default"===o.contextID.type?(o.contextID.uri=encodeURIComponent("http://www.openrdf.org/schema/sesame#nil"),o.contextID.clearUri="DEFAULT",o.contextID.exportUri="null",o.contextID.longName="default graph"):(o.contextID.uri=encodeURIComponent(o.contextID.value),o.contextID.clearUri="GRAPH <"+o.contextID.value+">",o.contextID.exportUri=encodeURIComponent("<"+o.contextID.value+">"),o.contextID.longName="named graph "+o.contextID.value),e.graphsByValue[o.contextID.value]=o.contextID})),e.graphs=t.results.bindings,e.filteredGraphs=Object(a.cloneDeep)(e.graphs),e.displayGraphs=e.filteredGraphs.slice(e.pageSize*(e.page-1),e.pageSize*e.page),e.loader=!1,e.selectedGraphs.exportGraphs={},e.matchedElements=e.graphs})).error((function(t,n){const o=getError(t,n);"There is no active location!"===o&&(c.setRepository(""),d.error(o,h.instant("common.error"))),e.loader=!1}))):e.loader=!1},e.onGraphSearch=function(){e.matchedElements=[],e.deselectAll(),e.filterResults()},e.filterResults=function(){angular.forEach(e.graphs,(function(t){-1!==t.contextID.value.indexOf(e.exportFilter)&&e.matchedElements.push(t)}))},e.downloadExport=function(e,t){let n=e+"&Accept="+encodeURIComponent(t.type);const o=m.getAuthToken();o&&(n=n+"&authToken="+encodeURIComponent(o));let r=window.open(n);s((function(){"about:blank"!==r.document.location.href&&(r.close(),d.error("Could not export graph. Check GraphDB logs for detailed reason."))}),100)},e.openExportDDTooltip=function(){e.showExportDDTooltip&&(s((function(){$("#tooltipTarget").trigger("showExportDDTooltip")}),0),s((function(){$("#tooltipTarget").trigger("showExportDDTooltip")}),3e3),e.showExportDDTooltip=!1)},e.exportRepo=function(t,n){"application/rdf+xml"===t.type||"text/plain"===t.type||"text/turtle"===t.type||"application/x-turtlestar"===t.type||"text/rdf+n3"===t.type?l.openSimpleModal({title:h.instant("common.warning"),message:Object(r.decodeHTML)(h.instant("export.format.warning.msg")),warning:!0}).result.then((function(){e.startDownload(t,n)})):e.startDownload(t,n)},e.openJSONLDExportSettings=function(t,n){x.open({templateUrl:"js/angular/core/components/export-settings-modal/exportSettingsModal.html",controller:i.ExportSettingsCtrl,size:"lg",scope:e,resolve:{format:function(){return t.name}}}).result.then((function(r){const a="framed"===r.currentMode.name?"frame":"context",i=r.link?`<${r.link}>; rel="http://www.w3.org/ns/json-ld#${a}"`:"";!function(e,t,n,r,a,i){const s={accept:e.type+";profile="+i.link,link:n};u.getExportedStatementsAsJSONLD(t,r,a,m.getAuthToken(),s).then((function({data:e,filename:t}){Object(o.saveAs)(e,t)})).catch((function(e){e.data.text().then(t=>{431===e.status?d.error(e.statusText,h.instant("common.error")):d.error(t,h.instant("common.error"))})}))}(t,n,i,c.getActiveRepositoryObject(),e.graphsByValue,r.currentMode)}))},e.startDownload=function(t,n){let o;const r=c.getActiveRepositoryObject();o=n?`repositories/${r.id}/statements?infer=false&context=${e.graphsByValue[n.value].exportUri}&location=${encodeURIComponent(r.location)}`:`repositories/${r.id}/statements?infer=false&location=${encodeURIComponent(r.location)}`,e.downloadExport(o,t)},e.hasMultipleSelected=function(){if(_.isEmpty(e.selectedGraphs.exportGraphs))return!_.isEmpty(e.selectedGraphs.exportGraphs);for(const t in e.selectedGraphs.exportGraphs)if(!0===e.selectedGraphs.exportGraphs[t])return!0;return!1},e.openJSONLDExportSettingsForSelectedGraphs=function(t){const n=Object.keys(e.selectedGraphs.exportGraphs).filter(t=>e.selectedGraphs.exportGraphs[t]).map(t=>e.graphsByValue[t].exportUri);n?e.openJSONLDExportSettings(t,n):l.openSimpleModal({title:h.instant("export.multiple.graph"),message:h.instant("export.check.graphs.msg"),warning:!0})},e.exportSelectedGraphs=function(t){let n="";for(const t in e.selectedGraphs.exportGraphs)e.selectedGraphs.exportGraphs[t]&&(n+="context="+e.graphsByValue[t].exportUri+"&");if(n){const o=function(){n=n.substring(0,n.length-1);const o="repositories/"+e.getActiveRepository()+"/statements?infer=false&"+n;e.downloadExport(o,t)};"application/rdf+xml"===t.type||"text/plain"===t.type||"text/turtle"===t.type||"application/x-turtlestar"===t.type||"text/rdf+n3"===t.type?l.openSimpleModal({title:h.instant("common.warning"),message:Object(r.decodeHTML)(h.instant("export.format.warning.msg")),warning:!0}).result.then((function(){o()})):o()}else l.openSimpleModal({title:h.instant("export.multiple.graph"),message:h.instant("export.check.graphs.msg"),warning:!0})},e.$watch("exportFilter",(function(){if(e.filteredGraphs=p(e.graphs,e.exportFilter),e.getActiveRepository()&&angular.element(document).find(".btn.btn-secondary.btn-sm.dropdown-toggle span").length){const t=angular.element(document).find(".btn.btn-secondary.btn-sm.dropdown-toggle span")[0].innerHTML.trim();let n;"All"===t&&(n=e.filteredGraphs.length),e.filteredGraphs&&e.filteredGraphs.length>e.pageSize&&"All"!==t&&(n=e.pageSize),e.changePageSize(n),e.changePagination()}})),e.changePagination=function(){e.selectedAll=!1,angular.isDefined(e.filteredGraphs)&&(e.displayGraphs=e.filteredGraphs.slice(e.pageSize*(e.page-1),e.pageSize*e.page))},e.changePageSize=function(t){$(".ot-graph-page-size").removeClass("active"),e.page=1,t&&(e.pageSize=t,e.changePagination()),e.filteredGraphs&&""!==e.exportFilter&&(e.displayGraphs=e.filteredGraphs)},e.checkAll=function(){e.selectedAll=e.selectedAll||!1,angular.forEach(e.displayGraphs,(function(t){t.contextID.uri&&(e.selectedGraphs.exportGraphs[t.contextID.value]=e.selectedAll)}))},e.deselectAll=function(){e.selectedAll=!1,angular.forEach(e.displayGraphs,(function(t){t.contextID.uri&&(e.selectedGraphs.exportGraphs[t.contextID.value]=!1)}))},e.dropRepository=function(){e.canWriteActiveRepo()&&(e.deleting["*"]=!0,l.openSimpleModal({title:h.instant("export.confirm.clear.msg"),message:h.instant("export.warning.clear.repo.msg",{repo:c.getActiveRepository()}),warning:!0}).result.then((function(){s((function(){g.addStatements(c.getActiveRepository(),"update=CLEAR ALL").then((function(){e.deleting["*"]=!1,d.success(h.instant("export.cleared.repo",{repo:c.getActiveRepository()})),e.getGraphs()}),(function(t){e.deleting["*"]=!1;const n=t.data;"string"==typeof n&&n.indexOf("Clearing all statements in the repository is incompatible with collecting history")>-1?d.error(h.instant("export.clearing.statements.warning")):d.error(h.instant("export.cleared.repo.failed.msg",{repo:c.getActiveRepository()}),t)}))}),100)})))},e.dropContext=function(t){e.canWriteActiveRepo()&&(angular.isDefined(t)?function(t){const n=t.contextID.longName;e.deleting[t]=!0,l.openSimpleModal({title:h.instant("export.confirm.clear.graph"),message:h.instant("export.clear.graph.warning",{longName:n}),warning:!0}).result.then((function(){s((function(){const o="update=CLEAR "+t.contextID.clearUri;g.addStatements(c.getActiveRepository(),o).then((function(){e.deleting[t]=!1,d.success(h.instant("export.cleared.graph",{longName:n})),e.getGraphs(),e.exportFilter="",e.filteredGraphs.length=0,e.updateResults(),e.changePageSize(e.pageSize)}),(function(o){e.deleting[t]=!1,d.error(h.instant("export.clear.graph.msg",{longName:n}),getError(o,o.status))}))}),100)}),(function(){e.deleting[t]=!1}))}(t):function(t){const n=[];angular.forEach(e.selectedGraphs.exportGraphs,(function(e,t){e&&n.push(t)})),n.length>0&&(e.deleting[t]=!0,l.openSimpleModal({title:h.instant("export.confirm.clear.graph"),message:h.instant("export.warning.clear.graph.msg"),warning:!0}).result.then((function(){s((function(){let t=0;angular.forEach(n,(function(o){const r="update=CLEAR "+e.graphsByValue[o].clearUri;g.addStatements(c.getActiveRepository(),r).then((function(){e.loader=!0,e.selectedGraphs.exportGraphs[o]=!1,delete e.selectedGraphs.exportGraphs[o],t++,n.length===t&&(e.selectedAll=!1,e.exportFilter="",e.filteredGraphs.length=0,e.getGraphs(),e.updateResults(),e.changePageSize(e.pageSize),d.success(h.instant("export.cleared.graph.msg")),e.loader=!1)}),(function(t){const n=e.graphsByValue[o].longName;d.error(h.instant("export.clear.graph.msg",{longName:n}),getError(t,t.status)),e.selectedAll=!1}))}))}),100)}),(function(){e.deleting[t]=!1})))}(t))}}])},462:function(e,t){(function(t){e.exports=t}).call(this,{})},463:function(e,t,n){var o,r=r||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},o=t.createElementNS("http://www.w3.org/1999/xhtml","a"),r=e.webkitRequestFileSystem,a=e.requestFileSystem||r||e.mozRequestFileSystem,i=function(t){(e.setImmediate||e.setTimeout)((function(){throw t}),0)},s=0,l=function(t){var o=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?o():setTimeout(o,500)},p=function(e,t,n){for(var o=(t=[].concat(t)).length;o--;){var r=e["on"+t[o]];if("function"==typeof r)try{r.call(e,n||e)}catch(e){i(e)}}},c=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e},d=function(t,i){t=c(t);var d,u,g,f=this,h=t.type,m=!1,x=function(){p(f,"writestart progress write writeend".split(" "))},y=function(){(!m&&d||(d=n().createObjectURL(t)),u)?u.location.href=d:null==e.open(d,"_blank")&&"undefined"!=typeof safari&&(e.location.href=d);f.readyState=f.DONE,x(),l(d)},w=function(e){return function(){if(f.readyState!==f.DONE)return e.apply(this,arguments)}},S={create:!0,exclusive:!1};if(f.readyState=f.INIT,i||(i="download"),o)return d=n().createObjectURL(t),o.href=d,o.download=i,void setTimeout((function(){var e,t;e=o,t=new MouseEvent("click"),e.dispatchEvent(t),x(),l(d),f.readyState=f.DONE}));e.chrome&&h&&"application/octet-stream"!==h&&(g=t.slice||t.webkitSlice,t=g.call(t,0,t.size,"application/octet-stream"),m=!0),r&&"download"!==i&&(i+=".download"),("application/octet-stream"===h||r)&&(u=e),a?(s+=t.size,a(e.TEMPORARY,s,w((function(e){e.root.getDirectory("saved",S,w((function(e){var n=function(){e.getFile(i,S,w((function(e){e.createWriter(w((function(n){n.onwriteend=function(t){u.location.href=e.toURL(),f.readyState=f.DONE,p(f,"writeend",t),l(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach((function(e){n["on"+e]=f["on"+e]})),n.write(t),f.abort=function(){n.abort(),f.readyState=f.DONE},f.readyState=f.WRITING})),y)})),y)};e.getFile(i,{create:!1},w((function(e){e.remove(),n()})),w((function(e){e.code===e.NOT_FOUND_ERR?n():y()})))})),y)})),y)):y()},u=d.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t){return navigator.msSaveOrOpenBlob(c(e),t)}:(u.abort=function(){this.readyState=this.DONE,p(this,"abort")},u.readyState=u.INIT=0,u.WRITING=1,u.DONE=2,u.error=u.onwritestart=u.onprogress=u.onwrite=u.onabort=u.onerror=u.onwriteend=null,function(e,t){return new d(e,t)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);
2
2
  /*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */e.exports?e.exports.saveAs=r:null!==n(474)&&null!=n(462)&&(void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o))},474:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},86:function(e,t,n){"use strict";function o(e,t,n,o,r){e.JSONLDModes=[{name:"framed",link:"http://www.w3.org/ns/json-ld#framed"},{name:"expanded",link:"http://www.w3.org/ns/json-ld#expanded"},{name:"flattened",link:"http://www.w3.org/ns/json-ld#flattened"},{name:"compacted",link:"http://www.w3.org/ns/json-ld#compacted"}],e.JSONLDModesNames=e.JSONLDModes.reduce((function(e,t){return e[t.name]=t.name,e}),{}),e.JSONLDFramedModes=[e.JSONLDModesNames.framed],e.JSONLDContextModes=[e.JSONLDModesNames.compacted,e.JSONLDModesNames.flattened],e.defaultMode=e.JSONLDModes.find(e=>"expanded"===e.name),e.currentMode=e.defaultMode,e.link=null,e.fileFormat=r.toLowerCase(),e.setJSONLDSettingsToLocalStorage=function(e,t,r){n.set(o.JSONLD_EXPORT_SETTINGS,JSON.stringify({jsonldFormName:e,jsonldFormLink:t,jsonldLink:r}))},e.cancel=function(){t.dismiss()},e.reset=function(){e.currentMode=e.defaultMode,e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.clearLinkInput=function(){e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.exportJsonLD=function(){e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link),t.close({currentMode:e.currentMode,link:e.link})};!function(){const t=n.get(o.JSONLD_EXPORT_SETTINGS);t&&(e.currentMode=e.JSONLDModes.find(e=>e.name===t.jsonldFormName),e.link=t.jsonldLink)}()}n.r(t),n.d(t,"ExportSettingsCtrl",(function(){return o})),angular.module("graphdb.framework.core.components.export-settings-modal",["graphdb.framework.utils.localstorageadapter"]).controller("ExportSettingsCtrl",o),o.$inject=["$scope","$uibModalInstance","LocalStorageAdapter","LSKeys","format"]},96:function(e,t){angular.module("graphdb.workbench.utils.filetypes",[]).value("FileTypes",[{name:"JSON",translateKey:"download.as.json",type:"application/rdf+json",extension:".json"},{name:"JSON-LD",translateKey:"download.as.jsonld",type:"application/ld+json",extension:".jsonld"},{name:"NDJSON-LD",translateKey:"download.as.ndjsonld",type:"application/x-ld+ndjson",extension:".ndjsonld"},{name:"RDF-XML",translateKey:"download.as.rdfxml",type:"application/rdf+xml",extension:".rdf"},{name:"N3",translateKey:"download.as.n3",type:"text/rdf+n3",extension:".n3"},{name:"N-Triples",translateKey:"download.as.ntriples",type:"text/plain",extension:".nt"},{name:"N-Quads",translateKey:"download.as.nquads",type:"text/x-nquads",extension:".nq"},{name:"Turtle",translateKey:"download.as.turtle",type:"text/turtle",extension:".ttl"},{name:"Turtle*",translateKey:"download.as.turtlestar",type:"application/x-turtlestar",extension:".ttls"},{name:"TriX",translateKey:"download.as.trix",type:"application/trix",extension:".trix"},{name:"TriG",translateKey:"download.as.trig",type:"application/x-trig",extension:".trig"},{name:"TriG*",translateKey:"download.as.trigstar",type:"application/x-trigstar",extension:".trigs"},{name:"Binary RDF",translateKey:"download.as.binaryrdf",type:"application/x-binary-rdf",extension:".brf"}])}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[119],{264:function(e,n){PluginRegistry.add("route",{url:"/connectors",module:"graphdb.framework.externalsync",path:"externalsync/app",chunk:"externalsync",controller:"ConnectorsCtrl",templateUrl:"pages/connectorsInfo.html",title:"view.connector.management.title",helpInfo:"view.connector.management.helpInfo"}),PluginRegistry.add("main.menu",{items:[{label:"Setup",labelKey:"menu.setup.label",href:"#",order:5,role:"IS_AUTHENTICATED_FULLY",icon:"icon-settings",guideSelector:"menu-setup"},{label:"Connectors",labelKey:"menu.connectors.label",href:"connectors",order:10,parent:"Setup",role:"IS_AUTHENTICATED_FULLY",guideSelector:"sub-menu-connectors"}]})}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[120],{264:function(e,n){PluginRegistry.add("route",{url:"/connectors",module:"graphdb.framework.externalsync",path:"externalsync/app",chunk:"externalsync",controller:"ConnectorsCtrl",templateUrl:"pages/connectorsInfo.html",title:"view.connector.management.title",helpInfo:"view.connector.management.helpInfo"}),PluginRegistry.add("main.menu",{items:[{label:"Setup",labelKey:"menu.setup.label",href:"#",order:5,role:"IS_AUTHENTICATED_FULLY",icon:"icon-settings",guideSelector:"menu-setup"},{label:"Connectors",labelKey:"menu.connectors.label",href:"connectors",order:10,parent:"Setup",role:"IS_AUTHENTICATED_FULLY",guideSelector:"sub-menu-connectors"}]})}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[120],{178:function(e,t,s){(function(e){const t="WAIT",s="NO_REPO",r="READY",n="IN_PROGRESS",o="ERROR",i={contextID:{type:"all",value:"all.graphs.label",uri:""}};function a(e){if(e<1e3)return e;const t=Math.floor(Math.log(e)/Math.log(1e3));let s=e/Math.pow(1e3,t);return s=s%1>1/Math.pow(1e3,t-1)?s.toFixed(2):s.toFixed(0),s+["K","M","G","T","P","H"][t-1]}function l(e,a,l,c,u,d,p,f,g,h,m){let R=null;e.status=l.getActiveRepository()?t:s;let C=i;const y=function(){h.resolveGraphs(l.getActiveRepository()).success((function(t){e.graphsInRepo=t.results.bindings.length>1002?t.results.bindings.slice(0,1002):t.results.bindings,v(),e.isSystemRepository()?"READY"!==e.status&&x():(e.status="WAIT",x(!0))})).error((function(t){e.repositoryError=getError(t),c.error(getError(t),m.instant("graphexplore.error.getting.graph"))}))},v=function(){const t=g.get("dependencies-selectedGraph-"+l.getActiveRepository());null!==t&&e.graphsInRepo.some(e=>e.contextID.uri===t.contextID.uri)?C=t:g.set("dependencies-selectedGraph-"+l.getActiveRepository(),C)},w=function(s){d3.select("#dependencies-chord").html(""),e.status=t,d.getRelationshipsData(s,e.direction,C.contextID.uri).success((function(t){e.dependenciesData={matrix:t.right,nodes:t.left,hasLinks:_.sum(_.map(t.right,(function(e){return _.sum(e)})))>0,direction:e.direction},e.status=r})).error((function(t){e.status=r,c.error(getError(t),m.instant("graphexplore.error.dependencies.count"))}))},x=function(s){(e.status!==r||s)&&(e.status=t,d.getRelationshipsStatus(C.contextID.uri).success((function(t){if(e.status=t,e.status===n){if(null!==R)return;R=u(x,2e3)}e.status===r&&(null!==R&&(u.cancel(R),R=null),d.getRelationshipsClasses(e.direction,C.contextID.uri).success((function(t,s){e.allClasses.items=_.filter(t,b),e.allNotFilteredClasses=t,e.selectedClasses=void 0,angular.isUndefined(e.selectedClasses)&&(e.selectedClasses=t.slice(0,10)),w(e.selectedClasses),207===s&&c.warning(m.instant("graphexplore.update.diagram"),m.instant("graphexplore.repository.data.changed"))}))),0===e.status.indexOf("ERROR;")&&(e.status=o,c.error(m.instant("graphexplore.error.dependencies.calc",{error:e.status.substring("ERROR;".length)})))})).error((function(t){e.status=o,c.error(getError(t),m.instant("graphexplore.error.dependencies.count.status"))})))};e.allClasses={},e.allClasses.items=[],e.allNotFilteredClasses=[],e.direction="all";const S={};let E=0,D=0;function b(t){return-1!==t.name.toLowerCase().indexOf(e.classQuery.query.toLowerCase())}a.key="",S.get=function(t,s,r){return p.initLazyList(t,s,r,E,e.allClasses.items)},a.$watch((function(){return a.key}),(function(){E=0,_.each(e.allClasses.items,(function(e){a.key>e&&E++})),D++})),S.revision=function(){return D},e.datasource=S,e.adapterContainer={adapter:{remain:!0}},e.classQuery={},e.classQuery.query="",e.classFilterFunc=b,e.$watch("allClasses.items",(function(){e.allClasses.items.length>0&&u((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("direction",(function(){!l.getActiveRepository()||e.isSystemRepository()||l.isActiveRepoFedXType()||y()})),e.$on("$destroy",(function(){u.cancel(R)})),e.isLoading=function(){return e.status===n||e.status===t},e.confirmCalculateDependencies=function(){f.openSimpleModal({title:m.instant("confirm.operation"),message:m.instant("graphexplore.calculating.relationships"),warning:!0}).result.then((function(){e.calculateDependencies()}))},e.calculateDependencies=function(){e.status=t,e.selectedClasses=void 0,d.calculateRelationships(C.contextID.uri).success((function(t){0===t.indexOf("ERROR;")?c.error(m.instant("graphexplore.error.dependencies.calc",{error:e.status.substring("ERROR;".length)})):x()})).error((function(e){c.error(m.instant("graphexplore.error.could.not.force.count",{error:getError(e)}))}))},e.addClass=function(t){e.selectedClasses.push(t),w(e.selectedClasses)},e.removeClass=function(t){_.remove(e.selectedClasses,(function(e){return e.name===t.name})),w(e.selectedClasses)},e.showClass=function(t){e.classToShow=t},e.isClassByNameShown=function(t){return void 0!==_.find(e.selectedClasses,{name:t})},e.addClassByName=function(t){e.selectedClasses.push(_.find(e.allClasses.items,{name:t})),w(e.selectedClasses)},e.removeClassByName=function(t){_.remove(e.selectedClasses,(function(e){return e.name===t})),w(e.selectedClasses)},e.removeAllClasses=function(){e.selectedClasses=[],w(e.selectedClasses)},e.isSystemRepository=function(){return"SYSTEM"===l.getActiveRepository()};const A=e.$on("repositoryIsSet",(function(){e.classQuery={},e.classQuery.query="",e.repositoryError=null,C=i,l.getActiveRepository()&&!l.isActiveRepoFedXType()?y():e.status=s}));window.addEventListener("beforeunload",(function e(){A(),window.removeEventListener("beforeunload",e)})),e.selectGraph=function(e){C=e,x(!0),g.set("dependencies-selectedGraph-"+l.getActiveRepository(),C)},e.getSelectedGraphValue=function(){return C.contextID.value},e.isAllGraphsSelected=function(){return"all.graphs.label"===e.getSelectedGraphValue()}}Object.defineProperty(e,"allGraphs",{get:()=>i}),angular.module("graphdb.framework.graphexplore.controllers.dependencies",["ui.scroll.jqlite","ui.scroll","toastr","ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter"]).controller("DependenciesChordCtrl",l).config(["$uibTooltipProvider",function(e){e.options({appendToBody:!0})}]).filter("humanize",(function(){return a})),l.$inject=["$scope","$rootScope","$repositories","toastr","$timeout","GraphDataRestService","UiScrollService","ModalService","LocalStorageAdapter","RDF4JRepositoriesRestService","$translate"]}).call(this,s(11))}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[121],{178:function(e,t,s){(function(e){const t="WAIT",s="NO_REPO",r="READY",n="IN_PROGRESS",o="ERROR",i={contextID:{type:"all",value:"all.graphs.label",uri:""}};function a(e){if(e<1e3)return e;const t=Math.floor(Math.log(e)/Math.log(1e3));let s=e/Math.pow(1e3,t);return s=s%1>1/Math.pow(1e3,t-1)?s.toFixed(2):s.toFixed(0),s+["K","M","G","T","P","H"][t-1]}function l(e,a,l,c,u,d,p,f,g,h,m){let R=null;e.status=l.getActiveRepository()?t:s;let C=i;const y=function(){h.resolveGraphs(l.getActiveRepository()).success((function(t){e.graphsInRepo=t.results.bindings.length>1002?t.results.bindings.slice(0,1002):t.results.bindings,v(),e.isSystemRepository()?"READY"!==e.status&&x():(e.status="WAIT",x(!0))})).error((function(t){e.repositoryError=getError(t),c.error(getError(t),m.instant("graphexplore.error.getting.graph"))}))},v=function(){const t=g.get("dependencies-selectedGraph-"+l.getActiveRepository());null!==t&&e.graphsInRepo.some(e=>e.contextID.uri===t.contextID.uri)?C=t:g.set("dependencies-selectedGraph-"+l.getActiveRepository(),C)},w=function(s){d3.select("#dependencies-chord").html(""),e.status=t,d.getRelationshipsData(s,e.direction,C.contextID.uri).success((function(t){e.dependenciesData={matrix:t.right,nodes:t.left,hasLinks:_.sum(_.map(t.right,(function(e){return _.sum(e)})))>0,direction:e.direction},e.status=r})).error((function(t){e.status=r,c.error(getError(t),m.instant("graphexplore.error.dependencies.count"))}))},x=function(s){(e.status!==r||s)&&(e.status=t,d.getRelationshipsStatus(C.contextID.uri).success((function(t){if(e.status=t,e.status===n){if(null!==R)return;R=u(x,2e3)}e.status===r&&(null!==R&&(u.cancel(R),R=null),d.getRelationshipsClasses(e.direction,C.contextID.uri).success((function(t,s){e.allClasses.items=_.filter(t,b),e.allNotFilteredClasses=t,e.selectedClasses=void 0,angular.isUndefined(e.selectedClasses)&&(e.selectedClasses=t.slice(0,10)),w(e.selectedClasses),207===s&&c.warning(m.instant("graphexplore.update.diagram"),m.instant("graphexplore.repository.data.changed"))}))),0===e.status.indexOf("ERROR;")&&(e.status=o,c.error(m.instant("graphexplore.error.dependencies.calc",{error:e.status.substring("ERROR;".length)})))})).error((function(t){e.status=o,c.error(getError(t),m.instant("graphexplore.error.dependencies.count.status"))})))};e.allClasses={},e.allClasses.items=[],e.allNotFilteredClasses=[],e.direction="all";const S={};let E=0,D=0;function b(t){return-1!==t.name.toLowerCase().indexOf(e.classQuery.query.toLowerCase())}a.key="",S.get=function(t,s,r){return p.initLazyList(t,s,r,E,e.allClasses.items)},a.$watch((function(){return a.key}),(function(){E=0,_.each(e.allClasses.items,(function(e){a.key>e&&E++})),D++})),S.revision=function(){return D},e.datasource=S,e.adapterContainer={adapter:{remain:!0}},e.classQuery={},e.classQuery.query="",e.classFilterFunc=b,e.$watch("allClasses.items",(function(){e.allClasses.items.length>0&&u((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("direction",(function(){!l.getActiveRepository()||e.isSystemRepository()||l.isActiveRepoFedXType()||y()})),e.$on("$destroy",(function(){u.cancel(R)})),e.isLoading=function(){return e.status===n||e.status===t},e.confirmCalculateDependencies=function(){f.openSimpleModal({title:m.instant("confirm.operation"),message:m.instant("graphexplore.calculating.relationships"),warning:!0}).result.then((function(){e.calculateDependencies()}))},e.calculateDependencies=function(){e.status=t,e.selectedClasses=void 0,d.calculateRelationships(C.contextID.uri).success((function(t){0===t.indexOf("ERROR;")?c.error(m.instant("graphexplore.error.dependencies.calc",{error:e.status.substring("ERROR;".length)})):x()})).error((function(e){c.error(m.instant("graphexplore.error.could.not.force.count",{error:getError(e)}))}))},e.addClass=function(t){e.selectedClasses.push(t),w(e.selectedClasses)},e.removeClass=function(t){_.remove(e.selectedClasses,(function(e){return e.name===t.name})),w(e.selectedClasses)},e.showClass=function(t){e.classToShow=t},e.isClassByNameShown=function(t){return void 0!==_.find(e.selectedClasses,{name:t})},e.addClassByName=function(t){e.selectedClasses.push(_.find(e.allClasses.items,{name:t})),w(e.selectedClasses)},e.removeClassByName=function(t){_.remove(e.selectedClasses,(function(e){return e.name===t})),w(e.selectedClasses)},e.removeAllClasses=function(){e.selectedClasses=[],w(e.selectedClasses)},e.isSystemRepository=function(){return"SYSTEM"===l.getActiveRepository()};const A=e.$on("repositoryIsSet",(function(){e.classQuery={},e.classQuery.query="",e.repositoryError=null,C=i,l.getActiveRepository()&&!l.isActiveRepoFedXType()?y():e.status=s}));window.addEventListener("beforeunload",(function e(){A(),window.removeEventListener("beforeunload",e)})),e.selectGraph=function(e){C=e,x(!0),g.set("dependencies-selectedGraph-"+l.getActiveRepository(),C)},e.getSelectedGraphValue=function(){return C.contextID.value},e.isAllGraphsSelected=function(){return"all.graphs.label"===e.getSelectedGraphValue()}}Object.defineProperty(e,"allGraphs",{get:()=>i}),angular.module("graphdb.framework.graphexplore.controllers.dependencies",["ui.scroll.jqlite","ui.scroll","toastr","ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter"]).controller("DependenciesChordCtrl",l).config(["$uibTooltipProvider",function(e){e.options({appendToBody:!0})}]).filter("humanize",(function(){return a})),l.$inject=["$scope","$rootScope","$repositories","toastr","$timeout","GraphDataRestService","UiScrollService","ModalService","LocalStorageAdapter","RDF4JRepositoriesRestService","$translate"]}).call(this,s(11))}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[121],{177:function(e,o,t){"use strict";t.r(o);t(10);function r(e,o,t,r,a,i,c,s,n,d,l,p,u){e.predicatesObj={},e.predicatesQueryObj={},e.predicatesObj.items=[],e.predicatesQueryObj.query="",e.predicatesListNotFiltered=[],e.predicatesSearchPlaceholder="Search predicates",e.onopen=e.onclose=()=>angular.noop();const g={};let m=0,b=0;t.key="",g.get=function(o,t,r){return d.initLazyList(o,t,r,m,e.predicatesObj.items)},t.$watch((function(){return t.key}),(function(){m=0,_.each(e.predicatesObj.items,(function(e){t.key>e&&m++})),b++})),g.revision=function(){return b},e.adapterContainer={adapter:{remain:!0}};const h=c.get(s.DOMAIN_RANGE_COLLAPSE_EDGES);function f(){const e=c.get(s.CLASS_HIERARCHY_LAST_SELECTED_CLASS);o.search("").hash(e).path("hierarchy")}e.collapseEdges=null===h||"true"===h,e.datasource=g,e.$on("reloadDomainRangeGraphView",(function(e,t){const r=t.objectPropClassUri,a=t.objectPropClassName;o.path("domain-range-graph").search("uri",r).search("name",a)})),e.$on("switchEdgeMode",(function(e,t){o.path("domain-range-graph").search("uri",t.uri).search("name",t.name).search("collapsed",t.collapsed)})),e.$on("repositoryIsSet",(function(){if(C===a.getActiveRepository())return;C=a.getActiveRepository();f()})),e.$on("changeCollapsedEdgesState",(function(o,t){e.collapseEdges=!t,c.set(s.DOMAIN_RANGE_COLLAPSE_EDGES,e.collapseEdges)})),e.goToClassHierarchyView=f,e.copyToClipboard=function(e){l.openCopyToClipboardModal(e)},e.toggleCollapseEdgesState=function(){e.collapseEdges=!e.collapseEdges,i.history.pushState({collapsed:e.collapseEdges},"domainRangePage",null)},e.predicatesListFilterFunc=function(o){return o.resolvedUri.toLowerCase().indexOf(e.predicatesQueryObj.query.toLowerCase())>=0},e.$watch("predicatesObj.items",(function(){e.predicatesObj.items>0&&r((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("selectedPredicate",(function(){e.showPredicatesInfoPanel&&function(o){const t=o.target,r=o.source;e.encodedUri=encodeURIComponent(o.uri),e.sourceTargetObjectNodeUri=t.objectPropClassUri?t.objectPropClassUri:r.objectPropClassUri,e.encodedSourceTargetObjectNodeUri=encodeURIComponent(e.sourceTargetObjectNodeUri),e.sourceTargetObjectNodeName=t.objectPropClassName?t.objectPropClassName:r.objectPropClassName?r.objectPropClassName:"<i>Literal</i>",-1===e.sourceTargetObjectNodeName.indexOf("Literal")?n.getRdfsLabelAndComment(e.sourceTargetObjectNodeUri).success((function(o){e.rdfsLabel=o.label,e.rdfsComment=o.comment})).error((function(){p.error(u.instant("domain.range.error.get.label.comment"))})):(e.rdfsComment=void 0,e.rdfsLabel=void 0);e.predicatesObj.items=[],e.predicatesQueryObj.query="";const a=t.allEdges?t.allEdges:r.allEdges;_.each(a,(function(o){const t={};t.absUri=encodeURIComponent(o.uri),t.absUriNonEncoded=o.uri,t.resolvedUri=o.name,t.isImplicit=o.implicit,e.predicatesObj.items.push(t)})),e.predicatesListNotFiltered=e.predicatesObj.items}(e.selectedPredicate)})),$(document).ready((function(){$(".compact-mode-toggle").click((function(){$(".tooltip").hide()}))}));let C=a.getActiveRepository()}angular.module("graphdb.framework.graphexplore.controllers.domainrange",["ui.scroll.jqlite","ui.scroll","ngSanitize","graphdb.framework.utils.localstorageadapter"]).controller("DomainRangeGraphCtlr",r),r.$inject=["$scope","$location","$rootScope","$timeout","$repositories","$window","LocalStorageAdapter","LSKeys","GraphDataRestService","UiScrollService","ModalService","toastr","$translate"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[122],{177:function(e,o,t){"use strict";t.r(o);t(10);function r(e,o,t,r,a,i,c,s,n,d,l,p,u){e.predicatesObj={},e.predicatesQueryObj={},e.predicatesObj.items=[],e.predicatesQueryObj.query="",e.predicatesListNotFiltered=[],e.predicatesSearchPlaceholder="Search predicates",e.onopen=e.onclose=()=>angular.noop();const g={};let m=0,b=0;t.key="",g.get=function(o,t,r){return d.initLazyList(o,t,r,m,e.predicatesObj.items)},t.$watch((function(){return t.key}),(function(){m=0,_.each(e.predicatesObj.items,(function(e){t.key>e&&m++})),b++})),g.revision=function(){return b},e.adapterContainer={adapter:{remain:!0}};const h=c.get(s.DOMAIN_RANGE_COLLAPSE_EDGES);function f(){const e=c.get(s.CLASS_HIERARCHY_LAST_SELECTED_CLASS);o.search("").hash(e).path("hierarchy")}e.collapseEdges=null===h||"true"===h,e.datasource=g,e.$on("reloadDomainRangeGraphView",(function(e,t){const r=t.objectPropClassUri,a=t.objectPropClassName;o.path("domain-range-graph").search("uri",r).search("name",a)})),e.$on("switchEdgeMode",(function(e,t){o.path("domain-range-graph").search("uri",t.uri).search("name",t.name).search("collapsed",t.collapsed)})),e.$on("repositoryIsSet",(function(){if(C===a.getActiveRepository())return;C=a.getActiveRepository();f()})),e.$on("changeCollapsedEdgesState",(function(o,t){e.collapseEdges=!t,c.set(s.DOMAIN_RANGE_COLLAPSE_EDGES,e.collapseEdges)})),e.goToClassHierarchyView=f,e.copyToClipboard=function(e){l.openCopyToClipboardModal(e)},e.toggleCollapseEdgesState=function(){e.collapseEdges=!e.collapseEdges,i.history.pushState({collapsed:e.collapseEdges},"domainRangePage",null)},e.predicatesListFilterFunc=function(o){return o.resolvedUri.toLowerCase().indexOf(e.predicatesQueryObj.query.toLowerCase())>=0},e.$watch("predicatesObj.items",(function(){e.predicatesObj.items>0&&r((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("selectedPredicate",(function(){e.showPredicatesInfoPanel&&function(o){const t=o.target,r=o.source;e.encodedUri=encodeURIComponent(o.uri),e.sourceTargetObjectNodeUri=t.objectPropClassUri?t.objectPropClassUri:r.objectPropClassUri,e.encodedSourceTargetObjectNodeUri=encodeURIComponent(e.sourceTargetObjectNodeUri),e.sourceTargetObjectNodeName=t.objectPropClassName?t.objectPropClassName:r.objectPropClassName?r.objectPropClassName:"<i>Literal</i>",-1===e.sourceTargetObjectNodeName.indexOf("Literal")?n.getRdfsLabelAndComment(e.sourceTargetObjectNodeUri).success((function(o){e.rdfsLabel=o.label,e.rdfsComment=o.comment})).error((function(){p.error(u.instant("domain.range.error.get.label.comment"))})):(e.rdfsComment=void 0,e.rdfsLabel=void 0);e.predicatesObj.items=[],e.predicatesQueryObj.query="";const a=t.allEdges?t.allEdges:r.allEdges;_.each(a,(function(o){const t={};t.absUri=encodeURIComponent(o.uri),t.absUriNonEncoded=o.uri,t.resolvedUri=o.name,t.isImplicit=o.implicit,e.predicatesObj.items.push(t)})),e.predicatesListNotFiltered=e.predicatesObj.items}(e.selectedPredicate)})),$(document).ready((function(){$(".compact-mode-toggle").click((function(){$(".tooltip").hide()}))}));let C=a.getActiveRepository()}angular.module("graphdb.framework.graphexplore.controllers.domainrange",["ui.scroll.jqlite","ui.scroll","ngSanitize","graphdb.framework.utils.localstorageadapter"]).controller("DomainRangeGraphCtlr",r),r.$inject=["$scope","$location","$rootScope","$timeout","$repositories","$window","LocalStorageAdapter","LSKeys","GraphDataRestService","UiScrollService","ModalService","toastr","$translate"]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[122],{176:function(e,r,t){"use strict";t.r(r);t(10);function n(e,r,t,n,s,a,o,i,c,l,u,p,d,h,g,f,m){e.classHierarchyData={},e.instancesObj={},e.instancesQueryObj={},e.instancesObj.items=[],e.instancesNotFiltered=[],e.isWarningShowed=!1,e.onopen=e.onclose=()=>angular.noop(),e.currentBrowserLimit=2e3,d.firefox?e.currentBrowserLimit=50:(d.safari||d.msie||d.msedge)&&(e.currentBrowserLimit=400);const C={};let y=0,S=0;r.key="",C.get=function(r,t,n){return c.initLazyList(r,t,n,y,e.instancesObj.items)};let w=allGraphs;const b=function(){if(e.getActiveRepository())return f.resolveGraphs(n.getActiveRepository()).success((function(r){e.graphsInRepo=r.results.bindings.length>1002?r.results.bindings.slice(0,1002):r.results.bindings,R()})).error((function(r){e.repositoryError=getError(r),o.error(getError(r),m.instant("graphexplore.error.getting.graphs"))}))},R=function(){const r=h.get("classHierarchy-selectedGraph-"+n.getActiveRepository());null!==r&&e.graphsInRepo.some(e=>e.contextID.uri===r.contextID.uri)?w=r:h.set("classHierarchy-selectedGraph-"+n.getActiveRepository(),w)};function v(r,t,n){e.classCountSlider.options&&e.classCountSlider.options.ceil!==t&&(e.classCountSlider={});var s;e.classCountSlider.value||(e.showExternalElements=!0,e.classCountSlider={value:t,options:{floor:1,ceil:t,vertical:!0,showSelectionBar:!0,onChange:function(){u(E,100,!0)}}},null===h.get(g.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE)&&t>e.currentBrowserLimit&&(s=e.currentBrowserLimit,d.chrome?o.warning(m.instant("graphexplore.disabling.animations",{classLimit:s}),m.instant("graphexplore.reducing.visual.effects")):o.warning(m.instant("graphexplore.browser.performance",{browser:d.name,classLimit:s}),m.instant("graphexplore.reducing.visual.effects"))));const a=h.get(g.CLASS_HIERARCHY_SWITCH_PREFIXES);null!=a&&"true"!==a&&(e.showExternalElements=!0),n?e.classCountSlider.value=n:t>=1500&&(e.classCountSlider.value=1500,o.warning(m.instant("graphexplore.class.count.slider",{count:1500}),m.instant("graphexplore.reducing.class.count"))),t>=25&&!window.ActiveXObject&&"ActiveXObject"in window&&!e.isWarningShowed&&(e.classCountSlider.value=25,e.isWarningShowed=!0,o.warning(m.instant("graphexplore.class.count.browser",{count:25}),m.instant("graphexplore.reducing.class.count"))),u((function(){e.$broadcast("reCalcViewDimensions")}),200),E();let i=0;$("rzslider").on("wheel",(function(r){r.preventDefault(),r.stopPropagation();const t=(new Date).getTime();if(!(t-i>100))return;i=t,r=r.originalEvent;let n=e.classCountSlider.value;r.deltaY<=-1?n+=1:r.deltaY>=1&&(n-=1),n!==e.classCountSlider.value&&n>=e.classCountSlider.options.floor&&n<=e.classCountSlider.options.ceil&&e.$apply((function(){e.classCountSlider.value=n,u(E,100,!0)}))}))}function E(){e.currentSliderValue=e.classCountSlider.value}function x(e){const r=e.data.fullName,n=e.data.name;i.checkDomainRangeData(r).success((function(e,s){204===s?o.warning(m.instant("graphexplore.no.domain.range",{name:n})):(h.set(g.CLASS_HIERARCHY_LAST_SELECTED_CLASS,t.hash()),t.hash("").path("domain-range-graph").search("uri",r).search("name",n))})).error((function(){o.error(m.instant("graphexplore.error.request.failed",{name:n}))}))}function L(){t.replace().hash("1"),e.instancesObj.items=[],e.showExternalElements=!1,e.showClassInfoPanel=!1,h.clearClassHieararchyState(),e.hidePrefixes="true"===h.get(g.CLASS_HIERARCHY_HIDE_PREFIXES),e.currentSliderValue=void 0,e.classHierarchyData={},r.$broadcast("angucomplete-alt:clearInput")}function A(){e.hasClassHierarchy()&&u((function(){$("#toolbar").removeClass("ng-hide")}),0)}r.$watch((function(){return r.key}),(function(){y=0,_.each(e.instancesObj.items,(function(e){r.key>e&&y++})),S++})),C.revision=function(){return S},e.adapterContainer={adapter:{remain:!0}},e.$on("goToDomainRangeGraphView",(function(e,r){x(r)})),e.$on("classCount",v),e.$on("repositoryIsSet",(function(){if(!s.isLicenseValid())return;if(I===n.getActiveRepository())return;I=n.getActiveRepository();if(e.repositoryError=null,!I)return;w=allGraphs,b().then(H)})),e.datasource=C,e.goToDomainRangeGraphView=x,e.toggleClassInfoSidePanel=function(){e.showClassInfoPanel=!e.showClassInfoPanel,r.$broadcast("sidePanelClosed")},e.getActiveRepositoryNoError=function(){if(!e.repositoryError)return n.getActiveRepository()},e.isSystemRepository=function(){return n.isSystemRepository()},e.confirmReloadClassHierarchy=function(){p.openSimpleModal({title:m.instant("confirm.operation"),message:m.instant("graphexplore.calculating.hierarchy"),warning:!0}).result.then((function(){L(),e.loader=!0,e.hierarchyError=!1,i.reloadClassHierarchy(w.contextID.uri).success((function(r){e.loader=!1,e.classHierarchyData=r,A(),v()})).error((function(r){e.loader=!1,e.hierarchyError=getError(r),o.error(getError(r),m.instant("graphexplore.error.rdf.class.request"))}))}))},e.focusOnRoot=function(){e.$broadcast("rootFocus")},e.copyToClipboard=function(e){p.openCopyToClipboardModal(e)},e.searchedClassCallback=function(e){if(e){const t={name:e.title};r.$broadcast("searchedClass",t)}},e.instancesQueryObj.query="",e.instancesFilterFunc=function(r){return r.resolvedUri.toLowerCase().indexOf(e.instancesQueryObj.query.toLowerCase())>=0},b(),e.$watch("instancesObj.items",(function(){e.instancesObj.items.length>0&&u((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("selectedClass",(function(){e.showClassInfoPanel&&function(r){const t=r.data.fullName;let n=r.data.name;if(n===t){const e=n.lastIndexOf("#");n=n.substring(e+1)}e.encodedUri=encodeURIComponent(t);const s=encodeURIComponent("prefix onto:<http://www.ontotext.com/>\nselect ?s {\n ?s a <"+t+"> .\n}");e.viewInstancesUri="sparql?name="+n+"&infer=true&sameAs=false&query="+s+"&execute=true",i.getRdfsLabelAndComment(t).success((function(r){e.rdfsLabel=r.label,e.rdfsComment=r.comment,e.expanded=!1})).error((function(){o.error("Error getting rdfs:label and rdfs:comment")})),e.instancesQueryObj.query="",e.instancesLoader=!0,i.getClassInstances(t).success((function(r){e.instancesObj.items=[],_.each(r,(function(r,t){const n={};n.type=r.startsWith("<<")&&r.endsWith(">>")?"triple":"uri",n.absUri=encodeURIComponent(r),n.absUriNonEncoded=r,n.resolvedUri=t,e.instancesObj.items.push(n)})),e.instancesLoader=!1,e.instancesSearchPlaceholder=e.instancesObj.items.length<1e3?"Search class instances":"Search first 1000 class instances",e.instancesNotFiltered=e.instancesObj.items})).error((function(){o.error(m.instant("graphexplore.error.instances.request"))}))}(e.selectedClass)})),$(document).ready((function(){$(".prefix-toggle").click((function(){$(".tooltip").hide()}))}));let I=n.getActiveRepository();function H(){L(),!e.isSystemRepository()&&e.isLicenseValid()&&(e.hierarchyError=!1,e.loader=!0,i.getClassHierarchyData(w.contextID.uri).success((function(r,t){e.showExternalElements=!0,e.loader=!1,e.classHierarchyData=r,207===t&&o.warning(m.instant("graphexplore.update.diagram"),m.instant("graphexplore.repository.data.changed")),A()})).error((function(r){e.loader=!1,e.hierarchyError=getError(r),o.error(getError(r),m.instant("graphexplore.error.rdf.class.request"))})))}e.hasClassHierarchy=function(){return e.classHierarchyData.classCount&&e.getActiveRepositoryNoError()&&!e.isSystemRepository()},e.isLicenseValid=function(){return s.isLicenseValid()},e.chosenGraph=function(e){w=e,H(),h.set("classHierarchy-selectedGraph-"+n.getActiveRepository(),w)},e.getSelGraphValue=function(){return w.contextID.value},e.isAllGraphsSelected=function(){return"all.graphs.label"===e.getSelGraphValue()}}angular.module("graphdb.framework.graphexplore.controllers.class",["pageslide-directive","ngAnimate","ui.scroll.jqlite","ui.scroll","angucomplete-alt","rzSlider","toastr","graphdb.framework.utils.localstorageadapter"]).controller("RdfClassHierarchyCtlr",n),n.$inject=["$scope","$rootScope","$location","$repositories","$licenseService","$window","toastr","GraphDataRestService","UiScrollService","RdfsLabelCommentService","$timeout","ModalService","bowser","LocalStorageAdapter","LSKeys","RDF4JRepositoriesRestService","$translate"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[123],{176:function(e,r,t){"use strict";t.r(r);t(10);function n(e,r,t,n,s,a,o,i,c,l,u,p,d,h,g,f,m){e.classHierarchyData={},e.instancesObj={},e.instancesQueryObj={},e.instancesObj.items=[],e.instancesNotFiltered=[],e.isWarningShowed=!1,e.onopen=e.onclose=()=>angular.noop(),e.currentBrowserLimit=2e3,d.firefox?e.currentBrowserLimit=50:(d.safari||d.msie||d.msedge)&&(e.currentBrowserLimit=400);const C={};let y=0,S=0;r.key="",C.get=function(r,t,n){return c.initLazyList(r,t,n,y,e.instancesObj.items)};let w=allGraphs;const b=function(){if(e.getActiveRepository())return f.resolveGraphs(n.getActiveRepository()).success((function(r){e.graphsInRepo=r.results.bindings.length>1002?r.results.bindings.slice(0,1002):r.results.bindings,R()})).error((function(r){e.repositoryError=getError(r),o.error(getError(r),m.instant("graphexplore.error.getting.graphs"))}))},R=function(){const r=h.get("classHierarchy-selectedGraph-"+n.getActiveRepository());null!==r&&e.graphsInRepo.some(e=>e.contextID.uri===r.contextID.uri)?w=r:h.set("classHierarchy-selectedGraph-"+n.getActiveRepository(),w)};function v(r,t,n){e.classCountSlider.options&&e.classCountSlider.options.ceil!==t&&(e.classCountSlider={});var s;e.classCountSlider.value||(e.showExternalElements=!0,e.classCountSlider={value:t,options:{floor:1,ceil:t,vertical:!0,showSelectionBar:!0,onChange:function(){u(E,100,!0)}}},null===h.get(g.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE)&&t>e.currentBrowserLimit&&(s=e.currentBrowserLimit,d.chrome?o.warning(m.instant("graphexplore.disabling.animations",{classLimit:s}),m.instant("graphexplore.reducing.visual.effects")):o.warning(m.instant("graphexplore.browser.performance",{browser:d.name,classLimit:s}),m.instant("graphexplore.reducing.visual.effects"))));const a=h.get(g.CLASS_HIERARCHY_SWITCH_PREFIXES);null!=a&&"true"!==a&&(e.showExternalElements=!0),n?e.classCountSlider.value=n:t>=1500&&(e.classCountSlider.value=1500,o.warning(m.instant("graphexplore.class.count.slider",{count:1500}),m.instant("graphexplore.reducing.class.count"))),t>=25&&!window.ActiveXObject&&"ActiveXObject"in window&&!e.isWarningShowed&&(e.classCountSlider.value=25,e.isWarningShowed=!0,o.warning(m.instant("graphexplore.class.count.browser",{count:25}),m.instant("graphexplore.reducing.class.count"))),u((function(){e.$broadcast("reCalcViewDimensions")}),200),E();let i=0;$("rzslider").on("wheel",(function(r){r.preventDefault(),r.stopPropagation();const t=(new Date).getTime();if(!(t-i>100))return;i=t,r=r.originalEvent;let n=e.classCountSlider.value;r.deltaY<=-1?n+=1:r.deltaY>=1&&(n-=1),n!==e.classCountSlider.value&&n>=e.classCountSlider.options.floor&&n<=e.classCountSlider.options.ceil&&e.$apply((function(){e.classCountSlider.value=n,u(E,100,!0)}))}))}function E(){e.currentSliderValue=e.classCountSlider.value}function x(e){const r=e.data.fullName,n=e.data.name;i.checkDomainRangeData(r).success((function(e,s){204===s?o.warning(m.instant("graphexplore.no.domain.range",{name:n})):(h.set(g.CLASS_HIERARCHY_LAST_SELECTED_CLASS,t.hash()),t.hash("").path("domain-range-graph").search("uri",r).search("name",n))})).error((function(){o.error(m.instant("graphexplore.error.request.failed",{name:n}))}))}function L(){t.replace().hash("1"),e.instancesObj.items=[],e.showExternalElements=!1,e.showClassInfoPanel=!1,h.clearClassHieararchyState(),e.hidePrefixes="true"===h.get(g.CLASS_HIERARCHY_HIDE_PREFIXES),e.currentSliderValue=void 0,e.classHierarchyData={},r.$broadcast("angucomplete-alt:clearInput")}function A(){e.hasClassHierarchy()&&u((function(){$("#toolbar").removeClass("ng-hide")}),0)}r.$watch((function(){return r.key}),(function(){y=0,_.each(e.instancesObj.items,(function(e){r.key>e&&y++})),S++})),C.revision=function(){return S},e.adapterContainer={adapter:{remain:!0}},e.$on("goToDomainRangeGraphView",(function(e,r){x(r)})),e.$on("classCount",v),e.$on("repositoryIsSet",(function(){if(!s.isLicenseValid())return;if(I===n.getActiveRepository())return;I=n.getActiveRepository();if(e.repositoryError=null,!I)return;w=allGraphs,b().then(H)})),e.datasource=C,e.goToDomainRangeGraphView=x,e.toggleClassInfoSidePanel=function(){e.showClassInfoPanel=!e.showClassInfoPanel,r.$broadcast("sidePanelClosed")},e.getActiveRepositoryNoError=function(){if(!e.repositoryError)return n.getActiveRepository()},e.isSystemRepository=function(){return n.isSystemRepository()},e.confirmReloadClassHierarchy=function(){p.openSimpleModal({title:m.instant("confirm.operation"),message:m.instant("graphexplore.calculating.hierarchy"),warning:!0}).result.then((function(){L(),e.loader=!0,e.hierarchyError=!1,i.reloadClassHierarchy(w.contextID.uri).success((function(r){e.loader=!1,e.classHierarchyData=r,A(),v()})).error((function(r){e.loader=!1,e.hierarchyError=getError(r),o.error(getError(r),m.instant("graphexplore.error.rdf.class.request"))}))}))},e.focusOnRoot=function(){e.$broadcast("rootFocus")},e.copyToClipboard=function(e){p.openCopyToClipboardModal(e)},e.searchedClassCallback=function(e){if(e){const t={name:e.title};r.$broadcast("searchedClass",t)}},e.instancesQueryObj.query="",e.instancesFilterFunc=function(r){return r.resolvedUri.toLowerCase().indexOf(e.instancesQueryObj.query.toLowerCase())>=0},b(),e.$watch("instancesObj.items",(function(){e.instancesObj.items.length>0&&u((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("selectedClass",(function(){e.showClassInfoPanel&&function(r){const t=r.data.fullName;let n=r.data.name;if(n===t){const e=n.lastIndexOf("#");n=n.substring(e+1)}e.encodedUri=encodeURIComponent(t);const s=encodeURIComponent("prefix onto:<http://www.ontotext.com/>\nselect ?s {\n ?s a <"+t+"> .\n}");e.viewInstancesUri="sparql?name="+n+"&infer=true&sameAs=false&query="+s+"&execute=true",i.getRdfsLabelAndComment(t).success((function(r){e.rdfsLabel=r.label,e.rdfsComment=r.comment,e.expanded=!1})).error((function(){o.error("Error getting rdfs:label and rdfs:comment")})),e.instancesQueryObj.query="",e.instancesLoader=!0,i.getClassInstances(t).success((function(r){e.instancesObj.items=[],_.each(r,(function(r,t){const n={};n.type=r.startsWith("<<")&&r.endsWith(">>")?"triple":"uri",n.absUri=encodeURIComponent(r),n.absUriNonEncoded=r,n.resolvedUri=t,e.instancesObj.items.push(n)})),e.instancesLoader=!1,e.instancesSearchPlaceholder=e.instancesObj.items.length<1e3?"Search class instances":"Search first 1000 class instances",e.instancesNotFiltered=e.instancesObj.items})).error((function(){o.error(m.instant("graphexplore.error.instances.request"))}))}(e.selectedClass)})),$(document).ready((function(){$(".prefix-toggle").click((function(){$(".tooltip").hide()}))}));let I=n.getActiveRepository();function H(){L(),!e.isSystemRepository()&&e.isLicenseValid()&&(e.hierarchyError=!1,e.loader=!0,i.getClassHierarchyData(w.contextID.uri).success((function(r,t){e.showExternalElements=!0,e.loader=!1,e.classHierarchyData=r,207===t&&o.warning(m.instant("graphexplore.update.diagram"),m.instant("graphexplore.repository.data.changed")),A()})).error((function(r){e.loader=!1,e.hierarchyError=getError(r),o.error(getError(r),m.instant("graphexplore.error.rdf.class.request"))})))}e.hasClassHierarchy=function(){return e.classHierarchyData.classCount&&e.getActiveRepositoryNoError()&&!e.isSystemRepository()},e.isLicenseValid=function(){return s.isLicenseValid()},e.chosenGraph=function(e){w=e,H(),h.set("classHierarchy-selectedGraph-"+n.getActiveRepository(),w)},e.getSelGraphValue=function(){return w.contextID.value},e.isAllGraphsSelected=function(){return"all.graphs.label"===e.getSelGraphValue()}}angular.module("graphdb.framework.graphexplore.controllers.class",["pageslide-directive","ngAnimate","ui.scroll.jqlite","ui.scroll","angucomplete-alt","rzSlider","toastr","graphdb.framework.utils.localstorageadapter"]).controller("RdfClassHierarchyCtlr",n),n.$inject=["$scope","$rootScope","$location","$repositories","$licenseService","$window","toastr","GraphDataRestService","UiScrollService","RdfsLabelCommentService","$timeout","ModalService","bowser","LocalStorageAdapter","LSKeys","RDF4JRepositoriesRestService","$translate"]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[123],{186:function(e,t){function r(){return{restrict:"AE",scope:{filterQueryObj:"=",filterFunction:"&",listItemsObj:"=",listItemsNotFiltered:"=",searchPlaceholder:"@"},templateUrl:"js/angular/graphexplore/templates/listItemsSearchFilterTemplate.html",link:function(e){e.filterFunction=e.filterFunction(),e.$watch("filterQueryObj.query",(function(){var t,r,i,l;e.listItemsObj.items=(t=e.filterQueryObj.query,r=e.listItemsObj.items,i=e.listItemsNotFiltered,l=e.filterFunction,t.length>0?_.filter(i,l):r.length!==i.length?i:r)}))}}}angular.module("graphdb.framework.graphexplore.directives.searchfilter",[]).directive("listItemsSearchFilter",r),r.$inject=[]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[124],{186:function(e,t){function r(){return{restrict:"AE",scope:{filterQueryObj:"=",filterFunction:"&",listItemsObj:"=",listItemsNotFiltered:"=",searchPlaceholder:"@"},templateUrl:"js/angular/graphexplore/templates/listItemsSearchFilterTemplate.html",link:function(e){e.filterFunction=e.filterFunction(),e.$watch("filterQueryObj.query",(function(){var t,r,i,l;e.listItemsObj.items=(t=e.filterQueryObj.query,r=e.listItemsObj.items,i=e.listItemsNotFiltered,l=e.filterFunction,t.length>0?_.filter(i,l):r.length!==i.length?i:r)}))}}}angular.module("graphdb.framework.graphexplore.directives.searchfilter",[]).directive("listItemsSearchFilter",r),r.$inject=[]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[124],{184:function(e,n){function t(e){return{restrict:"AE",scope:{rdfsLabel:"=",rdfsComment:"=",expanded:"=",alwaysExpanded:"="},templateUrl:"js/angular/graphexplore/templates/rdfsCommentLabelTemplate.html",link:function(n,t){n.stringLimit=e,n.scrollToTop=function(){t[0].getElementsByClassName("rdfs-comment")[0].scrollTop=0},n.checkCommentLength=function(){return t[0].getElementsByClassName("rdfs-comment-text")[0].innerText.length<e},n.equalHeights=function(){const e=t[0].getElementsByClassName("rdfs-comment-text")[0].innerHeight;e<250&&n.expanded&&(t[0].getElementsByClassName("rdfs-comment")[0].innerHeight=e)},n.toggleFullComment=function(){n.expanded=!n.expanded},n.$watch("expanded || alwaysExpanded",(function(t){n.stringLimit=t?n.rdfsComment.length:e}))}}}angular.module("graphdb.framework.graphexplore.directives.rdfsdetails",[]).directive("rdfsCommentLabel",t).constant("SHORT_COMMENT_LENGTH",100),t.$inject=["SHORT_COMMENT_LENGTH"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[125],{184:function(e,n){function t(e){return{restrict:"AE",scope:{rdfsLabel:"=",rdfsComment:"=",expanded:"=",alwaysExpanded:"="},templateUrl:"js/angular/graphexplore/templates/rdfsCommentLabelTemplate.html",link:function(n,t){n.stringLimit=e,n.scrollToTop=function(){t[0].getElementsByClassName("rdfs-comment")[0].scrollTop=0},n.checkCommentLength=function(){return t[0].getElementsByClassName("rdfs-comment-text")[0].innerText.length<e},n.equalHeights=function(){const e=t[0].getElementsByClassName("rdfs-comment-text")[0].innerHeight;e<250&&n.expanded&&(t[0].getElementsByClassName("rdfs-comment")[0].innerHeight=e)},n.toggleFullComment=function(){n.expanded=!n.expanded},n.$watch("expanded || alwaysExpanded",(function(t){n.stringLimit=t?n.rdfsComment.length:e}))}}}angular.module("graphdb.framework.graphexplore.directives.rdfsdetails",[]).directive("rdfsCommentLabel",t).constant("SHORT_COMMENT_LENGTH",100),t.$inject=["SHORT_COMMENT_LENGTH"]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[125],{187:function(e,n){function c(e,n){return{restrict:"AE",scope:{searchData:"=",searchFields:"@",titleField:"@",searchPlaceholder:"@",initialValue:"=",searchedObjCallback:"&"},templateUrl:"js/angular/graphexplore/templates/searchIconInputTemplate.html",link:function(c,s){c.searchedObjCallback=c.searchedObjCallback(),c.performSearchActionOnEnter=function(){e.$broadcast("onEnterKeypressSearchAction")},c.showInput=function(){$("#selectGraphDropdown").hide(),s.find("#search_input #search_input_value")[0].value="",s.find(".search-icon").addClass("animated bounceOut").css("z-index","-1"),s.find("#search_input .angucomplete-holder").css("display","block"),n((function(){s.find("#search_input .angucomplete-holder").css("width","250px").css("left","-215px"),n((function(){s.find(".close-icon").css("display","block").addClass("animated bounceIn").css("z-index","3"),s.find("#search_input #search_input_value").focus()}),200)}),1)},c.hideInput=function(){s.find("#search_input #search_input_value")[0].value="",s.find("#search_input .angucomplete-holder").css("width","0px").css("left","35px"),n((function(){s.find("#search_input .angucomplete-holder").css("display","none"),$("#selectGraphDropdown").show()}),250),s.find(".close-icon").addClass("animated bounceOut").removeClass("bounceOut").css("z-index","-1").css("display","none").click((function(){$(".tooltip").hide()})),n((function(){s.find(".search-icon").css("display","inline-block").removeClass("bounceOut").addClass("bounceIn").css("z-index","3")}),200)}}}}angular.module("graphdb.framework.graphexplore.directives.searchcontrols",[]).directive("searchIconInput",c),c.$inject=["$rootScope","$timeout"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[126],{187:function(e,n){function c(e,n){return{restrict:"AE",scope:{searchData:"=",searchFields:"@",titleField:"@",searchPlaceholder:"@",initialValue:"=",searchedObjCallback:"&"},templateUrl:"js/angular/graphexplore/templates/searchIconInputTemplate.html",link:function(c,s){c.searchedObjCallback=c.searchedObjCallback(),c.performSearchActionOnEnter=function(){e.$broadcast("onEnterKeypressSearchAction")},c.showInput=function(){$("#selectGraphDropdown").hide(),s.find("#search_input #search_input_value")[0].value="",s.find(".search-icon").addClass("animated bounceOut").css("z-index","-1"),s.find("#search_input .angucomplete-holder").css("display","block"),n((function(){s.find("#search_input .angucomplete-holder").css("width","250px").css("left","-215px"),n((function(){s.find(".close-icon").css("display","block").addClass("animated bounceIn").css("z-index","3"),s.find("#search_input #search_input_value").focus()}),200)}),1)},c.hideInput=function(){s.find("#search_input #search_input_value")[0].value="",s.find("#search_input .angucomplete-holder").css("width","0px").css("left","35px"),n((function(){s.find("#search_input .angucomplete-holder").css("display","none"),$("#selectGraphDropdown").show()}),250),s.find(".close-icon").addClass("animated bounceOut").removeClass("bounceOut").css("z-index","-1").css("display","none").click((function(){$(".tooltip").hide()})),n((function(){s.find(".search-icon").css("display","inline-block").removeClass("bounceOut").addClass("bounceIn").css("z-index","3")}),200)}}}}angular.module("graphdb.framework.graphexplore.directives.searchcontrols",[]).directive("searchIconInput",c),c.$inject=["$rootScope","$timeout"]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[126],{183:function(e,r){function o(e,r){return{restrict:"A",scope:{},templateUrl:"js/angular/graphexplore/templates/systemRepoWarningTemplate.html",link:function(o){o.isSystemRepository=function(){return"SYSTEM"===e.getActiveRepository()},o.hasPermission=function(){return r.hasPermission()}}}}angular.module("graphdb.framework.graphexplore.directives.sysrepo",["graphdb.framework.graphexplore.controllers.class"]).directive("systemRepoWarning",o),o.$inject=["$repositories","$rootScope"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[127],{183:function(e,r){function o(e,r){return{restrict:"A",scope:{},templateUrl:"js/angular/graphexplore/templates/systemRepoWarningTemplate.html",link:function(o){o.isSystemRepository=function(){return"SYSTEM"===e.getActiveRepository()},o.hasPermission=function(){return r.hasPermission()}}}}angular.module("graphdb.framework.graphexplore.directives.sysrepo",["graphdb.framework.graphexplore.controllers.class"]).directive("systemRepoWarning",o),o.$inject=["$repositories","$rootScope"]}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[127],{266:function(e,a){PluginRegistry.add("route",[{url:"/hierarchy",module:"graphdb.framework.graphexplore",path:"graphexplore/app",chunk:"hierarchy",controller:"RdfClassHierarchyCtlr",templateUrl:"pages/rdfClassHierarchyInfo.html",title:"view.class.hierarchy.title",reloadOnSearch:!1,helpInfo:"view.class.hierarchy.helpInfo"},{url:"/domain-range-graph",module:"graphdb.framework.graphexplore",path:"graphexplore/app",chunk:"domain-range-graph",controller:"DomainRangeGraphCtlr",templateUrl:"pages/domainRangeInfo.html",title:"view.domain.range.graph.title",helpInfo:"view.domain.range.graph.helpInfo"},{url:"/relationships",module:"graphdb.framework.graphexplore",path:"graphexplore/app",chunk:"relationships",controller:"DependenciesChordCtrl",templateUrl:"pages/dependencies.html",title:"view.class.relationships.title",helpInfo:"view.class.relationships.helpInfo"},{url:"/graphs-visualizations",module:"graphdb.framework.graphexplore",path:"graphexplore/app",chunk:"graphs-visualizations",controller:"GraphsVisualizationsCtrl",templateUrl:"pages/graphs-visualizations.html",title:"visual.graph.label",reloadOnSearch:!1,helpInfo:"view.visual.graph.helpInfo"},{url:"/graphs-visualizations/config/save/:configName?",module:"graphdb.framework.graphexplore",path:"graphexplore/app",chunk:"graph-config",controller:"GraphConfigCtrl",templateUrl:"pages/graph-config/saveGraphConfig.html",title:"view.create.visual.graph.title",helpInfo:"view.create.visual.graph.helpInfo"}]),PluginRegistry.add("main.menu",{items:[{label:"Explore",labelKey:"menu.explore.label",href:"#",order:1,role:"IS_AUTHENTICATED_FULLY",icon:"icon-data",guideSelector:"menu-explore"},{label:"Class relationships",labelKey:"menu.class.relationships.label",href:"relationships",order:2,parent:"Explore",guideSelector:"sub-menu-class-relationships"},{label:"Class hierarchy",labelKey:"menu.class.hierarchy.label",href:"hierarchy",order:1,parent:"Explore",guideSelector:"menu-class-hierarchy"},{label:"Visual graph",labelKey:"visual.graph.label",href:"graphs-visualizations",order:5,parent:"Explore",children:[{href:"graphs-visualizations/config/save",children:[]}],guideSelector:"sub-menu-visual-graph"}]})}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[128],{266:function(e,a){PluginRegistry.add("route",[{url:"/hierarchy",module:"graphdb.framework.graphexplore",path:"graphexplore/app",chunk:"hierarchy",controller:"RdfClassHierarchyCtlr",templateUrl:"pages/rdfClassHierarchyInfo.html",title:"view.class.hierarchy.title",reloadOnSearch:!1,helpInfo:"view.class.hierarchy.helpInfo"},{url:"/domain-range-graph",module:"graphdb.framework.graphexplore",path:"graphexplore/app",chunk:"domain-range-graph",controller:"DomainRangeGraphCtlr",templateUrl:"pages/domainRangeInfo.html",title:"view.domain.range.graph.title",helpInfo:"view.domain.range.graph.helpInfo"},{url:"/relationships",module:"graphdb.framework.graphexplore",path:"graphexplore/app",chunk:"relationships",controller:"DependenciesChordCtrl",templateUrl:"pages/dependencies.html",title:"view.class.relationships.title",helpInfo:"view.class.relationships.helpInfo"},{url:"/graphs-visualizations",module:"graphdb.framework.graphexplore",path:"graphexplore/app",chunk:"graphs-visualizations",controller:"GraphsVisualizationsCtrl",templateUrl:"pages/graphs-visualizations.html",title:"visual.graph.label",reloadOnSearch:!1,helpInfo:"view.visual.graph.helpInfo"},{url:"/graphs-visualizations/config/save/:configName?",module:"graphdb.framework.graphexplore",path:"graphexplore/app",chunk:"graph-config",controller:"GraphConfigCtrl",templateUrl:"pages/graph-config/saveGraphConfig.html",title:"view.create.visual.graph.title",helpInfo:"view.create.visual.graph.helpInfo"}]),PluginRegistry.add("main.menu",{items:[{label:"Explore",labelKey:"menu.explore.label",href:"#",order:1,role:"IS_AUTHENTICATED_FULLY",icon:"icon-data",guideSelector:"menu-explore"},{label:"Class relationships",labelKey:"menu.class.relationships.label",href:"relationships",order:2,parent:"Explore",guideSelector:"sub-menu-class-relationships"},{label:"Class hierarchy",labelKey:"menu.class.hierarchy.label",href:"hierarchy",order:1,parent:"Explore",guideSelector:"menu-class-hierarchy"},{label:"Visual graph",labelKey:"visual.graph.label",href:"graphs-visualizations",order:5,parent:"Explore",children:[{href:"graphs-visualizations/config/save",children:[]}],guideSelector:"sub-menu-visual-graph"}]})}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[128],{173:function(e,n){angular.module("graphdb.framework.graphexplore.services.rdfsdetails",[]).factory("RdfsLabelCommentService",(function(){return{processAndFilterLabelAndComment:function(e){function n(e){const n={};for(let r in e)if(e.hasOwnProperty(r)){let a=r;r.indexOf(":")>-1&&(a=r,r=r.split(":")[1].toLowerCase()),n[r]=e[a]}return n}const r=e.results.bindings,a=[],t=[];_.each(r,(function(e){let r;angular.isUndefined(e.label)||(r=n(e.label),a.push(r)),angular.isUndefined(e.comment)||(r=n(e.comment),t.push(r))}));const l=function(e){return"en"===e.lang||"de"===e.lang},o=$.grep(a,l)[0],i=$.grep(t,l)[0],s=angular.isUndefined(o)?a.length>0?a[0].value:void 0:o.value,d=angular.isUndefined(i)?t.length>0?t[0].value:void 0:i.value;return{rdfsLabel:s,rdfsComment:d}}}}))}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[129],{173:function(e,n){angular.module("graphdb.framework.graphexplore.services.rdfsdetails",[]).factory("RdfsLabelCommentService",(function(){return{processAndFilterLabelAndComment:function(e){function n(e){const n={};for(let r in e)if(e.hasOwnProperty(r)){let a=r;r.indexOf(":")>-1&&(a=r,r=r.split(":")[1].toLowerCase()),n[r]=e[a]}return n}const r=e.results.bindings,a=[],t=[];_.each(r,(function(e){let r;angular.isUndefined(e.label)||(r=n(e.label),a.push(r)),angular.isUndefined(e.comment)||(r=n(e.comment),t.push(r))}));const l=function(e){return"en"===e.lang||"de"===e.lang},o=$.grep(a,l)[0],i=$.grep(t,l)[0],s=angular.isUndefined(o)?a.length>0?a[0].value:void 0:o.value,d=angular.isUndefined(i)?t.length>0?t[0].value:void 0:i.value;return{rdfsLabel:s,rdfsComment:d}}}}))}}]);