graphdb-workbench 2.8.1-TR1 → 2.8.1
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.
- package/dist/{0.ae02baa403fbd1a7cc93.bundle.js → 0.93ef946b5d439221c394.bundle.js} +3 -3
- package/dist/{1.d11629dd3d4ac454a102.bundle.js → 1.a73a929263b6072ffe55.bundle.js} +1 -1
- package/dist/{100.3abbd576e5536d4292f3.bundle.js → 100.81ded34d7fde61c38c9f.bundle.js} +1 -1
- package/dist/{101.b68d884189e2d782f9db.bundle.js → 101.03dce7284e0849b17a77.bundle.js} +1 -1
- package/dist/{104.56df8dfc430d6245d0fd.bundle.js → 104.5610e2ec109654922537.bundle.js} +1 -1
- package/dist/{106.cd544c47e948789ee528.bundle.js → 106.466cdea2f6e3240f27a7.bundle.js} +1 -1
- package/dist/{110.66e0266aa1d8819e4956.bundle.js → 110.af135801398303553036.bundle.js} +1 -1
- package/dist/{111.79d8512ffc6546c7d07a.bundle.js → 111.ad7b205b5f380f161952.bundle.js} +1 -1
- package/dist/{112.642f037985264473114e.bundle.js → 112.4b95b5e7e5034ac8718e.bundle.js} +1 -1
- package/dist/{113.f57327392686a0436c59.bundle.js → 113.d0ae979cfab5bcc7889a.bundle.js} +1 -1
- package/dist/{114.0b6bf50017f3a18cb2bb.bundle.js → 114.37cfdc58c1101bb5faec.bundle.js} +1 -1
- package/dist/{115.0bef2edf8104cfe9fcb1.bundle.js → 115.c4311bcd11e7401b38f2.bundle.js} +1 -1
- package/dist/{116.5098c4d565f343d82aa7.bundle.js → 116.d3298cdbe473c4859be0.bundle.js} +1 -1
- package/dist/{117.f8e9008ec361c561359c.bundle.js → 117.eb040b49b8f68c9023e6.bundle.js} +1 -1
- package/dist/{118.cf2c44198e836a0b9ba0.bundle.js → 118.2581b5984f2215217317.bundle.js} +1 -1
- package/dist/{119.f10b6373c066a482c1f9.bundle.js → 119.594356fa685a2a21b8c5.bundle.js} +1 -1
- package/dist/{12.10e84465b7ad808dad8b.bundle.js → 12.eafc81263d8d64b426fe.bundle.js} +1 -1
- package/dist/{120.8595c6770e907e21f0fd.bundle.js → 120.082e673858610e5055af.bundle.js} +1 -1
- package/dist/{121.2f6de9cd737026fda3b2.bundle.js → 121.cd9b4b81650e4ac5b802.bundle.js} +1 -1
- package/dist/{13.88cfe4e5391b6b678cd8.bundle.js → 13.02f91d1e051781f6b67b.bundle.js} +1 -1
- package/dist/{14.92d6b6761ef6cd70b36d.bundle.js → 14.e4770ab66956f0aae86e.bundle.js} +11 -11
- package/dist/{146.2830d16d8a9bc73aa0eb.bundle.js → 146.aca40c574ff8f33be656.bundle.js} +1 -1
- package/dist/{16.e7b01ccdf70c5485402f.bundle.js → 16.2f1a9a9d1433f7ea6f11.bundle.js} +1 -1
- package/dist/{17.fd8a9a8ebe5f4d9e2f11.bundle.js → 17.783a24e8cb2819cc5909.bundle.js} +1 -1
- package/dist/{18.c79beb000f78666dc1ea.bundle.js → 18.6f4a46573cdde105d447.bundle.js} +2 -2
- package/dist/186.2c2a3daf2e31a391bc75.bundle.js +1 -1
- package/dist/{19.d93a2a4183d72e8cb0d6.bundle.js → 19.53e2e72c7895a8dbd47c.bundle.js} +1 -1
- package/dist/{2.900ef83c7a6b380aca5e.bundle.js → 2.9a7bb4072beb72168b07.bundle.js} +2 -2
- package/dist/{21.e71d40f83086661e7f61.bundle.js → 21.5804fc4f2c76826296ea.bundle.js} +1 -1
- package/dist/{217.f23953e7013fe9628984.bundle.js → 217.080fd544ec64bd268d0a.bundle.js} +1 -1
- package/dist/{22.26828925f52d93debe51.bundle.js → 22.a4bca55317e2e42facec.bundle.js} +1 -1
- package/dist/{226.7924f3c96e16c5e72c5b.bundle.js → 226.5c5a0166e2209f688c50.bundle.js} +1 -1
- package/dist/23.0ed551f7233a7eecb7d9.bundle.js +3 -0
- package/dist/{24.d7b7127e0cd0c8bbef98.bundle.js → 24.8f112e678308ce7d3626.bundle.js} +2 -2
- package/dist/{25.3a2036abc3774ed24148.bundle.js → 25.94015e8699386efadfd0.bundle.js} +2 -2
- package/dist/{250.137f3fe61ea786d8f59d.bundle.js → 250.dca7db03f6692defe4cc.bundle.js} +1 -1
- package/dist/{26.2393280351ab069f6f30.bundle.js → 26.67ef26e6953e52d38857.bundle.js} +1 -1
- package/dist/{261.9c82a592fef22b855787.bundle.js → 261.75417e0cf0c20282bf8b.bundle.js} +1 -1
- package/dist/{27.b9a244767f6c3482fdb8.bundle.js → 27.00b495e785c07902e77c.bundle.js} +2 -2
- package/dist/{271.f24ebd16b309e6f32e37.bundle.js → 271.eb0f1ca5fd65a01d1899.bundle.js} +1 -1
- package/dist/{28.b587ba8cc784632a83fc.bundle.js → 28.eb86a8896c02b26d60a9.bundle.js} +1 -1
- package/dist/{289.4e5af5efc77a8ba6f954.bundle.js → 289.bba52a396013e1f71326.bundle.js} +1 -1
- package/dist/{29.19532418f4f5cf80a5a5.bundle.js → 29.b2217c006814c00e92b6.bundle.js} +1 -1
- package/dist/{290.eacfa7804d4617359162.bundle.js → 290.41b13ee58ca90a12eced.bundle.js} +1 -1
- package/dist/{293.7607c41b310a02aebfd3.bundle.js → 293.d3c55a248ecbc14c1b73.bundle.js} +1 -1
- package/dist/{3.6563d17b2cd41128890b.bundle.js → 3.5419ae7eb3fbc9d6bdee.bundle.js} +1 -1
- package/dist/{30.c95fbd1f309468fbcb34.bundle.js → 30.ff64c0e5f6c39e670ec7.bundle.js} +1 -1
- package/dist/{306.4776f920572ba67d87f7.bundle.js → 306.41277b4d3b9380d54d30.bundle.js} +1 -1
- package/dist/{31.e88ecb2b45e6f4de62d3.bundle.js → 31.519fa2d00495176c01c4.bundle.js} +1 -1
- package/dist/{318.f165089ab6a2347d6270.bundle.js → 318.55e49c3e196d797ba501.bundle.js} +1 -1
- package/dist/{32.6f28c2b0829f31822825.bundle.js → 32.b302966aa4bede5d7e30.bundle.js} +1 -1
- package/dist/{329.3531904303a06d96871a.bundle.js → 329.c72b59163f6842d84b42.bundle.js} +1 -1
- package/dist/{33.a0d9678fb193cff2d255.bundle.js → 33.948f4d1d7c7a25c68c20.bundle.js} +1 -1
- package/dist/{336.530f8a7a8a94a6f90e10.bundle.js → 336.1bc4977d8c53cc1b0234.bundle.js} +1 -1
- package/dist/{337.ca72e3a0564046837b16.bundle.js → 337.648ebc23bd110d807f96.bundle.js} +1 -1
- package/dist/{338.374161b39b10166c9383.bundle.js → 338.c73c7473c913105b91b7.bundle.js} +1 -1
- package/dist/{339.d60015ae962cb45f5c9f.bundle.js → 339.9f752190a8075a585893.bundle.js} +1 -1
- package/dist/{340.d7764886e9fa2462e226.bundle.js → 340.3a6f2a972ba03df3a892.bundle.js} +1 -1
- package/dist/{341.2f072aee67e9e07bdd9f.bundle.js → 341.4cdd6fa08575fc4e3038.bundle.js} +1 -1
- package/dist/{342.38fb6bf2b408a6d47190.bundle.js → 342.4460f42722f320863837.bundle.js} +1 -1
- package/dist/{343.2d31c04a850624d7b8f0.bundle.js → 343.3bcf18842dac8f9814fb.bundle.js} +1 -1
- package/dist/{344.bdb757ea72b5f4f5b3aa.bundle.js → 344.251d1e4c0513fc6f6f68.bundle.js} +1 -1
- package/dist/{345.546419e39affcfcd1852.bundle.js → 345.dfaa8f10271321ec18b2.bundle.js} +1 -1
- package/dist/{346.d32c26eea6a80b8cc37c.bundle.js → 346.275291fef805d19a0594.bundle.js} +1 -1
- package/dist/347.02ce6e0b6d5c5f809701.bundle.js +1 -0
- package/dist/{348.2af6c86e359a89205966.bundle.js → 348.9d188fb860eb90c98d08.bundle.js} +1 -1
- package/dist/{349.c408af02db127f8869f1.bundle.js → 349.30e6c2d544cb5062ffae.bundle.js} +1 -1
- package/dist/{350.5e899a92f38c16489e02.bundle.js → 350.ef6ee52efdfc21bdaa67.bundle.js} +1 -1
- package/dist/{351.c09d36a810cf40b9c25f.bundle.js → 351.f1d51e5853e47a85db53.bundle.js} +1 -1
- package/dist/{352.55911f19f713e462dbad.bundle.js → 352.955d0f08ada9009a848f.bundle.js} +1 -1
- package/dist/353.e09a678885b9f58b5bfa.bundle.js +1 -0
- package/dist/{354.9817814cea17732668b8.bundle.js → 354.10e714b1265e02bba235.bundle.js} +1 -1
- package/dist/{355.ad0bf431f6c11d1ae224.bundle.js → 355.11ac5e75ef62b26f3e6a.bundle.js} +1 -1
- package/dist/356.3fd23c353a63f5814ef0.bundle.js +1 -0
- package/dist/357.4cfa3ac31c756fbea15c.bundle.js +1 -0
- package/dist/358.cf91186112fbb9528fb1.bundle.js +1 -0
- package/dist/359.8c70e4e004683f761bf6.bundle.js +1 -0
- package/dist/{36.1d7577b17840cacdf0cc.bundle.js → 36.0c3211079c87e02dc179.bundle.js} +1 -1
- package/dist/360.0b216b42c3b91d8beb75.bundle.js +1 -0
- package/dist/{361.ed52a00185c531e08c48.bundle.js → 361.19e47a37db3a034f11b3.bundle.js} +1 -1
- package/dist/{362.efb136eaecbd5340f6ed.bundle.js → 362.dd6626f5e714733db97a.bundle.js} +1 -1
- package/dist/{363.63d642cc9d857de99c9d.bundle.js → 363.0eaafc923989076350ca.bundle.js} +1 -1
- package/dist/{364.f2cb7cb3a22233473def.bundle.js → 364.e47d4b0808023243e495.bundle.js} +1 -1
- package/dist/{365.2f51a94cafaa642980ca.bundle.js → 365.25243b31f316f0709a39.bundle.js} +1 -1
- package/dist/{366.ad3baaa586d05913abe3.bundle.js → 366.f5ffb64d172e5bf20af7.bundle.js} +1 -1
- package/dist/{367.4211395aff6ef7bf4849.bundle.js → 367.9ecf8c66399c5eb4fa6f.bundle.js} +1 -1
- package/dist/{368.c47ba2c9fff8b9f81b5c.bundle.js → 368.a1cc59c92c37a3a74e46.bundle.js} +1 -1
- package/dist/{369.aea9209ff82df8dcf091.bundle.js → 369.6b67ecef87b43c66b042.bundle.js} +1 -1
- package/dist/{370.6926f2217ab428187508.bundle.js → 370.97c470c1d62a597814f7.bundle.js} +1 -1
- package/dist/{371.7d843569095a7b1c0ddf.bundle.js → 371.0fe4cdde0c41e177a87e.bundle.js} +1 -1
- package/dist/{372.c77982eeb32da732bb18.bundle.js → 372.44806d1ec03b1b3d0dcf.bundle.js} +1 -1
- package/dist/{373.d1af1eb63f347c74a705.bundle.js → 373.09e562b380789fe476de.bundle.js} +1 -1
- package/dist/{374.4e6e769c5c54037fb87a.bundle.js → 374.e25d5b6b4dd87b1be3f2.bundle.js} +1 -1
- package/dist/{375.98162ba8ec236ad62a94.bundle.js → 375.6ea69c8a14d728f29122.bundle.js} +1 -1
- package/dist/{376.f1a33b8eac5cba3b866a.bundle.js → 376.06b974e5fc3bcd56b62d.bundle.js} +1 -1
- package/dist/{377.add679f2b5606f856749.bundle.js → 377.abc11ae0635ffd8c15ed.bundle.js} +1 -1
- package/dist/{378.a6934451c464b146fc17.bundle.js → 378.f82f1a99fe16c28ebebb.bundle.js} +1 -1
- package/dist/{379.189bd477d9aa69f43690.bundle.js → 379.ffbb53f8d5e5afff60c7.bundle.js} +1 -1
- package/dist/{380.dc7f6c4f308e03531407.bundle.js → 380.08cea5e4c44980bf940e.bundle.js} +1 -1
- package/dist/{381.9c2eb155a9c97c017380.bundle.js → 381.d6b888b78e2d1b73f12e.bundle.js} +1 -1
- package/dist/{382.3ab1a4612dbcf4892073.bundle.js → 382.441c501fc2f3bfced158.bundle.js} +1 -1
- package/dist/{383.5da272f5acd1fac32aad.bundle.js → 383.c0c1af01db655690eb57.bundle.js} +1 -1
- package/dist/{384.5fcf059ada3b8a42d706.bundle.js → 384.cc9d743c30a973a28c33.bundle.js} +1 -1
- package/dist/{385.9c0b96788faa18f9e560.bundle.js → 385.9664f45dc2325d2d6527.bundle.js} +1 -1
- package/dist/{386.ef99a1daa887f9994e02.bundle.js → 386.e50766d6caa933d42584.bundle.js} +1 -1
- package/dist/{387.a4e4d616ffd96e2fadab.bundle.js → 387.3e6f6632ced052beb517.bundle.js} +1 -1
- package/dist/{388.5886ae70a4fa56638410.bundle.js → 388.bd4dbc8bc1c4d7f5106f.bundle.js} +1 -1
- package/dist/{389.af5d3bd2d739b142bc81.bundle.js → 389.ad25bb02cb3a9c2413b5.bundle.js} +1 -1
- package/dist/390.59af16a17510fb088b23.bundle.js +1 -0
- package/dist/{391.306af114af5986fd635d.bundle.js → 391.66b7ca48385310ebcf7b.bundle.js} +1 -1
- package/dist/{392.8672da919405465e4104.bundle.js → 392.5f61cc2fcec97682c31a.bundle.js} +1 -1
- package/dist/{393.c5d035ecc740781c04d7.bundle.js → 393.ad60a160f6d8f07db066.bundle.js} +1 -1
- package/dist/{394.3e722468bccbfdd42b01.bundle.js → 394.945a629ae80e98a3842c.bundle.js} +1 -1
- package/dist/{395.34e869837c0dfc05fc52.bundle.js → 395.1f45e91da65c4b15e7b7.bundle.js} +1 -1
- package/dist/{396.b4940df42a9388a1fa65.bundle.js → 396.19f00beeb595f6a0f097.bundle.js} +1 -1
- package/dist/{397.b25d94494ea955deb1e0.bundle.js → 397.6aed7b44e353db151018.bundle.js} +1 -1
- package/dist/{398.dce5ba48d746a385c600.bundle.js → 398.e0bcc3c752132fc25da7.bundle.js} +1 -1
- package/dist/{399.bb00f12527eb3e8488bb.bundle.js → 399.eba5e66616fb20d1f217.bundle.js} +1 -1
- package/dist/{4.f88e5bb228972375cc28.bundle.js → 4.361006ddfb9bbb7d67df.bundle.js} +1 -1
- package/dist/{40.05a9805a5b07c189df24.bundle.js → 40.e592bbbeb7155297dd8f.bundle.js} +1 -1
- package/dist/{400.43f8b04da11b234ec8b1.bundle.js → 400.f7a109f7fd41e7c4ec9f.bundle.js} +1 -1
- package/dist/{401.c44df443cf8caf6d4d6b.bundle.js → 401.8acac08b0a8c32b47774.bundle.js} +1 -1
- package/dist/402.2ef4344492d68f055819.bundle.js +1 -0
- package/dist/403.1d5681bf228979543c7b.bundle.js +1 -0
- package/dist/404.e9b5e7705921b8ec0081.bundle.js +1 -0
- package/dist/405.f87fbb7fcf93b52d72d7.bundle.js +1 -0
- package/dist/406.f4b991230b8c43c64eab.bundle.js +1 -0
- package/dist/{407.2d842a4b317f06b71c7f.bundle.js → 407.442379ae0047095fc75c.bundle.js} +1 -1
- package/dist/408.d10880277e9e99f32a49.bundle.js +1 -0
- package/dist/409.2fe904fe914dc62950d7.bundle.js +1 -0
- package/dist/410.5f8fefeb5ea73ed7f63f.bundle.js +1 -0
- package/dist/411.76741a256e08034ede0e.bundle.js +1 -0
- package/dist/412.80d2e5441334ac9b28a0.bundle.js +1 -0
- package/dist/413.479f974bbd17255bc83f.bundle.js +1 -0
- package/dist/{414.67b4c86161dbd68e0b2a.bundle.js → 414.f7f1d8e7cfb5f16cd505.bundle.js} +1 -1
- package/dist/{415.9ce7901f1e74412c17a9.bundle.js → 415.4f10529e67213d7b6d84.bundle.js} +1 -1
- package/dist/{416.750f6233af2097d0fa6e.bundle.js → 416.4d2b094d54d2052d87eb.bundle.js} +1 -1
- package/dist/{417.d48c24e509334bf68dfd.bundle.js → 417.504d13b7f74634324cf5.bundle.js} +1 -1
- package/dist/42.981459b944d366411351.bundle.js +1 -0
- package/dist/43.f97141cf3b00b959acfe.bundle.js +1 -0
- package/dist/{44.de4dcb467d772c868306.bundle.js → 44.766b82ce5de1a524cc3f.bundle.js} +1 -1
- package/dist/{48.279b5e18079ae3236125.bundle.js → 48.cefc88274887fbd818bb.bundle.js} +1 -1
- package/dist/{49.994126a85737bdb7b895.bundle.js → 49.8f2e5e43165270a66b83.bundle.js} +1 -1
- package/dist/{5.48db74b2d08bc31e6609.bundle.js → 5.c7f5c26819f9c1274988.bundle.js} +1 -1
- package/dist/{52.10366c2c972b0c368dd5.bundle.js → 52.01117e4b38baeac7e827.bundle.js} +1 -1
- package/dist/{56.cad4e885a180e8f5ba16.bundle.js → 56.9535d85cb3dee788f807.bundle.js} +1 -1
- package/dist/{57.628c8edb7f3ea7559aeb.bundle.js → 57.1b0a2dda660da0ff1ebf.bundle.js} +1 -1
- package/dist/{58.ff52db4cd6651f271ee6.bundle.js → 58.4d15f0ad937826e84e09.bundle.js} +1 -1
- package/dist/{59.e24c0d3a5a2e99964322.bundle.js → 59.6175f3bd68c4e73ef173.bundle.js} +1 -1
- package/dist/{6.feadde6ea1b3951e6ffc.bundle.js → 6.0acc78945eb1297c0a53.bundle.js} +1 -1
- package/dist/{60.73f28fb466ff93ea8c99.bundle.js → 60.2c5027dea3e3703d7c38.bundle.js} +1 -1
- package/dist/61.a1919d783086b54de2f4.bundle.js +1 -0
- package/dist/{66.3b2834055886e18be670.bundle.js → 66.cf23d764c4f2e4fb4eb5.bundle.js} +1 -1
- package/dist/{67.e57d5c01f9c358ce95c4.bundle.js → 67.d7be53a97d6bf1135546.bundle.js} +2 -2
- package/dist/{68.bfe1be4722764506c724.bundle.js → 68.5af0fbaa99335f8bb96e.bundle.js} +1 -1
- package/dist/{69.6a091bc2232315eb1162.bundle.js → 69.4a7177444dc0e4b94315.bundle.js} +1 -1
- package/dist/{7.26ca23aa2fc78c5134fa.bundle.js → 7.daca4c258c5846916933.bundle.js} +1 -1
- package/dist/{70.379b070afa69e89fc19d.bundle.js → 70.0e9e1543e9156f9c8233.bundle.js} +1 -1
- package/dist/{71.a5708253786dc076b748.bundle.js → 71.2977a633f1a95a9d26e9.bundle.js} +1 -1
- package/dist/72.9b46af75f4baffcb308d.bundle.js +1 -1
- package/dist/{73.b9b252f90e6eb21b4555.bundle.js → 73.a091eaa41118830ad60f.bundle.js} +1 -1
- package/dist/74.45817f2a0eb750af3acb.bundle.js +1 -0
- package/dist/{77.edb359682edd6fa840f5.bundle.js → 77.0aeceb0259e18b2839ed.bundle.js} +1 -1
- package/dist/{8.3e745f7c7feea8ef0d89.bundle.js → 8.d891a8afeaf11c649a13.bundle.js} +1 -1
- package/dist/{80.640f01c06722e92cc871.bundle.js → 80.0f6d2fbe9d6adc2359ec.bundle.js} +1 -1
- package/dist/{81.8499c3cd340fbbdab7ba.bundle.js → 81.66475d9be7fdfd0aff8e.bundle.js} +1 -1
- package/dist/{82.6fddce14fa5db6d3d2e4.bundle.js → 82.baf988276ed830f4c619.bundle.js} +1 -1
- package/dist/{87.a2d4ca7f2399981400e7.bundle.js → 87.7ad24d3b014ce8c14700.bundle.js} +1 -1
- package/dist/9.3dc9baf7ba9cade788d4.bundle.js +1 -0
- package/dist/{92.ffa46df6b348e925334a.bundle.js → 92.c51359902266bcccf8b5.bundle.js} +1 -1
- package/dist/{93.9435148522ff648ea355.bundle.js → 93.fd7426d3c440f994b6c9.bundle.js} +1 -1
- package/dist/{96.b0ae820f47d0afb0c2c0.bundle.js → 96.0cac4d9f1bc3560d4e0a.bundle.js} +1 -1
- package/dist/{bundle.ef9d667043403016bf13.bundle.js → bundle.f64830972ccb2587bed5.bundle.js} +10 -10
- package/dist/css/bootstrap-graphdb-theme.css +6 -3
- package/dist/css/clustermanagement.css +1 -0
- package/dist/css/repositories.css +1 -0
- package/dist/i18n/locale-en.json +1 -0
- package/dist/i18n/locale-fr.json +1 -0
- package/dist/index.html +4 -4
- package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
- package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
- package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
- package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
- package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
- package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
- package/dist/js/angular/security/templates/user.html +1 -1
- package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
- package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +1 -1
- package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
- package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
- package/dist/license-checker.json +2 -2
- package/dist/{main.f6983968e07a3fb0fdd4.css → main.287a0b24331e95c60e85.css} +1 -1
- package/dist/{main.b38aec450958f3ee4f14.bundle.js → main.f3d65bbba1196d025a67.bundle.js} +1 -1
- package/dist/pages/aclmanagement.html +2 -2
- package/dist/pages/autocomplete.html +1 -1
- package/dist/pages/choose-repository-type.html +1 -1
- package/dist/pages/cluster-management/clusterInfo.html +3 -3
- package/dist/pages/create-index.html +1 -1
- package/dist/pages/dependencies.html +1 -1
- package/dist/pages/domainRangeInfo.html +2 -2
- package/dist/pages/edit.html +1 -1
- package/dist/pages/explore.html +1 -1
- package/dist/pages/export.html +1 -1
- package/dist/pages/find.html +1 -1
- package/dist/pages/graph-config/saveGraphConfig.html +8 -8
- package/dist/pages/graphs-visualizations.html +7 -7
- package/dist/pages/guides.html +1 -1
- package/dist/pages/import.html +2 -2
- package/dist/pages/jdbc-create.html +1 -1
- package/dist/pages/monitor/backup-and-restore.html +1 -1
- package/dist/pages/monitor/queries.html +1 -1
- package/dist/pages/monitor/resources.html +1 -1
- package/dist/pages/namespaces.html +2 -2
- package/dist/pages/plugins.html +1 -1
- package/dist/pages/rdfClassHierarchyInfo.html +7 -7
- package/dist/pages/rdfrank.html +2 -2
- package/dist/pages/repositories.html +5 -2
- package/dist/pages/repository.html +5 -3
- package/dist/pages/similarity-indexes.html +1 -1
- package/dist/pages/sparql-editor.html +1 -1
- package/dist/pages/sparql-template-create.html +1 -1
- package/dist/pages/ux-test1.html +2 -2
- package/dist/pages/webapi.html +2 -2
- package/dist/{polyfills-dom.00375ac99a037cb2ab69.bundle.js → polyfills-dom.fb0575ac1c147db1a811.bundle.js} +1 -1
- package/dist/res/swagger5/fonts/fa-solid-900.woff2 +0 -0
- package/dist/res/swagger5/index.html +12 -12
- package/dist/vendor.a08cc5f4f3735b7995ef.css +31 -0
- package/dist/{vendor.29baf59ddf58b8e375ed.bundle.js → vendor.c2676bb2d145f8aed2a0.bundle.js} +4 -4
- package/dist/{vendors~polyfills-core-js.bf6de4f5103f78d69ccf.bundle.js → vendors~polyfills-core-js.168d234b1f056561696f.bundle.js} +1 -1
- package/package.json +1 -1
- package/dist/23.543c375f0f86d771dbf0.bundle.js +0 -3
- package/dist/347.57ed4a385e855cad7c0b.bundle.js +0 -1
- package/dist/353.bca7ad8f953be01367f2.bundle.js +0 -1
- package/dist/356.5a005a80d3da9112a320.bundle.js +0 -1
- package/dist/357.7153867a09520f642644.bundle.js +0 -1
- package/dist/358.48b6152e563fe4c8f16a.bundle.js +0 -1
- package/dist/359.f3d0c391ee07446ccb3e.bundle.js +0 -1
- package/dist/360.abbeb351a52651620fcd.bundle.js +0 -1
- package/dist/390.a85b5054ed766528011f.bundle.js +0 -1
- package/dist/402.a27c7d3020fb83fd9603.bundle.js +0 -1
- package/dist/403.340a87b8c2061a671b16.bundle.js +0 -1
- package/dist/404.5a27d40ab9205fafb83a.bundle.js +0 -1
- package/dist/405.b8d7877478a3993e20ff.bundle.js +0 -1
- package/dist/406.8b992547c2ab764d77a5.bundle.js +0 -1
- package/dist/408.7e584653eb94469c494e.bundle.js +0 -1
- package/dist/409.fa5069507e3bec5dfa50.bundle.js +0 -1
- package/dist/410.3ce11777a703060d76f3.bundle.js +0 -1
- package/dist/411.3c7dd0b42a140940c407.bundle.js +0 -1
- package/dist/412.d5252e14455696e1b76a.bundle.js +0 -1
- package/dist/413.88a5f43d77d65cb580f4.bundle.js +0 -1
- package/dist/42.d7d9449579c0f3794663.bundle.js +0 -1
- package/dist/43.ea28943c80d79daa0649.bundle.js +0 -1
- package/dist/61.d7dbf4e7c0e4c9e8c961.bundle.js +0 -1
- package/dist/74.49f8cf2b5302352d9954.bundle.js +0 -1
- package/dist/9.456bbf3bb8220ce89c06.bundle.js +0 -1
- package/dist/vendor.54210054e552a2a96fb6.css +0 -26
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[27,77,140,236,250,251,253,295,324],{121:function(e,t,n){"use strict";n.r(t),n.d(t,"ContextType",(function(){return o})),n.d(t,"ContextTypes",(function(){return r}));class o{constructor(e,t){this.id=e,this.labelKey=t}static getAllType(){return[r.ALL,r.EXPLICIT,r.IMPLICIT]}static getContextType(e){return this.getAllType().find(t=>t.id===e)}}const r={ALL:new o("all","explore.explicit.implicit"),EXPLICIT:new o("explicit","explore.explicit"),IMPLICIT:new o("implicit","explore.implicit")}},127: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"]},143: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"}])},144:function(e,t,n){"use strict";n.r(t),n.d(t,"ResourceDetails",(function(){return o}));class o{constructor(){this.image=void 0,this.uri=void 0,this.label=void 0,this.encodeURI=void 0,this.comment=void 0,this.context=void 0}}},174:function(e,t){angular.module("graphdb.framework.rest.explore.rest.service",[]).factory("ExploreRestService",n),n.$inject=["$http"];function n(e){return{getResourceDetails:(t,n,o,r)=>e.get("rest/explore/details",{params:{uri:t,triple:n,context:o},headers:{Accept:r||"application/json"}}),getGraph:(t,n,o)=>e.get("rest/explore/graph",{params:{uri:t.uri,triple:t.triple,inference:t.contextType.id,role:t.role,bnodes:t.blanks,sameAs:t.sameAs,context:t.context},headers:{Accept:n||"application/x-graphdb-table-results+json",Link:o?"<"+o+">":""}}).then(e=>e.data)}}},175:function(e,t,n){"use strict";n.r(t),n.d(t,"ResourceInfo",(function(){return s}));var o=n(144),r=n(121);class s{constructor(){this.role="subject",this.uri=void 0,this.triple=void 0,this.context=void 0,this.contextType=r.ContextTypes.EXPLICIT,this.sameAs=!0,this.details=new o.ResourceDetails,this.blanks=!0}}},176:function(e,t,n){"use strict";n.r(t),n.d(t,"RoleType",(function(){return o}));const o={SUBJECT:"subject",PREDICATE:"predicate",OBJECT:"object",CONTEXT:"context",ALL:"all"}},244:function(e,t,n){"use strict";n.r(t);n(143),n(174);var o=n(546),r=n(0),s=n(175),a=n(121),i=n(176),c=n(89),l=n(19),u=n(642),p=n(127);function d(e,t,n,r,d,f,m,g,x,w,h,y,R,S){let T;e.ContextTypes=a.ContextTypes,e.contextTypes=a.ContextType.getAllType(),e.currentContextTypeId=a.ContextTypes.EXPLICIT.id,e.roles=[i.RoleType.SUBJECT,i.RoleType.PREDICATE,i.RoleType.OBJECT,i.RoleType.CONTEXT,i.RoleType.ALL],e.resourceInfo=void 0,e.isLoading=!1,e.fileTypes=w,e.toggleSameAs=()=>{e.resourceInfo.sameAs=!e.resourceInfo.sameAs,e.exploreResource()},e.getActiveRepository=()=>d.getActiveRepository(),e.isTripleResource=()=>!!e.resourceInfo.triple,e.encodeURIComponent=e=>encodeURIComponent(e),e.getRdfStarLocalNames=e=>{let t=e.slice();return e.replace(/[<>]+/g,"").split(" ").forEach(e=>{t=t.replace(e,m.getLocalName(e))}),t},e.getLocalName=e=>m.getLocalName(e);e.loadResource=()=>{S.getResourceDetails(e.resourceInfo.uri,e.resourceInfo.triple,e.resourceInfo.context).success(t=>{e.resourceInfo.details=t,e.resourceInfo.context=e.resourceInfo.details.context,"object"!==e.resourceInfo.uri&&(e.resourceInfo.details.encodeURI=encodeURIComponent(e.resourceInfo.details.uri))}).error(e=>n.error(y.instant("explore.error.resource.details",{data:getError(e)}))),e.exploreResource()},e.isContextAvailable=()=>null!==e.resourceInfo.context&&"http://rdf4j.org/schema/rdf4j#SHACLShapeGraph"===e.resourceInfo.context,e.goToGraphsViz=()=>{t.path("graphs-visualizations").search("uri",e.resourceInfo.uri)},e.exploreResource=()=>{I(!0),null!=r.context&&(e.resourceInfo.context=r.context),t.search("role",e.resourceInfo.role),t.replace(),O()},e.downloadExport=t=>{S.getGraph(e.resourceInfo,t.type).then(e=>{t.type.indexOf("json")>-1&&(e=JSON.stringify(e));const n=navigator.userAgent.toLowerCase();if(-1!==n.indexOf("safari")&&-1===n.indexOf("chrome"))window.open('data:attachment/csv;filename="statements.'+t.extension+'",'+encodeURIComponent(e),"statements."+t.extension);else{const n=new Blob([e],{type:t.type});Object(o.saveAs)(n,"statements"+t.extension)}}).catch(e=>{n.error(getError(e),y.instant("common.error"))}).finally(()=>{I(!1)})},e.openJSONLDExportSettings=function(t){f.open({templateUrl:"js/angular/core/components/export-settings-modal/exportSettingsModal.html",controller:p.ExportSettingsCtrl,size:"lg",scope:e,resolve:{format:function(){return t.name}}}).result.then((function(n){e.downloadJSONLDExport(t,n.link,n.currentMode)}))},e.downloadJSONLDExport=function(t,r,s){S.getGraph(e.resourceInfo,t.type,r).then((async function(e){if("JSON"===t.name&&(e=JSON.stringify(e)),"JSON-LD"===t.name)switch(s.name){case"expanded":e=await u.expand(e),e=JSON.stringify(e);break;case"flattened":e=await u.flatten(e,r),e=JSON.stringify(e);break;case"compacted":e=await u.compact(e,r),e=JSON.stringify(e);break;case"context":e=await u.context(e,r),e=JSON.stringify(e);break;case"frame":e=await u.frame(e,r),e=JSON.stringify(e);break;case"framed":e=await u.compact(e,r),e=JSON.stringify(e)}const n=navigator.userAgent.toLowerCase();if(-1!==n.indexOf("safari")&&-1===n.indexOf("chrome"))window.open('data:attachment/csv;filename="statements.'+t.extension+'",'+encodeURIComponent(e),"statements."+t.extension);else{const n=new Blob([e],{type:t.type});Object(o.saveAs)(n,"statements"+t.extension)}})).catch((function(e){const t=getError(e);n.error(t,y.instant("common.error"))}))},e.changeRole=t=>{e.resourceInfo.role=t,e.resourceInfo.role===i.RoleType.CONTEXT&&(e.resourceInfo.contextType=a.ContextTypes.EXPLICIT),e.exploreResource()},e.changeInference=t=>{e.resourceInfo.contextType=a.ContextType.getContextType(t),e.exploreResource()},e.copyToClipboardResult=e=>{g.openCopyToClipboardModal(e)};const v=()=>{var n;e.resourceInfo||(e.resourceInfo=new s.ResourceInfo,n=e.resourceInfo,r.prefix&&r.localName&&T[r.prefix]?n.uri=T[r.prefix]+r.localName:t.search().uri?n.uri=t.search().uri+(t.hash()?"#"+t.hash():""):t.search().triple?n.triple=t.search().triple+(t.hash()?"#"+t.hash():""):n.uri=t.absUrl(),n.uri=n.uri&&n.uri.replace(/<|>/g,""),null!=r.context&&(e.resourceInfo.context=r.context),e.resourceInfo.role=t.search().role?t.search().role:i.RoleType.SUBJECT)},I=t=>{e.isLoading=!!t},b=()=>({showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showResultInfo:!0,downloadAsOn:!1,showQueryButton:!1,componentId:"resource-view-component",prefixes:T,maxPersistentResponseSize:0,render:c.RenderingMode.YASR,showYasqeActionButtons:!1,yasqeActionButtons:l.DISABLE_YASQE_BUTTONS_CONFIGURATION}),O=()=>{S.getGraph(e.resourceInfo).then(t=>{((t={})=>{const n={};angular.extend(n,e.yasguiConfig||b(),t),e.yasguiConfig=n})({sparqlResponse:t})}).catch(e=>{n.error(y.instant("explore.error.resource",{data:getError(e)}))}).finally(()=>{I(!1)})},E=t=>{e.resourceInfo.contextType=t.appSettings.DEFAULT_INFERENCE&&!e.resourceInfo.role===i.RoleType.CONTEXT?a.ContextTypes.ALL:a.ContextTypes.EXPLICIT,e.resourceInfo.sameAs=t.appSettings.DEFAULT_INFERENCE&&t.appSettings.DEFAULT_SAMEAS};e.$on("$destroy",()=>{N.forEach(e=>e())});const N=[];N.push(e.$watch((function(){return e.getActiveRepositoryObject()}),(function(t){t&&Promise.all([h.getPrincipal(),d.getPrefixes(d.getActiveRepository())]).then(([t,n])=>{v(),E(t),T=n,e.loadResource()}).catch(e=>{n.error(y.instant("get.namespaces.error.msg",{error:getError(e)}))})})))}function f(e,t,n,o,s,a,i,c,l,u,p,d){function f(){c.checkAutocompleteStatus().success((function(t){if(!t){const e=Object(r.decodeHTML)(d.instant("explore.autocomplete.warning.msg"));i.warning("",`<div class="autocomplete-toast"><a href="autocomplete">${e}</a></div>`,{allowHtml:!0})}e.autocompleteEnabled=t})).error((function(){i.error(d.instant("explore.error.autocomplete"))}))}function m(){p.getNamespaces(o.getActiveRepository()).success((function(t){e.namespaces=t.results.bindings.map((function(e){return{prefix:e.prefix.value,uri:e.namespace.value}})),e.loader=!1})).error((function(t){const n=getError(t);i.error(n,d.instant("common.error")),e.loader=!1}))}function g(e){const t=e.indexOf("<")>=0&&e.lastIndexOf(">")===e.length-1,n=-1===e.indexOf("<")&&-1===e.lastIndexOf(">"),o=/^<?[http|urn].*>?$/.test(e)&&(t||n);let r=!1;if(o)if(e.indexOf("http")>=0){const t=e.indexOf("//");r=t>4&&e.substring(t+2).length>0}else e.indexOf("urn")>=0&&(r=e.substring(4).length>0);return o&&r}let x,w;function h(t){function o(t){a((function(){e.form&&(e.form.$dirty=t)}))}t||(t=document.getElementById("resources_finder_value").value),t&&g(t)?(o(!1),n.path("resource").search("uri",t)):(o(!0),t&&i.error(d.instant("explore.error.invalid.input")))}e.submit=h,e.getAutocompleteSuggestions=function(t){if(!/<|>/.test(t)&&":"===t.slice(-1)){const n=l.getNamespaceUriForPrefix(e.namespaces,t.slice(0,-1));w=n!==w?n:w,w&&$("#resources_finder_value").val(w)}let n;if(e.autocompleteEnabled){const e=t.replace(w,w+";");n=c.getAutocompleteSuggestions(e)}else n=s.when(e.autocompleteEnabled);return n},e.inputChangedFn=function(){x=document.getElementById("resources_finder_value").value,e.form.$dirty=!(x&&g(x))},e.selectedUriCallback=function(t){e.selectedUri={name:t.title},h(e.selectedUri.name)},e.selectedUri={name:""},e.autocompleteEnabled=!1,angular.isDefined(u.search)&&a((function(){$("#resources_finder_value").val(u.search),$(".search-button").click()}),500),e.getActiveRepository()&&(f(),m()),e.$on("repositoryIsSet",(function(){f(),m()}))}function m(e,t,n,o,r,s,a,i,c,l,u){e.uriParam=n.search().uri,e.newRow={subject:e.uriParam,object:{type:"uri",datatype:""}},e.newResource=!1,e.datatypeOptions=c.getDatatypeOptions(),e.activeRepository=function(){return r.getActiveRepository()},e.getClassInstancesDetails=function(){l.getNamespaces(e.activeRepository()).success((function(t){e.namespaces=t.results.bindings.map((function(e){return{prefix:e.prefix.value,uri:e.namespace.value}})),e.loader=!1})).error((function(t){const n=getError(t);o.error(n,u.instant("common.error")),e.loader=!1})),i.getDetails(e.uriParam).success((function(t){e.details=t,e.details.encodeURI=encodeURIComponent(e.details.uri)})).error((function(e){o.error(u.instant("explore.error.resource.details",{data:getError(e)}))})),i.getGraph(e.uriParam).then((function(t){const n=c.buildStatements(t,e.uriParam);e.statements=n,e.newResource=!n.length}))},e.addStatement=function(){e.newRowPredicate.$setSubmitted(),e.newRowObject.$setSubmitted(),e.newRowContext.$setSubmitted(),e.newRowPredicate.$valid&&e.newRowObject.$valid&&e.newRowContext.$valid&&(e.statements.push(_.cloneDeep(e.newRow)),e.newRow={subject:e.uriParam,object:{type:"uri",datatype:""}},e.newRowPredicate.$setPristine(),e.newRowPredicate.$setUntouched(),e.newRowObject.$setPristine(),e.newRowObject.$setUntouched(),e.newRowContext.$setPristine(),e.newRowContext.$setUntouched())},e.removeStatement=function(t){e.statements.splice(t,1)},e.getLocalName=function(e){return i.getLocalName(e)},e.checkValid=function(e){if(!angular.isUndefined(e))return!0;return u.instant("explore.validation")},e.validEditRow=function(){return e.rowform.$valid},e.viewTrig=function(){s.open({templateUrl:"js/angular/explore/templates/viewTrig.html",controller:"ViewTrigCtrl",size:"lg",resolve:{data:function(){return c.transformToTrig(e.statements)}}})},e.save=function(){const r=e.newResource?"POST":"PUT";t({method:r,url:"rest/resource?uri="+encodeURIComponent(e.uriParam),headers:{"Content-Type":"application/x-trig"},data:c.transformToTrig(e.statements)}).success((function(){o.success(u.instant("explore.resource.saved"));const t=a((function(){n.path("resource").search("uri",e.uriParam)}),500);e.$on("$destroy",(function(){a.cancel(t)}))})).error((function(e){o.error(getError(e))}))},e.$watch((function(){return r.getActiveRepository()}),(function(){e.activeRepository()&&e.getClassInstancesDetails()})),e.validateUri=function(t){let n=!0;const o=t||"";if(-1===o.indexOf(":"))n=!1;else{const t=o.substring(0,o.indexOf(":"));if(""===i.getNamespaceUriForPrefix(e.namespaces,t)){!1===/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/.test(o)&&(n=!1);const e=o.match(/\//g);(void 0===e||e.length<3)&&(n=!1)}else{o.substring(o.indexOf(":")+1).trim().length<1&&(n=!1)}}return n}}function g(e,t,n){e.trig=n,e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.explore.controllers",["ngCookies","ngRoute","ui.bootstrap","toastr","graphdb.framework.core","graphdb.framework.core.services.repositories","graphdb.framework.explore.services","graphdb.workbench.utils.filetypes","graphdb.framework.rest.explore.rest.service"]).controller("FindResourceCtrl",f).controller("ExploreCtrl",d).controller("EditResourceCtrl",m).controller("ViewTrigCtrl",g),d.$inject=["$scope","$location","toastr","$routeParams","$repositories","$uibModal","ClassInstanceDetailsService","ModalService","RDF4JRepositoriesRestService","FileTypes","$jwtAuth","$translate","$q","ExploreRestService"],f.$inject=["$scope","$http","$location","$repositories","$q","$timeout","toastr","AutocompleteRestService","ClassInstanceDetailsService","$routeParams","RDF4JRepositoriesRestService","$translate"],m.$inject=["$scope","$http","$location","toastr","$repositories","$uibModal","$timeout","ClassInstanceDetailsService","StatementsService","RDF4JRepositoriesRestService","$translate"],g.$inject=["$scope","$uibModalInstance","data"]},545:function(e,t){(function(t){e.exports=t}).call(this,{})},546: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,s=e.requestFileSystem||r||e.mozRequestFileSystem,a=function(t){(e.setImmediate||e.setTimeout)((function(){throw t}),0)},i=0,c=function(t){var o=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?o():setTimeout(o,500)},l=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){a(e)}}},u=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},p=function(t,a){t=u(t);var p,d,f,m=this,g=t.type,x=!1,w=function(){l(m,"writestart progress write writeend".split(" "))},h=function(){(!x&&p||(p=n().createObjectURL(t)),d)?d.location.href=p:null==e.open(p,"_blank")&&"undefined"!=typeof safari&&(e.location.href=p);m.readyState=m.DONE,w(),c(p)},y=function(e){return function(){if(m.readyState!==m.DONE)return e.apply(this,arguments)}},R={create:!0,exclusive:!1};if(m.readyState=m.INIT,a||(a="download"),o)return p=n().createObjectURL(t),o.href=p,o.download=a,void setTimeout((function(){var e,t;e=o,t=new MouseEvent("click"),e.dispatchEvent(t),w(),c(p),m.readyState=m.DONE}));e.chrome&&g&&"application/octet-stream"!==g&&(f=t.slice||t.webkitSlice,t=f.call(t,0,t.size,"application/octet-stream"),x=!0),r&&"download"!==a&&(a+=".download"),("application/octet-stream"===g||r)&&(d=e),s?(i+=t.size,s(e.TEMPORARY,i,y((function(e){e.root.getDirectory("saved",R,y((function(e){var n=function(){e.getFile(a,R,y((function(e){e.createWriter(y((function(n){n.onwriteend=function(t){d.location.href=e.toURL(),m.readyState=m.DONE,l(m,"writeend",t),c(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&h()},"writestart progress write abort".split(" ").forEach((function(e){n["on"+e]=m["on"+e]})),n.write(t),m.abort=function(){n.abort(),m.readyState=m.DONE},m.readyState=m.WRITING})),h)})),h)};e.getFile(a,{create:!1},y((function(e){e.remove(),n()})),y((function(e){e.code===e.NOT_FOUND_ERR?n():h()})))})),h)})),h)):h()},d=p.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t){return navigator.msSaveOrOpenBlob(u(e),t)}:(d.abort=function(){this.readyState=this.DONE,l(this,"abort")},d.readyState=d.INIT=0,d.WRITING=1,d.DONE=2,d.error=d.onwritestart=d.onprogress=d.onwrite=d.onabort=d.onerror=d.onwriteend=null,function(e,t){return new p(e,t)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);
|
|
2
|
-
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */e.exports?e.exports.saveAs=r:null!==n(
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[27,77,140,236,250,251,253,295,324],{122:function(e,t,n){"use strict";n.r(t),n.d(t,"ContextType",(function(){return o})),n.d(t,"ContextTypes",(function(){return r}));class o{constructor(e,t){this.id=e,this.labelKey=t}static getAllType(){return[r.ALL,r.EXPLICIT,r.IMPLICIT]}static getContextType(e){return this.getAllType().find(t=>t.id===e)}}const r={ALL:new o("all","explore.explicit.implicit"),EXPLICIT:new o("explicit","explore.explicit"),IMPLICIT:new o("implicit","explore.implicit")}},127: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"]},143: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"}])},144:function(e,t,n){"use strict";n.r(t),n.d(t,"ResourceDetails",(function(){return o}));class o{constructor(){this.image=void 0,this.uri=void 0,this.label=void 0,this.encodeURI=void 0,this.comment=void 0,this.context=void 0}}},174:function(e,t){angular.module("graphdb.framework.rest.explore.rest.service",[]).factory("ExploreRestService",n),n.$inject=["$http"];function n(e){return{getResourceDetails:(t,n,o,r)=>e.get("rest/explore/details",{params:{uri:t,triple:n,context:o},headers:{Accept:r||"application/json"}}),getGraph:(t,n,o)=>e.get("rest/explore/graph",{params:{uri:t.uri,triple:t.triple,inference:t.contextType.id,role:t.role,bnodes:t.blanks,sameAs:t.sameAs,context:t.context},headers:{Accept:n||"application/x-graphdb-table-results+json",Link:o?"<"+o+">":""}}).then(e=>e.data)}}},175:function(e,t,n){"use strict";n.r(t),n.d(t,"ResourceInfo",(function(){return s}));var o=n(144),r=n(122);class s{constructor(){this.role="subject",this.uri=void 0,this.triple=void 0,this.context=void 0,this.contextType=r.ContextTypes.EXPLICIT,this.sameAs=!0,this.details=new o.ResourceDetails,this.blanks=!0}}},176:function(e,t,n){"use strict";n.r(t),n.d(t,"RoleType",(function(){return o}));const o={SUBJECT:"subject",PREDICATE:"predicate",OBJECT:"object",CONTEXT:"context",ALL:"all"}},244:function(e,t,n){"use strict";n.r(t);n(143),n(174);var o=n(547),r=n(0),s=n(175),a=n(122),i=n(176),c=n(89),l=n(19),u=n(643),p=n(127);function d(e,t,n,r,d,f,m,g,x,w,h,y,R,S){let T;e.ContextTypes=a.ContextTypes,e.contextTypes=a.ContextType.getAllType(),e.currentContextTypeId=a.ContextTypes.EXPLICIT.id,e.roles=[i.RoleType.SUBJECT,i.RoleType.PREDICATE,i.RoleType.OBJECT,i.RoleType.CONTEXT,i.RoleType.ALL],e.resourceInfo=void 0,e.isLoading=!1,e.fileTypes=w,e.toggleSameAs=()=>{e.resourceInfo.sameAs=!e.resourceInfo.sameAs,e.exploreResource()},e.getActiveRepository=()=>d.getActiveRepository(),e.isTripleResource=()=>!!e.resourceInfo.triple,e.encodeURIComponent=e=>encodeURIComponent(e),e.getRdfStarLocalNames=e=>{let t=e.slice();return e.replace(/[<>]+/g,"").split(" ").forEach(e=>{t=t.replace(e,m.getLocalName(e))}),t},e.getLocalName=e=>m.getLocalName(e);e.loadResource=()=>{S.getResourceDetails(e.resourceInfo.uri,e.resourceInfo.triple,e.resourceInfo.context).success(t=>{e.resourceInfo.details=t,e.resourceInfo.context=e.resourceInfo.details.context,"object"!==e.resourceInfo.uri&&(e.resourceInfo.details.encodeURI=encodeURIComponent(e.resourceInfo.details.uri))}).error(e=>n.error(y.instant("explore.error.resource.details",{data:getError(e)}))),e.exploreResource()},e.isContextAvailable=()=>null!==e.resourceInfo.context&&"http://rdf4j.org/schema/rdf4j#SHACLShapeGraph"===e.resourceInfo.context,e.goToGraphsViz=()=>{t.path("graphs-visualizations").search("uri",e.resourceInfo.uri)},e.exploreResource=()=>{I(!0),null!=r.context&&(e.resourceInfo.context=r.context),t.search("role",e.resourceInfo.role),t.replace(),O()},e.downloadExport=t=>{S.getGraph(e.resourceInfo,t.type).then(e=>{t.type.indexOf("json")>-1&&(e=JSON.stringify(e));const n=navigator.userAgent.toLowerCase();if(-1!==n.indexOf("safari")&&-1===n.indexOf("chrome"))window.open('data:attachment/csv;filename="statements.'+t.extension+'",'+encodeURIComponent(e),"statements."+t.extension);else{const n=new Blob([e],{type:t.type});Object(o.saveAs)(n,"statements"+t.extension)}}).catch(e=>{n.error(getError(e),y.instant("common.error"))}).finally(()=>{I(!1)})},e.openJSONLDExportSettings=function(t){f.open({templateUrl:"js/angular/core/components/export-settings-modal/exportSettingsModal.html",controller:p.ExportSettingsCtrl,size:"lg",scope:e,resolve:{format:function(){return t.name}}}).result.then((function(n){e.downloadJSONLDExport(t,n.link,n.currentMode)}))},e.downloadJSONLDExport=function(t,r,s){S.getGraph(e.resourceInfo,t.type,r).then((async function(e){if("JSON"===t.name&&(e=JSON.stringify(e)),"JSON-LD"===t.name)switch(s.name){case"expanded":e=await u.expand(e),e=JSON.stringify(e);break;case"flattened":e=await u.flatten(e,r),e=JSON.stringify(e);break;case"compacted":e=await u.compact(e,r),e=JSON.stringify(e);break;case"context":e=await u.context(e,r),e=JSON.stringify(e);break;case"frame":e=await u.frame(e,r),e=JSON.stringify(e);break;case"framed":e=await u.compact(e,r),e=JSON.stringify(e)}const n=navigator.userAgent.toLowerCase();if(-1!==n.indexOf("safari")&&-1===n.indexOf("chrome"))window.open('data:attachment/csv;filename="statements.'+t.extension+'",'+encodeURIComponent(e),"statements."+t.extension);else{const n=new Blob([e],{type:t.type});Object(o.saveAs)(n,"statements"+t.extension)}})).catch((function(e){const t=getError(e);n.error(t,y.instant("common.error"))}))},e.changeRole=t=>{e.resourceInfo.role=t,e.resourceInfo.role===i.RoleType.CONTEXT&&(e.resourceInfo.contextType=a.ContextTypes.EXPLICIT),e.exploreResource()},e.changeInference=t=>{e.resourceInfo.contextType=a.ContextType.getContextType(t),e.exploreResource()},e.copyToClipboardResult=e=>{g.openCopyToClipboardModal(e)};const v=()=>{var n;e.resourceInfo||(e.resourceInfo=new s.ResourceInfo,n=e.resourceInfo,r.prefix&&r.localName&&T[r.prefix]?n.uri=T[r.prefix]+r.localName:t.search().uri?n.uri=t.search().uri+(t.hash()?"#"+t.hash():""):t.search().triple?n.triple=t.search().triple+(t.hash()?"#"+t.hash():""):n.uri=t.absUrl(),n.uri=n.uri&&n.uri.replace(/<|>/g,""),null!=r.context&&(e.resourceInfo.context=r.context),e.resourceInfo.role=t.search().role?t.search().role:i.RoleType.SUBJECT)},I=t=>{e.isLoading=!!t},b=()=>({showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showResultInfo:!0,downloadAsOn:!1,showQueryButton:!1,componentId:"resource-view-component",prefixes:T,maxPersistentResponseSize:0,render:c.RenderingMode.YASR,showYasqeActionButtons:!1,yasqeActionButtons:l.DISABLE_YASQE_BUTTONS_CONFIGURATION}),O=()=>{S.getGraph(e.resourceInfo).then(t=>{((t={})=>{const n={};angular.extend(n,e.yasguiConfig||b(),t),e.yasguiConfig=n})({sparqlResponse:t})}).catch(e=>{n.error(y.instant("explore.error.resource",{data:getError(e)}))}).finally(()=>{I(!1)})},E=t=>{e.resourceInfo.contextType=t.appSettings.DEFAULT_INFERENCE&&!e.resourceInfo.role===i.RoleType.CONTEXT?a.ContextTypes.ALL:a.ContextTypes.EXPLICIT,e.resourceInfo.sameAs=t.appSettings.DEFAULT_INFERENCE&&t.appSettings.DEFAULT_SAMEAS};e.$on("$destroy",()=>{N.forEach(e=>e())});const N=[];N.push(e.$watch((function(){return e.getActiveRepositoryObject()}),(function(t){t&&Promise.all([h.getPrincipal(),d.getPrefixes(d.getActiveRepository())]).then(([t,n])=>{v(),E(t),T=n,e.loadResource()}).catch(e=>{n.error(y.instant("get.namespaces.error.msg",{error:getError(e)}))})})))}function f(e,t,n,o,s,a,i,c,l,u,p,d){function f(){c.checkAutocompleteStatus().success((function(t){if(!t){const e=Object(r.decodeHTML)(d.instant("explore.autocomplete.warning.msg"));i.warning("",`<div class="autocomplete-toast"><a href="autocomplete">${e}</a></div>`,{allowHtml:!0})}e.autocompleteEnabled=t})).error((function(){i.error(d.instant("explore.error.autocomplete"))}))}function m(){p.getNamespaces(o.getActiveRepository()).success((function(t){e.namespaces=t.results.bindings.map((function(e){return{prefix:e.prefix.value,uri:e.namespace.value}})),e.loader=!1})).error((function(t){const n=getError(t);i.error(n,d.instant("common.error")),e.loader=!1}))}function g(e){const t=e.indexOf("<")>=0&&e.lastIndexOf(">")===e.length-1,n=-1===e.indexOf("<")&&-1===e.lastIndexOf(">"),o=/^<?[http|urn].*>?$/.test(e)&&(t||n);let r=!1;if(o)if(e.indexOf("http")>=0){const t=e.indexOf("//");r=t>4&&e.substring(t+2).length>0}else e.indexOf("urn")>=0&&(r=e.substring(4).length>0);return o&&r}let x,w;function h(t){function o(t){a((function(){e.form&&(e.form.$dirty=t)}))}t||(t=document.getElementById("resources_finder_value").value),t&&g(t)?(o(!1),n.path("resource").search("uri",t)):(o(!0),t&&i.error(d.instant("explore.error.invalid.input")))}e.submit=h,e.getAutocompleteSuggestions=function(t){if(!/<|>/.test(t)&&":"===t.slice(-1)){const n=l.getNamespaceUriForPrefix(e.namespaces,t.slice(0,-1));w=n!==w?n:w,w&&$("#resources_finder_value").val(w)}let n;if(e.autocompleteEnabled){const e=t.replace(w,w+";");n=c.getAutocompleteSuggestions(e)}else n=s.when(e.autocompleteEnabled);return n},e.inputChangedFn=function(){x=document.getElementById("resources_finder_value").value,e.form.$dirty=!(x&&g(x))},e.selectedUriCallback=function(t){e.selectedUri={name:t.title},h(e.selectedUri.name)},e.selectedUri={name:""},e.autocompleteEnabled=!1,angular.isDefined(u.search)&&a((function(){$("#resources_finder_value").val(u.search),$(".search-button").click()}),500),e.getActiveRepository()&&(f(),m()),e.$on("repositoryIsSet",(function(){f(),m()}))}function m(e,t,n,o,r,s,a,i,c,l,u){e.uriParam=n.search().uri,e.newRow={subject:e.uriParam,object:{type:"uri",datatype:""}},e.newResource=!1,e.datatypeOptions=c.getDatatypeOptions(),e.activeRepository=function(){return r.getActiveRepository()},e.getClassInstancesDetails=function(){l.getNamespaces(e.activeRepository()).success((function(t){e.namespaces=t.results.bindings.map((function(e){return{prefix:e.prefix.value,uri:e.namespace.value}})),e.loader=!1})).error((function(t){const n=getError(t);o.error(n,u.instant("common.error")),e.loader=!1})),i.getDetails(e.uriParam).success((function(t){e.details=t,e.details.encodeURI=encodeURIComponent(e.details.uri)})).error((function(e){o.error(u.instant("explore.error.resource.details",{data:getError(e)}))})),i.getGraph(e.uriParam).then((function(t){const n=c.buildStatements(t,e.uriParam);e.statements=n,e.newResource=!n.length}))},e.addStatement=function(){e.newRowPredicate.$setSubmitted(),e.newRowObject.$setSubmitted(),e.newRowContext.$setSubmitted(),e.newRowPredicate.$valid&&e.newRowObject.$valid&&e.newRowContext.$valid&&(e.statements.push(_.cloneDeep(e.newRow)),e.newRow={subject:e.uriParam,object:{type:"uri",datatype:""}},e.newRowPredicate.$setPristine(),e.newRowPredicate.$setUntouched(),e.newRowObject.$setPristine(),e.newRowObject.$setUntouched(),e.newRowContext.$setPristine(),e.newRowContext.$setUntouched())},e.removeStatement=function(t){e.statements.splice(t,1)},e.getLocalName=function(e){return i.getLocalName(e)},e.checkValid=function(e){if(!angular.isUndefined(e))return!0;return u.instant("explore.validation")},e.validEditRow=function(){return e.rowform.$valid},e.viewTrig=function(){s.open({templateUrl:"js/angular/explore/templates/viewTrig.html",controller:"ViewTrigCtrl",size:"lg",resolve:{data:function(){return c.transformToTrig(e.statements)}}})},e.save=function(){const r=e.newResource?"POST":"PUT";t({method:r,url:"rest/resource?uri="+encodeURIComponent(e.uriParam),headers:{"Content-Type":"application/x-trig"},data:c.transformToTrig(e.statements)}).success((function(){o.success(u.instant("explore.resource.saved"));const t=a((function(){n.path("resource").search("uri",e.uriParam)}),500);e.$on("$destroy",(function(){a.cancel(t)}))})).error((function(e){o.error(getError(e))}))},e.$watch((function(){return r.getActiveRepository()}),(function(){e.activeRepository()&&e.getClassInstancesDetails()})),e.validateUri=function(t){let n=!0;const o=t||"";if(-1===o.indexOf(":"))n=!1;else{const t=o.substring(0,o.indexOf(":"));if(""===i.getNamespaceUriForPrefix(e.namespaces,t)){!1===/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/.test(o)&&(n=!1);const e=o.match(/\//g);(void 0===e||e.length<3)&&(n=!1)}else{o.substring(o.indexOf(":")+1).trim().length<1&&(n=!1)}}return n}}function g(e,t,n){e.trig=n,e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.explore.controllers",["ngCookies","ngRoute","ui.bootstrap","toastr","graphdb.framework.core","graphdb.framework.core.services.repositories","graphdb.framework.explore.services","graphdb.workbench.utils.filetypes","graphdb.framework.rest.explore.rest.service"]).controller("FindResourceCtrl",f).controller("ExploreCtrl",d).controller("EditResourceCtrl",m).controller("ViewTrigCtrl",g),d.$inject=["$scope","$location","toastr","$routeParams","$repositories","$uibModal","ClassInstanceDetailsService","ModalService","RDF4JRepositoriesRestService","FileTypes","$jwtAuth","$translate","$q","ExploreRestService"],f.$inject=["$scope","$http","$location","$repositories","$q","$timeout","toastr","AutocompleteRestService","ClassInstanceDetailsService","$routeParams","RDF4JRepositoriesRestService","$translate"],m.$inject=["$scope","$http","$location","toastr","$repositories","$uibModal","$timeout","ClassInstanceDetailsService","StatementsService","RDF4JRepositoriesRestService","$translate"],g.$inject=["$scope","$uibModalInstance","data"]},546:function(e,t){(function(t){e.exports=t}).call(this,{})},547: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,s=e.requestFileSystem||r||e.mozRequestFileSystem,a=function(t){(e.setImmediate||e.setTimeout)((function(){throw t}),0)},i=0,c=function(t){var o=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?o():setTimeout(o,500)},l=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){a(e)}}},u=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},p=function(t,a){t=u(t);var p,d,f,m=this,g=t.type,x=!1,w=function(){l(m,"writestart progress write writeend".split(" "))},h=function(){(!x&&p||(p=n().createObjectURL(t)),d)?d.location.href=p:null==e.open(p,"_blank")&&"undefined"!=typeof safari&&(e.location.href=p);m.readyState=m.DONE,w(),c(p)},y=function(e){return function(){if(m.readyState!==m.DONE)return e.apply(this,arguments)}},R={create:!0,exclusive:!1};if(m.readyState=m.INIT,a||(a="download"),o)return p=n().createObjectURL(t),o.href=p,o.download=a,void setTimeout((function(){var e,t;e=o,t=new MouseEvent("click"),e.dispatchEvent(t),w(),c(p),m.readyState=m.DONE}));e.chrome&&g&&"application/octet-stream"!==g&&(f=t.slice||t.webkitSlice,t=f.call(t,0,t.size,"application/octet-stream"),x=!0),r&&"download"!==a&&(a+=".download"),("application/octet-stream"===g||r)&&(d=e),s?(i+=t.size,s(e.TEMPORARY,i,y((function(e){e.root.getDirectory("saved",R,y((function(e){var n=function(){e.getFile(a,R,y((function(e){e.createWriter(y((function(n){n.onwriteend=function(t){d.location.href=e.toURL(),m.readyState=m.DONE,l(m,"writeend",t),c(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&h()},"writestart progress write abort".split(" ").forEach((function(e){n["on"+e]=m["on"+e]})),n.write(t),m.abort=function(){n.abort(),m.readyState=m.DONE},m.readyState=m.WRITING})),h)})),h)};e.getFile(a,{create:!1},y((function(e){e.remove(),n()})),y((function(e){e.code===e.NOT_FOUND_ERR?n():h()})))})),h)})),h)):h()},d=p.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t){return navigator.msSaveOrOpenBlob(u(e),t)}:(d.abort=function(){this.readyState=this.DONE,l(this,"abort")},d.readyState=d.INIT=0,d.WRITING=1,d.DONE=2,d.error=d.onwritestart=d.onprogress=d.onwrite=d.onabort=d.onerror=d.onwriteend=null,function(e,t){return new p(e,t)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);
|
|
2
|
+
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */e.exports?e.exports.saveAs=r:null!==n(551)&&null!=n(546)&&(void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o))},551:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},648:function(e,t){},89:function(e,t,n){"use strict";n.r(t),n.d(t,"RenderingMode",(function(){return o}));const o={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[271],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[271],{121:function(t,e,s){"use strict";s.r(e),s.d(e,"ChatAnswerModel",(function(){return n})),s.d(e,"ContinueChatRun",(function(){return a}));class n{constructor(t={}){this._chatId=t.chatId,this._chatName=t.chatName||"",this._timestamp=t.timestamp,this._messages=t.messages||[],this._continueRunId=t.continueRunId}get chatId(){return this._chatId}set chatId(t){this._chatId=t}get chatName(){return this._chatName}set chatName(t){this._chatName=t}get timestamp(){return this._timestamp}set timestamp(t){this._timestamp=t}get messages(){return this._messages}set messages(t){this._messages=t}get continueRunId(){return this._continueRunId}set continueRunId(t){this._continueRunId=t}}class a{constructor(t,e){this._chatItem=t,this._runId=e}get chatId(){return this._chatItem.chatId}toContinueRunRequestPayload(){return{conversationId:this.chatId,runId:this._runId,agentId:this._chatItem.agentId,tzOffset:-(new Date).getTimezoneOffset()}}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[28,93,135,141,144,147,329],{116:function(e,t,n){"use strict";n.r(t),n.d(t,"UrlUtils",(function(){return i}));const r=/^(h|ht|htt|http|https|http:|https:|http:\/|https:\/|http:\/\/|https:\/\/|https?:\/\/[\S]*)$/i,o=/^(f|ft|ftp|ftps|ftp:|ftps:|ftp:\/|ftps:\/|ftp:\/\/|ftps:\/\/[\S]*)$/i;class i{static isValidUrl(e){return r.test(e)||o.test(e)}static doesNotContain(e,t){return!new RegExp(t).test(e)}static doesNotUseProtocol(e,t){return!new RegExp("^("+t.join("|")+")://","i").test(e)}}},134:function(e,t,n){"use strict";n.r(t);var r=n(116);angular.module("graphdb.framework.core.directives.validate-url",[]).directive("validateUrl",(function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,o){o.$validators.validUrl=function(e,t){if(o.$isEmpty(t))return"false"!==n.allowEmpty;if(!r.UrlUtils.isValidUrl(t))return!1;if(n.exclude&&!r.UrlUtils.doesNotContain(t,n.exclude))return!1;if(n.excludeProtocol){const e=n.excludeProtocol.split(",");if(!r.UrlUtils.doesNotUseProtocol(t,e))return!1}return!0}}}}))},135:function(e,t){angular.module("graphdb.framework.core.directives.ascii-validator",[]).directive("asciiValidator",(function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){function o(e){const t=/^[\x21-\x7E]*$/.test(e);return r.$setValidity("asciiValidator",t),e}r.$parsers.push(o),r.$formatters.push(o)}}}))},136:function(e,t){angular.module("graphdb.framework.core.directives.length-validator",[]).directive("lengthValidator",(function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){function o(e){const t=n.minLength?parseInt(n.minLength,10):0,o=n.maxLength?parseInt(n.maxLength,10):1/0,i=e&&e.length>=t&&e.length<=o;return r.$setValidity("lengthValidator",i),e}r.$parsers.push(o),r.$formatters.push(o)}}}))},158:function(e,t,n){"use strict";n.r(t);var r=n(108);function o(e,t){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration/cluster-properties.html",scope:{currentNode:"=",clusterModel:"=",clusterConfiguration:"="},link:n=>{n.isAdmin=!1,n.showEditConfigurationDialog=()=>{t.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-edit-dialog.html",controller:"EditClusterCtrl",size:"lg",resolve:{data:()=>({clusterConfiguration:n.clusterConfiguration})}}).result.finally((function(){n.$emit(r.UPDATE_CLUSTER,{force:!0})}))},n.showDeleteDialog=()=>{t.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-delete-dialog.html",controller:"DeleteClusterCtrl"}).result.then(e=>{n.$emit(r.DELETE_CLUSTER,{force:e})})};n.isAdmin=e.isAuthenticated()&&e.isAdmin()}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration.cluster-properties",[]).directive("clusterProperties",o),o.$inject=["$jwtAuth","$uibModal"]},159:function(e,t){function n(){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration/cluster-nodes.html",scope:{currentNode:"=",clusterModel:"="}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration.cluster-nodes",[]).directive("clusterNodes",n),n.$inject=[]},160:function(e,t,n){"use strict";n.r(t);n(135),n(136);var r=n(107),o=n(97);const i={minLen:"3",maxLen:"255"};function a(e,t,n,a,s,l,c){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration/multi-region.html",scope:{clusterModel:"=",clusterConfiguration:"="},link:u=>{const d=[];u.topology=void 0,u.TopologyState=o.TopologyState,u.isAdmin=!1,u.addingTag=!1,u.loaderTimeout=void 0,u.secondaryTag=void 0,u.TagLengthConstraints=i,u.add=()=>{u.addingTag=!0},u.cancel=()=>{u.addingTag=!1},u.createTag=e=>{const n={tag:e};return p(!0),l.addCusterTag(n).then(()=>{a.success(t.instant("cluster_management.cluster_configuration_multi_region.created_tag",{tag:e}))}).catch(e=>{const n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.creating"))}).finally(()=>{u.addingTag=!1,p(!1)})},u.deleteTag=e=>{s.openSimpleModal({title:t.instant("cluster_management.cluster_configuration_multi_region.confirm.delete",{tag:e}),message:t.instant("cluster_management.cluster_configuration_multi_region.confirm.warning"),warning:!0,backdrop:"static",stopPropagation:!0}).result.then(()=>(p(!0),l.deleteClusterTag(e))).then(()=>a.success(t.instant("cluster_management.cluster_configuration_multi_region.deleted_tag",{tag:e}))).catch(e=>{if("cancel"===e||"escape key press"===e)return;const n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.deleting"))}).finally(()=>p(!1))},u.enableSecondaryMode=()=>{u.addingTag=!1;const e={title:t.instant("cluster_management.cluster_configuration_multi_region.confirm.enable_secondary"),message:t.instant("cluster_management.cluster_configuration_multi_region.confirm.enable_secondary_warning"),warning:!0,backdrop:"static",confirmButtonKey:"common.ok.btn",stopPropagation:!0};s.openSimpleModal(e).result.then(()=>g()).then(e=>(p(!0),l.enableSecondaryMode(e))).then(()=>a.success(t.instant("cluster_management.cluster_configuration_multi_region.secondary_enabled"))).catch(e=>{if("cancel"===e||"escape key press"===e)return;const n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.secondary"))}).finally(()=>p(!1))},u.disableSecondaryMode=()=>{s.openSimpleModal({title:t.instant("cluster_management.cluster_configuration_multi_region.confirm.disable_secondary_mode"),message:t.instant("cluster_management.cluster_configuration_multi_region.confirm.disable_secondary_mode_warning"),warning:!0,backdrop:"static",stopPropagation:!0}).result.then(()=>(p(!0),l.disableSecondaryMode())).then(()=>a.success(t.instant("cluster_management.cluster_configuration_multi_region.disabled_secondary_mode"))).catch(e=>{if("cancel"===e||"escape key press"===e)return;const n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.disabling"))}).finally(()=>p(!1))};const g=()=>{const e={title:t.instant("cluster_management.cluster_configuration_multi_region.secondary_cluster_settings"),templateUrl:"js/angular/clustermanagement/templates/modal/secondary-mode-modal.html",controller:["$scope","$uibModalInstance","config",function(e,t,n){e.rpcAddress="",e.tag="",e.title=n.title,e.onClick=e=>e.stopPropagation(),e.ok=()=>{t.close({primaryNode:e.rpcAddress,tag:e.tag})},e.cancel=()=>{t.dismiss("cancel")}}],size:"lg",warning:!0,backdrop:"static"};return s.openCustomModal(e).result},m=e=>{p(!0),l.getClusterConfig().then(t=>{u.secondaryTag=r.ClusterConfiguration.fromJSON(t.data).secondaryTag,(e=>{const t=e.nodes.find(e=>e.nodeState===o.NodeState.LEADER);u.topology=t.topologyStatus})(r.ClusterModel.fromJSON(e))}).catch(e=>{const n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.disabling"))}).finally(()=>p(!1))},f=e=>{e||(u.addingTag=!1)},p=(e,t)=>{n.cancel(u.loaderTimeout),e?(u.loaderMessage=t,u.loaderTimeout=n(()=>{u.loader=e},150)):u.loader=!1};u.$on("$destroy",(function(){d.forEach(e=>e())}));u.isAdmin=e.isAuthenticated()&&e.isAdmin(),d.push(u.$watch("clusterModel",(function(e,t){e!==t&&m(e)}),!0)),d.push(c.onShowClusterConfigurationPanel(f)),m(u.clusterModel)}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration.multi-region",["graphdb.framework.core.directives.ascii-validator","graphdb.framework.core.directives.length-validator"]).directive("multiRegion",a),a.$inject=["$jwtAuth","$translate","$timeout","toastr","ModalService","ClusterRestService","ClusterViewContextService"]},223:function(e,t,n){"use strict";n.r(t);n(13),n(224);var r=n(126),o=n(18),i=n(108);let a=240;const s={no_cluster_configured:"",create_cluster_btn:"",legend_node_state:"",legend_link_state:"",node_state_leader:"Leader",node_state_follower:"Follower",node_state_candidate:"Candidate",node_state_no_cluster:"No cluster",node_state_out_of_sync:"Out of sync",node_state_no_connection:"No connection",node_state_read_only:"Read only",node_state_restricted:"Restricted",link_state_in_sync:"In sync",link_state_syncing:"Syncing",link_state_out_of_sync:"Out of sync",recovery_state:{searching_for_node:"Searching for node",waiting_for_snapshot:"Waiting for snapshot from node",receiving_snapshot:"Receiving a snapshot from node",applying_snapshot:"Applying a snapshot",building_snapshot:"Building a snapshot for node",sending_snapshot:"Sending a snapshot to node",recovery_operation_failure_warning:"Node unable to recover. Action required"}},l={node_state:"legend_node_state",link_state:"legend_link_state"};angular.module("graphdb.framework.clustermanagement.directives.cluster-graphical-view",["graphdb.framework.utils.localstorageadapter","graphdb.framework.clustermanagement.directives.cluster-legend"]).directive("clusterGraphicalView",["$window","LocalStorageAdapter","LSKeys","UriUtils","$translate","$jwtAuth","$rootScope","ClusterViewContextService",function(e,t,n,c,u,d,g,m){return{restrict:"E",scope:{clusterModel:"="},link:function(f,p){const h=angular.element(e),_=[];let w,v,C,y,b,E=L(),S=U(),k=Math.min(E,S)/2-100,N=E/2,M=S/2;function T(){const e=m.getClusterViewD3Container();E=L(),S=U(),e.attr("width",E),e.attr("height",S),j()}function A(e,t=""){Object.keys(e).forEach(n=>{let r="";t&&(r+=t),r+="."+n;const o=e[n];"string"==typeof o?e[n]=u.instant("cluster_management.cluster_graphical_view"+r):"object"==typeof o&&A(o,r)})}function L(){const r="collapsedMenu"===t.get(n.MENU_STATE);return a=r?70:240,Math.max(Math.floor(.95*(e.innerWidth-a)),600)}function U(){return Math.max(.95*(e.innerHeight-250),675)}function x(){r.updateClusterZoneLabels(v,C,s),Object.keys(l).forEach(e=>{d3.select("#"+e).text(function(e){return s[l[e]]}(e))})}function R(){k=Math.min(E,S)/2-100,N=E/2,M=S/2,r.moveElement(C,N,M),C.select(".cluster-zone").attr("r",k)}function I(e){f.$emit(i.CLICK_IN_VIEW,e.target)}function j(){R(),v!==f.clusterModel.hasCluster&&(v=!!f.clusterModel.hasCluster,function(e){r.setCreateClusterZone(e,C,s,w),!e&&w&&C.on("mouseup",()=>{f.$emit(i.CREATE_CLUSTER)})}(v));const e=function(){const e=Object(o.cloneDeep)(f.clusterModel.nodes)||[];return e.forEach(e=>{if(e.hostname=c.shortenIri(e.endpoint),!Object(o.isEmpty)(e.recoveryStatus)){let t="cluster_management.cluster_graphical_view.recovery_state."+e.recoveryStatus.state.toLowerCase();e.recoveryStatus.affectedNodes&&e.recoveryStatus.affectedNodes.length>0&&(t+="_with_affected_node"),e.recoveryStatus.message=u.instant(t,{node:e.recoveryStatus.affectedNodes.join(", ")})}}),e}();!function(e){const t=y.selectAll("#node-group").data(e,e=>e.address),n=r.createNodes(t,45);n.on("click",(e,t)=>{f.$emit(i.NODE_SELECTED,t);const n=d3.select(".nodetooltip"),r=$(window).width();e.pageX<r/2?(n.style("left",e.pageX+"px"),n.style("right","")):(n.style("left",""),n.style("right",r-e.pageX+"px")),n.style("top",e.pageY-28+"px")}),r.updateNodes(n),r.positionNodesOnClusterZone(n,N,M,k)}(e);!function(e,t){const n=b.selectAll(".link").data(e,e=>e.id);r.createLinks(n),r.updateLinks(n,t)}(Object(o.cloneDeep)(f.clusterModel.links)||[],e)}f.width=function(){return E},f.height=function(){return S};f.$on("$destroy",(function(){h.unbind("resize",T),h.unbind("mousedown",I),r.removeEventListeners(),_.forEach(e=>e())})),w=d.isAdmin(),h.bind("resize",T),h.bind("mousedown",I),_.push(g.$on("$translateChangeSuccess",(function(){A(s),x()}))),_.push(f.$on(i.MODEL_UPDATED,(function(){j()}))),A(s),function(e){const t=r.createClusterSvgElement(p[0]).attr("width",E).attr("height",S);C=r.createClusterZone(t,e),b=t.append("g").attr("id","links-group"),y=t.append("g").attr("id","nodes-group"),r.addArrowHead(t,r.ARROW_CONFIG.BIG),r.addArrowHead(t,r.ARROW_CONFIG.SMALL),m.updateClusterViewD3Container(t)}(!(!f.clusterModel.nodes||!f.clusterModel.nodes.length)),j()}}}])},226:function(e,t,n){"use strict";n.r(t);n(158),n(159),n(160);angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration",["graphdb.framework.clustermanagement.directives.cluster-configuration.cluster-properties","graphdb.framework.clustermanagement.directives.cluster-configuration.cluster-nodes","graphdb.framework.clustermanagement.directives.cluster-configuration.multi-region"]).directive("clusterConfiguration",o),o.$inject=["$jwtAuth","$uibModal","$translate","toastr","ClusterViewContextService"];const r={PROPERTIES:"properties",NODES:"nodes",MULTI_REGION:"multi_region"};function o(e,t,n,o,i){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration/cluster-configuration.html",scope:{currentNode:"=",clusterModel:"=",clusterConfiguration:"="},link:e=>{const t=[];e.CONFIGURATION_TABS=r,e.activeTab=r.PROPERTIES,e.closeClusterConfigurationPanel=()=>{i.hideClusterConfigurationPanel()},e.switchTab=(t,n)=>{e.activeTab=n};e.$on("$destroy",(function(){t.forEach(e=>e()),e.closeClusterConfigurationPanel()}));t.push(i.onShowClusterConfigurationPanel(t=>{t||(e.activeTab=r.PROPERTIES)}))}}}},227:function(e,t,n){"use strict";n.r(t);var r=n(107);function o(e,t,n,o,i,a,s){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-nodes-configuration.html",link:n=>{const o=[];n.rowHeights={},n.editedNodeIndex=void 0,n.allSuggestions=[],n.loader=!1,n.errors=[],n.addNewLocation=!1,n.hasCluster=!1,n.addNode=()=>{n.addNewLocation=!0,n.newLocation=new r.Location},n.filterSuggestions=e=>{const t=e.endpoint&&e.endpoint.toLowerCase();t?(n.suggestions=n.allSuggestions.filter(e=>e.toLowerCase().includes(t)),n.showDropdown=!0):(n.suggestions=[],n.showDropdown=!1)},n.selectSuggestion=(e,t)=>{e.endpoint=t,n.suggestions=[],n.showDropdown=!1},n.hideSuggestions=()=>{t(()=>{n.showDropdown=!1},200)},n.saveNode=e=>{const t=a.getAvailable(!0);!function(e,t){t?a.replace(t,e):a.addLocation(e);i()}(a.findByEndpoint(t,e)||new r.Location(e),a.getPendingReplace())},n.deleteNode=(t,n)=>{s.openSimpleModal({title:e.instant("location.confirm.detach"),message:e.instant("location.confirm.detach.warning",{uri:n.endpoint}),warning:!0}).result.then(()=>{a.deleteFromCluster(n.item)})},n.replaceNode=(t,r)=>{s.openSimpleModal({title:e.instant("location.change.confirm"),message:e.instant("location.change.confirm.warning"),warning:!0}).result.then(()=>{a.setPendingReplace(r.item),n.editedNodeIndex=t})},n.isClusterConfigurationValid=()=>{const e=void 0===n.editedNodeIndex,t=!1===n.addNewLocation,r=a.hasValidNodesCount(),o=n.form.$valid;return e&&t&&r&&o},n.setLoader=(e,r)=>{t.cancel(n.loaderTimeout),e?n.loaderTimeout=t(()=>{n.loader=e,n.loaderMessage=r},300):n.loader=!1},n.getAdvancedOptionsClass=()=>{const e=document.getElementById("advancedOptions");if(e){const t=e.getAttribute("aria-expanded");if(t&&"true"===t)return"fa fa-angle-down"}return"fa fa-angle-right"},n.cancel=()=>{n.editedNodeIndex=void 0,n.addNewLocation=!1,a.emitUpdateClusterView()},n.restoreNode=e=>{a.restoreNode(e.item)};const i=()=>{a.setPendingReplace(void 0),n.editedNodeIndex=void 0,n.addNewLocation=!1},l=n.$watchGroup(["editedNodeIndex","addNewLocation","clusterConfiguration.electionMinTimeout","clusterConfiguration.electionRangeTimeout","clusterConfiguration.heartbeatInterval","clusterConfiguration.messageSizeKB","clusterConfiguration.verificationTimeout","clusterConfiguration.transactionLogMaximumSizeGB"],(e,t)=>{const r=n.isClusterConfigurationValid();a.updateClusterValidity(r)});o.push(l),o.push(a.onClusterViewChanged(e=>{n.hasCluster=a.hasCluster(),n.viewModel=a.getViewModel(),n.clusterNodesEndpoints=n.viewModel.map(e=>e.endpoint),n.clusterConfiguration=a.getClusterConfiguration(),n.allSuggestions=a.getAvailableNodeEndpoints(),n.canDeleteNode=a.canDeleteNode()})),n.$on("$destroy",()=>{o.forEach(e=>e())})}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-nodes-configuration",[]).directive("clusterNodesConfiguration",o),o.$inject=["$translate","$timeout","productInfo","toastr","RemoteLocationsService","ClusterContextService","ModalService"]},228:function(e,t){angular.module("graphdb.framework.core.directives.validate-duplicate-url",[]).directive("validateDuplicateUrl",(function(){return{restrict:"A",require:"ngModel",scope:{excludedUrls:"="},link:function(e,t,n,r){r.$validators.duplicateUrl=function(t,n){return e.excludedUrls&&e.excludedUrls.includes(n)?(r.$setValidity("duplicateUrl",!1),!1):(r.$setValidity("duplicateUrl",!0),!0)}}}}))},329:function(e,t,n){"use strict";n.r(t);n(9),n(40),n(315),n(223),n(226),n(227),n(41),n(536),n(313),n(134),n(228);angular.module("graphdb.framework.clustermanagement",["ngAnimate","toastr","graphdb.framework.clustermanagement.controllers.cluster-management","graphdb.framework.clustermanagement.directives.cluster-graphical-view","graphdb.framework.clustermanagement.directives.cluster-configuration","graphdb.framework.clustermanagement.directives.cluster-nodes-configuration","graphdb.framework.core.directives.validate-url","graphdb.framework.core.directives.validate-duplicate-url"])},536:function(e,t,n){var r,o;r=[n(544)],void 0===(o=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),n=select(this);for(var r in e)n.attr(r,e[r])}))}function t(e,t){for(var n in t)e.attr(n,t[n]);return e}return"undefined"==typeof d3&&(d3=n(544)),d3.selection.prototype.attrs=function(n){return("function"==typeof n?e:t)(this,n)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){const e=this.parentNode.firstChild;e&&this.parentNode.insertBefore(this,e)}))},d3}.apply(t,r))||(e.exports=o)}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[28,93,135,141,144,147,329],{117:function(e,t,n){"use strict";n.r(t),n.d(t,"UrlUtils",(function(){return i}));const r=/^(h|ht|htt|http|https|http:|https:|http:\/|https:\/|http:\/\/|https:\/\/|https?:\/\/[\S]*)$/i,o=/^(f|ft|ftp|ftps|ftp:|ftps:|ftp:\/|ftps:\/|ftp:\/\/|ftps:\/\/[\S]*)$/i;class i{static isValidUrl(e){return r.test(e)||o.test(e)}static doesNotContain(e,t){return!new RegExp(t).test(e)}static doesNotUseProtocol(e,t){return!new RegExp("^("+t.join("|")+")://","i").test(e)}}},134:function(e,t,n){"use strict";n.r(t);var r=n(117);angular.module("graphdb.framework.core.directives.validate-url",[]).directive("validateUrl",(function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,o){o.$validators.validUrl=function(e,t){if(o.$isEmpty(t))return"false"!==n.allowEmpty;if(!r.UrlUtils.isValidUrl(t))return!1;if(n.exclude&&!r.UrlUtils.doesNotContain(t,n.exclude))return!1;if(n.excludeProtocol){const e=n.excludeProtocol.split(",");if(!r.UrlUtils.doesNotUseProtocol(t,e))return!1}return!0}}}}))},135:function(e,t){angular.module("graphdb.framework.core.directives.ascii-validator",[]).directive("asciiValidator",(function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){function o(e){const t=/^[\x21-\x7E]*$/.test(e);return r.$setValidity("asciiValidator",t),e}r.$parsers.push(o),r.$formatters.push(o)}}}))},136:function(e,t){angular.module("graphdb.framework.core.directives.length-validator",[]).directive("lengthValidator",(function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){function o(e){const t=n.minLength?parseInt(n.minLength,10):0,o=n.maxLength?parseInt(n.maxLength,10):1/0,i=e&&e.length>=t&&e.length<=o;return r.$setValidity("lengthValidator",i),e}r.$parsers.push(o),r.$formatters.push(o)}}}))},158:function(e,t,n){"use strict";n.r(t);var r=n(108);function o(e,t){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration/cluster-properties.html",scope:{currentNode:"=",clusterModel:"=",clusterConfiguration:"="},link:n=>{n.isAdmin=!1,n.showEditConfigurationDialog=()=>{t.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-edit-dialog.html",controller:"EditClusterCtrl",size:"lg",resolve:{data:()=>({clusterConfiguration:n.clusterConfiguration})}}).result.finally((function(){n.$emit(r.UPDATE_CLUSTER,{force:!0})}))},n.showDeleteDialog=()=>{t.open({templateUrl:"js/angular/clustermanagement/templates/modal/cluster-delete-dialog.html",controller:"DeleteClusterCtrl"}).result.then(e=>{n.$emit(r.DELETE_CLUSTER,{force:e})})};n.isAdmin=e.isAuthenticated()&&e.isAdmin()}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration.cluster-properties",[]).directive("clusterProperties",o),o.$inject=["$jwtAuth","$uibModal"]},159:function(e,t){function n(){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration/cluster-nodes.html",scope:{currentNode:"=",clusterModel:"="}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration.cluster-nodes",[]).directive("clusterNodes",n),n.$inject=[]},160:function(e,t,n){"use strict";n.r(t);n(135),n(136);var r=n(107),o=n(97);const i={minLen:"3",maxLen:"255"};function a(e,t,n,a,s,l,c){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration/multi-region.html",scope:{clusterModel:"=",clusterConfiguration:"="},link:u=>{const d=[];u.topology=void 0,u.TopologyState=o.TopologyState,u.isAdmin=!1,u.addingTag=!1,u.loaderTimeout=void 0,u.secondaryTag=void 0,u.TagLengthConstraints=i,u.add=()=>{u.addingTag=!0},u.cancel=()=>{u.addingTag=!1},u.createTag=e=>{const n={tag:e};return p(!0),l.addCusterTag(n).then(()=>{a.success(t.instant("cluster_management.cluster_configuration_multi_region.created_tag",{tag:e}))}).catch(e=>{const n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.creating"))}).finally(()=>{u.addingTag=!1,p(!1)})},u.deleteTag=e=>{s.openSimpleModal({title:t.instant("cluster_management.cluster_configuration_multi_region.confirm.delete",{tag:e}),message:t.instant("cluster_management.cluster_configuration_multi_region.confirm.warning"),warning:!0,backdrop:"static",stopPropagation:!0}).result.then(()=>(p(!0),l.deleteClusterTag(e))).then(()=>a.success(t.instant("cluster_management.cluster_configuration_multi_region.deleted_tag",{tag:e}))).catch(e=>{if("cancel"===e||"escape key press"===e)return;const n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.deleting"))}).finally(()=>p(!1))},u.enableSecondaryMode=()=>{u.addingTag=!1;const e={title:t.instant("cluster_management.cluster_configuration_multi_region.confirm.enable_secondary"),message:t.instant("cluster_management.cluster_configuration_multi_region.confirm.enable_secondary_warning"),warning:!0,backdrop:"static",confirmButtonKey:"common.ok.btn",stopPropagation:!0};s.openSimpleModal(e).result.then(()=>g()).then(e=>(p(!0),l.enableSecondaryMode(e))).then(()=>a.success(t.instant("cluster_management.cluster_configuration_multi_region.secondary_enabled"))).catch(e=>{if("cancel"===e||"escape key press"===e)return;const n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.secondary"))}).finally(()=>p(!1))},u.disableSecondaryMode=()=>{s.openSimpleModal({title:t.instant("cluster_management.cluster_configuration_multi_region.confirm.disable_secondary_mode"),message:t.instant("cluster_management.cluster_configuration_multi_region.confirm.disable_secondary_mode_warning"),warning:!0,backdrop:"static",stopPropagation:!0}).result.then(()=>(p(!0),l.disableSecondaryMode())).then(()=>a.success(t.instant("cluster_management.cluster_configuration_multi_region.disabled_secondary_mode"))).catch(e=>{if("cancel"===e||"escape key press"===e)return;const n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.disabling"))}).finally(()=>p(!1))};const g=()=>{const e={title:t.instant("cluster_management.cluster_configuration_multi_region.secondary_cluster_settings"),templateUrl:"js/angular/clustermanagement/templates/modal/secondary-mode-modal.html",controller:["$scope","$uibModalInstance","config",function(e,t,n){e.rpcAddress="",e.tag="",e.title=n.title,e.onClick=e=>e.stopPropagation(),e.ok=()=>{t.close({primaryNode:e.rpcAddress,tag:e.tag})},e.cancel=()=>{t.dismiss("cancel")}}],size:"lg",warning:!0,backdrop:"static"};return s.openCustomModal(e).result},m=e=>{p(!0),l.getClusterConfig().then(t=>{u.secondaryTag=r.ClusterConfiguration.fromJSON(t.data).secondaryTag,(e=>{const t=e.nodes.find(e=>e.nodeState===o.NodeState.LEADER);u.topology=t.topologyStatus})(r.ClusterModel.fromJSON(e))}).catch(e=>{const n=getError(e);a.error(n,t.instant("cluster_management.cluster_configuration_multi_region.error.disabling"))}).finally(()=>p(!1))},f=e=>{e||(u.addingTag=!1)},p=(e,t)=>{n.cancel(u.loaderTimeout),e?(u.loaderMessage=t,u.loaderTimeout=n(()=>{u.loader=e},150)):u.loader=!1};u.$on("$destroy",(function(){d.forEach(e=>e())}));u.isAdmin=e.isAuthenticated()&&e.isAdmin(),d.push(u.$watch("clusterModel",(function(e,t){e!==t&&m(e)}),!0)),d.push(c.onShowClusterConfigurationPanel(f)),m(u.clusterModel)}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration.multi-region",["graphdb.framework.core.directives.ascii-validator","graphdb.framework.core.directives.length-validator"]).directive("multiRegion",a),a.$inject=["$jwtAuth","$translate","$timeout","toastr","ModalService","ClusterRestService","ClusterViewContextService"]},223:function(e,t,n){"use strict";n.r(t);n(13),n(224);var r=n(126),o=n(18),i=n(108);let a=240;const s={no_cluster_configured:"",create_cluster_btn:"",legend_node_state:"",legend_link_state:"",node_state_leader:"Leader",node_state_follower:"Follower",node_state_candidate:"Candidate",node_state_no_cluster:"No cluster",node_state_out_of_sync:"Out of sync",node_state_no_connection:"No connection",node_state_read_only:"Read only",node_state_restricted:"Restricted",link_state_in_sync:"In sync",link_state_syncing:"Syncing",link_state_out_of_sync:"Out of sync",recovery_state:{searching_for_node:"Searching for node",waiting_for_snapshot:"Waiting for snapshot from node",receiving_snapshot:"Receiving a snapshot from node",applying_snapshot:"Applying a snapshot",building_snapshot:"Building a snapshot for node",sending_snapshot:"Sending a snapshot to node",recovery_operation_failure_warning:"Node unable to recover. Action required"}},l={node_state:"legend_node_state",link_state:"legend_link_state"};angular.module("graphdb.framework.clustermanagement.directives.cluster-graphical-view",["graphdb.framework.utils.localstorageadapter","graphdb.framework.clustermanagement.directives.cluster-legend"]).directive("clusterGraphicalView",["$window","LocalStorageAdapter","LSKeys","UriUtils","$translate","$jwtAuth","$rootScope","ClusterViewContextService",function(e,t,n,c,u,d,g,m){return{restrict:"E",scope:{clusterModel:"="},link:function(f,p){const h=angular.element(e),_=[];let w,v,C,y,b,E=L(),S=U(),k=Math.min(E,S)/2-100,N=E/2,M=S/2;function T(){const e=m.getClusterViewD3Container();E=L(),S=U(),e.attr("width",E),e.attr("height",S),j()}function A(e,t=""){Object.keys(e).forEach(n=>{let r="";t&&(r+=t),r+="."+n;const o=e[n];"string"==typeof o?e[n]=u.instant("cluster_management.cluster_graphical_view"+r):"object"==typeof o&&A(o,r)})}function L(){const r="collapsedMenu"===t.get(n.MENU_STATE);return a=r?70:240,Math.max(Math.floor(.95*(e.innerWidth-a)),600)}function U(){return Math.max(.95*(e.innerHeight-250),675)}function x(){r.updateClusterZoneLabels(v,C,s),Object.keys(l).forEach(e=>{d3.select("#"+e).text(function(e){return s[l[e]]}(e))})}function R(){k=Math.min(E,S)/2-100,N=E/2,M=S/2,r.moveElement(C,N,M),C.select(".cluster-zone").attr("r",k)}function I(e){f.$emit(i.CLICK_IN_VIEW,e.target)}function j(){R(),v!==f.clusterModel.hasCluster&&(v=!!f.clusterModel.hasCluster,function(e){r.setCreateClusterZone(e,C,s,w),!e&&w&&C.on("mouseup",()=>{f.$emit(i.CREATE_CLUSTER)})}(v));const e=function(){const e=Object(o.cloneDeep)(f.clusterModel.nodes)||[];return e.forEach(e=>{if(e.hostname=c.shortenIri(e.endpoint),!Object(o.isEmpty)(e.recoveryStatus)){let t="cluster_management.cluster_graphical_view.recovery_state."+e.recoveryStatus.state.toLowerCase();e.recoveryStatus.affectedNodes&&e.recoveryStatus.affectedNodes.length>0&&(t+="_with_affected_node"),e.recoveryStatus.message=u.instant(t,{node:e.recoveryStatus.affectedNodes.join(", ")})}}),e}();!function(e){const t=y.selectAll("#node-group").data(e,e=>e.address),n=r.createNodes(t,45);n.on("click",(e,t)=>{f.$emit(i.NODE_SELECTED,t);const n=d3.select(".nodetooltip"),r=$(window).width();e.pageX<r/2?(n.style("left",e.pageX+"px"),n.style("right","")):(n.style("left",""),n.style("right",r-e.pageX+"px")),n.style("top",e.pageY-28+"px")}),r.updateNodes(n),r.positionNodesOnClusterZone(n,N,M,k)}(e);!function(e,t){const n=b.selectAll(".link").data(e,e=>e.id);r.createLinks(n),r.updateLinks(n,t)}(Object(o.cloneDeep)(f.clusterModel.links)||[],e)}f.width=function(){return E},f.height=function(){return S};f.$on("$destroy",(function(){h.unbind("resize",T),h.unbind("mousedown",I),r.removeEventListeners(),_.forEach(e=>e())})),w=d.isAdmin(),h.bind("resize",T),h.bind("mousedown",I),_.push(g.$on("$translateChangeSuccess",(function(){A(s),x()}))),_.push(f.$on(i.MODEL_UPDATED,(function(){j()}))),A(s),function(e){const t=r.createClusterSvgElement(p[0]).attr("width",E).attr("height",S);C=r.createClusterZone(t,e),b=t.append("g").attr("id","links-group"),y=t.append("g").attr("id","nodes-group"),r.addArrowHead(t,r.ARROW_CONFIG.BIG),r.addArrowHead(t,r.ARROW_CONFIG.SMALL),m.updateClusterViewD3Container(t)}(!(!f.clusterModel.nodes||!f.clusterModel.nodes.length)),j()}}}])},226:function(e,t,n){"use strict";n.r(t);n(158),n(159),n(160);angular.module("graphdb.framework.clustermanagement.directives.cluster-configuration",["graphdb.framework.clustermanagement.directives.cluster-configuration.cluster-properties","graphdb.framework.clustermanagement.directives.cluster-configuration.cluster-nodes","graphdb.framework.clustermanagement.directives.cluster-configuration.multi-region"]).directive("clusterConfiguration",o),o.$inject=["$jwtAuth","$uibModal","$translate","toastr","ClusterViewContextService"];const r={PROPERTIES:"properties",NODES:"nodes",MULTI_REGION:"multi_region"};function o(e,t,n,o,i){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-configuration/cluster-configuration.html",scope:{currentNode:"=",clusterModel:"=",clusterConfiguration:"="},link:e=>{const t=[];e.CONFIGURATION_TABS=r,e.activeTab=r.PROPERTIES,e.closeClusterConfigurationPanel=()=>{i.hideClusterConfigurationPanel()},e.switchTab=(t,n)=>{e.activeTab=n};e.$on("$destroy",(function(){t.forEach(e=>e()),e.closeClusterConfigurationPanel()}));t.push(i.onShowClusterConfigurationPanel(t=>{t||(e.activeTab=r.PROPERTIES)}))}}}},227:function(e,t,n){"use strict";n.r(t);var r=n(107);function o(e,t,n,o,i,a,s){return{restrict:"E",templateUrl:"js/angular/clustermanagement/templates/cluster-nodes-configuration.html",link:n=>{const o=[];n.rowHeights={},n.editedNodeIndex=void 0,n.allSuggestions=[],n.loader=!1,n.errors=[],n.addNewLocation=!1,n.hasCluster=!1,n.addNode=()=>{n.addNewLocation=!0,n.newLocation=new r.Location},n.filterSuggestions=e=>{const t=e.endpoint&&e.endpoint.toLowerCase();t?(n.suggestions=n.allSuggestions.filter(e=>e.toLowerCase().includes(t)),n.showDropdown=!0):(n.suggestions=[],n.showDropdown=!1)},n.selectSuggestion=(e,t)=>{e.endpoint=t,n.suggestions=[],n.showDropdown=!1},n.hideSuggestions=()=>{t(()=>{n.showDropdown=!1},200)},n.saveNode=e=>{const t=a.getAvailable(!0);!function(e,t){t?a.replace(t,e):a.addLocation(e);i()}(a.findByEndpoint(t,e)||new r.Location(e),a.getPendingReplace())},n.deleteNode=(t,n)=>{s.openSimpleModal({title:e.instant("location.confirm.detach"),message:e.instant("location.confirm.detach.warning",{uri:n.endpoint}),warning:!0}).result.then(()=>{a.deleteFromCluster(n.item)})},n.replaceNode=(t,r)=>{s.openSimpleModal({title:e.instant("location.change.confirm"),message:e.instant("location.change.confirm.warning"),warning:!0}).result.then(()=>{a.setPendingReplace(r.item),n.editedNodeIndex=t})},n.isClusterConfigurationValid=()=>{const e=void 0===n.editedNodeIndex,t=!1===n.addNewLocation,r=a.hasValidNodesCount(),o=n.form.$valid;return e&&t&&r&&o},n.setLoader=(e,r)=>{t.cancel(n.loaderTimeout),e?n.loaderTimeout=t(()=>{n.loader=e,n.loaderMessage=r},300):n.loader=!1},n.getAdvancedOptionsClass=()=>{const e=document.getElementById("advancedOptions");if(e){const t=e.getAttribute("aria-expanded");if(t&&"true"===t)return"fa fa-angle-down"}return"fa fa-angle-right"},n.cancel=()=>{n.editedNodeIndex=void 0,n.addNewLocation=!1,a.emitUpdateClusterView()},n.restoreNode=e=>{a.restoreNode(e.item)};const i=()=>{a.setPendingReplace(void 0),n.editedNodeIndex=void 0,n.addNewLocation=!1},l=n.$watchGroup(["editedNodeIndex","addNewLocation","clusterConfiguration.electionMinTimeout","clusterConfiguration.electionRangeTimeout","clusterConfiguration.heartbeatInterval","clusterConfiguration.messageSizeKB","clusterConfiguration.verificationTimeout","clusterConfiguration.transactionLogMaximumSizeGB"],(e,t)=>{const r=n.isClusterConfigurationValid();a.updateClusterValidity(r)});o.push(l),o.push(a.onClusterViewChanged(e=>{n.hasCluster=a.hasCluster(),n.viewModel=a.getViewModel(),n.clusterNodesEndpoints=n.viewModel.map(e=>e.endpoint),n.clusterConfiguration=a.getClusterConfiguration(),n.allSuggestions=a.getAvailableNodeEndpoints(),n.canDeleteNode=a.canDeleteNode()})),n.$on("$destroy",()=>{o.forEach(e=>e())})}}}angular.module("graphdb.framework.clustermanagement.directives.cluster-nodes-configuration",[]).directive("clusterNodesConfiguration",o),o.$inject=["$translate","$timeout","productInfo","toastr","RemoteLocationsService","ClusterContextService","ModalService"]},228:function(e,t){angular.module("graphdb.framework.core.directives.validate-duplicate-url",[]).directive("validateDuplicateUrl",(function(){return{restrict:"A",require:"ngModel",scope:{excludedUrls:"="},link:function(e,t,n,r){r.$validators.duplicateUrl=function(t,n){return e.excludedUrls&&e.excludedUrls.includes(n)?(r.$setValidity("duplicateUrl",!1),!1):(r.$setValidity("duplicateUrl",!0),!0)}}}}))},329:function(e,t,n){"use strict";n.r(t);n(9),n(40),n(315),n(223),n(226),n(227),n(41),n(537),n(313),n(134),n(228);angular.module("graphdb.framework.clustermanagement",["ngAnimate","toastr","graphdb.framework.clustermanagement.controllers.cluster-management","graphdb.framework.clustermanagement.directives.cluster-graphical-view","graphdb.framework.clustermanagement.directives.cluster-configuration","graphdb.framework.clustermanagement.directives.cluster-nodes-configuration","graphdb.framework.core.directives.validate-url","graphdb.framework.core.directives.validate-duplicate-url"])},537:function(e,t,n){var r,o;r=[n(545)],void 0===(o=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),n=select(this);for(var r in e)n.attr(r,e[r])}))}function t(e,t){for(var n in t)e.attr(n,t[n]);return e}return"undefined"==typeof d3&&(d3=n(545)),d3.selection.prototype.attrs=function(n){return("function"==typeof n?e:t)(this,n)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){const e=this.parentNode.firstChild;e&&this.parentNode.insertBefore(this,e)}))},d3}.apply(t,r))||(e.exports=o)}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[289],{86:function(t,e,a){"use strict";a.r(e),a.d(e,"ChartData",(function(){return s}));var r=a(
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[289],{86:function(t,e,a){"use strict";a.r(e),a.d(e,"ChartData",(function(){return s}));var r=a(539);class s{static get DEFAULT_MULTIPLIER(){return 1.2}static get MAXIMUM_DIVISIONS(){return 10}static get COLORS(){return[s.cssVar("--secondary-color"),s.cssVar("--primary-color"),s.cssVar("--tertiary-color"),s.cssVar("--gray-color")]}static get AREA_BAR_OPACITY(){return.5}static cssVar(t){return getComputedStyle(document.documentElement).getPropertyValue(t)}constructor(t,e,a,r){this.filter=r,this.disableRangeUpdate=e,this.disableOldDataRemoval=a,this.translateService=t,this.refreshHandlers=[],this.initialChartSetup()}registerRefreshHandler(t){this.refreshHandlers.push(t)}unregisterRefreshHandler(t){const e=this.refreshHandlers.indexOf(t);e>-1&&this.refreshHandlers.splice(e,1)}initialChartSetup(t=!0){this.range=150,this.chartOptions=this.getDefaultChartOptions(this.translateService),t&&(this.dataHolder=this.createDataHolder(),this.chartOptions.series=this.dataHolder,this.firstLoad=!0),this.chartSetup(this.chartOptions)}refresh(t=!1){t||(this.chartSetup(this.chartOptions),this.updateRange(this.dataHolder)),this.refreshHandlers.forEach(t=>t(this.chartOptions))}setSubTitle(t,e=0){this.chartOptions.title.show=!0;let a="";t.forEach((r,s)=>{if(Array.isArray(r.value)&&!r.value.length)return;const i=Array.isArray(r.value)?r.value.join("/"):r.value;a+=`{a|${r.label}}`,void 0!==i&&(a+=`{b|${i}}`),s+1<t.length&&(a+=e>0&&(s+1)%e==0?"\n":"{a| · }")}),this.chartOptions.title.text=a}chartSetup(t){}createDataHolder(){throw new Error("Must implement data holder creation")}addData(t,e){this.removeOldData(this.dataHolder,this.range),this.addNewData(this.dataHolder,t,e,this.isFirstLoad()),this.hasSelectedSeries()&&(this.updateRange(this.dataHolder),this.firstLoad&&(this.firstLoad=!1),this.refresh(!0))}hasSelectedSeries(){return!this.selectedSeries||Object.values(this.selectedSeries).some(t=>!0===t)}removeOldData(t,e){this.disableOldDataRemoval||t[0].data.length>e&&t.forEach(t=>t.data.shift())}addNewData(t,e,a,r){}setSelectedSeries(t){this.selectedSeries=t}updateRange(t,e){if(this.disableRangeUpdate)return;const[a]=s.calculateMaxChartValueAndDivisions(t,e,this.selectedSeries);this.chartOptions.yAxis.max=a}isFirstLoad(){return this.firstLoad}getDefaultChartOptions(){return{title:{show:!1,text:"",left:"center",textStyle:{overflow:"breakAll",rich:{a:{fontWeight:400,fontSize:14},b:{color:s.cssVar("--secondary-color"),fontWeight:400,fontSize:14}}}},animation:!1,color:s.COLORS,legend:{right:"15%",top:"6%",textStyle:{overflow:"truncate"},icon:"circle"},tooltip:{trigger:"axis",axisPointer:{animation:!1,label:{formatter:function(t){return r.b.format(t.value,"{HH}:{mm}:{ss}",!1)}}}},grid:{containLabel:!0,left:40},xAxis:{type:"time",splitLine:{show:!0},axisLabel:{hideOverlap:!0,padding:8,formatter:{hour:"{bold|{HH}:{mm}}",minute:"{bold|{HH}:{mm}}",second:"{HH}:{mm}:{ss}"},color:s.cssVar("--gray-color-dark"),rich:{bold:{fontWeight:500}}}},yAxis:{type:"value",splitLine:{show:!0},axisLabel:{color:s.cssVar("--gray-color-dark")},axisTick:{lineStyle:{type:"solid"}}},textStyle:{fontFamily:s.cssVar("--main-font"),fontWeight:400}}}static getMaxValueFromDataHolder(t,e){const a=t.filter(t=>!e||angular.isUndefined(e[t.name])||!0===e[t.name]).map(t=>s.getMaxValueForDataSeries(t));return Math.max(1,...a)}static getMaxValueForDataSeries(t){return Math.max(...t.data.map(t=>t.value[1]))}static calculateMaxChartValueAndDivisions(t,e,a){let r;r=Array.isArray(t)?s.getMaxValueFromDataHolder(t,a):s.getMaxValueForDataSeries(t);const i=Math.ceil(r*(e||s.DEFAULT_MULTIPLIER))||1;return[i,Math.ceil(i/s.MAXIMUM_DIVISIONS)]}static getIntegerRangeForValues(t,e,a){const[r,i]=s.calculateMaxChartValueAndDivisions(t,e,a);return[r,i]}static formatBytesValue(t,e,a){let r=t;e&&(r=s.getMaxValueFromDataHolder(e,a));const i=Math.floor(Math.log(r)/Math.log(1024));return`${(parseFloat(t)/Math.pow(1024,i)).toFixed(2)} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]}`}formatNumber(t){if(!angular.isUndefined(t)&&this.filter)return this.filter("currency")(t,"",0)}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[29,30,65,78,97,198,257,258,294,302,320],{102:function(e,t,n){"use strict";n.r(t),n.d(t,"ConnectorTypesListModel",(function(){return s})),n.d(t,"ConnectorTypeModel",(function(){return r})),n.d(t,"ConnectorListModel",(function(){return i})),n.d(t,"ConnectorModel",(function(){return o})),n.d(t,"ConnectorSettingsModel",(function(){return a}));class s{constructor(e={}){this._connectors=e.connectors||[]}getConnectorByName(e){return this._connectors.find(t=>t.name===e)}get connectors(){return this._connectors}set connectors(e){this._connectors=e}}class r{constructor(e){this._name=e.name,this._prefix=e.prefix}get name(){return this._name}set name(e){this._name=e}get prefix(){return this._prefix}set prefix(e){this._prefix=e}}class i{constructor(e=[]){this._connectors=e.connectors}get connectors(){return this._connectors}set connectors(e){this._connectors=e}}class o{constructor(e){this._name=e.name,this._settings=new a(e)}get settings(){return this._settings}set settings(e){this._settings=e}get name(){return this._name}set name(e){this._name=e}}class a{constructor(e){this._settings=e.values||{}}get settings(){return this._settings}set settings(e){this._settings=e}}},103:function(e,t){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",n),n.$inject=["$http","$repositories"];function n(e){return{getIndexes:function(t,n){if(t)return e.get("rest/similarity",{headers:{"X-GraphDB-Repository":t,"X-GraphDB-Repository-Location":n}});return e.get("rest/similarity")},getSearchQueries:function(){return e.get("rest/similarity/config")},rebuildIndex:function(e){return t("PUT",e.name,e.options,e.selectQuery,e.searchQuery,e.analogicalQuery,e.stopList,e.infer,e.sameAs,e.type)},deleteIndex:function(t){return e.delete("rest/similarity?name="+t.name)},createIndex:t,getSamples:function(){return e.get("rest/similarity/samples")},getQuery:function(t){return e.get("rest/similarity/query",{params:{name:t.indexName,options:t.indexOptions,stopList:t.indexStopList,selectQuery:t.query,infer:t.queryInference,sameAs:t.querySameAs,type:t.viewType,analyzer:t.indexAnalyzer}})},saveSearchQuery:function(t){return e({method:"put",url:"rest/similarity/search-query",data:t})}};function t(t,n,s,r,i,o,a,c,l,d,u){return e({method:t,url:"rest/similarity",noCancelOnRouteChange:!0,data:{name:n,options:s,selectQuery:r,stopList:a,infer:c,sameAs:l,type:d,analyzer:u,searchQuery:i,analogicalQuery:o}})}}},104:function(e,t,n){"use strict";n.r(t);n(99);var s=n(109),r=n(92);function i(e){const t=(t,n)=>e.getConnectors(t,n).then(e=>Object(s.connectorTypesListMapper)(e.data)),n=(t,n,r)=>e.hasConnector(encodeURIComponent(t),n,r).then(e=>Object(s.connectorsMapper)(e.data));return{getConnectorTypes:t,getConnectorsByType:n,getConnectorPrefixByName:(e,n,s)=>t(n,s).then(t=>{const n=t.getConnectorByName(e);return n?n.prefix:null}),getConnectorsByTypeAsSelectMenuOptions:(e,t,s)=>n(e,t,s).then(e=>e.connectors.map(e=>new r.SelectMenuOptionsModel({value:e.name,label:e.name})))}}angular.module("graphdb.framework.core.services.connectors",["graphdb.framework.rest.connectors.service"]).factory("ConnectorsService",i),i.$inject=["ConnectorsRestService"]},105:function(e,t,n){"use strict";n.r(t);n(103);var s=n(98),r=n(92);function i(e){const t=(t,n)=>e.getIndexes(t,n).then(e=>Object(s.mapIndexesResponseToSimilarityIndex)(e.data));return{getIndexes:t,getIndexesAsMenuModel:(e,n)=>t(e,n).then(e=>e.map(e=>new r.SelectMenuOptionsModel({label:e.name,value:e.name})))}}angular.module("graphdb.framework.core.services.similarity",["graphdb.framework.rest.similarity.service"]).factory("SimilarityService",i),i.$inject=["SimilarityRestService"]},109:function(e,t,n){"use strict";n.r(t),n.d(t,"connectorTypesListMapper",(function(){return r})),n.d(t,"connectorsMapper",(function(){return i}));var s=n(102);const r=e=>{const t=new s.ConnectorTypesListModel;return e?(t.connectors=Object.keys(e).map(t=>new s.ConnectorTypeModel({name:t,prefix:e[t]})),t):t},i=e=>{const t=new s.ConnectorListModel;return e?(t.connectors=e.map(e=>new s.ConnectorModel(e)),t):t}},147:function(e,t,n){"use strict";n.r(t);n(105),n(104),n(113),n(21);function s(e,t,n,s,r){e.agentInstructionsExplain=r.agentInstructionsExplain,e.close=()=>{t.dismiss({})},e.onCloseAgentInstructionsExplainModal=()=>{t.dismiss({})};const i=[];e.$on("$destroy",()=>{i.forEach(e=>e())})}angular.module("graphdb.framework.ttyg.controllers.agent-instructions-explain-modal",[]).controller("AgentInstructionsExplainModalController",s),s.$inject=["$scope","$uibModalInstance","ModalService","$translate","dialogModel"]},205:function(e,t,n){"use strict";n.r(t);var s=n(0),r=n(114),i=(n(105),n(104),n(113),n(21),n(147),n(10)),o=n(87),a=n(106);function c(e,t,n,c,l,d,u,g,E,p,T,m,y,h){e.AGENT_OPERATION=a.AGENT_OPERATION,e.operation=m.operation,e.savingAgent=!1,e.agentFormModel=m.agentFormModel,e.activeRepositoryInfo=m.activeRepositoryInfo,e.extractionMethodLoaderFlags={[r.ExtractionMethod.SIMILARITY]:!1},e.activeRepositoryList=m.activeRepositoryList,e.extractionMethods=r.ExtractionMethod,e.showAdvancedSettings=!1,e.showHighTemperatureWarning=!1,e.showSystemInstructionWarning=!1,e.similarityIndexes=[],e.retrievalConnectors=[],e.ftsEnabled=!1,e.toggleExtractionMethod=t=>{t.expanded=t.selected,e.agentSettingsForm.extractionMethods.$setTouched(),f(),v[t.method](t)},e.onExtractionMethodPanelToggle=e=>{e.toggleCollapse(),v[e.method](e)},e.getModelHelpMessage=()=>{const e=Object(s.decodeHTML)(T.instant("ttyg.agent.create_agent_modal.form.model.hint"));return g.trustAsHtml(e)},e.getFTSDisabledHelpMessage=()=>{const t=Object(s.decodeHTML)(T.instant("ttyg.agent.create_agent_modal.form.fts_search.fts_disabled_message",{repositoryEditPage:"#/repository/edit/"+e.agentFormModel.repositoryId}));return g.trustAsHtml(t)},e.goToCreateSimilarityView=()=>{y.emit(o.TTYGEventName.GO_TO_CREATE_SIMILARITY_VIEW,{repositoryId:e.agentFormModel.repositoryId})},e.goToConnectorsView=()=>{y.emit(o.TTYGEventName.GO_TO_CONNECTORS_VIEW,{repositoryId:e.agentFormModel.repositoryId})},e.ok=()=>{const t=e.agentFormModel.toPayload();return S[e.operation](t)},e.cancel=()=>{t.dismiss({})},e.close=()=>{t.dismiss({})},e.updateSimilaritySearchPanel=(t=!1)=>{const n=e.agentFormModel.assistantExtractionMethods.getSimilarityExtractionMethod();n.selected&&(t&&(n.similarityIndex=null),L(n))},e.updateRetrievalConnectorPanel=(t=!1)=>{const n=e.agentFormModel.assistantExtractionMethods.getRetrievalExtractionMethod();n.selected&&(t&&(n.retrievalConnectorInstance=null),M(n))},e.checkIfFTSEnabled=()=>{if(!e.agentFormModel.repositoryId)return void e.agentSettingsForm.$setValidity("FTSDisabled",!1);e.agentFormModel.assistantExtractionMethods.getFTSSearchExtractionMethod().selected?(e.extractionMethodLoaderFlags[r.ExtractionMethod.FTS_SEARCH]=!0,u.getRepositoryModel({id:e.agentFormModel.repositoryId}).then(t=>{e.ftsEnabled=t.getParamValue(i.REPOSITORY_PARAMS.enableFtsIndex)}).catch(e=>{I(e,"ttyg.agent.messages.error_repository_config_loading")}).finally(()=>{e.extractionMethodLoaderFlags[r.ExtractionMethod.FTS_SEARCH]=!1,e.agentSettingsForm.$setValidity("FTSDisabled",e.ftsEnabled)})):e.agentSettingsForm.$setValidity("FTSDisabled",!0)},e.onRepositoryChange=()=>{O(!0,!0)},e.onRestoreDefaultSystemInstructions=()=>{e.agentFormModel.instructions.systemInstruction=e.agentFormModel.instructions.systemInstructionCopy},e.onRestoreDefaultUserInstructions=()=>{e.agentFormModel.instructions.userInstruction=e.agentFormModel.instructions.userInstructionCopy},e.onTemperatureChange=()=>{e.showHighTemperatureWarning=e.agentFormModel.temperature.value>1},e.onSystemInstructionChange=()=>{""===e.agentFormModel.instructions.systemInstruction||e.showSystemInstructionWarning||(e.showSystemInstructionWarning=!0,n.openModalAlert({title:T.instant("ttyg.agent.create_agent_modal.form.system_instruction.overriding_system_instruction_warning.title"),message:T.instant("ttyg.agent.create_agent_modal.form.system_instruction.overriding_system_instruction_warning.body")}).result.then((function(){}))),""===e.agentFormModel.instructions.systemInstruction&&(e.showSystemInstructionWarning=!1)},e.onExplainAgentSettings=()=>{const t=e.agentFormModel.toPayload();h.explainAgentSettings(t).then(e=>{const t={templateUrl:"js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html",controller:"AgentInstructionsExplainModalController",windowClass:"agent-instructions-explain-modal",backdrop:"static",resolve:{dialogModel:function(){return{agentInstructionsExplain:e}}},size:"lg"};c.open(t).result.then(()=>{})}).catch(e=>{E.error(getError(e,0,a.TTYG_ERROR_MSG_LENGTH))})};const S={[a.AGENT_OPERATION.CREATE]:e=>_(e),[a.AGENT_OPERATION.EDIT]:e=>C(e),[a.AGENT_OPERATION.CLONE]:e=>A(e)},_=n=>(e.savingAgent=!0,h.createAgent(n).then(e=>{t.close(e),E.success(T.instant("ttyg.agent.messages.agent_save_successfully",{agentName:e.name}))}).catch(e=>{E.error(getError(e,0,a.TTYG_ERROR_MSG_LENGTH))}).finally(()=>{e.savingAgent=!1})),C=n=>(e.savingAgent=!0,h.editAgent(n).then(e=>{t.close(e),E.success(T.instant("ttyg.agent.messages.agent_save_successfully",{agentName:e.name}))}).catch(e=>{E.error(getError(e,0,a.TTYG_ERROR_MSG_LENGTH))}).finally(()=>{e.savingAgent=!1})),A=n=>(e.savingAgent=!0,h.createAgent(n).then(e=>{t.close(e),E.success(T.instant("ttyg.agent.messages.agent_save_successfully",{agentName:e.name}))}).catch(e=>{E.error(getError(e,0,a.TTYG_ERROR_MSG_LENGTH))}).finally(()=>{e.savingAgent=!1})),I=(e,t)=>{console.error(e),E.error(T.instant(t))},f=()=>{e.agentSettingsForm.extractionMethods.$setValidity("required",e.agentFormModel.hasExtractionMethodSelected())},x=()=>{const t=e.activeRepositoryList.find(t=>t.value===e.agentFormModel.repositoryId);return{repositoryId:t?t.data.repository.id:void 0,repositoryLocation:t?t.data.repository.location:void 0}},L=t=>{if(t.selected||e.agentSettingsForm.$setValidity("missingIndex",!0),t.expanded){e.extractionMethodLoaderFlags[t.method]=!0;const n=x();l.getIndexesAsMenuModel(n.repositoryId,n.repositoryLocation).then(n=>{e.similarityIndexes=n,e.agentSettingsForm.$setValidity("missingIndex",!t.selected||!(!n||!n.length)),R(e.similarityIndexes,t)}).catch(t=>{e.agentSettingsForm.$setValidity("missingIndex",!1),I(t,"ttyg.agent.messages.error_similarity_indexes_loading")}).finally(()=>{e.extractionMethodLoaderFlags[t.method]=!1})}},R=(e,t)=>{if(0===e.length)return void(t.similarityIndex=null);const n=e.find(e=>e.value===t.similarityIndex);t.similarityIndex=n?n.value:e[0].value},M=t=>{if(t.selected||e.agentSettingsForm.$setValidity("missingConnector",!0),t.expanded){e.extractionMethodLoaderFlags[t.method]=!0;const n=x();d.getConnectorPrefixByName("ChatGPT Retrieval",n.repositoryId,n.repositoryLocation).then(e=>d.getConnectorsByTypeAsSelectMenuOptions(e,n.repositoryId,n.repositoryLocation)).then(n=>{e.retrievalConnectors=n,e.agentSettingsForm.$setValidity("missingConnector",!t.selected||!(!n||!n.length)),D(e.retrievalConnectors,t)}).catch(t=>{e.agentSettingsForm.$setValidity("missingConnector",!1),I(t,"ttyg.agent.messages.error_retrieval_connectors_loading")}).finally(()=>{e.extractionMethodLoaderFlags[t.method]=!1})}},D=(e,t)=>{if(0===e.length)return void(t.retrievalConnectorInstance=null);const n=e.find(e=>e.value===t.retrievalConnectorInstance);t.retrievalConnectorInstance=n?n.value:e[0].value},v={[r.ExtractionMethod.FTS_SEARCH]:t=>{e.checkIfFTSEnabled()},[r.ExtractionMethod.SPARQL]:e=>{},[r.ExtractionMethod.SIMILARITY]:e=>L(e),[r.ExtractionMethod.RETRIEVAL]:e=>M(e)},O=(t=!1,n=!1)=>{e.checkIfFTSEnabled(),e.updateSimilaritySearchPanel(t),e.updateRetrievalConnectorPanel(n)},F=()=>{document.hidden||O()};document.addEventListener("visibilitychange",F),e.$on("$destroy",()=>{document.removeEventListener("visibilitychange",F)});setTimeout(f,0)}angular.module("graphdb.framework.ttyg.controllers.agent-settings-modal",["graphdb.framework.core.services.similarity","graphdb.framework.core.services.connectors","graphdb.framework.rest.repositories.service","graphdb.framework.ttyg.controllers.agent-instructions-explain-modal"]).controller("AgentSettingsModalController",c),c.$inject=["$scope","$uibModalInstance","ModalService","$uibModal","SimilarityService","ConnectorsService","RepositoriesRestService","$sce","toastr","UriUtils","$translate","dialogModel","TTYGContextService","TTYGService"]},87:function(e,t,n){"use strict";n.r(t),n.d(t,"TTYGEventName",(function(){return i}));var s=n(18);function r(e){let t=void 0,n=void 0,r=void 0,o=void 0,a={},c=void 0,l=!1;const d=()=>Object(s.cloneDeep)(t),u=()=>Object(s.cloneDeep)(n),g=e=>{n=Object(s.cloneDeep)(e),h(i.CHAT_LIST_UPDATED,u())},E=()=>Object(s.cloneDeep)(r),p=()=>Object(s.cloneDeep)(o),T=()=>Object(s.cloneDeep)(a),m=e=>!!a[e],y=()=>l,h=(t,n)=>{e.emitSync(t,Object(s.cloneDeep)(n))},S=(t,n)=>e.subscribeSync(t,e=>n(e));return{resetContext:()=>{t=void 0,n=void 0,r=void 0,o=void 0,a={},c=void 0,l=!1},emit:h,subscribe:S,getChats:u,updateChats:g,addChat:e=>{n.appendChat(e),g(n)},replaceChat:(e,t)=>{n.replaceChat(e,t),g(n)},onChatsListChanged:e=>(n&&angular.isFunction(e)&&e(u()),S(i.CHAT_LIST_UPDATED,t=>e(t))),getSelectedChat:E,selectChat:e=>{r&&r.id===e.id||(r=Object(s.cloneDeep)(e),h(i.SELECT_CHAT,E()))},deselectChat:()=>{r=void 0,h(i.SELECT_CHAT,E())},deleteChat:e=>{n.deleteChat(e),g(n)},onSelectedChatChanged:e=>(angular.isFunction(e)&&e(E()),S(i.SELECT_CHAT,t=>e(t))),updateSelectedChat:e=>{r&&r.id&&e&&r.id!==e.id||(r=Object(s.cloneDeep)(e),h(i.SELECTED_CHAT_UPDATED,E()))},onSelectedChatUpdated:e=>(r&&angular.isFunction(e)&&e(E()),S(i.SELECTED_CHAT_UPDATED,t=>e(t))),onLastMessageReceived:e=>(r&&angular.isFunction(e)&&e(E()),S(i.LAST_MESSAGE_RECEIVED,t=>e(t))),updateAgents:e=>{t=Object(s.cloneDeep)(e),h(i.AGENT_LIST_UPDATED,d())},onAgentsListChanged:e=>(t&&angular.isFunction(e)&&e(d()),S(i.AGENT_LIST_UPDATED,t=>e(t))),getAgents:d,getAgent:e=>{if(t)return Object(s.cloneDeep)(t.getAgent(e))},selectAgent:e=>{o=Object(s.cloneDeep)(e),h(i.AGENT_SELECTED,p())},getSelectedAgent:p,onSelectedAgentChanged:e=>(o&&angular.isFunction(e)&&e(p()),S(i.AGENT_SELECTED,t=>e(t))),getDefaultAgent:()=>Object(s.cloneDeep)(c),setDefaultAgent:e=>{c=e},setCanModifyAgent:e=>{l=Object(s.cloneDeep)(e),h(i.CAN_MODIFY_AGENT_UPDATED,y())},getCanModifyAgent:y,onCanUpdateAgentUpdated:e=>(angular.isFunction(e)&&e(y()),S(i.CAN_MODIFY_AGENT_UPDATED,t=>e(t))),hasExplainResponse:m,toggleExplainResponse:e=>{m(e)&&(a[e].expanded=!a[e].expanded,h(i.EXPLAIN_RESPONSE_CACHE_UPDATED,T()))},getExplainResponse:e=>Object(s.cloneDeep)(a[e]),addExplainResponseCache:e=>{a[e.answerId]=Object(s.cloneDeep)(e),h(i.EXPLAIN_RESPONSE_CACHE_UPDATED,T())},onExplainResponseCacheUpdated:e=>(angular.isFunction(e)&&e(T()),S(i.EXPLAIN_RESPONSE_CACHE_UPDATED,t=>e(t)))}}angular.module("graphdb.framework.ttyg.services.ttygcontext",[]).factory("TTYGContextService",r),r.$inject=["EventEmitterService","TTYGService"];const i={CREATE_CHAT:"createChat",CREATE_CHAT_SUCCESSFUL:"chatCreated",CREATE_CHAT_FAILURE:"chatCreationFailed",RENAME_CHAT:"renameChat",RENAME_CHAT_SUCCESSFUL:"chatRenamed",RENAME_CHAT_FAILURE:"chatRenamedFailure",SELECT_CHAT:"selectChat",SELECTED_CHAT_UPDATED:"selectChatUpdated",LAST_MESSAGE_RECEIVED:"lastMessageReceived",DELETING_CHAT:"deletingChat",DELETE_CHAT:"deleteChat",DELETE_CHAT_SUCCESSFUL:"chatDeleted",DELETE_CHAT_FAILURE:"chatDeletedFailure",CHAT_EXPORT:"chatExport",CHAT_EXPORT_SUCCESSFUL:"chatExportSuccess",CHAT_EXPORT_FAILURE:"chatExportFailure",CHAT_LIST_UPDATED:"chatListUpdated",ASK_QUESTION:"askQuestion",ASK_QUESTION_FAILURE:"askQuestionFailure",CONTINUE_CHAT_RUN:"continueChatRun",LOAD_CHATS:"loadChats",LOAD_CHAT_SUCCESSFUL:"loadChatSuccess",LOAD_CHAT_FAILURE:"loadChatFailure",AGENT_LIST_UPDATED:"agentListUpdated",OPEN_AGENT_SETTINGS:"openAgentSettings",EDIT_AGENT:"editAgent",CLONE_AGENT:"cloneAgent",DELETE_AGENT:"deleteAgent",AGENT_DELETED:"agentDeleted",DELETING_AGENT:"deletingAgent",AGENT_SELECTED:"agentSelected",GO_TO_CREATE_SIMILARITY_VIEW:"goToCreateSimilarityView",GO_TO_CONNECTORS_VIEW:"goToConnectorsView",EXPLAIN_RESPONSE:"explainResponse",EXPLAIN_RESPONSE_CACHE_UPDATED:"explainResponseCacheUpdated",GO_TO_SPARQL_EDITOR:"openQueryInSparqlEditor",CAN_MODIFY_AGENT_UPDATED:"canModifyAgentUpdated"}},91:function(e,t,n){"use strict";n.r(t),n.d(t,"SimilarityIndexType",(function(){return s}));const s={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:e=>s.TEXT===e,isTextLiteralType:e=>s.TEXT_LITERAL===e,isPredicationType:e=>s.PREDICATION===e}},93:function(e,t,n){"use strict";n.r(t),n.d(t,"SimilarityIndexStatus",(function(){return s}));const s={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:e=>s.CREATING===e,isBuildingStatus:e=>s.BUILDING===e,isBuiltStatus:e=>s.BUILT===e,isRebuildingStatus:e=>s.REBUILDING===e,isOutdatedStatus:e=>s.OUTDATED===e,isInterruptedStatus:e=>s.INTERRUPTED===e,isObsoleteStatus:e=>s.OBSOLETE===e,isFailedStatus:e=>s.FAILED===e}},94:function(e,t,n){"use strict";n.r(t),n.d(t,"SimilarityIndex",(function(){return i}));var s=n(91),r=n(93);class i{constructor(){this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=s.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""}isTextType(){return s.SimilarityIndexType.isTextType(this.type)}isTextLiteralType(){return s.SimilarityIndexType.isTextLiteralType(this.type)}isPredicationType(){return s.SimilarityIndexType.isPredicationType(this.type)}isCreatingStatus(){return r.SimilarityIndexStatus.isCreatingStatus(this.status)}isBuildingStatus(){return r.SimilarityIndexStatus.isBuildingStatus(this.status)}isBuiltStatus(){return r.SimilarityIndexStatus.isBuiltStatus(this.status)}isRebuildingStatus(){return r.SimilarityIndexStatus.isRebuildingStatus(this.status)}isOutdatedStatus(){return r.SimilarityIndexStatus.isOutdatedStatus(this.status)}isInterruptedStatus(){return r.SimilarityIndexStatus.isInterruptedStatus(this.status)}isObsoleteStatus(){return r.SimilarityIndexStatus.isObsoleteStatus(this.status)}isFailedStatus(){return r.SimilarityIndexStatus.isFailedStatus(this.status)}}},98:function(e,t,n){"use strict";n.r(t),n.d(t,"mapIndexesResponseToSimilarityIndex",(function(){return r}));var s=n(94);const r=e=>e.map(e=>{const t=new s.SimilarityIndex;return t.type=e.type,t.stopList=e.stopList,t.status=e.status,t.selectQuery=e.selectQuery,t.searchQuery=e.searchQuery,t.sameAs=e.sameAs,t.options=e.options,t.name=e.name,t.infer=e.infer,t.analyzer=e.analyzer,t.analogicalQuery=e.analogicalQuery,t})},99:function(e,t){angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",n),n.$inject=["$http"];function n(e){return{getConnectors:function(t,n){if(t)return e.get("rest/connectors",{headers:{"X-GraphDB-Repository":t,"X-GraphDB-Repository-Location":n}});return e.get("rest/connectors")},initConnector:function(t){return e.get("rest/connectors/options?prefix="+t)},hasConnector:function(t,n,s){if(n)return e.get("rest/connectors/existing?prefix="+t,{headers:{"X-GraphDB-Repository":n,"X-GraphDB-Repository-Location":s}});return e.get("rest/connectors/existing?prefix="+t)},checkConnector:function(t){return e.post("rest/connectors/check",t,{headers:{"Content-Type":"text/plain"}})}}}}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[29,30,65,78,97,198,257,258,294,302,320],{102:function(e,t,n){"use strict";n.r(t),n.d(t,"ConnectorTypesListModel",(function(){return s})),n.d(t,"ConnectorTypeModel",(function(){return r})),n.d(t,"ConnectorListModel",(function(){return i})),n.d(t,"ConnectorModel",(function(){return o})),n.d(t,"ConnectorSettingsModel",(function(){return a}));class s{constructor(e={}){this._connectors=e.connectors||[]}getConnectorByName(e){return this._connectors.find(t=>t.name===e)}get connectors(){return this._connectors}set connectors(e){this._connectors=e}}class r{constructor(e){this._name=e.name,this._prefix=e.prefix}get name(){return this._name}set name(e){this._name=e}get prefix(){return this._prefix}set prefix(e){this._prefix=e}}class i{constructor(e=[]){this._connectors=e.connectors}get connectors(){return this._connectors}set connectors(e){this._connectors=e}}class o{constructor(e){this._name=e.name,this._settings=new a(e)}get settings(){return this._settings}set settings(e){this._settings=e}get name(){return this._name}set name(e){this._name=e}}class a{constructor(e){this._settings=e.values||{}}get settings(){return this._settings}set settings(e){this._settings=e}}},103:function(e,t){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",n),n.$inject=["$http","$repositories"];function n(e){return{getIndexes:function(t,n){if(t)return e.get("rest/similarity",{headers:{"X-GraphDB-Repository":t,"X-GraphDB-Repository-Location":n}});return e.get("rest/similarity")},getSearchQueries:function(){return e.get("rest/similarity/config")},rebuildIndex:function(e){return t("PUT",e.name,e.options,e.selectQuery,e.searchQuery,e.analogicalQuery,e.stopList,e.infer,e.sameAs,e.type)},deleteIndex:function(t){return e.delete("rest/similarity?name="+t.name)},createIndex:t,getSamples:function(){return e.get("rest/similarity/samples")},getQuery:function(t){return e.get("rest/similarity/query",{params:{name:t.indexName,options:t.indexOptions,stopList:t.indexStopList,selectQuery:t.query,infer:t.queryInference,sameAs:t.querySameAs,type:t.viewType,analyzer:t.indexAnalyzer}})},saveSearchQuery:function(t){return e({method:"put",url:"rest/similarity/search-query",data:t})}};function t(t,n,s,r,i,o,a,c,l,d,u){return e({method:t,url:"rest/similarity",noCancelOnRouteChange:!0,data:{name:n,options:s,selectQuery:r,stopList:a,infer:c,sameAs:l,type:d,analyzer:u,searchQuery:i,analogicalQuery:o}})}}},104:function(e,t,n){"use strict";n.r(t);n(99);var s=n(109),r=n(92);function i(e){const t=(t,n)=>e.getConnectors(t,n).then(e=>Object(s.connectorTypesListMapper)(e.data)),n=(t,n,r)=>e.hasConnector(encodeURIComponent(t),n,r).then(e=>Object(s.connectorsMapper)(e.data));return{getConnectorTypes:t,getConnectorsByType:n,getConnectorPrefixByName:(e,n,s)=>t(n,s).then(t=>{const n=t.getConnectorByName(e);return n?n.prefix:null}),getConnectorsByTypeAsSelectMenuOptions:(e,t,s)=>n(e,t,s).then(e=>e.connectors.map(e=>new r.SelectMenuOptionsModel({value:e.name,label:e.name})))}}angular.module("graphdb.framework.core.services.connectors",["graphdb.framework.rest.connectors.service"]).factory("ConnectorsService",i),i.$inject=["ConnectorsRestService"]},105:function(e,t,n){"use strict";n.r(t);n(103);var s=n(98),r=n(92);function i(e){const t=(t,n)=>e.getIndexes(t,n).then(e=>Object(s.mapIndexesResponseToSimilarityIndex)(e.data));return{getIndexes:t,getIndexesAsMenuModel:(e,n)=>t(e,n).then(e=>e.map(e=>new r.SelectMenuOptionsModel({label:e.name,value:e.name})))}}angular.module("graphdb.framework.core.services.similarity",["graphdb.framework.rest.similarity.service"]).factory("SimilarityService",i),i.$inject=["SimilarityRestService"]},109:function(e,t,n){"use strict";n.r(t),n.d(t,"connectorTypesListMapper",(function(){return r})),n.d(t,"connectorsMapper",(function(){return i}));var s=n(102);const r=e=>{const t=new s.ConnectorTypesListModel;return e?(t.connectors=Object.keys(e).map(t=>new s.ConnectorTypeModel({name:t,prefix:e[t]})),t):t},i=e=>{const t=new s.ConnectorListModel;return e?(t.connectors=e.map(e=>new s.ConnectorModel(e)),t):t}},147:function(e,t,n){"use strict";n.r(t);n(105),n(104),n(114),n(21);function s(e,t,n,s,r){e.agentInstructionsExplain=r.agentInstructionsExplain,e.close=()=>{t.dismiss({})},e.onCloseAgentInstructionsExplainModal=()=>{t.dismiss({})};const i=[];e.$on("$destroy",()=>{i.forEach(e=>e())})}angular.module("graphdb.framework.ttyg.controllers.agent-instructions-explain-modal",[]).controller("AgentInstructionsExplainModalController",s),s.$inject=["$scope","$uibModalInstance","ModalService","$translate","dialogModel"]},205:function(e,t,n){"use strict";n.r(t);var s=n(0),r=n(115),i=(n(105),n(104),n(114),n(21),n(147),n(10)),o=n(87),a=n(106);function c(e,t,n,c,l,d,u,g,E,p,T,m,y,h){e.AGENT_OPERATION=a.AGENT_OPERATION,e.operation=m.operation,e.savingAgent=!1,e.agentFormModel=m.agentFormModel,e.activeRepositoryInfo=m.activeRepositoryInfo,e.extractionMethodLoaderFlags={[r.ExtractionMethod.SIMILARITY]:!1},e.activeRepositoryList=m.activeRepositoryList,e.extractionMethods=r.ExtractionMethod,e.showAdvancedSettings=!1,e.showHighTemperatureWarning=!1,e.showSystemInstructionWarning=!1,e.similarityIndexes=[],e.retrievalConnectors=[],e.ftsEnabled=!1,e.toggleExtractionMethod=t=>{t.expanded=t.selected,e.agentSettingsForm.extractionMethods.$setTouched(),f(),v[t.method](t)},e.onExtractionMethodPanelToggle=e=>{e.toggleCollapse(),v[e.method](e)},e.getModelHelpMessage=()=>{const e=Object(s.decodeHTML)(T.instant("ttyg.agent.create_agent_modal.form.model.hint"));return g.trustAsHtml(e)},e.getFTSDisabledHelpMessage=()=>{const t=Object(s.decodeHTML)(T.instant("ttyg.agent.create_agent_modal.form.fts_search.fts_disabled_message",{repositoryEditPage:"#/repository/edit/"+e.agentFormModel.repositoryId}));return g.trustAsHtml(t)},e.goToCreateSimilarityView=()=>{y.emit(o.TTYGEventName.GO_TO_CREATE_SIMILARITY_VIEW,{repositoryId:e.agentFormModel.repositoryId})},e.goToConnectorsView=()=>{y.emit(o.TTYGEventName.GO_TO_CONNECTORS_VIEW,{repositoryId:e.agentFormModel.repositoryId})},e.ok=()=>{const t=e.agentFormModel.toPayload();return S[e.operation](t)},e.cancel=()=>{t.dismiss({})},e.close=()=>{t.dismiss({})},e.updateSimilaritySearchPanel=(t=!1)=>{const n=e.agentFormModel.assistantExtractionMethods.getSimilarityExtractionMethod();n.selected&&(t&&(n.similarityIndex=null),L(n))},e.updateRetrievalConnectorPanel=(t=!1)=>{const n=e.agentFormModel.assistantExtractionMethods.getRetrievalExtractionMethod();n.selected&&(t&&(n.retrievalConnectorInstance=null),M(n))},e.checkIfFTSEnabled=()=>{if(!e.agentFormModel.repositoryId)return void e.agentSettingsForm.$setValidity("FTSDisabled",!1);e.agentFormModel.assistantExtractionMethods.getFTSSearchExtractionMethod().selected?(e.extractionMethodLoaderFlags[r.ExtractionMethod.FTS_SEARCH]=!0,u.getRepositoryModel({id:e.agentFormModel.repositoryId}).then(t=>{e.ftsEnabled=t.getParamValue(i.REPOSITORY_PARAMS.enableFtsIndex)}).catch(e=>{I(e,"ttyg.agent.messages.error_repository_config_loading")}).finally(()=>{e.extractionMethodLoaderFlags[r.ExtractionMethod.FTS_SEARCH]=!1,e.agentSettingsForm.$setValidity("FTSDisabled",e.ftsEnabled)})):e.agentSettingsForm.$setValidity("FTSDisabled",!0)},e.onRepositoryChange=()=>{O(!0,!0)},e.onRestoreDefaultSystemInstructions=()=>{e.agentFormModel.instructions.systemInstruction=e.agentFormModel.instructions.systemInstructionCopy},e.onRestoreDefaultUserInstructions=()=>{e.agentFormModel.instructions.userInstruction=e.agentFormModel.instructions.userInstructionCopy},e.onTemperatureChange=()=>{e.showHighTemperatureWarning=e.agentFormModel.temperature.value>1},e.onSystemInstructionChange=()=>{""===e.agentFormModel.instructions.systemInstruction||e.showSystemInstructionWarning||(e.showSystemInstructionWarning=!0,n.openModalAlert({title:T.instant("ttyg.agent.create_agent_modal.form.system_instruction.overriding_system_instruction_warning.title"),message:T.instant("ttyg.agent.create_agent_modal.form.system_instruction.overriding_system_instruction_warning.body")}).result.then((function(){}))),""===e.agentFormModel.instructions.systemInstruction&&(e.showSystemInstructionWarning=!1)},e.onExplainAgentSettings=()=>{const t=e.agentFormModel.toPayload();h.explainAgentSettings(t).then(e=>{const t={templateUrl:"js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html",controller:"AgentInstructionsExplainModalController",windowClass:"agent-instructions-explain-modal",backdrop:"static",resolve:{dialogModel:function(){return{agentInstructionsExplain:e}}},size:"lg"};c.open(t).result.then(()=>{})}).catch(e=>{E.error(getError(e,0,a.TTYG_ERROR_MSG_LENGTH))})};const S={[a.AGENT_OPERATION.CREATE]:e=>_(e),[a.AGENT_OPERATION.EDIT]:e=>C(e),[a.AGENT_OPERATION.CLONE]:e=>A(e)},_=n=>(e.savingAgent=!0,h.createAgent(n).then(e=>{t.close(e),E.success(T.instant("ttyg.agent.messages.agent_save_successfully",{agentName:e.name}))}).catch(e=>{E.error(getError(e,0,a.TTYG_ERROR_MSG_LENGTH))}).finally(()=>{e.savingAgent=!1})),C=n=>(e.savingAgent=!0,h.editAgent(n).then(e=>{t.close(e),E.success(T.instant("ttyg.agent.messages.agent_save_successfully",{agentName:e.name}))}).catch(e=>{E.error(getError(e,0,a.TTYG_ERROR_MSG_LENGTH))}).finally(()=>{e.savingAgent=!1})),A=n=>(e.savingAgent=!0,h.createAgent(n).then(e=>{t.close(e),E.success(T.instant("ttyg.agent.messages.agent_save_successfully",{agentName:e.name}))}).catch(e=>{E.error(getError(e,0,a.TTYG_ERROR_MSG_LENGTH))}).finally(()=>{e.savingAgent=!1})),I=(e,t)=>{console.error(e),E.error(T.instant(t))},f=()=>{e.agentSettingsForm.extractionMethods.$setValidity("required",e.agentFormModel.hasExtractionMethodSelected())},x=()=>{const t=e.activeRepositoryList.find(t=>t.value===e.agentFormModel.repositoryId);return{repositoryId:t?t.data.repository.id:void 0,repositoryLocation:t?t.data.repository.location:void 0}},L=t=>{if(t.selected||e.agentSettingsForm.$setValidity("missingIndex",!0),t.expanded){e.extractionMethodLoaderFlags[t.method]=!0;const n=x();l.getIndexesAsMenuModel(n.repositoryId,n.repositoryLocation).then(n=>{e.similarityIndexes=n,e.agentSettingsForm.$setValidity("missingIndex",!t.selected||!(!n||!n.length)),R(e.similarityIndexes,t)}).catch(t=>{e.agentSettingsForm.$setValidity("missingIndex",!1),I(t,"ttyg.agent.messages.error_similarity_indexes_loading")}).finally(()=>{e.extractionMethodLoaderFlags[t.method]=!1})}},R=(e,t)=>{if(0===e.length)return void(t.similarityIndex=null);const n=e.find(e=>e.value===t.similarityIndex);t.similarityIndex=n?n.value:e[0].value},M=t=>{if(t.selected||e.agentSettingsForm.$setValidity("missingConnector",!0),t.expanded){e.extractionMethodLoaderFlags[t.method]=!0;const n=x();d.getConnectorPrefixByName("ChatGPT Retrieval",n.repositoryId,n.repositoryLocation).then(e=>d.getConnectorsByTypeAsSelectMenuOptions(e,n.repositoryId,n.repositoryLocation)).then(n=>{e.retrievalConnectors=n,e.agentSettingsForm.$setValidity("missingConnector",!t.selected||!(!n||!n.length)),D(e.retrievalConnectors,t)}).catch(t=>{e.agentSettingsForm.$setValidity("missingConnector",!1),I(t,"ttyg.agent.messages.error_retrieval_connectors_loading")}).finally(()=>{e.extractionMethodLoaderFlags[t.method]=!1})}},D=(e,t)=>{if(0===e.length)return void(t.retrievalConnectorInstance=null);const n=e.find(e=>e.value===t.retrievalConnectorInstance);t.retrievalConnectorInstance=n?n.value:e[0].value},v={[r.ExtractionMethod.FTS_SEARCH]:t=>{e.checkIfFTSEnabled()},[r.ExtractionMethod.SPARQL]:e=>{},[r.ExtractionMethod.SIMILARITY]:e=>L(e),[r.ExtractionMethod.RETRIEVAL]:e=>M(e)},O=(t=!1,n=!1)=>{e.checkIfFTSEnabled(),e.updateSimilaritySearchPanel(t),e.updateRetrievalConnectorPanel(n)},F=()=>{document.hidden||O()};document.addEventListener("visibilitychange",F),e.$on("$destroy",()=>{document.removeEventListener("visibilitychange",F)});setTimeout(f,0)}angular.module("graphdb.framework.ttyg.controllers.agent-settings-modal",["graphdb.framework.core.services.similarity","graphdb.framework.core.services.connectors","graphdb.framework.rest.repositories.service","graphdb.framework.ttyg.controllers.agent-instructions-explain-modal"]).controller("AgentSettingsModalController",c),c.$inject=["$scope","$uibModalInstance","ModalService","$uibModal","SimilarityService","ConnectorsService","RepositoriesRestService","$sce","toastr","UriUtils","$translate","dialogModel","TTYGContextService","TTYGService"]},87:function(e,t,n){"use strict";n.r(t),n.d(t,"TTYGEventName",(function(){return i}));var s=n(18);function r(e){let t=void 0,n=void 0,r=void 0,o=void 0,a={},c=void 0,l=!1;const d=()=>Object(s.cloneDeep)(t),u=()=>Object(s.cloneDeep)(n),g=e=>{n=Object(s.cloneDeep)(e),h(i.CHAT_LIST_UPDATED,u())},E=()=>Object(s.cloneDeep)(r),p=()=>Object(s.cloneDeep)(o),T=()=>Object(s.cloneDeep)(a),m=e=>!!a[e],y=()=>l,h=(t,n)=>{e.emitSync(t,Object(s.cloneDeep)(n))},S=(t,n)=>e.subscribeSync(t,e=>n(e));return{resetContext:()=>{t=void 0,n=void 0,r=void 0,o=void 0,a={},c=void 0,l=!1},emit:h,subscribe:S,getChats:u,updateChats:g,addChat:e=>{n.appendChat(e),g(n)},replaceChat:(e,t)=>{n.replaceChat(e,t),g(n)},onChatsListChanged:e=>(n&&angular.isFunction(e)&&e(u()),S(i.CHAT_LIST_UPDATED,t=>e(t))),getSelectedChat:E,selectChat:e=>{r&&r.id===e.id||(r=Object(s.cloneDeep)(e),h(i.SELECT_CHAT,E()))},deselectChat:()=>{r=void 0,h(i.SELECT_CHAT,E())},deleteChat:e=>{n.deleteChat(e),g(n)},onSelectedChatChanged:e=>(angular.isFunction(e)&&e(E()),S(i.SELECT_CHAT,t=>e(t))),updateSelectedChat:e=>{r&&r.id&&e&&r.id!==e.id||(r=Object(s.cloneDeep)(e),h(i.SELECTED_CHAT_UPDATED,E()))},onSelectedChatUpdated:e=>(r&&angular.isFunction(e)&&e(E()),S(i.SELECTED_CHAT_UPDATED,t=>e(t))),onLastMessageReceived:e=>(r&&angular.isFunction(e)&&e(E()),S(i.LAST_MESSAGE_RECEIVED,t=>e(t))),updateAgents:e=>{t=Object(s.cloneDeep)(e),h(i.AGENT_LIST_UPDATED,d())},onAgentsListChanged:e=>(t&&angular.isFunction(e)&&e(d()),S(i.AGENT_LIST_UPDATED,t=>e(t))),getAgents:d,getAgent:e=>{if(t)return Object(s.cloneDeep)(t.getAgent(e))},selectAgent:e=>{o=Object(s.cloneDeep)(e),h(i.AGENT_SELECTED,p())},getSelectedAgent:p,onSelectedAgentChanged:e=>(o&&angular.isFunction(e)&&e(p()),S(i.AGENT_SELECTED,t=>e(t))),getDefaultAgent:()=>Object(s.cloneDeep)(c),setDefaultAgent:e=>{c=e},setCanModifyAgent:e=>{l=Object(s.cloneDeep)(e),h(i.CAN_MODIFY_AGENT_UPDATED,y())},getCanModifyAgent:y,onCanUpdateAgentUpdated:e=>(angular.isFunction(e)&&e(y()),S(i.CAN_MODIFY_AGENT_UPDATED,t=>e(t))),hasExplainResponse:m,toggleExplainResponse:e=>{m(e)&&(a[e].expanded=!a[e].expanded,h(i.EXPLAIN_RESPONSE_CACHE_UPDATED,T()))},getExplainResponse:e=>Object(s.cloneDeep)(a[e]),addExplainResponseCache:e=>{a[e.answerId]=Object(s.cloneDeep)(e),h(i.EXPLAIN_RESPONSE_CACHE_UPDATED,T())},onExplainResponseCacheUpdated:e=>(angular.isFunction(e)&&e(T()),S(i.EXPLAIN_RESPONSE_CACHE_UPDATED,t=>e(t)))}}angular.module("graphdb.framework.ttyg.services.ttygcontext",[]).factory("TTYGContextService",r),r.$inject=["EventEmitterService","TTYGService"];const i={CREATE_CHAT:"createChat",CREATE_CHAT_SUCCESSFUL:"chatCreated",CREATE_CHAT_FAILURE:"chatCreationFailed",RENAME_CHAT:"renameChat",RENAME_CHAT_SUCCESSFUL:"chatRenamed",RENAME_CHAT_FAILURE:"chatRenamedFailure",SELECT_CHAT:"selectChat",SELECTED_CHAT_UPDATED:"selectChatUpdated",LAST_MESSAGE_RECEIVED:"lastMessageReceived",DELETING_CHAT:"deletingChat",DELETE_CHAT:"deleteChat",DELETE_CHAT_SUCCESSFUL:"chatDeleted",DELETE_CHAT_FAILURE:"chatDeletedFailure",CHAT_EXPORT:"chatExport",CHAT_EXPORT_SUCCESSFUL:"chatExportSuccess",CHAT_EXPORT_FAILURE:"chatExportFailure",CHAT_LIST_UPDATED:"chatListUpdated",ASK_QUESTION:"askQuestion",ASK_QUESTION_FAILURE:"askQuestionFailure",CONTINUE_CHAT_RUN:"continueChatRun",LOAD_CHATS:"loadChats",LOAD_CHAT_SUCCESSFUL:"loadChatSuccess",LOAD_CHAT_FAILURE:"loadChatFailure",AGENT_LIST_UPDATED:"agentListUpdated",OPEN_AGENT_SETTINGS:"openAgentSettings",EDIT_AGENT:"editAgent",CLONE_AGENT:"cloneAgent",DELETE_AGENT:"deleteAgent",AGENT_DELETED:"agentDeleted",DELETING_AGENT:"deletingAgent",AGENT_SELECTED:"agentSelected",GO_TO_CREATE_SIMILARITY_VIEW:"goToCreateSimilarityView",GO_TO_CONNECTORS_VIEW:"goToConnectorsView",EXPLAIN_RESPONSE:"explainResponse",EXPLAIN_RESPONSE_CACHE_UPDATED:"explainResponseCacheUpdated",GO_TO_SPARQL_EDITOR:"openQueryInSparqlEditor",CAN_MODIFY_AGENT_UPDATED:"canModifyAgentUpdated"}},91:function(e,t,n){"use strict";n.r(t),n.d(t,"SimilarityIndexType",(function(){return s}));const s={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:e=>s.TEXT===e,isTextLiteralType:e=>s.TEXT_LITERAL===e,isPredicationType:e=>s.PREDICATION===e}},93:function(e,t,n){"use strict";n.r(t),n.d(t,"SimilarityIndexStatus",(function(){return s}));const s={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:e=>s.CREATING===e,isBuildingStatus:e=>s.BUILDING===e,isBuiltStatus:e=>s.BUILT===e,isRebuildingStatus:e=>s.REBUILDING===e,isOutdatedStatus:e=>s.OUTDATED===e,isInterruptedStatus:e=>s.INTERRUPTED===e,isObsoleteStatus:e=>s.OBSOLETE===e,isFailedStatus:e=>s.FAILED===e}},94:function(e,t,n){"use strict";n.r(t),n.d(t,"SimilarityIndex",(function(){return i}));var s=n(91),r=n(93);class i{constructor(){this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=s.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""}isTextType(){return s.SimilarityIndexType.isTextType(this.type)}isTextLiteralType(){return s.SimilarityIndexType.isTextLiteralType(this.type)}isPredicationType(){return s.SimilarityIndexType.isPredicationType(this.type)}isCreatingStatus(){return r.SimilarityIndexStatus.isCreatingStatus(this.status)}isBuildingStatus(){return r.SimilarityIndexStatus.isBuildingStatus(this.status)}isBuiltStatus(){return r.SimilarityIndexStatus.isBuiltStatus(this.status)}isRebuildingStatus(){return r.SimilarityIndexStatus.isRebuildingStatus(this.status)}isOutdatedStatus(){return r.SimilarityIndexStatus.isOutdatedStatus(this.status)}isInterruptedStatus(){return r.SimilarityIndexStatus.isInterruptedStatus(this.status)}isObsoleteStatus(){return r.SimilarityIndexStatus.isObsoleteStatus(this.status)}isFailedStatus(){return r.SimilarityIndexStatus.isFailedStatus(this.status)}}},98:function(e,t,n){"use strict";n.r(t),n.d(t,"mapIndexesResponseToSimilarityIndex",(function(){return r}));var s=n(94);const r=e=>e.map(e=>{const t=new s.SimilarityIndex;return t.type=e.type,t.stopList=e.stopList,t.status=e.status,t.selectQuery=e.selectQuery,t.searchQuery=e.searchQuery,t.sameAs=e.sameAs,t.options=e.options,t.name=e.name,t.infer=e.infer,t.analyzer=e.analyzer,t.analogicalQuery=e.analogicalQuery,t})},99:function(e,t){angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",n),n.$inject=["$http"];function n(e){return{getConnectors:function(t,n){if(t)return e.get("rest/connectors",{headers:{"X-GraphDB-Repository":t,"X-GraphDB-Repository-Location":n}});return e.get("rest/connectors")},initConnector:function(t){return e.get("rest/connectors/options?prefix="+t)},hasConnector:function(t,n,s){if(n)return e.get("rest/connectors/existing?prefix="+t,{headers:{"X-GraphDB-Repository":n,"X-GraphDB-Repository-Location":s}});return e.get("rest/connectors/existing?prefix="+t)},checkConnector:function(t){return e.post("rest/connectors/check",t,{headers:{"Content-Type":"text/plain"}})}}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[290],{307:function(e,t,n){"use strict";n.r(t);var r=n(
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[290],{307:function(e,t,n){"use strict";n.r(t);var r=n(539);angular.module("graphdb.framework.resources.directives",[]).directive("chart",["$rootScope",function(e){return{restrict:"AE",scope:{chart:"="},link:function(t,n){let a;const c=e.$on("$translateChangeSuccess",()=>{t.chart.translateLabels(),a.setOption(t.chart.chartOptions)});function s(){a.setOption(t.chart.chartOptions),t.chart.updateRange(t.chart.dataHolder),a.hideLoading()}function o(e){t.chart.setSelectedSeries(e.selected)}function i(){a.resize()}t.$watch("chart",(function(){a=r.a(n[0],null,{renderer:"svg"}),a.setOption(t.chart.chartOptions),a.showLoading(),a.on("legendselectchanged",o),t.chart.registerRefreshHandler(s),t.chart.translateLabels(),window.addEventListener("resize",i)})),t.$on("$destroy",(function(){a.on("legendselectchanged"),a.dispose(),t.chart.unregisterRefreshHandler(s),c(),window.removeEventListener("resize",i)}))}}}])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[293],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[293],{113:function(t,e){angular.module("graphdb.framework.rest.cluster.service",[]).factory("ClusterRestService",r),r.$inject=["$http"];function r(t){return{getClusterConfig:function(){return t.get("rest/cluster/config")},createCluster:function(e){return t.post("rest/cluster/httpConfig",e)},updateClusterConfiguration:function(e){e.nodes&&delete e.nodes;return t.patch("rest/cluster/config",e)},deleteCluster:function(e){const r=$.param({force:e});return t.delete("rest/cluster/config?"+r)},replaceNodesInCluster:function(e){return t.patch("rest/cluster/httpConfig",e)},getClusterStatus:function(){return t.get("rest/cluster/group/status")},getNodeStatus:function(){return t.get("rest/cluster/node/status")},addCusterTag:function(e){return t.post("rest/cluster/config/tag",e)},deleteClusterTag:function(e){return t({method:"DELETE",url:"rest/cluster/config/tag",data:{tag:e},headers:{"Content-type":"application/json;charset=utf-8"}})},disableSecondaryMode:function(){return t.delete("rest/cluster/config/secondary-mode")},enableSecondaryMode:function(e){return t.post("rest/cluster/config/secondary-mode",e)}}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[3,104,199,319],{106:function(t,e,s){"use strict";s.r(e),s.d(e,"TTYG_ERROR_MSG_LENGTH",(function(){return i})),s.d(e,"AGENTS_FILTER_ALL_KEY",(function(){return r})),s.d(e,"AGENT_OPERATION",(function(){return n}));const i=100,r="ALL",n={CREATE:"create",EDIT:"edit",CLONE:"clone"}},114:function(t,e,s){"use strict";s.r(e),s.d(e,"AgentModel",(function(){return n})),s.d(e,"AgentInstructionsModel",(function(){return a})),s.d(e,"ExtractionMethodModel",(function(){return o})),s.d(e,"AdditionalExtractionMethodsModel",(function(){return h})),s.d(e,"AdditionalExtractionMethodModel",(function(){return d})),s.d(e,"AgentListModel",(function(){return l})),s.d(e,"ExtractionMethod",(function(){return u})),s.d(e,"AdditionalExtractionMethod",(function(){return c})),s.d(e,"AgentListFilterModel",(function(){return _}));var i=s(18),r=s(106);class n{constructor(t,e){this.hashGenerator=e,this._isDeleted=!1,this._id=t.id,this._name=t.name,this._repositoryId=t.repositoryId,this.isRepositoryDeleted=void 0!==t.isRepositoryDeleted&&t.isRepositoryDeleted,this._model=t.model,this._temperature=t.temperature,this._topP=t.topP,this._seed=t.seed,this._instructions=t.instructions,this._assistantExtractionMethods=t.assistantExtractionMethods,this._additionalExtractionMethods=t.additionalExtractionMethods}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}get id(){return this._id}set id(t){this._id=t}get name(){return this._name}set name(t){this._name=t}get repositoryId(){return this._repositoryId}set repositoryId(t){this._repositoryId=t}get model(){return this._model}set model(t){this._model=t}get temperature(){return this._temperature}set temperature(t){this._temperature=t}get topP(){return this._topP}set topP(t){this._topP=t}get seed(){return this._seed}set seed(t){this._seed=t}get instructions(){return this._instructions}set instructions(t){this._instructions=t}get assistantExtractionMethods(){return this._assistantExtractionMethods}set assistantExtractionMethods(t){this._assistantExtractionMethods=t}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class a{constructor(t){this._systemInstruction=t.systemInstruction,this._userInstruction=t.userInstruction}get systemInstruction(){return this._systemInstruction}set systemInstruction(t){this._systemInstruction=t}get userInstruction(){return this._userInstruction}set userInstruction(t){this._userInstruction=t}}class o{constructor(t){this._method=t.method,this._addMissingNamespaces=t.addMissingNamespaces,this._ontologyGraph=t.ontologyGraph,this._sparqlQuery=t.sparqlQuery,this._maxNumberOfTriplesPerCall=t.maxNumberOfTriplesPerCall,this._similarityIndex=t.similarityIndex,this._similarityIndexThreshold=t.similarityIndexThreshold,this._queryTemplate=t.queryTemplate,this._retrievalConnectorInstance=t.retrievalConnectorInstance}get method(){return this._method}set method(t){this._method=t}get addMissingNamespaces(){return this._addMissingNamespaces}set addMissingNamespaces(t){this._addMissingNamespaces=t}get sparqlQuery(){return this._sparqlQuery}set sparqlQuery(t){this._sparqlQuery=t}get ontologyGraph(){return this._ontologyGraph}set ontologyGraph(t){this._ontologyGraph=t}get maxNumberOfTriplesPerCall(){return this._maxNumberOfTriplesPerCall}set maxNumberOfTriplesPerCall(t){this._maxNumberOfTriplesPerCall=t}get similarityIndex(){return this._similarityIndex}set similarityIndex(t){this._similarityIndex=t}get similarityIndexThreshold(){return this._similarityIndexThreshold}set similarityIndexThreshold(t){this._similarityIndexThreshold=t}get queryTemplate(){return this._queryTemplate}set queryTemplate(t){this._queryTemplate=t}get retrievalConnectorInstance(){return this._retrievalConnectorInstance}set retrievalConnectorInstance(t){this._retrievalConnectorInstance=t}}class h{constructor(t){this._additionalExtractionMethods=t}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class d{constructor(t){this._method=t.method}get method(){return this._method}set method(t){this._method=t}}class l{constructor(t=[]){this._agents=t,this._filterableAgents=Object(i.cloneDeep)(t),this._agentNameByIdMap={},this._initializeAgentNameByIdMap()}_initializeAgentNameByIdMap(){this._agentNameByIdMap=this._agents.reduce((t,e)=>(t[e.id]=e.name,t),{})}isEmpty(){return 0===this._agents.length}filterByRepository(t){this._filterableAgents=this._agents.filter(e=>t===r.AGENTS_FILTER_ALL_KEY||(e.repositoryId===t?e:void 0))}getAgent(t){return this._agents.find(e=>e.id===t)}get agents(){return this._agents}set agents(t){this._agents=t}get filterableAgents(){return this._filterableAgents}set filterableAgents(t){this._filterableAgents=t}get agentNameByIdMap(){return Object(i.cloneDeep)(this._agentNameByIdMap)}set agentNameByIdMap(t){this._agentNameByIdMap=t}}const u={FTS_SEARCH:"fts_search",SPARQL:"sparql_search",SIMILARITY:"similarity_search",RETRIEVAL:"retrieval_search"},c={IRI_DISCOVERY_SEARCH:"iri_discovery_search"};class _{constructor(t,e,s=!1){this._key=t,this._label=e,this._selected=s}get key(){return this._key}set key(t){this._key=t}get label(){return this._label}set label(t){this._label=t}get selected(){return this._selected}set selected(t){this._selected=t}}},240:function(t,e,s){"use strict";s.r(e),s.d(e,"AgentFormModel",(function(){return n})),s.d(e,"ExtractionMethodsFormModel",(function(){return a})),s.d(e,"ExtractionMethodFormModel",(function(){return o})),s.d(e,"AdditionalExtractionMethodsFormModel",(function(){return h})),s.d(e,"AdditionalExtractionMethodFormModel",(function(){return d})),s.d(e,"AgentInstructionsFormModel",(function(){return l}));var i=s(92),r=s(114);class n{constructor(t){this._id=t&&t.id,this._name=t&&t.name,this._repositoryId=t&&t.repositoryId,this._model=t&&t.model||"gpt-4o",this._temperature=t&&t.temperature||new i.NumericRangeModel({value:.7,minValue:0,maxValue:2,step:.1}),this._topP=t&&t.topP||new i.NumericRangeModel({value:1,minValue:0,maxValue:1,step:.1}),this._seed=t&&t.seed,this._instructions=t&&t.instructions,this._assistantExtractionMethods=t&&t.assistantExtractionMethods||this.getDefaultExtractionMethods(),this._additionalExtractionMethods=t&&t.additionalExtractionMethods||this.getDefaultAdditionalExtractionMethod()}getDefaultExtractionMethods(){const t=[];return t.push(new o({method:r.ExtractionMethod.SPARQL,ontologyGraph:"http://example.com/swgraph",sparqlQuery:new i.TextFieldModel({value:"select ?s ?p ?o where {?s ?p ?o .}",minLength:1,maxLength:2380}),selected:!1})),t.push(new o({method:r.ExtractionMethod.FTS_SEARCH,maxNumberOfTriplesPerCall:null,selected:!1})),t.push(new o({method:r.ExtractionMethod.SIMILARITY,similarityIndex:null,similarityIndexThreshold:new i.NumericRangeModel({value:.6,minValue:0,maxValue:1,step:.1}),maxNumberOfTriplesPerCall:null,selected:!1})),t.push(new o({method:r.ExtractionMethod.RETRIEVAL,retrievalConnectorInstance:null,maxNumberOfTriplesPerCall:null,queryTemplate:new i.TextFieldModel({value:'{"query": "string"}',minLength:1,maxLength:2380}),selected:!1})),new a(t)}getDefaultAdditionalExtractionMethod(){const t=[];return t.push(new d({method:r.AdditionalExtractionMethod.IRI_DISCOVERY_SEARCH})),new h(t)}toPayload(){return{id:this.id,name:this._name,repositoryId:this._repositoryId,model:this._model,temperature:this._temperature.value,topP:this._topP.value,seed:this._seed,assistantsInstructions:this._instructions.toPayload(),assistantExtractionMethods:this._assistantExtractionMethods.toPayload(),additionalExtractionMethods:this._additionalExtractionMethods.toPayload()}}hasExtractionMethodSelected(){return this._assistantExtractionMethods.extractionMethods.some(t=>t.selected)}get id(){return this._id}set id(t){this._id=t}get name(){return this._name}set name(t){this._name=t}get repositoryId(){return this._repositoryId}set repositoryId(t){this._repositoryId=t}get model(){return this._model}set model(t){this._model=t}get temperature(){return this._temperature}set temperature(t){this._temperature=t}get topP(){return this._topP}set topP(t){this._topP=t}get seed(){return this._seed}set seed(t){this._seed=t}get instructions(){return this._instructions}set instructions(t){this._instructions=t}get assistantExtractionMethods(){return this._assistantExtractionMethods}set assistantExtractionMethods(t){this._assistantExtractionMethods=t}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class a{constructor(t){this._extractionMethods=t}toPayload(){return this._extractionMethods.filter(t=>t.selected).map(t=>t.toPayload())}findExtractionMethodIndex(t){return this._extractionMethods.findIndex(e=>e.method===t)}setExtractionMethod(t){const e=this.findExtractionMethodIndex(t.method);-1!==e&&(this._extractionMethods[e]=t)}get extractionMethods(){return this._extractionMethods}set extractionMethods(t){this._extractionMethods=t}getExtractionMethod(t){return this._extractionMethods.find(e=>e.method===t)}getSimilarityExtractionMethod(){return this.getExtractionMethod(r.ExtractionMethod.SIMILARITY)}getRetrievalExtractionMethod(){return this.getExtractionMethod(r.ExtractionMethod.RETRIEVAL)}getFTSSearchExtractionMethod(){return this.getExtractionMethod(r.ExtractionMethod.FTS_SEARCH)}}class o{constructor(t){this._selected=t.selected||!1,this._method=t.method,this._sparqlOption=t.sparqlOption,this._addMissingNamespaces=t.addMissingNamespaces,this._ontologyGraph=t.ontologyGraph,this._sparqlQuery=t.sparqlQuery,this._maxNumberOfTriplesPerCall=t.maxNumberOfTriplesPerCall,this._similarityIndex=t.similarityIndex,this._similarityIndexThreshold=t.similarityIndexThreshold,this._queryTemplate=t.queryTemplate,this._retrievalConnectorInstance=t.retrievalConnectorInstance,this._expanded=void 0!==t.expanded&&t.expanded}toggleCollapse(){this._expanded=!this._expanded}toPayload(){const t={};return t.method=this._method?this._method:null,"ontologyGraph"===this._sparqlOption?t.ontologyGraph=this._ontologyGraph?this._ontologyGraph:null:"sparqlQuery"===this._sparqlOption&&(t.sparqlQuery=this._sparqlQuery?this._sparqlQuery.value:null),this._method===r.ExtractionMethod.SPARQL&&void 0!==this._addMissingNamespaces&&(t.addMissingNamespaces=this._addMissingNamespaces),this._maxNumberOfTriplesPerCall&&(t.maxNumberOfTriplesPerCall=this._maxNumberOfTriplesPerCall),this._similarityIndex&&(t.similarityIndex=this._similarityIndex),this._similarityIndexThreshold&&this._similarityIndexThreshold.value&&(t.similarityIndexThreshold=parseFloat(this._similarityIndexThreshold.value)),this._queryTemplate&&this._queryTemplate.value&&(t.queryTemplate=this._queryTemplate.value),this._retrievalConnectorInstance&&(t.retrievalConnectorInstance=this._retrievalConnectorInstance),t}get selected(){return this._selected}set selected(t){this._selected=t}get method(){return this._method}set method(t){this._method=t}get sparqlOption(){return this._sparqlOption}set sparqlOption(t){this._sparqlOption=t}get sparqlQuery(){return this._sparqlQuery}set sparqlQuery(t){this._sparqlQuery=t}get addMissingNamespaces(){return this._addMissingNamespaces}set addMissingNamespaces(t){this._addMissingNamespaces=t}get ontologyGraph(){return this._ontologyGraph}set ontologyGraph(t){this._ontologyGraph=t}get maxNumberOfTriplesPerCall(){return this._maxNumberOfTriplesPerCall}set maxNumberOfTriplesPerCall(t){this._maxNumberOfTriplesPerCall=t}get similarityIndex(){return this._similarityIndex}set similarityIndex(t){this._similarityIndex=t}get similarityIndexThreshold(){return this._similarityIndexThreshold}set similarityIndexThreshold(t){this._similarityIndexThreshold=t}get queryTemplate(){return this._queryTemplate}set queryTemplate(t){this._queryTemplate=t}get retrievalConnectorInstance(){return this._retrievalConnectorInstance}set retrievalConnectorInstance(t){this._retrievalConnectorInstance=t}get expanded(){return this._expanded}set expanded(t){this._expanded=t}}class h{constructor(t){this._additionalExtractionMethods=t}toPayload(){return this._additionalExtractionMethods.filter(t=>t.selected).map(t=>t.toPayload())}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class d{constructor(t){this._selected=t.selected||!1,this._method=t.method}toPayload(){return{method:this._method}}get selected(){return this._selected}set selected(t){this._selected=t}get method(){return this._method}set method(t){this._method=t}}class l{constructor(t){this._systemInstruction=t.systemInstruction,this._systemInstructionCopy=t.defaultSystemInstruction,this._userInstruction=t.userInstruction,this._userInstructionCopy=t.defaultUserInstruction}toPayload(){return{systemInstruction:this._systemInstruction,userInstruction:this._userInstruction}}get systemInstruction(){return this._systemInstruction}set systemInstruction(t){this._systemInstruction=t}get systemInstructionCopy(){return this._systemInstructionCopy}set systemInstructionCopy(t){this._systemInstructionCopy=t}get userInstruction(){return this._userInstruction}set userInstruction(t){this._userInstruction=t}get userInstructionCopy(){return this._userInstructionCopy}set userInstructionCopy(t){this._userInstructionCopy=t}}},92:function(t,e,s){"use strict";s.r(e),s.d(e,"SelectMenuOptionsModel",(function(){return i})),s.d(e,"TextFieldModel",(function(){return r})),s.d(e,"NumericRangeModel",(function(){return n}));class i{constructor({label:t,value:e,selected:s=!1,data:i={}}){this._label=t,this._value=e,this._selected=s,this._data=i}get label(){return this._label}set label(t){this._label=t}get value(){return this._value}set value(t){this._value=t}get selected(){return this._selected}set selected(t){this._selected=t}get data(){return this._data}set data(t){this._data=t}}class r{constructor(t){this._value=t.value,this._minLength=t.minLength,this._maxLength=t.maxLength}get value(){return this._value}set value(t){this._value=t}get maxLength(){return this._maxLength}set maxLength(t){this._maxLength=t}get minLength(){return this._minLength}set minLength(t){this._minLength=t}}class n{constructor(t){this._value=t.value,this._minValue=t.minValue,this._maxValue=t.maxValue,this._step=t.step}get value(){return this._value}set value(t){this._value=t}get minValue(){return this._minValue}set minValue(t){this._minValue=t}get maxValue(){return this._maxValue}set maxValue(t){this._maxValue=t}get step(){return this._step}set step(t){this._step=t}}}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[3,104,199,319],{106:function(t,e,s){"use strict";s.r(e),s.d(e,"TTYG_ERROR_MSG_LENGTH",(function(){return i})),s.d(e,"AGENTS_FILTER_ALL_KEY",(function(){return r})),s.d(e,"AGENT_OPERATION",(function(){return n}));const i=100,r="ALL",n={CREATE:"create",EDIT:"edit",CLONE:"clone"}},115:function(t,e,s){"use strict";s.r(e),s.d(e,"AgentModel",(function(){return n})),s.d(e,"AgentInstructionsModel",(function(){return a})),s.d(e,"ExtractionMethodModel",(function(){return o})),s.d(e,"AdditionalExtractionMethodsModel",(function(){return h})),s.d(e,"AdditionalExtractionMethodModel",(function(){return d})),s.d(e,"AgentListModel",(function(){return l})),s.d(e,"ExtractionMethod",(function(){return u})),s.d(e,"AdditionalExtractionMethod",(function(){return c})),s.d(e,"AgentListFilterModel",(function(){return _}));var i=s(18),r=s(106);class n{constructor(t,e){this.hashGenerator=e,this._isDeleted=!1,this._id=t.id,this._name=t.name,this._repositoryId=t.repositoryId,this.isRepositoryDeleted=void 0!==t.isRepositoryDeleted&&t.isRepositoryDeleted,this._model=t.model,this._temperature=t.temperature,this._topP=t.topP,this._seed=t.seed,this._instructions=t.instructions,this._assistantExtractionMethods=t.assistantExtractionMethods,this._additionalExtractionMethods=t.additionalExtractionMethods}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}get id(){return this._id}set id(t){this._id=t}get name(){return this._name}set name(t){this._name=t}get repositoryId(){return this._repositoryId}set repositoryId(t){this._repositoryId=t}get model(){return this._model}set model(t){this._model=t}get temperature(){return this._temperature}set temperature(t){this._temperature=t}get topP(){return this._topP}set topP(t){this._topP=t}get seed(){return this._seed}set seed(t){this._seed=t}get instructions(){return this._instructions}set instructions(t){this._instructions=t}get assistantExtractionMethods(){return this._assistantExtractionMethods}set assistantExtractionMethods(t){this._assistantExtractionMethods=t}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class a{constructor(t){this._systemInstruction=t.systemInstruction,this._userInstruction=t.userInstruction}get systemInstruction(){return this._systemInstruction}set systemInstruction(t){this._systemInstruction=t}get userInstruction(){return this._userInstruction}set userInstruction(t){this._userInstruction=t}}class o{constructor(t){this._method=t.method,this._addMissingNamespaces=t.addMissingNamespaces,this._ontologyGraph=t.ontologyGraph,this._sparqlQuery=t.sparqlQuery,this._maxNumberOfTriplesPerCall=t.maxNumberOfTriplesPerCall,this._similarityIndex=t.similarityIndex,this._similarityIndexThreshold=t.similarityIndexThreshold,this._queryTemplate=t.queryTemplate,this._retrievalConnectorInstance=t.retrievalConnectorInstance}get method(){return this._method}set method(t){this._method=t}get addMissingNamespaces(){return this._addMissingNamespaces}set addMissingNamespaces(t){this._addMissingNamespaces=t}get sparqlQuery(){return this._sparqlQuery}set sparqlQuery(t){this._sparqlQuery=t}get ontologyGraph(){return this._ontologyGraph}set ontologyGraph(t){this._ontologyGraph=t}get maxNumberOfTriplesPerCall(){return this._maxNumberOfTriplesPerCall}set maxNumberOfTriplesPerCall(t){this._maxNumberOfTriplesPerCall=t}get similarityIndex(){return this._similarityIndex}set similarityIndex(t){this._similarityIndex=t}get similarityIndexThreshold(){return this._similarityIndexThreshold}set similarityIndexThreshold(t){this._similarityIndexThreshold=t}get queryTemplate(){return this._queryTemplate}set queryTemplate(t){this._queryTemplate=t}get retrievalConnectorInstance(){return this._retrievalConnectorInstance}set retrievalConnectorInstance(t){this._retrievalConnectorInstance=t}}class h{constructor(t){this._additionalExtractionMethods=t}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class d{constructor(t){this._method=t.method}get method(){return this._method}set method(t){this._method=t}}class l{constructor(t=[]){this._agents=t,this._filterableAgents=Object(i.cloneDeep)(t),this._agentNameByIdMap={},this._initializeAgentNameByIdMap()}_initializeAgentNameByIdMap(){this._agentNameByIdMap=this._agents.reduce((t,e)=>(t[e.id]=e.name,t),{})}isEmpty(){return 0===this._agents.length}filterByRepository(t){this._filterableAgents=this._agents.filter(e=>t===r.AGENTS_FILTER_ALL_KEY||(e.repositoryId===t?e:void 0))}getAgent(t){return this._agents.find(e=>e.id===t)}get agents(){return this._agents}set agents(t){this._agents=t}get filterableAgents(){return this._filterableAgents}set filterableAgents(t){this._filterableAgents=t}get agentNameByIdMap(){return Object(i.cloneDeep)(this._agentNameByIdMap)}set agentNameByIdMap(t){this._agentNameByIdMap=t}}const u={FTS_SEARCH:"fts_search",SPARQL:"sparql_search",SIMILARITY:"similarity_search",RETRIEVAL:"retrieval_search"},c={IRI_DISCOVERY_SEARCH:"iri_discovery_search"};class _{constructor(t,e,s=!1){this._key=t,this._label=e,this._selected=s}get key(){return this._key}set key(t){this._key=t}get label(){return this._label}set label(t){this._label=t}get selected(){return this._selected}set selected(t){this._selected=t}}},240:function(t,e,s){"use strict";s.r(e),s.d(e,"AgentFormModel",(function(){return n})),s.d(e,"ExtractionMethodsFormModel",(function(){return a})),s.d(e,"ExtractionMethodFormModel",(function(){return o})),s.d(e,"AdditionalExtractionMethodsFormModel",(function(){return h})),s.d(e,"AdditionalExtractionMethodFormModel",(function(){return d})),s.d(e,"AgentInstructionsFormModel",(function(){return l}));var i=s(92),r=s(115);class n{constructor(t){this._id=t&&t.id,this._name=t&&t.name,this._repositoryId=t&&t.repositoryId,this._model=t&&t.model||"gpt-4o",this._temperature=t&&t.temperature||new i.NumericRangeModel({value:.7,minValue:0,maxValue:2,step:.1}),this._topP=t&&t.topP||new i.NumericRangeModel({value:1,minValue:0,maxValue:1,step:.1}),this._seed=t&&t.seed,this._instructions=t&&t.instructions,this._assistantExtractionMethods=t&&t.assistantExtractionMethods||this.getDefaultExtractionMethods(),this._additionalExtractionMethods=t&&t.additionalExtractionMethods||this.getDefaultAdditionalExtractionMethod()}getDefaultExtractionMethods(){const t=[];return t.push(new o({method:r.ExtractionMethod.SPARQL,ontologyGraph:"http://example.com/swgraph",sparqlQuery:new i.TextFieldModel({value:"select ?s ?p ?o where {?s ?p ?o .}",minLength:1,maxLength:2380}),selected:!1})),t.push(new o({method:r.ExtractionMethod.FTS_SEARCH,maxNumberOfTriplesPerCall:null,selected:!1})),t.push(new o({method:r.ExtractionMethod.SIMILARITY,similarityIndex:null,similarityIndexThreshold:new i.NumericRangeModel({value:.6,minValue:0,maxValue:1,step:.1}),maxNumberOfTriplesPerCall:null,selected:!1})),t.push(new o({method:r.ExtractionMethod.RETRIEVAL,retrievalConnectorInstance:null,maxNumberOfTriplesPerCall:null,queryTemplate:new i.TextFieldModel({value:'{"query": "string"}',minLength:1,maxLength:2380}),selected:!1})),new a(t)}getDefaultAdditionalExtractionMethod(){const t=[];return t.push(new d({method:r.AdditionalExtractionMethod.IRI_DISCOVERY_SEARCH})),new h(t)}toPayload(){return{id:this.id,name:this._name,repositoryId:this._repositoryId,model:this._model,temperature:this._temperature.value,topP:this._topP.value,seed:this._seed,assistantsInstructions:this._instructions.toPayload(),assistantExtractionMethods:this._assistantExtractionMethods.toPayload(),additionalExtractionMethods:this._additionalExtractionMethods.toPayload()}}hasExtractionMethodSelected(){return this._assistantExtractionMethods.extractionMethods.some(t=>t.selected)}get id(){return this._id}set id(t){this._id=t}get name(){return this._name}set name(t){this._name=t}get repositoryId(){return this._repositoryId}set repositoryId(t){this._repositoryId=t}get model(){return this._model}set model(t){this._model=t}get temperature(){return this._temperature}set temperature(t){this._temperature=t}get topP(){return this._topP}set topP(t){this._topP=t}get seed(){return this._seed}set seed(t){this._seed=t}get instructions(){return this._instructions}set instructions(t){this._instructions=t}get assistantExtractionMethods(){return this._assistantExtractionMethods}set assistantExtractionMethods(t){this._assistantExtractionMethods=t}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class a{constructor(t){this._extractionMethods=t}toPayload(){return this._extractionMethods.filter(t=>t.selected).map(t=>t.toPayload())}findExtractionMethodIndex(t){return this._extractionMethods.findIndex(e=>e.method===t)}setExtractionMethod(t){const e=this.findExtractionMethodIndex(t.method);-1!==e&&(this._extractionMethods[e]=t)}get extractionMethods(){return this._extractionMethods}set extractionMethods(t){this._extractionMethods=t}getExtractionMethod(t){return this._extractionMethods.find(e=>e.method===t)}getSimilarityExtractionMethod(){return this.getExtractionMethod(r.ExtractionMethod.SIMILARITY)}getRetrievalExtractionMethod(){return this.getExtractionMethod(r.ExtractionMethod.RETRIEVAL)}getFTSSearchExtractionMethod(){return this.getExtractionMethod(r.ExtractionMethod.FTS_SEARCH)}}class o{constructor(t){this._selected=t.selected||!1,this._method=t.method,this._sparqlOption=t.sparqlOption,this._addMissingNamespaces=t.addMissingNamespaces,this._ontologyGraph=t.ontologyGraph,this._sparqlQuery=t.sparqlQuery,this._maxNumberOfTriplesPerCall=t.maxNumberOfTriplesPerCall,this._similarityIndex=t.similarityIndex,this._similarityIndexThreshold=t.similarityIndexThreshold,this._queryTemplate=t.queryTemplate,this._retrievalConnectorInstance=t.retrievalConnectorInstance,this._expanded=void 0!==t.expanded&&t.expanded}toggleCollapse(){this._expanded=!this._expanded}toPayload(){const t={};return t.method=this._method?this._method:null,"ontologyGraph"===this._sparqlOption?t.ontologyGraph=this._ontologyGraph?this._ontologyGraph:null:"sparqlQuery"===this._sparqlOption&&(t.sparqlQuery=this._sparqlQuery?this._sparqlQuery.value:null),this._method===r.ExtractionMethod.SPARQL&&void 0!==this._addMissingNamespaces&&(t.addMissingNamespaces=this._addMissingNamespaces),this._maxNumberOfTriplesPerCall&&(t.maxNumberOfTriplesPerCall=this._maxNumberOfTriplesPerCall),this._similarityIndex&&(t.similarityIndex=this._similarityIndex),this._similarityIndexThreshold&&this._similarityIndexThreshold.value&&(t.similarityIndexThreshold=parseFloat(this._similarityIndexThreshold.value)),this._queryTemplate&&this._queryTemplate.value&&(t.queryTemplate=this._queryTemplate.value),this._retrievalConnectorInstance&&(t.retrievalConnectorInstance=this._retrievalConnectorInstance),t}get selected(){return this._selected}set selected(t){this._selected=t}get method(){return this._method}set method(t){this._method=t}get sparqlOption(){return this._sparqlOption}set sparqlOption(t){this._sparqlOption=t}get sparqlQuery(){return this._sparqlQuery}set sparqlQuery(t){this._sparqlQuery=t}get addMissingNamespaces(){return this._addMissingNamespaces}set addMissingNamespaces(t){this._addMissingNamespaces=t}get ontologyGraph(){return this._ontologyGraph}set ontologyGraph(t){this._ontologyGraph=t}get maxNumberOfTriplesPerCall(){return this._maxNumberOfTriplesPerCall}set maxNumberOfTriplesPerCall(t){this._maxNumberOfTriplesPerCall=t}get similarityIndex(){return this._similarityIndex}set similarityIndex(t){this._similarityIndex=t}get similarityIndexThreshold(){return this._similarityIndexThreshold}set similarityIndexThreshold(t){this._similarityIndexThreshold=t}get queryTemplate(){return this._queryTemplate}set queryTemplate(t){this._queryTemplate=t}get retrievalConnectorInstance(){return this._retrievalConnectorInstance}set retrievalConnectorInstance(t){this._retrievalConnectorInstance=t}get expanded(){return this._expanded}set expanded(t){this._expanded=t}}class h{constructor(t){this._additionalExtractionMethods=t}toPayload(){return this._additionalExtractionMethods.filter(t=>t.selected).map(t=>t.toPayload())}get additionalExtractionMethods(){return this._additionalExtractionMethods}set additionalExtractionMethods(t){this._additionalExtractionMethods=t}}class d{constructor(t){this._selected=t.selected||!1,this._method=t.method}toPayload(){return{method:this._method}}get selected(){return this._selected}set selected(t){this._selected=t}get method(){return this._method}set method(t){this._method=t}}class l{constructor(t){this._systemInstruction=t.systemInstruction,this._systemInstructionCopy=t.defaultSystemInstruction,this._userInstruction=t.userInstruction,this._userInstructionCopy=t.defaultUserInstruction}toPayload(){return{systemInstruction:this._systemInstruction,userInstruction:this._userInstruction}}get systemInstruction(){return this._systemInstruction}set systemInstruction(t){this._systemInstruction=t}get systemInstructionCopy(){return this._systemInstructionCopy}set systemInstructionCopy(t){this._systemInstructionCopy=t}get userInstruction(){return this._userInstruction}set userInstruction(t){this._userInstruction=t}get userInstructionCopy(){return this._userInstructionCopy}set userInstructionCopy(t){this._userInstructionCopy=t}}},92:function(t,e,s){"use strict";s.r(e),s.d(e,"SelectMenuOptionsModel",(function(){return i})),s.d(e,"TextFieldModel",(function(){return r})),s.d(e,"NumericRangeModel",(function(){return n}));class i{constructor({label:t,value:e,selected:s=!1,data:i={}}){this._label=t,this._value=e,this._selected=s,this._data=i}get label(){return this._label}set label(t){this._label=t}get value(){return this._value}set value(t){this._value=t}get selected(){return this._selected}set selected(t){this._selected=t}get data(){return this._data}set data(t){this._data=t}}class r{constructor(t){this._value=t.value,this._minLength=t.minLength,this._maxLength=t.maxLength}get value(){return this._value}set value(t){this._value=t}get maxLength(){return this._maxLength}set maxLength(t){this._maxLength=t}get minLength(){return this._minLength}set minLength(t){this._minLength=t}}class n{constructor(t){this._value=t.value,this._minValue=t.minValue,this._maxValue=t.maxValue,this._step=t.step}get value(){return this._value}set value(t){this._value=t}get minValue(){return this._minValue}set minValue(t){this._minValue=t}get maxValue(){return this._maxValue}set maxValue(t){this._maxValue=t}get step(){return this._step}set step(t){this._step=t}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[30,65,78,97,198,257,258,294,302],{102:function(t,e,n){"use strict";n.r(e),n.d(e,"ConnectorTypesListModel",(function(){return s})),n.d(e,"ConnectorTypeModel",(function(){return r})),n.d(e,"ConnectorListModel",(function(){return i})),n.d(e,"ConnectorModel",(function(){return o})),n.d(e,"ConnectorSettingsModel",(function(){return a}));class s{constructor(t={}){this._connectors=t.connectors||[]}getConnectorByName(t){return this._connectors.find(e=>e.name===t)}get connectors(){return this._connectors}set connectors(t){this._connectors=t}}class r{constructor(t){this._name=t.name,this._prefix=t.prefix}get name(){return this._name}set name(t){this._name=t}get prefix(){return this._prefix}set prefix(t){this._prefix=t}}class i{constructor(t=[]){this._connectors=t.connectors}get connectors(){return this._connectors}set connectors(t){this._connectors=t}}class o{constructor(t){this._name=t.name,this._settings=new a(t)}get settings(){return this._settings}set settings(t){this._settings=t}get name(){return this._name}set name(t){this._name=t}}class a{constructor(t){this._settings=t.values||{}}get settings(){return this._settings}set settings(t){this._settings=t}}},103:function(t,e){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",n),n.$inject=["$http","$repositories"];function n(t){return{getIndexes:function(e,n){if(e)return t.get("rest/similarity",{headers:{"X-GraphDB-Repository":e,"X-GraphDB-Repository-Location":n}});return t.get("rest/similarity")},getSearchQueries:function(){return t.get("rest/similarity/config")},rebuildIndex:function(t){return e("PUT",t.name,t.options,t.selectQuery,t.searchQuery,t.analogicalQuery,t.stopList,t.infer,t.sameAs,t.type)},deleteIndex:function(e){return t.delete("rest/similarity?name="+e.name)},createIndex:e,getSamples:function(){return t.get("rest/similarity/samples")},getQuery:function(e){return t.get("rest/similarity/query",{params:{name:e.indexName,options:e.indexOptions,stopList:e.indexStopList,selectQuery:e.query,infer:e.queryInference,sameAs:e.querySameAs,type:e.viewType,analyzer:e.indexAnalyzer}})},saveSearchQuery:function(e){return t({method:"put",url:"rest/similarity/search-query",data:e})}};function e(e,n,s,r,i,o,a,c,u,l,p){return t({method:e,url:"rest/similarity",noCancelOnRouteChange:!0,data:{name:n,options:s,selectQuery:r,stopList:a,infer:c,sameAs:u,type:l,analyzer:p,searchQuery:i,analogicalQuery:o}})}}},104:function(t,e,n){"use strict";n.r(e);n(99);var s=n(109),r=n(92);function i(t){const e=(e,n)=>t.getConnectors(e,n).then(t=>Object(s.connectorTypesListMapper)(t.data)),n=(e,n,r)=>t.hasConnector(encodeURIComponent(e),n,r).then(t=>Object(s.connectorsMapper)(t.data));return{getConnectorTypes:e,getConnectorsByType:n,getConnectorPrefixByName:(t,n,s)=>e(n,s).then(e=>{const n=e.getConnectorByName(t);return n?n.prefix:null}),getConnectorsByTypeAsSelectMenuOptions:(t,e,s)=>n(t,e,s).then(t=>t.connectors.map(t=>new r.SelectMenuOptionsModel({value:t.name,label:t.name})))}}angular.module("graphdb.framework.core.services.connectors",["graphdb.framework.rest.connectors.service"]).factory("ConnectorsService",i),i.$inject=["ConnectorsRestService"]},105:function(t,e,n){"use strict";n.r(e);n(103);var s=n(98),r=n(92);function i(t){const e=(e,n)=>t.getIndexes(e,n).then(t=>Object(s.mapIndexesResponseToSimilarityIndex)(t.data));return{getIndexes:e,getIndexesAsMenuModel:(t,n)=>e(t,n).then(t=>t.map(t=>new r.SelectMenuOptionsModel({label:t.name,value:t.name})))}}angular.module("graphdb.framework.core.services.similarity",["graphdb.framework.rest.similarity.service"]).factory("SimilarityService",i),i.$inject=["SimilarityRestService"]},109:function(t,e,n){"use strict";n.r(e),n.d(e,"connectorTypesListMapper",(function(){return r})),n.d(e,"connectorsMapper",(function(){return i}));var s=n(102);const r=t=>{const e=new s.ConnectorTypesListModel;return t?(e.connectors=Object.keys(t).map(e=>new s.ConnectorTypeModel({name:e,prefix:t[e]})),e):e},i=t=>{const e=new s.ConnectorListModel;return t?(e.connectors=t.map(t=>new s.ConnectorModel(t)),e):e}},147:function(t,e,n){"use strict";n.r(e);n(105),n(104),n(
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[30,65,78,97,198,257,258,294,302],{102:function(t,e,n){"use strict";n.r(e),n.d(e,"ConnectorTypesListModel",(function(){return s})),n.d(e,"ConnectorTypeModel",(function(){return r})),n.d(e,"ConnectorListModel",(function(){return i})),n.d(e,"ConnectorModel",(function(){return o})),n.d(e,"ConnectorSettingsModel",(function(){return a}));class s{constructor(t={}){this._connectors=t.connectors||[]}getConnectorByName(t){return this._connectors.find(e=>e.name===t)}get connectors(){return this._connectors}set connectors(t){this._connectors=t}}class r{constructor(t){this._name=t.name,this._prefix=t.prefix}get name(){return this._name}set name(t){this._name=t}get prefix(){return this._prefix}set prefix(t){this._prefix=t}}class i{constructor(t=[]){this._connectors=t.connectors}get connectors(){return this._connectors}set connectors(t){this._connectors=t}}class o{constructor(t){this._name=t.name,this._settings=new a(t)}get settings(){return this._settings}set settings(t){this._settings=t}get name(){return this._name}set name(t){this._name=t}}class a{constructor(t){this._settings=t.values||{}}get settings(){return this._settings}set settings(t){this._settings=t}}},103:function(t,e){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",n),n.$inject=["$http","$repositories"];function n(t){return{getIndexes:function(e,n){if(e)return t.get("rest/similarity",{headers:{"X-GraphDB-Repository":e,"X-GraphDB-Repository-Location":n}});return t.get("rest/similarity")},getSearchQueries:function(){return t.get("rest/similarity/config")},rebuildIndex:function(t){return e("PUT",t.name,t.options,t.selectQuery,t.searchQuery,t.analogicalQuery,t.stopList,t.infer,t.sameAs,t.type)},deleteIndex:function(e){return t.delete("rest/similarity?name="+e.name)},createIndex:e,getSamples:function(){return t.get("rest/similarity/samples")},getQuery:function(e){return t.get("rest/similarity/query",{params:{name:e.indexName,options:e.indexOptions,stopList:e.indexStopList,selectQuery:e.query,infer:e.queryInference,sameAs:e.querySameAs,type:e.viewType,analyzer:e.indexAnalyzer}})},saveSearchQuery:function(e){return t({method:"put",url:"rest/similarity/search-query",data:e})}};function e(e,n,s,r,i,o,a,c,u,l,p){return t({method:e,url:"rest/similarity",noCancelOnRouteChange:!0,data:{name:n,options:s,selectQuery:r,stopList:a,infer:c,sameAs:u,type:l,analyzer:p,searchQuery:i,analogicalQuery:o}})}}},104:function(t,e,n){"use strict";n.r(e);n(99);var s=n(109),r=n(92);function i(t){const e=(e,n)=>t.getConnectors(e,n).then(t=>Object(s.connectorTypesListMapper)(t.data)),n=(e,n,r)=>t.hasConnector(encodeURIComponent(e),n,r).then(t=>Object(s.connectorsMapper)(t.data));return{getConnectorTypes:e,getConnectorsByType:n,getConnectorPrefixByName:(t,n,s)=>e(n,s).then(e=>{const n=e.getConnectorByName(t);return n?n.prefix:null}),getConnectorsByTypeAsSelectMenuOptions:(t,e,s)=>n(t,e,s).then(t=>t.connectors.map(t=>new r.SelectMenuOptionsModel({value:t.name,label:t.name})))}}angular.module("graphdb.framework.core.services.connectors",["graphdb.framework.rest.connectors.service"]).factory("ConnectorsService",i),i.$inject=["ConnectorsRestService"]},105:function(t,e,n){"use strict";n.r(e);n(103);var s=n(98),r=n(92);function i(t){const e=(e,n)=>t.getIndexes(e,n).then(t=>Object(s.mapIndexesResponseToSimilarityIndex)(t.data));return{getIndexes:e,getIndexesAsMenuModel:(t,n)=>e(t,n).then(t=>t.map(t=>new r.SelectMenuOptionsModel({label:t.name,value:t.name})))}}angular.module("graphdb.framework.core.services.similarity",["graphdb.framework.rest.similarity.service"]).factory("SimilarityService",i),i.$inject=["SimilarityRestService"]},109:function(t,e,n){"use strict";n.r(e),n.d(e,"connectorTypesListMapper",(function(){return r})),n.d(e,"connectorsMapper",(function(){return i}));var s=n(102);const r=t=>{const e=new s.ConnectorTypesListModel;return t?(e.connectors=Object.keys(t).map(e=>new s.ConnectorTypeModel({name:e,prefix:t[e]})),e):e},i=t=>{const e=new s.ConnectorListModel;return t?(e.connectors=t.map(t=>new s.ConnectorModel(t)),e):e}},147:function(t,e,n){"use strict";n.r(e);n(105),n(104),n(114),n(21);function s(t,e,n,s,r){t.agentInstructionsExplain=r.agentInstructionsExplain,t.close=()=>{e.dismiss({})},t.onCloseAgentInstructionsExplainModal=()=>{e.dismiss({})};const i=[];t.$on("$destroy",()=>{i.forEach(t=>t())})}angular.module("graphdb.framework.ttyg.controllers.agent-instructions-explain-modal",[]).controller("AgentInstructionsExplainModalController",s),s.$inject=["$scope","$uibModalInstance","ModalService","$translate","dialogModel"]},91:function(t,e,n){"use strict";n.r(e),n.d(e,"SimilarityIndexType",(function(){return s}));const s={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:t=>s.TEXT===t,isTextLiteralType:t=>s.TEXT_LITERAL===t,isPredicationType:t=>s.PREDICATION===t}},93:function(t,e,n){"use strict";n.r(e),n.d(e,"SimilarityIndexStatus",(function(){return s}));const s={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:t=>s.CREATING===t,isBuildingStatus:t=>s.BUILDING===t,isBuiltStatus:t=>s.BUILT===t,isRebuildingStatus:t=>s.REBUILDING===t,isOutdatedStatus:t=>s.OUTDATED===t,isInterruptedStatus:t=>s.INTERRUPTED===t,isObsoleteStatus:t=>s.OBSOLETE===t,isFailedStatus:t=>s.FAILED===t}},94:function(t,e,n){"use strict";n.r(e),n.d(e,"SimilarityIndex",(function(){return i}));var s=n(91),r=n(93);class i{constructor(){this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=s.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""}isTextType(){return s.SimilarityIndexType.isTextType(this.type)}isTextLiteralType(){return s.SimilarityIndexType.isTextLiteralType(this.type)}isPredicationType(){return s.SimilarityIndexType.isPredicationType(this.type)}isCreatingStatus(){return r.SimilarityIndexStatus.isCreatingStatus(this.status)}isBuildingStatus(){return r.SimilarityIndexStatus.isBuildingStatus(this.status)}isBuiltStatus(){return r.SimilarityIndexStatus.isBuiltStatus(this.status)}isRebuildingStatus(){return r.SimilarityIndexStatus.isRebuildingStatus(this.status)}isOutdatedStatus(){return r.SimilarityIndexStatus.isOutdatedStatus(this.status)}isInterruptedStatus(){return r.SimilarityIndexStatus.isInterruptedStatus(this.status)}isObsoleteStatus(){return r.SimilarityIndexStatus.isObsoleteStatus(this.status)}isFailedStatus(){return r.SimilarityIndexStatus.isFailedStatus(this.status)}}},98:function(t,e,n){"use strict";n.r(e),n.d(e,"mapIndexesResponseToSimilarityIndex",(function(){return r}));var s=n(94);const r=t=>t.map(t=>{const e=new s.SimilarityIndex;return e.type=t.type,e.stopList=t.stopList,e.status=t.status,e.selectQuery=t.selectQuery,e.searchQuery=t.searchQuery,e.sameAs=t.sameAs,e.options=t.options,e.name=t.name,e.infer=t.infer,e.analyzer=t.analyzer,e.analogicalQuery=t.analogicalQuery,e})},99:function(t,e){angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",n),n.$inject=["$http"];function n(t){return{getConnectors:function(e,n){if(e)return t.get("rest/connectors",{headers:{"X-GraphDB-Repository":e,"X-GraphDB-Repository-Location":n}});return t.get("rest/connectors")},initConnector:function(e){return t.get("rest/connectors/options?prefix="+e)},hasConnector:function(e,n,s){if(n)return t.get("rest/connectors/existing?prefix="+e,{headers:{"X-GraphDB-Repository":n,"X-GraphDB-Repository-Location":s}});return t.get("rest/connectors/existing?prefix="+e)},checkConnector:function(e){return t.post("rest/connectors/check",e,{headers:{"Content-Type":"text/plain"}})}}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[306],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[306],{125:function(n,E,R){"use strict";R.r(E),R.d(E,"SYSTEM_REPO",(function(){return t})),R.d(E,"READ_REPO",(function(){return u})),R.d(E,"READ_REPO_PREFIX",(function(){return _})),R.d(E,"WRITE_REPO",(function(){return r})),R.d(E,"WRITE_REPO_PREFIX",(function(){return o}));const t="SYSTEM",u="READ_REPO",_="READ_REPO_",r="WRITE_REPO",o="WRITE_REPO_"}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[31,102,197,222,226,234,235,265,266,268,327,328],{100:function(e,t,n){"use strict";n.r(t),n.d(t,"removeSpecialChars",(function(){return o})),n.d(t,"toBoolean",(function(){return a})),n.d(t,"toTitleCase",(function(){return s}));var r=n(18);const o=e=>e.replace(/[()']/g,""),a=e=>"string"==typeof e?"true"===e:Boolean(e),s=e=>e?Object(r.upperFirst)(e.toLowerCase()):e},118:function(e,t,n){"use strict";n.r(t),n.d(t,"EventDataType",(function(){return r}));const r={DOWNLOAD_AS:"downloadAs",NOTIFICATION_MESSAGE:"notificationMessage",QUERY:"query",COUNT_QUERY:"countQuery",COUNT_QUERY_RESPONSE:"countQueryResponse",REQUEST_ABORTED:"requestAborted",QUERY_EXECUTED:"queryExecuted",SAVE_QUERY_OPENED:"saveQueryOpened"}},128:function(e,t,n){"use strict";n.r(t),n.d(t,"RouteConstants",(function(){return r}));const r={savedQueryName:"savedQueryName",savedQueryOwner:"owner",query:"query",name:"name",owner:"owner"}},129:function(e,t,n){"use strict";n.r(t),n.d(t,"QueryType",(function(){return r}));const r={SELECT:"SELECT",CONSTRUCT:"CONSTRUCT",ASK:"ASK",DESCRIBE:"DESCRIBE",INSERT:"INSERT",DELETE:"DELETE",LOAD:"LOAD",CLEAR:"CLEAR",CREATE:"CREATE",DROP:"DROP",COPY:"COPY",MOVE:"MOVE",ADD:"ADD"}},130:function(e,t,n){"use strict";n.r(t),n.d(t,"VIEW_SPARQL_EDITOR",(function(){return r}));const r="graphdb-workbench-sparql-editor"},141:function(e,t,n){"use strict";n.r(t),n.d(t,"TabQueryModel",(function(){return r}));class r{constructor(e,t,n,r=!0){this.queryName=e,this.query=t,this.owner=n,this.isPublic=r}}},149:function(e,t,n){"use strict";n.r(t),n.d(t,"buildQueryModel",(function(){return o})),n.d(t,"savedQueriesResponseMapper",(function(){return a})),n.d(t,"savedQueryResponseMapper",(function(){return s})),n.d(t,"queryPayloadFromEvent",(function(){return i}));var r=n(141);const o=(e,t,n,o)=>new r.TabQueryModel(t,e,n,o),a=e=>e&&e.data?e.data.map?e.data.map(e=>o(e.body,e.name,e.owner,e.shared)):[o(e.data.body,e.data.name,e.data.owner,e.data.shared)]:[],s=e=>{const t=a(e);return t.length?t[0]:null},i=e=>({name:e.detail.queryName,body:e.detail.query,shared:e.detail.isPublic})},184:function(e,t,n){"use strict";n.r(t),n.d(t,"ConnectorCommand",(function(){return r}));const r={CREATE:"create",REPAIR:"repair",DROP:"drop"}},191:function(e,t,n){"use strict";n.r(t),n.d(t,"BeforeUpdateQueryResult",(function(){return r})),n.d(t,"BeforeUpdateQueryResultStatus",(function(){return o}));class r{constructor(e,t,n,r){this.status=e,this.mesage=r,this.messageLabelKey=t,this.parameters=n}}const o={ERROR:"error",SUCCESS:"success"}},194:function(e,t,n){"use strict";n.r(t),n.d(t,"CancelAbortingQuery",(function(){return r}));class r extends Error{}},310:function(e,t,n){"use strict";n.r(t);var r=n(149),o=n(128),a=(n(99),n(208),n(19)),s=n(129),i=n(184),u=n(191),c=n(118),d=n(0),l=n(100),p=n(130),g=n(194),y=n(16);n(22);function m(e,t,n,m,E,f,C,R,S,h,v,A,b,q,Q,w,T,O){this.repository="";let U=C.getActiveRepository(),D=C.isActiveRepoOntopType();t.yasguiConfig=void 0,t.savedQueryConfig=void 0,t.prefixes={},t.inferUserSetting=!0,t.sameAsUserSetting=!0;const P=new Map;let _=!1;t.updateConfig=e=>{t.yasguiConfig={endpoint:L,componentId:p.VIEW_SPARQL_EDITOR,prefixes:t.prefixes,infer:D||t.inferUserSetting,sameAs:D||t.sameAsUserSetting,yasrToolbarPlugins:[F],beforeUpdateQuery:W(),outputHandlers:new Map([[c.EventDataType.QUERY_EXECUTED,N],[c.EventDataType.REQUEST_ABORTED,M]]),clearState:void 0!==e&&e}},t.getActiveRepositoryNoError=()=>U;const L=e=>{const t=(e=>{const t=e.getTab();if(t)return t.getYasqe()})(e);if(t)return C.resolveSparqlEndpoint(t.getQueryMode())},N=e=>{const t=P.get(e.tabId);t&&(t.dismiss(),P.delete(e.tabId))},M=e=>{if(e&&y.QueryMode.UPDATE!==e.queryMode){const t=e.getRepository(),n=e.getQueryTrackAlias();t&&n&&Q.deleteQuery(n,t)}},x=e=>{const t=e[o.RouteConstants.savedQueryName],n=e[o.RouteConstants.savedQueryOwner];v.getSavedQuery(t,n).then(e=>{const t=Object(r.savedQueryResponseMapper)(e);I(t).then($).finally(Y)}).catch(e=>{S.error(h.instant("query.editor.missing.saved.query.data.error",{savedQueryName:t,error:getError(e)}))})},B=e=>{const t=e[o.RouteConstants.name],n=e[o.RouteConstants.query],a=e[o.RouteConstants.owner],s=Object(r.buildQueryModel)(n,t,a,!0);I(s).then($).finally(Y)},I=e=>a.YasguiComponentDirectiveUtil.getOntotextYasguiElementAsync("#query-editor").then(t=>t.openTab(e)).then(e=>a.YasguiComponentDirectiveUtil.highlightTabName(e)),Y=()=>{_=!0,m.search({}),m.replace()},$=()=>Object(l.toBoolean)(m.search().execute)?a.YasguiComponentDirectiveUtil.getOntotextYasguiElementAsync("#query-editor").then(k).then(j):Promise.resolve(),k=e=>e.getQueryMode().then(t=>({yasguiComponent:e,queryMode:t})),j=({yasguiComponent:e,queryMode:t})=>"update"!==t?e.query():new Promise(t=>{const n=h.instant("confirm.execute"),r=Object(d.decodeHTML)(h.instant("query.editor.automatically.execute.update.warning"));q.openConfirmation(n,r,()=>t(e.query()),()=>t())}),F={createElement:e=>{const t=document.createElement("span");t.classList.add("explore-visual-graph-button-name");const n=document.createElement("button");return n.classList.add("explore-visual-graph-button"),n.classList.add("icon-data"),n.onclick=function(){const t={query:e.yasqe.getValue(),sameAs:e.yasqe.getSameAs(),inference:e.yasqe.getInfer()};m.path("graphs-visualizations").search(t)},n.appendChild(t),n},updateElement:(e,t)=>{if(e.classList.add("hidden"),!t.hasResults())return;const n=t.yasqe.getQueryType();s.QueryType.CONSTRUCT!==n&&s.QueryType.DESCRIBE!==n||e.classList.remove("hidden"),e.querySelector(".explore-visual-graph-button-name").innerText=h.instant("query.editor.visual.btn")},getOrder:()=>2},V=(e,t)=>({key:e,value:t}),H=e=>[V("name",e.data.name)],K=(e,n,r)=>{const o=t.$new(!0);o.beingBuiltConnector={percentDone:0,status:{processedEntities:0,estimatedEntities:0,indexedEntities:0,entitiesPerSecond:0},actionName:e,eta:"-",inline:!1,iri:n,name:r,doneCallback:function(){a.dismiss("cancel")}},o.getHumanReadableSeconds=t.getHumanReadableSeconds;const a=R.open({templateUrl:"pages/connectorProgress.html",controller:"CreateProgressCtrl",size:"lg",backdrop:"static",scope:o});return a},W=()=>(e,t)=>A.checkConnector(e).then(e=>e.data.command?e.data.hasSupport?i.ConnectorCommand.CREATE===e.data.command?((e,t)=>{const n=K(h.instant("externalsync.creating"),e.data.iri,e.data.name);return P.set(t,n),new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.SUCCESS,"created.connector",H(e))})(e,t):i.ConnectorCommand.REPAIR===e.data.command?((e,t)=>{const n=K(h.instant("externalsync.repairing"),e.data.iri,e.data.name);return P.set(t,n),new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.SUCCESS,"query.editor.repaired.connector",H(e))})(e,t):i.ConnectorCommand.DROP===e.data.command?(e=>new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.SUCCESS,"externalsync.delete.success.msg",H(e)))(e):void 0:(e=>{const t=[V("connectorName",e.data.connectorName),V("pluginName",e.data.pluginName)];return new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.ERROR,"query.editor.inactive.plugin.warning.msg",t)})(e):new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.SUCCESS)).catch(e=>{console.log("Checking connector error: ",e)}),z=e=>{const n=document.querySelectorAll('script[src*="https://www.gstatic.com/"]');if(n.length>0){const e=E.getLanguage();let t="module.js";if("en"!==e&&(t=`module__${e}.js`),!Array.prototype.some.call(n,e=>e.src.includes(t)))return void location.reload()}Promise.all([f.getPrincipal(),C.getPrefixes(U)]).then(([n,r])=>{t.prefixes=r,(e=>{t.inferUserSetting=e.appSettings.DEFAULT_INFERENCE,t.sameAsUserSetting=e.appSettings.DEFAULT_SAMEAS})(n),((e=!1)=>{t.updateConfig(e);const n=m.search();n.hasOwnProperty(o.RouteConstants.savedQueryName)?x(n):n.hasOwnProperty(o.RouteConstants.query)?B(n):b.isActive()&&I()})(e)})},G=[],J=e=>{const t=a.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor");t&&t.abortAllRequests().then(()=>{})};window.addEventListener("beforeunload",J);const X=e=>new Promise((t,n)=>{if(!e||e.queriesCount<1&&e.updatesCount<1)return void t();const r=h.instant("common.confirm"),o=Object(d.decodeHTML)((e=>{let t="view.sparql-editor.leave_page.run_queries.confirmation.";!e||e.queriesCount<1?t+="none_queries_":1===e.queriesCount?t+="one_query_":t+="queries_",e.updatesCount&&0!==e.updatesCount?1===e.updatesCount?t+="one_update":t+="updates":t+="non_updates",t+=".message";const n={queriesCount:e.queriesCount,updatesCount:e.updatesCount};return h.instant(t,n)})(e));q.openSimpleModal({title:r,message:o,warning:!0}).result.then((function(){t()}),(function(){n(new g.CancelAbortingQuery)}))});let Z=void 0;G.push(e.$on("$locationChangeStart",e=>{if(_)return void(_=!1);const t=a.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor");if(!t||Z)return;e.preventDefault();const n=m.path(),r=m.search();t.getOngoingRequestsInfo().then(e=>X(e)).then(()=>t.abortAllRequests()).then(()=>{Z=!0,m.path(n).search(r)}).catch(e=>{if(!(e instanceof g.CancelAbortingQuery))throw e})}));const ee=()=>{T.set(O.SPARQL_LAST_REPO,U)};G.push(t.$on("language-changed",(function(){location.reload()}))),G.push(w.subscribe("before-language-change",(function(e){return new Promise(t=>{q.openSimpleModal({title:h.instant("query.editor.language.change.warning.title"),message:h.instant("query.editor.reload.page.warning"),warning:!0}).result.then((function(){t(e)}),(function(){e.cancel=!0,t(e)}))})}))),G.push(t.$on("$destroy",()=>{ee(),G.forEach(e=>e()),window.removeEventListener("beforeunload",J)})),G.push(t.$watch(t.getActiveRepositoryObject,e=>{e&&(U=C.getActiveRepository(),D=C.isActiveRepoOntopType(e),T.get(O.SPARQL_LAST_REPO)!==U?(z(!0),ee()):z(!1))}))}angular.module("graphdb.framework.sparql-editor.controllers",["ui.bootstrap","graphdb.framework.rest.connectors.service","graphdb.framework.externalsync.controllers","graphdb.framework.utils.event-emitter-service","graphdb.framework.utils.localstorageadapter"]).controller("SparqlEditorCtrl",m),m.$inject=["$rootScope","$scope","$q","$location","$languageService","$jwtAuth","$repositories","$uibModal","toastr","$translate","SparqlRestService","ConnectorsRestService","GuidesService","ModalService","MonitoringRestService","EventEmitterService","LocalStorageAdapter","LSKeys"]}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[31,102,197,222,226,234,235,265,266,268,327,328],{100:function(e,t,n){"use strict";n.r(t),n.d(t,"removeSpecialChars",(function(){return o})),n.d(t,"toBoolean",(function(){return a})),n.d(t,"toTitleCase",(function(){return s}));var r=n(18);const o=e=>e.replace(/[()']/g,""),a=e=>"string"==typeof e?"true"===e:Boolean(e),s=e=>e?Object(r.upperFirst)(e.toLowerCase()):e},119:function(e,t,n){"use strict";n.r(t),n.d(t,"EventDataType",(function(){return r}));const r={DOWNLOAD_AS:"downloadAs",NOTIFICATION_MESSAGE:"notificationMessage",QUERY:"query",COUNT_QUERY:"countQuery",COUNT_QUERY_RESPONSE:"countQueryResponse",REQUEST_ABORTED:"requestAborted",QUERY_EXECUTED:"queryExecuted",SAVE_QUERY_OPENED:"saveQueryOpened"}},128:function(e,t,n){"use strict";n.r(t),n.d(t,"RouteConstants",(function(){return r}));const r={savedQueryName:"savedQueryName",savedQueryOwner:"owner",query:"query",name:"name",owner:"owner"}},129:function(e,t,n){"use strict";n.r(t),n.d(t,"QueryType",(function(){return r}));const r={SELECT:"SELECT",CONSTRUCT:"CONSTRUCT",ASK:"ASK",DESCRIBE:"DESCRIBE",INSERT:"INSERT",DELETE:"DELETE",LOAD:"LOAD",CLEAR:"CLEAR",CREATE:"CREATE",DROP:"DROP",COPY:"COPY",MOVE:"MOVE",ADD:"ADD"}},130:function(e,t,n){"use strict";n.r(t),n.d(t,"VIEW_SPARQL_EDITOR",(function(){return r}));const r="graphdb-workbench-sparql-editor"},141:function(e,t,n){"use strict";n.r(t),n.d(t,"TabQueryModel",(function(){return r}));class r{constructor(e,t,n,r=!0){this.queryName=e,this.query=t,this.owner=n,this.isPublic=r}}},149:function(e,t,n){"use strict";n.r(t),n.d(t,"buildQueryModel",(function(){return o})),n.d(t,"savedQueriesResponseMapper",(function(){return a})),n.d(t,"savedQueryResponseMapper",(function(){return s})),n.d(t,"queryPayloadFromEvent",(function(){return i}));var r=n(141);const o=(e,t,n,o)=>new r.TabQueryModel(t,e,n,o),a=e=>e&&e.data?e.data.map?e.data.map(e=>o(e.body,e.name,e.owner,e.shared)):[o(e.data.body,e.data.name,e.data.owner,e.data.shared)]:[],s=e=>{const t=a(e);return t.length?t[0]:null},i=e=>({name:e.detail.queryName,body:e.detail.query,shared:e.detail.isPublic})},184:function(e,t,n){"use strict";n.r(t),n.d(t,"ConnectorCommand",(function(){return r}));const r={CREATE:"create",REPAIR:"repair",DROP:"drop"}},191:function(e,t,n){"use strict";n.r(t),n.d(t,"BeforeUpdateQueryResult",(function(){return r})),n.d(t,"BeforeUpdateQueryResultStatus",(function(){return o}));class r{constructor(e,t,n,r){this.status=e,this.mesage=r,this.messageLabelKey=t,this.parameters=n}}const o={ERROR:"error",SUCCESS:"success"}},194:function(e,t,n){"use strict";n.r(t),n.d(t,"CancelAbortingQuery",(function(){return r}));class r extends Error{}},310:function(e,t,n){"use strict";n.r(t);var r=n(149),o=n(128),a=(n(99),n(208),n(19)),s=n(129),i=n(184),u=n(191),c=n(119),d=n(0),l=n(100),p=n(130),g=n(194),y=n(16);n(22);function m(e,t,n,m,E,f,C,R,S,h,v,A,b,q,Q,w,T,O){this.repository="";let U=C.getActiveRepository(),D=C.isActiveRepoOntopType();t.yasguiConfig=void 0,t.savedQueryConfig=void 0,t.prefixes={},t.inferUserSetting=!0,t.sameAsUserSetting=!0;const P=new Map;let _=!1;t.updateConfig=e=>{t.yasguiConfig={endpoint:L,componentId:p.VIEW_SPARQL_EDITOR,prefixes:t.prefixes,infer:D||t.inferUserSetting,sameAs:D||t.sameAsUserSetting,yasrToolbarPlugins:[F],beforeUpdateQuery:W(),outputHandlers:new Map([[c.EventDataType.QUERY_EXECUTED,N],[c.EventDataType.REQUEST_ABORTED,M]]),clearState:void 0!==e&&e}},t.getActiveRepositoryNoError=()=>U;const L=e=>{const t=(e=>{const t=e.getTab();if(t)return t.getYasqe()})(e);if(t)return C.resolveSparqlEndpoint(t.getQueryMode())},N=e=>{const t=P.get(e.tabId);t&&(t.dismiss(),P.delete(e.tabId))},M=e=>{if(e&&y.QueryMode.UPDATE!==e.queryMode){const t=e.getRepository(),n=e.getQueryTrackAlias();t&&n&&Q.deleteQuery(n,t)}},x=e=>{const t=e[o.RouteConstants.savedQueryName],n=e[o.RouteConstants.savedQueryOwner];v.getSavedQuery(t,n).then(e=>{const t=Object(r.savedQueryResponseMapper)(e);I(t).then($).finally(Y)}).catch(e=>{S.error(h.instant("query.editor.missing.saved.query.data.error",{savedQueryName:t,error:getError(e)}))})},B=e=>{const t=e[o.RouteConstants.name],n=e[o.RouteConstants.query],a=e[o.RouteConstants.owner],s=Object(r.buildQueryModel)(n,t,a,!0);I(s).then($).finally(Y)},I=e=>a.YasguiComponentDirectiveUtil.getOntotextYasguiElementAsync("#query-editor").then(t=>t.openTab(e)).then(e=>a.YasguiComponentDirectiveUtil.highlightTabName(e)),Y=()=>{_=!0,m.search({}),m.replace()},$=()=>Object(l.toBoolean)(m.search().execute)?a.YasguiComponentDirectiveUtil.getOntotextYasguiElementAsync("#query-editor").then(k).then(j):Promise.resolve(),k=e=>e.getQueryMode().then(t=>({yasguiComponent:e,queryMode:t})),j=({yasguiComponent:e,queryMode:t})=>"update"!==t?e.query():new Promise(t=>{const n=h.instant("confirm.execute"),r=Object(d.decodeHTML)(h.instant("query.editor.automatically.execute.update.warning"));q.openConfirmation(n,r,()=>t(e.query()),()=>t())}),F={createElement:e=>{const t=document.createElement("span");t.classList.add("explore-visual-graph-button-name");const n=document.createElement("button");return n.classList.add("explore-visual-graph-button"),n.classList.add("icon-data"),n.onclick=function(){const t={query:e.yasqe.getValue(),sameAs:e.yasqe.getSameAs(),inference:e.yasqe.getInfer()};m.path("graphs-visualizations").search(t)},n.appendChild(t),n},updateElement:(e,t)=>{if(e.classList.add("hidden"),!t.hasResults())return;const n=t.yasqe.getQueryType();s.QueryType.CONSTRUCT!==n&&s.QueryType.DESCRIBE!==n||e.classList.remove("hidden"),e.querySelector(".explore-visual-graph-button-name").innerText=h.instant("query.editor.visual.btn")},getOrder:()=>2},V=(e,t)=>({key:e,value:t}),H=e=>[V("name",e.data.name)],K=(e,n,r)=>{const o=t.$new(!0);o.beingBuiltConnector={percentDone:0,status:{processedEntities:0,estimatedEntities:0,indexedEntities:0,entitiesPerSecond:0},actionName:e,eta:"-",inline:!1,iri:n,name:r,doneCallback:function(){a.dismiss("cancel")}},o.getHumanReadableSeconds=t.getHumanReadableSeconds;const a=R.open({templateUrl:"pages/connectorProgress.html",controller:"CreateProgressCtrl",size:"lg",backdrop:"static",scope:o});return a},W=()=>(e,t)=>A.checkConnector(e).then(e=>e.data.command?e.data.hasSupport?i.ConnectorCommand.CREATE===e.data.command?((e,t)=>{const n=K(h.instant("externalsync.creating"),e.data.iri,e.data.name);return P.set(t,n),new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.SUCCESS,"created.connector",H(e))})(e,t):i.ConnectorCommand.REPAIR===e.data.command?((e,t)=>{const n=K(h.instant("externalsync.repairing"),e.data.iri,e.data.name);return P.set(t,n),new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.SUCCESS,"query.editor.repaired.connector",H(e))})(e,t):i.ConnectorCommand.DROP===e.data.command?(e=>new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.SUCCESS,"externalsync.delete.success.msg",H(e)))(e):void 0:(e=>{const t=[V("connectorName",e.data.connectorName),V("pluginName",e.data.pluginName)];return new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.ERROR,"query.editor.inactive.plugin.warning.msg",t)})(e):new u.BeforeUpdateQueryResult(u.BeforeUpdateQueryResultStatus.SUCCESS)).catch(e=>{console.log("Checking connector error: ",e)}),z=e=>{const n=document.querySelectorAll('script[src*="https://www.gstatic.com/"]');if(n.length>0){const e=E.getLanguage();let t="module.js";if("en"!==e&&(t=`module__${e}.js`),!Array.prototype.some.call(n,e=>e.src.includes(t)))return void location.reload()}Promise.all([f.getPrincipal(),C.getPrefixes(U)]).then(([n,r])=>{t.prefixes=r,(e=>{t.inferUserSetting=e.appSettings.DEFAULT_INFERENCE,t.sameAsUserSetting=e.appSettings.DEFAULT_SAMEAS})(n),((e=!1)=>{t.updateConfig(e);const n=m.search();n.hasOwnProperty(o.RouteConstants.savedQueryName)?x(n):n.hasOwnProperty(o.RouteConstants.query)?B(n):b.isActive()&&I()})(e)})},G=[],J=e=>{const t=a.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor");t&&t.abortAllRequests().then(()=>{})};window.addEventListener("beforeunload",J);const X=e=>new Promise((t,n)=>{if(!e||e.queriesCount<1&&e.updatesCount<1)return void t();const r=h.instant("common.confirm"),o=Object(d.decodeHTML)((e=>{let t="view.sparql-editor.leave_page.run_queries.confirmation.";!e||e.queriesCount<1?t+="none_queries_":1===e.queriesCount?t+="one_query_":t+="queries_",e.updatesCount&&0!==e.updatesCount?1===e.updatesCount?t+="one_update":t+="updates":t+="non_updates",t+=".message";const n={queriesCount:e.queriesCount,updatesCount:e.updatesCount};return h.instant(t,n)})(e));q.openSimpleModal({title:r,message:o,warning:!0}).result.then((function(){t()}),(function(){n(new g.CancelAbortingQuery)}))});let Z=void 0;G.push(e.$on("$locationChangeStart",e=>{if(_)return void(_=!1);const t=a.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor");if(!t||Z)return;e.preventDefault();const n=m.path(),r=m.search();t.getOngoingRequestsInfo().then(e=>X(e)).then(()=>t.abortAllRequests()).then(()=>{Z=!0,m.path(n).search(r)}).catch(e=>{if(!(e instanceof g.CancelAbortingQuery))throw e})}));const ee=()=>{T.set(O.SPARQL_LAST_REPO,U)};G.push(t.$on("language-changed",(function(){location.reload()}))),G.push(w.subscribe("before-language-change",(function(e){return new Promise(t=>{q.openSimpleModal({title:h.instant("query.editor.language.change.warning.title"),message:h.instant("query.editor.reload.page.warning"),warning:!0}).result.then((function(){t(e)}),(function(){e.cancel=!0,t(e)}))})}))),G.push(t.$on("$destroy",()=>{ee(),G.forEach(e=>e()),window.removeEventListener("beforeunload",J)})),G.push(t.$watch(t.getActiveRepositoryObject,e=>{e&&(U=C.getActiveRepository(),D=C.isActiveRepoOntopType(e),T.get(O.SPARQL_LAST_REPO)!==U?(z(!0),ee()):z(!1))}))}angular.module("graphdb.framework.sparql-editor.controllers",["ui.bootstrap","graphdb.framework.rest.connectors.service","graphdb.framework.externalsync.controllers","graphdb.framework.utils.event-emitter-service","graphdb.framework.utils.localstorageadapter"]).controller("SparqlEditorCtrl",m),m.$inject=["$rootScope","$scope","$q","$location","$languageService","$jwtAuth","$repositories","$uibModal","toastr","$translate","SparqlRestService","ConnectorsRestService","GuidesService","ModalService","MonitoringRestService","EventEmitterService","LocalStorageAdapter","LSKeys"]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[318],{172:function(e,t,r){"use strict";r.r(t),r.d(t,"agentFormModelMapper",(function(){return d})),r.d(t,"agentListMapper",(function(){return m})),r.d(t,"agentModelMapper",(function(){return c}));var n=r(
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[318],{172:function(e,t,r){"use strict";r.r(t),r.d(t,"agentFormModelMapper",(function(){return d})),r.d(t,"agentListMapper",(function(){return m})),r.d(t,"agentModelMapper",(function(){return c}));var n=r(115),o=r(240),s=r(92),i=r(20),a=r(106);const d=(e,t,r)=>{if(!e)return;const n=new o.AgentFormModel;return n.id=e.id||t.id,n.name=e.name||t.name,n.repositoryId=e.repositoryId||t.repositoryId,n.model=e.model||t.model,n.temperature.value=void 0!==e.temperature?e.temperature:t.temperature,n.topP.value=void 0!==e.topP?e.topP:t.topP,n.seed=e.seed||t.seed,n.instructions=l(e.instructions,t.instructions),u(n,r,t.assistantExtractionMethods,e.assistantExtractionMethods),n.additionalExtractionMethods.additionalExtractionMethods.forEach(t=>{t.selected=e.additionalExtractionMethods&&e.additionalExtractionMethods.some(e=>e.method===t.method)}),n},l=(e,t)=>{if(!e&&!t)return;const r=e&&e.systemInstruction||t.systemInstruction,n=e&&e.userInstruction||t.userInstruction;return new o.AgentInstructionsFormModel({systemInstruction:r,userInstruction:n,defaultSystemInstruction:t.systemInstruction,defaultUserInstruction:t.userInstruction})},u=(e,t,r,n=[])=>{const i=r.filter(e=>!n.some(t=>t.method===e.method));[...n,...i].forEach(r=>{const i=n.some(e=>e.method===r.method);let d="";i&&"sparql_search"===r.method&&(a.AGENT_OPERATION.CREATE===t?d="":r.sparqlQuery?d="sparqlQuery":r.ontologyGraph&&(d="ontologyGraph"));const l=t===a.AGENT_OPERATION.EDIT||t===a.AGENT_OPERATION.CLONE,u=new o.ExtractionMethodFormModel({selected:l&&i,method:r.method,sparqlOption:d,ontologyGraph:r.ontologyGraph,addMissingNamespaces:r.addMissingNamespaces,sparqlQuery:r.sparqlQuery&&new s.TextFieldModel({value:r.sparqlQuery,minLength:1,maxLength:2380}),similarityIndex:r.similarityIndex,similarityIndexThreshold:r.similarityIndexThreshold&&new s.NumericRangeModel({value:r.similarityIndexThreshold,minValue:0,maxValue:1,step:.1}),maxNumberOfTriplesPerCall:0===r.maxNumberOfTriplesPerCall?null:r.maxNumberOfTriplesPerCall,queryTemplate:r.queryTemplate&&new s.TextFieldModel({value:r.queryTemplate,minLength:1,maxLength:2380}),retrievalConnectorInstance:r.retrievalConnectorInstance});e.assistantExtractionMethods.setExtractionMethod(u)})},m=(e,t)=>{if(!e)return new n.AgentListModel;const r=e.map(e=>c(e,t));return new n.AgentListModel(r)},c=(e,t)=>{if(!e)return;const r=Object(i.md5HashGenerator)();return new n.AgentModel({id:e.id,name:e.name,repositoryId:e.repositoryId,isRepositoryDeleted:!t.includes(e.repositoryId),model:e.model,temperature:e.temperature,topP:e.topP,seed:e.seed,instructions:M(e.instructions),assistantExtractionMethods:p(e.assistantExtractionMethods),additionalExtractionMethods:y(e.additionalExtractionMethods)},r)},p=e=>{if(e)return e.map(e=>h(e))},h=e=>{if(e)return new n.ExtractionMethodModel({method:e.method,ontologyGraph:e.ontologyGraph,addMissingNamespaces:e.addMissingNamespaces,sparqlQuery:e.sparqlQuery,similarityIndex:e.similarityIndex,similarityIndexThreshold:e.similarityIndexThreshold,maxNumberOfTriplesPerCall:e.maxNumberOfTriplesPerCall,queryTemplate:e.queryTemplate,retrievalConnectorInstance:e.retrievalConnectorInstance})},y=e=>{if(e)return e.map(e=>I(e))},I=e=>{if(e)return new n.AdditionalExtractionMethodModel({method:e.method})},M=e=>{if(e)return new n.AgentInstructionsModel({systemInstruction:e.systemInstruction,userInstruction:e.userInstruction})}}}]);
|