graphdb-workbench 2.5.0-TR4 → 2.5.0-TR6
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.c57054bc7e8d594733dd.bundle.js → 0.b6f8b750a217ba7ccc09.bundle.js} +3 -3
- package/dist/{1.59e751bbf4479cf0908d.bundle.js → 1.def08ec962ac2cae251e.bundle.js} +2 -2
- package/dist/{10.fbd9d48295e28df7ab63.bundle.js → 10.3cfac1f6e9e8eb24044a.bundle.js} +1 -1
- package/dist/100.30b22eaf2bc647082625.bundle.js +1 -0
- package/dist/{100.d0534500d6f7dc457a76.bundle.js → 101.4093fce7d4115fcf21dc.bundle.js} +1 -1
- package/dist/{101.e03c72973bd460d361d0.bundle.js → 102.a98125e7cbe44cf536e2.bundle.js} +1 -1
- package/dist/{102.125b61c0a47c7b583f57.bundle.js → 103.4d162f7df14c8d81157b.bundle.js} +1 -1
- package/dist/{103.3a07b9da87482ccb6fd7.bundle.js → 104.f0696d49ede65b342317.bundle.js} +1 -1
- package/dist/{104.ecd5db3e9c7c1e174793.bundle.js → 105.097830cf884ff7d82859.bundle.js} +1 -1
- package/dist/{105.7290bae95cead6dcc6d3.bundle.js → 106.2e488f1a9b4b22ad4026.bundle.js} +1 -1
- package/dist/{106.1961d1c7472ae2174e52.bundle.js → 107.0495c9673045f1f68bdf.bundle.js} +1 -1
- package/dist/{107.5eaeb139919b0c66f92b.bundle.js → 108.20ec9347815ab00c4f28.bundle.js} +1 -1
- package/dist/{108.7c18b7e0fbb15edc3844.bundle.js → 109.9699fc25bc788fe01bb3.bundle.js} +1 -1
- package/dist/{11.1c731619173b2112bc32.bundle.js → 11.0fc995ac096734b915c6.bundle.js} +1 -1
- package/dist/{109.33db567b07622911ee2e.bundle.js → 110.f101a1762899931179a6.bundle.js} +1 -1
- package/dist/{110.10d7bc8835ab3a48b0f4.bundle.js → 111.782fffba201a2ef304d0.bundle.js} +1 -1
- package/dist/{111.8f1c064cf6c8dbe19a5a.bundle.js → 112.529d6e279b6d0bbaff2e.bundle.js} +1 -1
- package/dist/{112.dd8673314a148581df1c.bundle.js → 113.94c8128e0dc2ff349d42.bundle.js} +1 -1
- package/dist/{113.ac40aca3614b12cf331f.bundle.js → 114.2fa7a38692c626887bfe.bundle.js} +1 -1
- package/dist/{114.45ce793e8e1bd4d908cb.bundle.js → 115.8f90e89fb972eacc5c33.bundle.js} +1 -1
- package/dist/{115.02d339d07e11721726a6.bundle.js → 116.dd7d9db80081251674c2.bundle.js} +1 -1
- package/dist/{116.0e7c9c0e4edb4945fb68.bundle.js → 117.4d04f878d3c445436ca8.bundle.js} +1 -1
- package/dist/{117.2115c9ed93ebc7526caa.bundle.js → 118.64e18c42fdf042126161.bundle.js} +1 -1
- package/dist/{118.a2c4a18ad03e3fba7e8b.bundle.js → 119.252679fc95f75d2322e2.bundle.js} +1 -1
- package/dist/{12.257a9bdc79c499596f2f.bundle.js → 12.fadfcb50bfa4c59e0237.bundle.js} +1 -1
- package/dist/{119.1463641c30804f755903.bundle.js → 120.cafb2283bec468aa2519.bundle.js} +1 -1
- package/dist/{120.c82adaf86b95c7406a59.bundle.js → 121.1a02aa06ad8e9d84e954.bundle.js} +1 -1
- package/dist/122.eb2e160340159c2c4985.bundle.js +1 -0
- package/dist/123.cbef889603b99ef4f91f.bundle.js +1 -0
- package/dist/{123.b6d9f25736ccea0b7b5d.bundle.js → 124.cfdd9ffeb70ce673b073.bundle.js} +1 -1
- package/dist/{124.19ebea5721ad758e7d45.bundle.js → 125.c51d4597f707f4372ab2.bundle.js} +1 -1
- package/dist/{125.93f5e9b8969091d30b32.bundle.js → 126.c630f0e31c7c78b9aa3e.bundle.js} +1 -1
- package/dist/{126.7b1090d2aa2d0d26f046.bundle.js → 127.863991bbf25a97e3314b.bundle.js} +1 -1
- package/dist/{127.868e53aa9c4d35c34a94.bundle.js → 128.d7c5c015003cb2b46a89.bundle.js} +1 -1
- package/dist/{128.6890f0dd8031dc40eae5.bundle.js → 129.7da368c0ddd3df0d59e7.bundle.js} +1 -1
- package/dist/{13.768c683f08e51681eb1f.bundle.js → 13.def661d2d5c02515c46c.bundle.js} +1 -1
- package/dist/{129.eabf9d2ac296cf6fa6d2.bundle.js → 130.6e96453e99a3061c00bc.bundle.js} +1 -1
- package/dist/{130.78c6473d36b32c317a09.bundle.js → 131.7909b5b4a65805f2ac85.bundle.js} +1 -1
- package/dist/{131.dc3ae2548421c8a19201.bundle.js → 132.a32ce3ed762cdeeefcb1.bundle.js} +1 -1
- package/dist/{132.d2b89f8f35ed5e67aeab.bundle.js → 133.7c843ac99edfbc5a3c8a.bundle.js} +1 -1
- package/dist/{133.5acd84fa43e4b3181f99.bundle.js → 134.284d6550bee70ebe9251.bundle.js} +1 -1
- package/dist/{134.ba4cce7d256fdaafc27c.bundle.js → 135.0d36b185dc9218339c4a.bundle.js} +1 -1
- package/dist/{135.0c4a208b05fddda83cd5.bundle.js → 136.3d6bea5d79a265841cb8.bundle.js} +1 -1
- package/dist/{136.47b67d03de6cdf2c260c.bundle.js → 137.279f42cf9d6782fc9599.bundle.js} +1 -1
- package/dist/138.7710c7a2d9301fa1ba0e.bundle.js +1 -0
- package/dist/{138.bad3daf1dce025290111.bundle.js → 139.706b6304e0a555f094fe.bundle.js} +1 -1
- package/dist/{14.f770ed62be8bde6526cf.bundle.js → 14.31d2e94567758be7f164.bundle.js} +4 -4
- package/dist/{139.7422e64bc4fcbc2a4fd7.bundle.js → 140.4f9cece7be0358701d6f.bundle.js} +1 -1
- package/dist/{140.d54b768857c11d5235f2.bundle.js → 141.20c6975c04b7a8b03bf2.bundle.js} +1 -1
- package/dist/{141.142e3961dd7012566a2f.bundle.js → 142.b4e33c353e4600a26cbc.bundle.js} +1 -1
- package/dist/143.f4779159a3520551a8c4.bundle.js +1 -0
- package/dist/{143.8fe8d964b3b812342272.bundle.js → 144.1bfdb76f7a3b00ee8c5f.bundle.js} +1 -1
- package/dist/{144.4dfb323174f0d7ae5b3f.bundle.js → 145.fcc303d9185be21b9b9c.bundle.js} +1 -1
- package/dist/{145.f3dbe0481fe4c3fcd146.bundle.js → 146.1cbe84062b34decf1bf3.bundle.js} +1 -1
- package/dist/{146.ec2825c5e2a46bbc44d8.bundle.js → 147.95390cc9a55229539b1f.bundle.js} +1 -1
- package/dist/{147.df08980f435c8630eda0.bundle.js → 148.be960c6fe1da736ee0b5.bundle.js} +1 -1
- package/dist/{148.cf95870075a893fe99dc.bundle.js → 149.37f9ad59acfc268a7a10.bundle.js} +1 -1
- package/dist/{15.cab89815a4338d38b08e.bundle.js → 15.971b0860a2a52dbfb083.bundle.js} +1 -1
- package/dist/{149.c60461306f958dff0470.bundle.js → 150.4a1996f8b5e73257629d.bundle.js} +1 -1
- package/dist/{150.f8e0ba9b7dbe78dbb27d.bundle.js → 151.4893fa9ae46505fd0984.bundle.js} +1 -1
- package/dist/{151.3b553459776c208490b3.bundle.js → 152.c38bf8cf6073904a8798.bundle.js} +1 -1
- package/dist/{152.21fdc751bacf81ca10e4.bundle.js → 153.6542f557e8593f077764.bundle.js} +1 -1
- package/dist/{153.35f73980680f51aad25f.bundle.js → 154.d048716c519356d913f8.bundle.js} +1 -1
- package/dist/{154.0340604f5c47aaa2e69a.bundle.js → 155.8546d392bf9b145a2c4f.bundle.js} +1 -1
- package/dist/{155.7c992c7f08ee37cf65ec.bundle.js → 156.ade46cc3994fa23e3d3d.bundle.js} +1 -1
- package/dist/{156.f0796a1f8055149193f9.bundle.js → 157.88767bdc74fd85479c74.bundle.js} +1 -1
- package/dist/{157.a4f3b6bf507faa1a9a2f.bundle.js → 158.a706d054b5030307f2db.bundle.js} +1 -1
- package/dist/{158.b5b5edb3b81252909e54.bundle.js → 159.69da9cc4e42dc701c51f.bundle.js} +1 -1
- package/dist/{16.176bc2ac98a7460d9a09.bundle.js → 16.9c43dc9fd9b55d8a62e1.bundle.js} +1 -1
- package/dist/{159.dbf10d208e45ab4d8425.bundle.js → 160.ff49dd32481710bef803.bundle.js} +1 -1
- package/dist/{160.49496d74662ac582695d.bundle.js → 161.acf9bbdba1fb013afd65.bundle.js} +1 -1
- package/dist/{161.21b03b58f86c553f61e0.bundle.js → 162.f926c1f8d1d138f3dab7.bundle.js} +1 -1
- package/dist/{162.c076a7ee0a2d0cefc586.bundle.js → 163.0c1c472f03dc3d618e9b.bundle.js} +1 -1
- package/dist/{166.fa15ffd1d8e46e5bac8c.bundle.js → 167.e462d62423037c0d40c0.bundle.js} +1 -1
- package/dist/{167.a33858d32405ba1612d4.bundle.js → 168.3beb1e035ff7cd68ad79.bundle.js} +1 -1
- package/dist/{168.664091c44624d7e97d3a.bundle.js → 169.c1e6980e494d0dd7fbed.bundle.js} +1 -1
- package/dist/{17.690abc9480c7749282d5.bundle.js → 17.c0a7f71ce8def9c4bbba.bundle.js} +1 -1
- package/dist/{169.76f0927ee18911708beb.bundle.js → 170.05a3c4fc28e95bc1edc7.bundle.js} +1 -1
- package/dist/{170.d2b900d002b1e6e29973.bundle.js → 171.a534f6bb8fa780cae3fc.bundle.js} +1 -1
- package/dist/172.5110a57500642785a16d.bundle.js +1 -0
- package/dist/{172.5a642228b439f2e3b655.bundle.js → 173.c51e8bb0068767048942.bundle.js} +1 -1
- package/dist/{173.bb0883b0faa315cea55d.bundle.js → 174.cc90175a31559383d754.bundle.js} +1 -1
- package/dist/{174.4da3d14199ad47c44101.bundle.js → 175.a11f1999fb4365d11d24.bundle.js} +1 -1
- package/dist/176.fef71fbe0d62c152fdb1.bundle.js +1 -0
- package/dist/{175.2250493d59bc7c5169f9.bundle.js → 177.0715a1810f8429c70554.bundle.js} +1 -1
- package/dist/{176.5147f2d684ff49b3194a.bundle.js → 178.90435d52f01c37292361.bundle.js} +1 -1
- package/dist/{177.4984367a695c9be8468e.bundle.js → 179.8e7d41653fa7f48dacd4.bundle.js} +1 -1
- package/dist/{18.01c4c193e4a6572f06e2.bundle.js → 18.83a5f41e7ad020e6a0db.bundle.js} +2 -2
- package/dist/{178.95dfde0b830c5db4d25f.bundle.js → 180.e2df1dba837ce2244cb8.bundle.js} +1 -1
- package/dist/{179.1ef767e61c703569f3d9.bundle.js → 181.5e99efac9b40fcc83853.bundle.js} +1 -1
- package/dist/{180.1e9accb88163dbbaf06b.bundle.js → 182.69036294c90d2a17f89f.bundle.js} +1 -1
- package/dist/183.efa62e319f31c417c0ca.bundle.js +1 -0
- package/dist/{182.dd04205a7bedd10d355d.bundle.js → 184.552c2b2b052055836ce4.bundle.js} +1 -1
- package/dist/{183.0f192a4d033c7689ec56.bundle.js → 185.3a6ad805beea5463bce4.bundle.js} +1 -1
- package/dist/{184.84d1c62fbf9ba7105550.bundle.js → 186.143e5ad84b2c09e46e2f.bundle.js} +1 -1
- package/dist/{185.9acce26455a878c9468a.bundle.js → 187.a0252349726fc1769062.bundle.js} +1 -1
- package/dist/{186.c1004f85c54251033e78.bundle.js → 188.027851ded787d03613e6.bundle.js} +1 -1
- package/dist/{187.dc23d2125143aff3ffee.bundle.js → 189.073d9c322abd0f32eeb2.bundle.js} +1 -1
- package/dist/{19.4f095652c4021b47892c.bundle.js → 19.363c9aa6e23edc2d4de3.bundle.js} +2 -2
- package/dist/{188.b8d2fe0c8116e5573694.bundle.js → 190.e7e71f5ff37cbf53818b.bundle.js} +1 -1
- package/dist/{189.ebc8828d9c7145ab1f27.bundle.js → 191.fa25315693e20379049a.bundle.js} +1 -1
- package/dist/{190.d5926668c0895cdbaf38.bundle.js → 192.413cff782db89de0b18e.bundle.js} +1 -1
- package/dist/{191.b6d557f83acc73302c36.bundle.js → 193.f91e9b04e7c557236b54.bundle.js} +1 -1
- package/dist/{192.e95028f97b33379e2a46.bundle.js → 194.5950cac00640ecf44c8a.bundle.js} +1 -1
- package/dist/{193.de78ea656614ac21c5b7.bundle.js → 195.e29cc44cb556ad8ae365.bundle.js} +1 -1
- package/dist/{194.289b58aa90d17df15b49.bundle.js → 196.ae170313a46e965c68f6.bundle.js} +1 -1
- package/dist/{195.a8f755a204de5dc9acc3.bundle.js → 197.2a95aa72f0947c45119e.bundle.js} +1 -1
- package/dist/{196.585074165c36146387c9.bundle.js → 198.3c7033f22651a01cac5f.bundle.js} +1 -1
- package/dist/{197.31a59389fad36fed44df.bundle.js → 199.06b3c496c200f8814c86.bundle.js} +1 -1
- package/dist/{2.e002a31939b541315765.bundle.js → 2.27244531b018542ba801.bundle.js} +1 -1
- package/dist/{20.2003b84515eaeec0eaf8.bundle.js → 20.633349dfb31fe077713c.bundle.js} +1 -1
- package/dist/{198.7329e27b83561a1912da.bundle.js → 200.7a2b528816b82fe893d3.bundle.js} +1 -1
- package/dist/{199.a15e8a95a6deaa3916fe.bundle.js → 201.084a4f3fd929961981e5.bundle.js} +1 -1
- package/dist/{200.1350338dff67fc9f71d7.bundle.js → 202.d0e7aecc14152039e4c4.bundle.js} +1 -1
- package/dist/{201.994b21570f62c0c7eecb.bundle.js → 203.f2febb8f757a973644fd.bundle.js} +1 -1
- package/dist/{202.5461b33d3ee202f28c55.bundle.js → 204.ae774828c8152331ad6d.bundle.js} +1 -1
- package/dist/{203.71c01d70c5acbaf619cb.bundle.js → 205.b0c57328d5e105079c35.bundle.js} +1 -1
- package/dist/{204.e4bc5e75f9716df0d34e.bundle.js → 206.7b699abfaf69be489e57.bundle.js} +1 -1
- package/dist/{205.ccfc7b52b5672da1f7d1.bundle.js → 207.bf8c99978e5cc5c08406.bundle.js} +1 -1
- package/dist/{206.9f3d8101a7ecd0e080ec.bundle.js → 208.5147a7c4dbfbd3eb0f69.bundle.js} +1 -1
- package/dist/{207.32d61eb8dad4ae26f58d.bundle.js → 209.7e960699e4f4298009d8.bundle.js} +1 -1
- package/dist/21.15b9b8262f1964747bac.bundle.js +1 -0
- package/dist/{208.d50204bc6713468547fa.bundle.js → 210.56bbb4587d28942d3f1c.bundle.js} +1 -1
- package/dist/{209.41fcfcc83dbbee3de7ea.bundle.js → 211.a13bdb482ae7393d0ee6.bundle.js} +1 -1
- package/dist/{210.f1812e8bbe6fc08ab1b3.bundle.js → 212.ed5d6787ec8aff33b1c8.bundle.js} +1 -1
- package/dist/{211.203f8b07b3f1edc8bf96.bundle.js → 213.2e9d9ea422421a1e8151.bundle.js} +1 -1
- package/dist/214.076164b0af950e717af1.bundle.js +1 -0
- package/dist/{213.ff07ed24756ab5708c43.bundle.js → 215.6cde17d50370c0442e85.bundle.js} +1 -1
- package/dist/{214.0076ea5d7ad0aa2c89af.bundle.js → 216.15c5469c56659f300b32.bundle.js} +1 -1
- package/dist/{215.07212802797cc4402fed.bundle.js → 217.43b77355f258b57a14f7.bundle.js} +1 -1
- package/dist/{216.f510bd68c0f2d31d972f.bundle.js → 218.aea02c8376dc86418fbc.bundle.js} +1 -1
- package/dist/{217.4df915a07cf4bc4693aa.bundle.js → 219.516183464924beb9a706.bundle.js} +1 -1
- package/dist/{22.74ee91cf3dec98aa1eb4.bundle.js → 22.aeefe163b545627f1d09.bundle.js} +1 -1
- package/dist/220.e275fe520fefab7af758.bundle.js +1 -0
- package/dist/221.dfb5409f0365f23033d6.bundle.js +1 -0
- package/dist/{23.bfaa2092b40397a2cbf7.bundle.js → 23.3c999215eced890b5ff2.bundle.js} +2 -2
- package/dist/24.71d0d8b04b31afaf525d.bundle.js +1 -0
- package/dist/{25.91625e5e157ebea8e34e.bundle.js → 25.29c1a52c46ae6e5bf6e1.bundle.js} +1 -1
- package/dist/{26.6af175611e9b9b0ff278.bundle.js → 26.0078e28534d9834ef61c.bundle.js} +2 -2
- package/dist/{27.ca17cd8084c5c7584ba0.bundle.js → 27.7041267ccea224c740bb.bundle.js} +1 -1
- package/dist/{28.9e882d252dbf28711a36.bundle.js → 28.4e990f76e2e5e755d17a.bundle.js} +1 -1
- package/dist/{29.977f93e18f1dcc74cce3.bundle.js → 29.724eaf5f0dfd2ac90279.bundle.js} +1 -1
- package/dist/{3.ca378ba5c12125a5e11b.bundle.js → 3.e05ab735701193af6482.bundle.js} +3 -3
- package/dist/{30.65fdd24201fae8bfcdca.bundle.js → 30.70aea4704eeccc7c7f4e.bundle.js} +1 -1
- package/dist/{31.bf0c1d03b3f0d247662f.bundle.js → 31.b0832eb06dff577a2884.bundle.js} +1 -1
- package/dist/{32.f7fd46d792aed74da858.bundle.js → 32.6725d94946764db833b8.bundle.js} +1 -1
- package/dist/{33.1d2366f2a5df24cceb29.bundle.js → 33.6ed382c85a678d5aef03.bundle.js} +1 -1
- package/dist/34.a72a260f74aaba3b900f.bundle.js +1 -0
- package/dist/{34.03e78d540639bd89ec2d.bundle.js → 35.c6277b1733bb56ebb77f.bundle.js} +1 -1
- package/dist/36.7ed08392620f744fa5fe.bundle.js +1 -0
- package/dist/{36.2fedcf6f214c8af4e3b9.bundle.js → 37.d9b0dd8e052ad9170f68.bundle.js} +1 -1
- package/dist/38.fc47c2dfe84f1191fc52.bundle.js +1 -0
- package/dist/{38.93eddb70d0dab30130f7.bundle.js → 39.5ca9fa51ec3c63459317.bundle.js} +1 -1
- package/dist/{4.7b83542d01f4f87ee0df.bundle.js → 4.b2b47509992147defe13.bundle.js} +1 -1
- package/dist/{39.3476887f4a826f8f36f2.bundle.js → 40.ed8046b6a9b0d3caf9be.bundle.js} +1 -1
- package/dist/{40.73d997055c64504eccba.bundle.js → 41.aba092368b9345fe062a.bundle.js} +1 -1
- package/dist/{41.9450c8b653159ab5fdc3.bundle.js → 42.3d78a3aa611c675962fb.bundle.js} +1 -1
- package/dist/{42.5ac2351d85ca7d70b95e.bundle.js → 43.b526b62055ad7de96121.bundle.js} +1 -1
- package/dist/{43.a75afc1f064fdf90d160.bundle.js → 44.46c9e2d54a9f07d78368.bundle.js} +1 -1
- package/dist/45.92354ad019764175a9ed.bundle.js +1 -0
- package/dist/46.1cd4e185759ae8243acf.bundle.js +1 -0
- package/dist/{46.fd0642fb5e8a8ec4d9fa.bundle.js → 47.19d84d51353da324399f.bundle.js} +1 -1
- package/dist/{47.ac8fa242c64111854133.bundle.js → 48.218e2aaabf74b9581a6c.bundle.js} +1 -1
- package/dist/{48.975cb47b345d741a7578.bundle.js → 49.c860016d29f0ce0ca57e.bundle.js} +1 -1
- package/dist/5.5145784e4654d2e23e1c.bundle.js +1 -0
- package/dist/{49.b668f2f3bbd4faa5f8cb.bundle.js → 50.5c0fcd0058f3a064e199.bundle.js} +1 -1
- package/dist/{50.5d198e05a090ea4a158c.bundle.js → 51.4f3e41ab41b59f359e84.bundle.js} +1 -1
- package/dist/{51.8d45b1e0529862aff313.bundle.js → 52.d4f5456a2472a9e53d04.bundle.js} +1 -1
- package/dist/{52.df12b7c3ae5d7ab6abd2.bundle.js → 53.cffe6e00dbc3ac17312f.bundle.js} +1 -1
- package/dist/{53.9fe683a1f7c546780ec8.bundle.js → 54.a7818f7324e13ec88c6b.bundle.js} +1 -1
- package/dist/{54.046597153ec4a81fadaf.bundle.js → 55.ed4b4f736fe52e33a015.bundle.js} +1 -1
- package/dist/{55.7bb773af0ea62c3219be.bundle.js → 56.97fbc0aa4335ce9cacbd.bundle.js} +1 -1
- package/dist/57.489b2ca7bcd40b2cdbd1.bundle.js +1 -0
- package/dist/{57.1dc65dd485b677c15e7e.bundle.js → 58.b0eb478bedabd86c9f51.bundle.js} +1 -1
- package/dist/{58.fd829f15dc0018bb4725.bundle.js → 59.9cd6b16351fc69b0eddd.bundle.js} +1 -1
- package/dist/{6.5936e6302f763151affb.bundle.js → 6.b71c0688cf5a66986261.bundle.js} +1 -1
- package/dist/60.8294eed673a656d9b671.bundle.js +1 -0
- package/dist/{60.ca4c60c585d585b63d53.bundle.js → 61.0bdd8867d31cfb74e765.bundle.js} +1 -1
- package/dist/{61.c794aa0884218ffd639a.bundle.js → 62.45480ced0d6b702e1ed1.bundle.js} +1 -1
- package/dist/63.c9b275237948c9fe6cd1.bundle.js +1 -0
- package/dist/64.d88caab2c40224d5b6d1.bundle.js +1 -0
- package/dist/{64.6ed697a9f7cfa3e197d4.bundle.js → 65.afcbd04d22d792029cec.bundle.js} +1 -1
- package/dist/{65.b4df2fe6603ae41001cc.bundle.js → 66.f9d7ffae5780e1ae0073.bundle.js} +1 -1
- package/dist/{66.1adbe02a7aa658379d66.bundle.js → 67.102bfa70361d4e29e572.bundle.js} +1 -1
- package/dist/{67.0c1fe73535fea0c689d3.bundle.js → 68.05bba948c414a1e21c8f.bundle.js} +1 -1
- package/dist/{68.916457c5cc1ef695aa56.bundle.js → 69.1255e8072e739c4b3486.bundle.js} +1 -1
- package/dist/{7.583107322ca4f36c1666.bundle.js → 7.e6d49cdeb97a19ef9ae9.bundle.js} +1 -1
- package/dist/{69.32496e615a38ebc207a1.bundle.js → 70.fe6fbd7331d2373c8a24.bundle.js} +1 -1
- package/dist/{70.8ba0fd88c9140a4e9106.bundle.js → 71.e9c3c5ccc70f443c97cf.bundle.js} +1 -1
- package/dist/{71.396e8a84279cee9ce65d.bundle.js → 72.6e8d51e0d240af360ab5.bundle.js} +1 -1
- package/dist/{72.b6c53b97bdd77be73b69.bundle.js → 73.57e88cee0af3f67aee77.bundle.js} +1 -1
- package/dist/{73.86a4321e699f5c8fe271.bundle.js → 74.042e0bb0fcc0661d32b0.bundle.js} +1 -1
- package/dist/{74.e37a4ac841ec64b00231.bundle.js → 75.c75a824264d0e67421ed.bundle.js} +1 -1
- package/dist/{75.2cf27579d1dd0e98b859.bundle.js → 76.2ad0f5373462bc70bebf.bundle.js} +1 -1
- package/dist/{76.8b91ea9da754a25e46e6.bundle.js → 77.303a075d21928354102c.bundle.js} +1 -1
- package/dist/{77.4eebb6cc7c06dbcc1856.bundle.js → 78.569dd71e4cc7ac3a4383.bundle.js} +1 -1
- package/dist/{78.708e22d09243f2fe2e83.bundle.js → 79.29d39a29721f936ae688.bundle.js} +1 -1
- package/dist/{8.7427232901eef8187457.bundle.js → 8.b9208e8a96195c97a70e.bundle.js} +2 -2
- package/dist/{79.e9ee1d874e4f0e1c648c.bundle.js → 80.8af0388db859fcc9fbf3.bundle.js} +1 -1
- package/dist/{80.93749ebfe16793c51501.bundle.js → 81.c378171b96d12cdf8bcc.bundle.js} +1 -1
- package/dist/{81.d116184aef66ee4678f9.bundle.js → 82.27bb51dfeb4898504e96.bundle.js} +1 -1
- package/dist/{82.bf16bfa56f9d00952b2c.bundle.js → 83.a59d34bc50cf323af43d.bundle.js} +1 -1
- package/dist/{83.56a60f8062e62a736137.bundle.js → 84.a4ee7bb5d3ed2e6ead5e.bundle.js} +1 -1
- package/dist/{84.0813d0df906e56a11651.bundle.js → 85.1f1b07562fbf97ab3e11.bundle.js} +1 -1
- package/dist/{85.765af5dd6c87f71fbfd5.bundle.js → 86.62f32aad4394438158a1.bundle.js} +1 -1
- package/dist/{86.c2c4aab8ce1cf382ad3b.bundle.js → 87.7efe382329921dae6a63.bundle.js} +1 -1
- package/dist/{87.23d98d183617f67964a6.bundle.js → 88.f442fbeb61fe955ce244.bundle.js} +1 -1
- package/dist/{88.27b06a16669d4c6ea16e.bundle.js → 89.560e5a053d8dcbaca38a.bundle.js} +1 -1
- package/dist/{9.efe67910f86973e340d3.bundle.js → 9.20ca8dfe69566d4b4000.bundle.js} +1 -1
- package/dist/{89.bb4408d598c2edfaebc6.bundle.js → 90.3fedce156ebc83022f47.bundle.js} +1 -1
- package/dist/{90.2db8eec3a4b4e2e6290a.bundle.js → 91.08b1de35f973e0283974.bundle.js} +1 -1
- package/dist/{91.285062bdc1f0bef7027d.bundle.js → 92.fcea4fdca795fa33f2fb.bundle.js} +1 -1
- package/dist/{92.1f149c1699bf5a770950.bundle.js → 93.420c7a3794d642e35e63.bundle.js} +1 -1
- package/dist/{93.3d2124490a5758a7dde0.bundle.js → 94.cf5b0e70e34e60663eb5.bundle.js} +1 -1
- package/dist/{94.a573bb707af737798cd7.bundle.js → 95.a6ad56ceb5d5a63c2b8d.bundle.js} +1 -1
- package/dist/{95.042e01d097425c3328aa.bundle.js → 96.524be695eddce9b9905c.bundle.js} +1 -1
- package/dist/{96.86c47432f962b636f4e2.bundle.js → 97.7173fb835cc5b1ac4cda.bundle.js} +1 -1
- package/dist/{97.e7b7846893b1d8a8eebb.bundle.js → 98.18b00fa95b6f5b1cf072.bundle.js} +1 -1
- package/dist/{98.1bd1440f852dc4853293.bundle.js → 99.a89c13f7abc4e0374809.bundle.js} +1 -1
- package/dist/{bundle.042164e54083a3799691.bundle.js → bundle.e613b501c95eab6c69a3.bundle.js} +7 -7
- package/dist/i18n/locale-en.json +14 -4
- package/dist/i18n/locale-fr.json +14 -4
- package/dist/index.html +3 -3
- package/dist/js/angular/clustermanagement/templates/modal/add-nodes-dialog.html +1 -1
- package/dist/js/angular/clustermanagement/templates/modal/cluster-create-dialog.html +6 -6
- package/dist/js/angular/clustermanagement/templates/modal/replace-nodes-dialog.html +86 -0
- 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/templates/core-errors.html +10 -9
- package/dist/js/angular/security/templates/user.html +1 -1
- package/dist/js/angular/templates/modal/add-location.html +1 -5
- package/dist/license-checker.json +2 -2
- package/dist/{main.c81e6438214ce2abae9d.bundle.js → main.59cc940bfa0eccfd4250.bundle.js} +1 -1
- package/dist/pages/aclmanagement.html +1 -1
- package/dist/pages/autocomplete.html +1 -1
- package/dist/pages/choose-repository-type.html +1 -1
- package/dist/pages/cluster-management/clusterInfo.html +10 -5
- package/dist/pages/create-index.html +4 -4
- 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 +11 -11
- package/dist/pages/graphs-visualizations.html +7 -7
- package/dist/pages/guides.html +1 -1
- package/dist/pages/import.html +1 -1
- package/dist/pages/jdbc-create.html +5 -5
- 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 +1 -1
- package/dist/pages/repository.html +1 -1
- package/dist/pages/similarity-indexes.html +1 -1
- package/dist/pages/sparql-template-create.html +5 -5
- package/dist/pages/sparql.html +3 -3
- package/dist/pages/webapi.html +2 -2
- package/dist/res/swagger/index.html +27 -27
- package/dist/{vendor.df0b15702968ae3f4bd2.bundle.js → vendor.cb970154313e9e743bd3.bundle.js} +3 -3
- package/package.json +1 -1
- package/dist/121.1de27168cefc316def09.bundle.js +0 -1
- package/dist/122.d0668c95a8b3a9e482f7.bundle.js +0 -1
- package/dist/137.3acb22bf02172e0d10f3.bundle.js +0 -1
- package/dist/142.5e5a062b6a6481ce6a9d.bundle.js +0 -1
- package/dist/171.4f9e6f2f0c906edd94e1.bundle.js +0 -1
- package/dist/181.3e5fd9770fda654a5673.bundle.js +0 -1
- package/dist/21.b75a64ea3047363e5f5c.bundle.js +0 -1
- package/dist/212.6a32d4bdd9d7fbd3b7ea.bundle.js +0 -1
- package/dist/218.0945c12202b13ef10077.bundle.js +0 -1
- package/dist/219.2db2787fe4fbf84dcb43.bundle.js +0 -1
- package/dist/24.83816b0f985ff14b8a52.bundle.js +0 -1
- package/dist/35.30700c27d4803a3b3303.bundle.js +0 -1
- package/dist/37.10e7a183182d89f86c75.bundle.js +0 -1
- package/dist/44.d03b83a9c9ad4ac8cdf5.bundle.js +0 -1
- package/dist/45.215572cd29e3d9d791a6.bundle.js +0 -1
- package/dist/5.d89104b4b77c076846bd.bundle.js +0 -1
- package/dist/56.ca4d675304ebaef091c1.bundle.js +0 -1
- package/dist/59.1479934be8a31d1cf891.bundle.js +0 -1
- package/dist/62.7000b07faecce69725c9.bundle.js +0 -1
- package/dist/63.803558f9674d24680b7f.bundle.js +0 -1
- package/dist/99.ca327d57e3e2a0a38181.bundle.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[140],{200:function(e,r){PluginRegistry.add("route",{url:"/monitor/system",module:"graphdb.framework.jmx.resources",path:"resources/app",chunk:"resources",controller:"ResourcesCtrl",templateUrl:"pages/monitor/resources.html",title:"view.resource.monitoring.title",helpInfo:"view.resource.monitoring.helpInfo",reloadOnSearch:!1}),PluginRegistry.add("main.menu",{items:[{label:"Monitor",labelKey:"menu.monitor.label",href:"#",order:3,role:"ROLE_MONITORING",icon:"icon-monitoring",guideSelector:"menu-monitor"},{label:"Resources",labelKey:"menu.resources.label",href:"monitor/system",role:"ROLE_MONITORING",order:3,parent:"Monitor",guideSelector:"sub-menu-resources"}]})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[141],{58:function(e,t){angular.module("graphdb.framework.rest.cluster.service",[]).factory("ClusterRestService",r),r.$inject=["$http"];function r(e){return{getClusterConfig:function(){return e.get("rest/cluster/config")},createCluster:function(t){return e.post("rest/cluster/config",t)},updateCluster:function(t){t.nodes&&delete t.nodes;return e.patch("rest/cluster/config",t)},deleteCluster:function(t){const r=$.param({force:t});return e.delete("rest/cluster/config?"+r)},addNodesToCluster:function(t){return e.post("rest/cluster/config/node",{nodes:t})},replaceNodesInCluster:function(t){return e.patch("rest/cluster/config/node",t)},removeNodesFromCluster:function(t){return e.delete("rest/cluster/config/node",{data:{nodes:t},headers:{"Content-Type":"application/json"}})},getClusterStatus:function(){return e.get("rest/cluster/group/status")},getNodeStatus:function(){return e.get("rest/cluster/node/status")}}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[142],{60:function(n,e){angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",t),t.$inject=["$http"];function t(n){return{getConnectors:function(){return n.get("rest/connectors")},initConnector:function(e){return n.get("rest/connectors/options?prefix="+e)},hasConnector:function(e){return n.get("rest/connectors/existing?prefix="+e)},checkConnector:function(e){return n.post("rest/connectors/check",e,{headers:{"Content-Type":"text/plain"}})}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[143],{100:function(e,r){angular.module("graphdb.framework.rest.graphconfig.service",[]).factory("GraphConfigRestService",n);function n(e){return{getGraphConfigs:function(){return e.get("rest/explore-graph/config")},getGraphConfigSamples:function(){return e.get("rest/explore-graph/samples")},loadGraphForConfig:function(r,n,o,t){return e.get(`rest/explore-graph/config/graph/${encodeURIComponent(r.id)}?includeInferred=${n}&linksLimit=${o}&sameAsState=${t}`)},getConfig:function(r){return e.get("rest/explore-graph/config/"+encodeURIComponent(r))},createGraphConfig:function(r){return e.post("rest/explore-graph/config",r)},updateGraphConfig:function(r){return e.put("rest/explore-graph/config/"+encodeURIComponent(r.id),r)},deleteGraphConfig:function(r){return e.delete("rest/explore-graph/config/"+encodeURIComponent(r.id))},validateQuery:function(r,n,o,t,p){return e({method:"POST",url:"rest/explore-graph/validate",data:{query:r,queryType:n,params:o,all:t,oneOf:p}})}}}n.$inject=["$http"]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[144],{72:function(e,a){angular.module("graphdb.framework.rest.graphexplore.data.service",[]).factory("GraphDataRestService",t),t.$inject=["$http"];function t(e){return{getClassHierarchyData:function(a){return e.get("rest/class-hierarchy",{params:{graphURI:a}})},reloadClassHierarchy:function(a){return e.get("rest/class-hierarchy",{params:{doReload:!0,graphURI:a}})},getClassInstances:function(a){return e.get("rest/class-hierarchy/class-instances",{params:{targetUri:a}})},getDomainRangeData:function(a,t){return e.get("rest/domain-range",{params:{targetUri:a,collapsed:t}})},checkDomainRangeData:function(a){return e.head("rest/domain-range",{params:{targetUri:a}})},getRelationshipsData:function(a,t,r){return e.get("rest/dependencies/matrix",{params:{mode:t,classes:_.map(a,(function(e){return e.name})),graphURI:r}})},getRelationshipsClasses:function(a,t){return e.get("rest/dependencies/classes",{params:{mode:a,graphURI:t}})},getRelationshipsStatus:function(a){return e.get("rest/dependencies/status",{params:{graphURI:a}})},calculateRelationships:function(a){return e.get("rest/dependencies/update",{params:{graphURI:a}})},getPredicates:function(a,t,r){return e.get("rest/dependencies/predicates",{params:{from:a,to:t,mode:"all",graphURI:r}})},getInstanceNode:function(a){return e.get("rest/explore-graph/node",{params:{iri:a}})},getInstanceNodeLinks:function(a){return e.get("rest/explore-graph/links",{params:{iri:a}})},getRdfsLabelAndComment:function(a,t,r){const n=r||{};return e({url:"rest/explore/details",method:"GET",params:_.extend(n,{uri:a,languages:t}),headers:{Accept:"application/json"}})}}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[145],{125:function(e,t){angular.module("graphdb.framework.rest.jdbc.service",[]).factory("JdbcRestService",n),n.$inject=["$http","$repositories","$translate"];function n(e,t){return{getJdbcConfigurations:function(){return e.get("rest/sql-views/tables")},getJdbcConfiguration:function(t){return e.get("rest/sql-views/tables/"+t)},createNewJdbcConfiguration:function(e){return n("POST","",e)},updateJdbcConfiguration:function(e){return n("PUT",e.name,e)},deleteJdbcConfiguration:function(t){return e.delete("rest/sql-views/tables/"+t)},getColumnNames:function(t){return e.post("rest/sql-views/columns",t,{headers:{Accept:"application/json","Content-Type":"text/plain"}})},getColumnsTypeSuggestion:function(n,r){if(!Array.isArray(r))throw new Error(t.instant("jdbc.column.names.constraint"));return e({method:"POST",url:"rest/sql-views/types",data:{query:n,column_names:r}})},getExistingSqlTablePreview:function(e,t){return $.ajax({method:"GET",url:"rest/sql-views/preview/"+e,params:{limit:t}})},getNewSqlTablePreview:function(e,t){return $.ajax({method:"POST",url:"rest/sql-views/preview",contentType:"application/json; charset=utf-8",dataType:"json",data:e,params:{limit:t},headers:{Accept:"application/sparql-results+json"}})}};function n(t,n,r){return e({method:t,url:"rest/sql-views/tables/"+n,noCancelOnRouteChange:!0,data:{name:r.name,query:r.query,columns:r.columns||[]}})}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[146],{59:function(e,a,n){"use strict";n.r(a),n.d(a,"mapNamespacesResponse",(function(){return s}));const s=e=>e&&e.data?e.data.results.bindings.map(e=>({prefix:e.prefix.value,uri:e.namespace.value})):[]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[147],{130:function(t,n){angular.module("graphdb.framework.rest.rdfrank.service",[]).factory("RdfRankRestService",e);function e(t){return{getStatus:function(){return t.get("rest/rdfrank/status")},checkRdfRankPluginEnabled:function(){return t.get("rest/rdfrank/plugin-found")},checkFilteringEnabled:function(){return t.get("rest/rdfrank/filtering")},toggleFiltering:function(n){return t.post("rest/rdfrank/filtering?enabled="+n)},filter:function(n){return t.get("rest/rdfrank/filtering/"+n)},updateFilter:function(n,e){return t.put("rest/rdfrank/filtering/"+n,e)},deleteFilter:function(n,e){return t.delete("rest/rdfrank/filtering/"+n,{data:e,headers:{"Content-Type":"application/json;charset=utf-8"}})},includeExplicit:function(){return t.get("rest/rdfrank/include-explicit")},toggleIncludeExplicit:function(n){return t.post("rest/rdfrank/include-explicit?enabled="+n)},includeImplicit:function(){return t.get("rest/rdfrank/include-implicit")},toggleIncludeImplicit:function(n){return t.post("rest/rdfrank/include-implicit?enabled="+n)},compute:function(){return t.post("rest/rdfrank/compute")},computeIncremental:function(){return t.post("rest/rdfrank/compute-incremental")},interrupt:function(){return t.post("rest/rdfrank/interrupt")}}}e.$inject=["$http"]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[148],{99:function(e,r){angular.module("graphdb.framework.rest.graphexplore.savedgraphs.service",[]).factory("SavedGraphsRestService",t),t.$inject=["$http"];function t(e){return{getSavedGraphs:function(){return e.get("rest/explore-graph/saved")},getSavedGraph:function(r){return e.get("rest/explore-graph/saved/"+encodeURIComponent(r))},editSavedGraph:function(r){return e.put("rest/explore-graph/saved/"+encodeURIComponent(r.id),r)},deleteSavedGraph:function(r){return e.delete("rest/explore-graph/saved/"+encodeURIComponent(r.id))},addNewSavedGraph:function(r){return e.post("rest/explore-graph/saved",r)}}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[149],{134:function(e,t){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",r),r.$inject=["$http","$repositories"];function r(e){return{getIndexes:function(){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,r,n,i,a,s,u,o,y,c,l){return e({method:t,url:"rest/similarity",noCancelOnRouteChange:!0,data:{name:r,options:n,selectQuery:i,stopList:u,infer:o,sameAs:y,type:c,analyzer:l,searchQuery:a,analogicalQuery:s}})}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[15,11,37,51,82,83,144,161],{123:function(e,t,n){"use strict";n.r(t);n(7),n(22),n(26),n(57);function r(e,t,n,r,o,i){e.getSqlConfigurations=function(){!t.getActiveRepository()||t.isActiveRepoOntopType()||t.isActiveRepoFedXType()?e.jdbcConfigurations=[]:n.getJdbcConfigurations().success((function(t){e.jdbcConfigurations=t})).error((function(e){const t=getError(e);r.error(t,i.instant("jdbc.not.get.SQL.msg"))}))},e.$watch((function(){return t.getActiveRepository()}),(function(){e.getSqlConfigurations()})),e.deleteConfiguration=function(t){o.openSimpleModal({title:i.instant("common.warning"),message:i.instant("jdbc.delete.sql.table.warning.msg",{name:t}),warning:!0}).result.then((function(){n.deleteJdbcConfiguration(t).success((function(){e.getSqlConfigurations()})).error((function(e){r.error(getError(e),i.instant("jdbc.not.delete.sql.msg"))}))}))}}function o(e,t,n,r,o,i,a,s,u,c,l){e.name=t.search().name||"",e.getNamespaces=function(){m(!0,l.instant("common.refreshing.namespaces"),l.instant("common.extra.message")),s.getRepositoryNamespaces().success((function(t){const n={};t.results.bindings.forEach((function(e){n[e.prefix.value]=e.namespace.value})),e.namespaces=n})).error((function(t){e.repositoryError=getError(t)})).finally((function(){m(!1),b()}))},e.setLoader=m,e.addKnownPrefixes=h,e.page=1,e.noPadding={paddingRight:0,paddingLeft:0},e.sqlTypes=["string","iri","boolean","byte","short","int","long","float","double","decimal","date","time","timestamp","Get suggestion..."],e.currentTabConfig={},e.orientationViewMode=!0,e.currentQuery={},e.$watch((function(){return r.getActiveRepository()}),(function(e,n){e!==n&&t.path("jdbc")}));let d=null;e.goBack=function(){d=i((function(){o.history.back()}),1e3)};const g=e.$on("$locationChangeStart",(function(t){!function(t){e.currentQuery.isPristine||(confirm(l.instant("jdbc.warning.unsaved.changes"))?(window.removeEventListener("beforeunload",f),g(),i.cancel(d)):t.preventDefault())}(t)}));function f(t){e.currentQuery.isPristine||(t.returnValue=!0)}window.addEventListener("beforeunload",f),e.$on("$destroy",(function(e){window.removeEventListener("beforeunload",f),g(),i.cancel(d)}));const p={id:"1",name:"",query:"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n\n# Selects two variables to use as columns\nSELECT ?id ?label {\n ?id rdfs:label ?label\n # The following placeholder must be present in the query\n #!filter\n}",inference:!0,sameAs:!0,isNewConfiguration:!0,isPristine:!0};var y;function m(t,n,r){const o=angular.element(document.getElementById("yasr-inner"));e.queryIsRunning=t,t?(e.queryStartTime=Date.now(),e.countTimeouted=!1,e.progressMessage=n,e.extraMessage=r,o.addClass("hide")):(e.progressMessage="",e.extraMessage="",o.removeClass("hide")),null===e.$$phase&&e.$apply()}function b(){e.tabsData=[e.currentQuery];const t=e.currentQuery;e.currentQuery.query?window.editor.setValue(e.currentQuery.query):window.editor.setValue(" "),i((function(){e.currentTabConfig={},e.currentTabConfig.queryType=t.queryType,e.currentTabConfig.resultsCount=t.resultsCount,e.currentTabConfig.offset=t.offset,e.currentTabConfig.allResultsCount=t.allResultsCount,e.currentTabConfig.page=t.page,e.currentTabConfig.pageSize=t.pageSize,e.currentTabConfig.timeFinished=t.timeFinished,e.currentTabConfig.timeTook=t.timeTook,e.currentTabConfig.sizeDelta=t.sizeDelta,e.$apply()}),0),e.canWriteActiveRepo()||(window.editor.options.readOnly=!0)}function w(){e.tabsData=e.tabs=[p],e.currentQuery=_.cloneDeep(p),C(),window.editor&&(e.setQuery(e.currentQuery.query),b()),e.$watch((function(){return e.currentQuery.query}),(function(t,n){t!==n&&e.setDirty()}))}function h(){u.addKnownPrefixes(JSON.stringify(window.editor.getValue())).success((function(e){angular.isDefined(window.editor)&&angular.isDefined(e)&&e!==window.editor.getValue()&&window.editor.setValue(e)})).error((function(e){const t=getError(e);return n.error(t,l.instant("common.add.known.prefixes.error")),!0}))}function T(){E()&&a.getColumnNames(e.currentQuery.query).success((function(t){a.getColumnsTypeSuggestion(e.currentQuery.query,t).success((function(n){const r=[];_.forEach(t,(function(e){r.push({column_name:e,column_type:n[e].column_type,nullable:!0,sparql_type:n[e].sparql_type})})),e.currentQuery.columns=r,e.setDirty()})).error((function(e){n.error(getError(e),l.instant("jdbc.not.suggest.column.types"))}))})).error((function(e){n.error(getError(e),l.instant("jdbc.not.suggest.column.names"))}))}function C(){2===e.page?e.viewMode="editor":e.viewMode="none"}function v(e,t,n,r,o){let i=n[r].value;i=i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");return"<div class = 'literal-cell'>"+("<p class='nonUri' style='border: none; background-color: transparent; padding: 0; margin: 0'>"+i+"</p>")+"</div>"}function q(){return window.editor&&"SELECT"===window.editor.getQueryType()}function S(){return E()&&function(){if(!e.currentQuery.columns||!e.currentQuery.columns.length)return n.error(l.instant("jdbc.warning.one.column.msg"),l.instant("jdbc.invalid.columns")),!1;if(e.containsUnknownColumns())return n.error(l.instant("jdbc.warning.all.column.msg"),l.instant("jdbc.invalid.columns")),!1;return!0}()}function E(){return!!q()||(n.error(l.instant("jdbc.warning.invalid.query"),l.instant("jdbc.invalid.query)")),!1)}e.resetCurrentTabConfig=function(){e.currentTabConfig={pageSize:100,page:1,allResultsCount:0,resultsCount:0,queryType:""}},e.saveTab=function(){},e.setQuery=function(e){window.editor.setValue(e||" ")},e.name?(y=e.name,a.getJdbcConfiguration(y).success((function(e){p.query=e.query,p.name=e.name,p.columns=e.columns,p.isNewConfiguration=!e.name,w()})).error((function(e){const t=getError(e);n.error(t,l.instant("jdbc.not.get.sql.msg2"))}))):w(),e.goToPage=function(t){e.page=t;const n=e.currentQuery.columns;2!==t||n&&0!==n.length||!q()||e.getColumnsSuggestions(),C()},e.save=function(){S()&&(e.currentQuery.name?e.currentQuery.isNewConfiguration?a.createNewJdbcConfiguration(e.currentQuery).success((function(){e.currentQuery.isPristine=!0,e.currentQuery.isNewConfiguration=!1,n.success(l.instant("jdbc.saved.configuration")),e.goBack()})).error((function(e){const t=getError(e);n.error(t,l.instant("jdbc.not.saved.configuration"))})):a.updateJdbcConfiguration(e.currentQuery).success((function(){e.currentQuery.isPristine=!0,e.currentQuery.isNewConfiguration=!1,n.success(l.instant("jdbc.configuration.updated")),e.goBack()})).error((function(e){const t=getError(e);n.error(t,l.instant("jdbc.not.saved.configuration"))})):n.error(l.instant("jdbc.required.configuration.name")))},e.hasPrecision=function(e){return"iri"===e||"string"===e||"decimal"===e},e.containsColumnsWithPrecision=function(t){return t&&t.some(t=>e.hasPrecision(t.column_type))},e.hasScale=function(e){return"decimal"===e},e.containsColumnsWithScale=function(t){return t&&t.some(t=>e.hasScale(t.column_type))},e.isLiteral=function(e){return"iri"!==e&&"unknown"!==e},e.containsNonLiteralColumnsOnly=function(t){return t&&t.every(t=>!e.isLiteral(t.column_type))},e.containsUnknownColumns=function(){return e.currentQuery.columns&&e.currentQuery.columns.find(e=>"unknown"===e.column_type)},$("textarea").on("paste",(function(){i((function(){h()}),0)})),e.selectColumnType=function(t,r){const o=_.find(e.currentQuery.columns,(function(e){return e.column_name===t}));"Get suggestion..."===o.column_type&&a.getColumnsTypeSuggestion(e.currentQuery.query,[t]).success((function(e){o.column_type=e[t].column_type,o.column_type===r?n.info(l.instant("jdbc.same.suggested.sql.type",{type:o.column_type}),l.instant("jdbc.suggest.sql.type"),{allowHtml:!0}):n.success(l.instant("jdbc.suggested.sql.type",{type:o.column_type}),l.instant("jdbc.suggest.sql.type"),{allowHtml:!0}),o.sparql_type=e[t].sparql_type})).error((function(e){n.error(getError(e),l.instant("jdbc.not.suggest.column.type"))})),e.setDirty()},e.getColumnsSuggestions=function(){e.currentQuery.columns&&e.currentQuery.columns.length>0?c.openSimpleModal({title:l.instant("common.warning"),message:l.instant("jdbc.warning.column.type.msg"),warning:!0}).result.then((function(){T()})):T()},e.deleteColumn=function(t,n){c.openSimpleModal({title:l.instant("common.warning"),message:l.instant("jdbc.warning.delete.column.msg",{columnName:t}),warning:!0}).result.then((function(){e.currentQuery.columns.splice(n,1),e.setDirty()}))},e.getPreview=function(){if(S()&&(e.executedQueryTab=e.currentQuery,!e.queryIsRunning)){$.ajaxSetup().headers=$.ajaxSetup().headers||{};const t=r.getActiveRepositoryObject();$.ajaxSetup().headers["X-GraphDB-Repository"]=t?t.id:void 0,$.ajaxSetup().headers["X-GraphDB-Repository-Location"]=t?t.location:void 0,e.currentQuery.outputType="table",e.resetCurrentTabConfig(),m(!0,l.instant("jdbc.preview.first.rows",{name:e.name}),l.instant("common.extra.message"));const o=function(t,r,o){!function(t,r,o){t.results&&t.results.bindings&&t.results.bindings.length?(window.yasr.plugins.table.options.getCellContent=v,e.currentTabConfig.queryType="SELECT",window.yasr.setResponse(r,o,null)):n.info(l.instant("jdbc.table.definition"),l.instant("jdbc.preview.sql"))}(t,o,r),m(!1)},i=function(e){m(!1),n.error(getError(e,0,100),l.instant("jdbc.not.show.preview"))};if(e.canWriteActiveRepo()){const t=JSON.stringify({name:e.currentQuery.name,query:e.currentQuery.query,columns:e.currentQuery.columns||[]});a.getNewSqlTablePreview(t).done(o).fail(i)}else a.getExistingSqlTablePreview(e.currentQuery.name).done(o).fail(i)}},e.setDirty=function(){e.currentQuery.isPristine=!1},e.getTypeLabel=function(e){switch(e){case"iri":return"VARCHAR: IRI";case"string":return"VARCHAR: String";default:return e.indexOf(" ")>0?e:e.toUpperCase()}}}angular.module("graphdb.framework.jdbc.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.monitoring.service","toastr"],["graphdb.framework.utils.notifications"]).controller("JdbcListCtrl",r).controller("JdbcCreateCtrl",o),r.$inject=["$scope","$repositories","JdbcRestService","toastr","ModalService","$translate"],o.$inject=["$scope","$location","toastr","$repositories","$window","$timeout","JdbcRestService","RDF4JRepositoriesRestService","SparqlRestService","ModalService","$translate"]},124:function(e,t){angular.module("graphdb.framework.rest.jdbc.service",[]).factory("JdbcRestService",n),n.$inject=["$http","$repositories","$translate"];function n(e,t){return{getJdbcConfigurations:function(){return e.get("rest/sql-views/tables")},getJdbcConfiguration:function(t){return e.get("rest/sql-views/tables/"+t)},createNewJdbcConfiguration:function(e){return n("POST","",e)},updateJdbcConfiguration:function(e){return n("PUT",e.name,e)},deleteJdbcConfiguration:function(t){return e.delete("rest/sql-views/tables/"+t)},getColumnNames:function(t){return e.post("rest/sql-views/columns",t,{headers:{Accept:"application/json","Content-Type":"text/plain"}})},getColumnsTypeSuggestion:function(n,r){if(!Array.isArray(r))throw new Error(t.instant("jdbc.column.names.constraint"));return e({method:"POST",url:"rest/sql-views/types",data:{query:n,column_names:r}})},getExistingSqlTablePreview:function(e,t){return $.ajax({method:"GET",url:"rest/sql-views/preview/"+e,params:{limit:t}})},getNewSqlTablePreview:function(e,t){return $.ajax({method:"POST",url:"rest/sql-views/preview",contentType:"application/json; charset=utf-8",dataType:"json",data:e,params:{limit:t},headers:{Accept:"application/sparql-results+json"}})}};function n(t,n,r){return e({method:t,url:"rest/sql-views/tables/"+n,noCancelOnRouteChange:!0,data:{name:r.name,query:r.query,columns:r.columns||[]}})}}},178:function(e,t,n){"use strict";n.r(t);n(7),n(23),n(79),n(22),n(123),n(124),n(65),n(61),n(70);angular.module("graphdb.framework.jdbc",["toastr","ui.bootstrap","graphdb.framework.jdbc.controllers","graphdb.framework.core.services.repositories","graphdb.framework.core.directives","graphdb.framework.rest.jdbc.service","graphdb.framework.core.directives.queryeditor.controllers","graphdb.framework.core.directives.queryeditor.sparqltab","graphdb.framework.core.directives.queryeditor.queryeditor"])},311:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},312:function(e,t){(function(t){e.exports=t}).call(this,{})},57:function(e,t){function n(e,t){return{showToastMessageWithDelay:function(n){return new Promise(r=>{e.success(t.instant(n)),setTimeout(r,200)})}}}angular.module("graphdb.framework.utils.notifications",[]).factory("Notifications",n),n.$inject=["toastr","$translate"]},61:function(e,t,n){"use strict";n.r(t);n(10),n(27);var r=n(0);function o(e,t,n,o,i,a,s,u,c,l,d,g,f,p,y){const m={id:"1",name:"",query:"select * where { \n\t?s ?p ?o .\n} limit 100 \n",inference:!0,sameAs:!0};let b,w;function h(t){!function(){if(o.isActiveRepoOntopType())return;const t=document.getElementById("sameAs");!t||e.currentQuery.inference||t.disabled?e.currentQuery.inference&&t.disabled&&(t.removeAttribute("disabled"),e.currentQuery.sameAs=b.appSettings.DEFAULT_SAMEAS):(t.disabled=!0,e.currentQuery.sameAs=!1)}(),e.tabs.forEach((function(n,r){n.id===t.id&&(e.tabs[r].query=t.query,o.isActiveRepoOntopType()||(e.tabs[r].inference=t.inference,e.tabs[r].sameAs=t.sameAs))})),f.set(p.TABS_STATE,e.tabs)}function T(t,n,r,o){const i=angular.element(document.getElementById("yasr-inner"));e.queryIsRunning=t,t?(e.queryStartTime=Date.now(),e.countTimeouted=!1,e.progressMessage=n,e.extraMessage=r,e.noLoaderTimer=o,i.addClass("hide")):(e.progressMessage="",e.extraMessage="",e.noLoaderTimer=!1,e.currentTrackAlias=null,e.abortRequested=!1,i.removeClass("hide")),null===e.$$phase&&e.$apply()}function C(n){function r(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0}if(e.orientationViewMode){if("yasr"===e.viewMode){let e=r()-document.querySelector(".CodeMirror-wrap").getBoundingClientRect().top;e-=40,document.querySelector(".CodeMirror-wrap").style.height=e+"px"}else e.noPadding={},document.querySelector(".CodeMirror-wrap").style.height="";document.getElementById("yasr").style.minHeight=""}else if(e.noPadding={paddingRight:15,paddingLeft:0},window.editor&&document.querySelector(".CodeMirror-wrap")){let e=r()-document.querySelector(".CodeMirror-wrap").getBoundingClientRect().top;e-=40,document.querySelector(".CodeMirror-wrap").style.height=e+"px",document.getElementById("yasr").style.minHeight=e+"px"}else{let r;r=t(n?function(){e.fixSizesOnHorizontalViewModeSwitch(n)}:e.fixSizesOnHorizontalViewModeSwitch,100),e.$on("$destroy",(function(){t.cancel(r)}))}window.yasr&&window.yasr.container&&t((function(){window.yasr.container.resize()}),100)}function v(){C(!0)}function q(t,n){n.newRepo&&(e.tabsData=f.get(p.TABS_STATE),e.tabsData.forEach((function(e){e.yasrData=void 0,e.queryType=void 0,e.resultsCount=0,e.allResultsCount=0,e.sizeDelta=void 0})),f.set(p.TABS_STATE,e.tabsData),e.tabs=e.tabsData,e.currentQuery={},e.errorMessage=null,e.repositoryError=null)}function S(e){t((function(){$('a[data-id = "'+e+'"]').tab("show")}),0)}function E(r,i){if(e.executedQueryTab=e.currentQuery,i){if("SELECT"!==window.editor.getQueryType()&&"CONSTRUCT"!==window.editor.getQueryType()&&"DESCRIBE"!==window.editor.getQueryType())return void n.warning(y.instant("query.editor.warning.msg"));if(o.isActiveRepoOntopType())return void n.warning(y.instant("query.editor.virtual.repo.warning.msg"))}if(e.explainRequested=i,!e.queryIsRunning){if(r?e.currentTabConfig.resultsCount=0:e.resetCurrentTabConfig(),e.lastRunQueryMode=window.editor.getQueryMode(),"update"===e.lastRunQueryMode&&o.isActiveRepoOntopType())return void n.warning(y.instant("query.editor.virtual.repo.update.warning.msg"));if(T(!0,"update"===e.lastRunQueryMode?y.instant("query.editor.executing.update"):y.instant("query.editor.evaluating.query")),"none"!==e.viewMode){e.viewMode="none",e.orientationViewMode&&e.fixSizesOnHorizontalViewModeSwitch();const n=t(window.editor.query,500);e.$on("$destroy",(function(){t.cancel(n)}))}else window.editor.query()}}function Q(t){let n=void 0;return e.tabsData.forEach((function(e){if(e.name===t.name&&e.query===t.body)return n=e.id,e})),n}function A(t){return function(n,r,o){e.savedQuery={name:n,query:r||window.editor.getValue(),shared:o},$(t).modal("show")}}function M(t){for(let n=0;n<e.tabsData.length;n++){if(e.tabsData[n].id===t)return n}}e.getPrincipal=function(){return l.getPrincipal().then(t=>{b=t,function(e,t){m.inference=t.appSettings.DEFAULT_INFERENCE,m.sameAs=t.appSettings.DEFAULT_SAMEAS,e.skipCountQuery=!t.appSettings.EXECUTE_COUNT,e.ignoreSharedQueries=t.appSettings.IGNORE_SHARED_QUERIES,e.tabsData=e.tabs=f.get(p.TABS_STATE)||[m],e.$watchCollection("[currentQuery.inference, currentQuery.sameAs]",(function(e,t,n){h(n.currentQuery)})),e.$on("repositoryIsSet",q)}(e,b)})},e.getPrincipal(),this.hint=document.createElement("span"),this.hint.innerHTML=y.instant("query.editor.autocomplete.hint"),this.hint.style.fontSize="12px",this.hint.style.color="gray",this.hint.style.backgroundColor="white",this.hint.style.position="absolute",this.hint.style.zIndex="3",this.hint.style.paddingLeft="12px",e.$watch((function(){return angular.element(".CodeMirror-hints").length}),e=>{if(e){const e=angular.element(".CodeMirror-hints")[0].getBoundingClientRect();document.body.appendChild(this.hint),this.hint.style.top=e.top-20+"px",this.hint.style.left=e.right-this.hint.offsetWidth-12+"px"}else this.hint&&this.hint.parentNode&&this.hint.parentNode.removeChild(this.hint)}),e.resetCurrentTabConfig=function(){e.currentTabConfig={pageSize:1e3,page:1,allResultsCount:0,resultsCount:0}},e.queryExists=!1,e.resetCurrentTabConfig(),e.saveTab=function(t){const n=M(t);if(void 0===n)return{};const r=e.tabsData[n];return e.saveQueryToLocal(r),r},e.loadTab=function(n){e.tabsData=f.get(p.TABS_STATE)||[m];const r=M(n),i=e.tabsData[r];i.yasrData&&T(!0,y.instant("query.editor.render.results.msg"),null,!0);t((function(){""===e.currentQuery.query&&(e.currentQuery.query=" "),t((function(){window.editor.setValue(e.currentQuery.query),e.yasr.updateDownloadDropdown(),e.$broadcast("tabLoaded",e.currentQuery.id),e.yasr.options.output=i.outputType,i.yasrData&&(i.yasrData.customError?(e.yasr.results={getException:function(){return i.yasrData.customError}},T(!1)):t((function(){e.setYasrResponse(i.yasrData,i.textStatus,i.jqXhrOrErrorString),T(!1),$(".yasr_btnGroup li:nth-child(2)").hasClass("active")&&t((function(){$(".yasr_btnGroup li:nth-child(2) a").get(0).click()}),0)}),0))}),0)}),0),f.set(p.TABS_STATE_CURRENT_ID,n),e.currentQuery=i,t((function(){e.currentTabConfig={},e.currentTabConfig.queryType=i.queryType,e.currentTabConfig.resultsCount=i.resultsCount,e.currentTabConfig.offset=i.offset,e.currentTabConfig.allResultsCount=i.allResultsCount,e.currentTabConfig.allResultsCountExact=i.allResultsCountExact,e.currentTabConfig.page=i.page,e.currentTabConfig.pageSize=i.pageSize,e.currentTabConfig.timeFinished=i.timeFinished,e.currentTabConfig.timeTook=i.timeTook,e.currentTabConfig.sizeDelta=i.sizeDelta,e.currentTabConfig.customUpdateMessage=i.customUpdateMessage,e.currentTabConfig.errorMessage=i.errorMessage,e.currentTabConfig.warningMessage=i.warningMessage,e.$apply()}),0),$("#yasr").css("padding","0"),w||(w=setInterval(x,200));!function(){const t=o.isActiveRepoOntopType(),n=o.isActiveRepoFedXType();(function(e){const t=document.getElementById("sameAs"),n=document.getElementById("inference");t&&(t.disabled=!!e);n&&(n.disabled=!!e)})(t),e.nocount=!(!t&&!n)||!b.appSettings.EXECUTE_COUNT,t&&(e.currentQuery.inference=!0,e.currentQuery.sameAs=!0)}()},e.addNewTab=function(n,r,o){if(!j(!0))return;let i;i=r||o?{id:"1",name:r,query:o,inference:b.appSettings.DEFAULT_INFERENCE,sameAs:b.appSettings.DEFAULT_SAMEAS}:{id:"1",name:"",query:"select * where { \n\t?s ?p ?o .\n} limit 100 \n",inference:b.appSettings.DEFAULT_INFERENCE,sameAs:b.appSettings.DEFAULT_SAMEAS};D++;const a=""+D;e.tabsData=e.tabs;const s=i;s.id=a,e.tabsData.push(s),f.set(p.TABS_STATE_MAXID,D),f.set(p.TABS_STATE,e.tabsData);const u=Array.prototype.slice.call(arguments,1);t((function(){e.$apply(),S(a),n&&n.apply(this,u)}),0),e.tabs=e.tabsData},e.isTabChangeOk=j,e.runQuery=E,e.abortCurrentQuery=function(){g.deleteQuery(e.currentTrackAlias,o.getActiveRepository()).success((function(){e.abortRequested=!0}))},e.editQuery=function(t){i.open({templateUrl:"js/angular/core/directives/queryeditor/templates/query-sample.html",controller:"QuerySampleModalCtrl",resolve:{data:function(){return{title:y.instant("query.editor.edit.saved.query",{name:t.name}),query:t,edit:!0,okButtonText:y.instant("common.save.btn")}}}}).result.then((function(r){const o={name:r.name,body:r.body,shared:r.shared};t.name!==r.name?s.addNewSavedQuery(o).success((function(){e.deleteQueryHttp(t.name,!0)})).error((function(e){const t=getError(e);n.error(t,y.instant("query.editor.edit.saved.query.error"))})):s.editSavedQuery(o).success((function(){$("#editQueryContainer").modal("hide"),e.toggleSampleQueries(),n.success(y.instant("query.editor.edit.saved.query.success.msg",{name:t.name}))})).error((function(e){const t=getError(e);n.error(t,y.instant("query.editor.edit.saved.query.error"))}))}))},e.getNamespaces=function(){T(!0,y.instant("common.refreshing.namespaces"),y.instant("common.extra.message")),e.namespacesLoading=!0,d.getRepositoryNamespaces().success((function(t){const n={};t.results.bindings.forEach((function(e){n[e.prefix.value]=e.namespace.value})),e.namespaces=n})).error((function(t){e.repositoryError=getError(t)})).finally((function(){T(!1),e.namespacesLoading=!1}))},e.changePagination=function(){E(!0,e.explainRequested)},e.toggleSampleQueries=function(){s.getSavedQueries().success((function(t){e.sampleQueries=t.filter(t=>!e.ignoreSharedQueries||t.owner!==e.principal.username)})).error((function(e){const t=getError(e);n.error(t,y.instant("query.editor.get.saved.queries.error"))}))},e.addKnownPrefixes=function(){s.addKnownPrefixes(JSON.stringify(window.editor.getValue())).success((function(e){angular.isDefined(window.editor)&&angular.isDefined(e)&&e!==window.editor.getValue()&&window.editor.setValue(e)})).error((function(e){const t=getError(e);return n.error(t,y.instant("common.add.known.prefixes.error")),!0}))},e.getExistingTabId=Q,e.querySelected=function(t){const n=Q(t);e.toggleSampleQueries(),e.isTabChangeOk(!1)&&(e.highlightNextTabChange=!0,angular.isDefined(n)?S(n):e.addNewTab(null,t.name,t.body))},e.deleteQuery=function(t){a.openSimpleModal({title:y.instant("common.confirm"),message:y.instant("query.editor.delete.saved.query.warning.msg",{savedQueryName:t}),warning:!0}).result.then((function(){e.deleteQueryHttp(t)}))},e.deleteQueryHttp=function(t,r){s.deleteSavedQuery(t).success((function(){e.toggleSampleQueries(),r||n.success(y.instant("query.editor.delete.saved.query.success.msg",{savedQueryName:t}))})).error((function(e){const t=getError(e);n.error(t,y.instant("query.editor.delete.saved.query.error"))}))},e.saveQuery=function(t,n){i.open({templateUrl:"js/angular/core/directives/queryeditor/templates/query-sample.html",controller:"QuerySampleModalCtrl",resolve:{data:function(){return{title:y.instant("query.editor.create.saved.query.msg"),query:{name:t.name,body:t.query,shared:t.shared},edit:!1,okButtonText:y.instant("common.create.btn"),queryExists:n,existingQueryErrMsg:Object(r.decodeHTML)(y.instant("query.sample.existing.query.warning",{name:t.name}))}}}}).result.then((function(t){e.saveQueryHttp(t)}),(function(){}))},e.saveQueryHttp=function(t){s.addNewSavedQuery(t).success((function(){n.success(y.instant("query.editor.save.saved.query.success.msg",{name:t.name}))})).error((function(r,o){const i=getError(r);n.error(i,y.instant("query.editor.create.saved.query.error"));let a=!1;409===o&&(a=!0),t.query=t.body,e.saveQuery(t,a)}))},e.saveQueryToLocal=h,e.setLoader=T,e.getLoaderMessage=function(){const t=(Date.now()-e.queryStartTime)/1e3;let n="",r="";e.noLoaderTimer||(n=e.getHumanReadableSeconds(t));r=e.progressMessage?y.instant("query.editor.progress.msg",{progressMessage:e.progressMessage,timeHuman:n}):y.instant("common.running.operation",{timeHuman:n});e.extraMessage&&t>10&&(r+=y.instant("query.editor.extra.msg",{extraMessage:e.extraMessage}));return r},e.fixSizesOnHorizontalViewModeSwitch=C,e.changeViewMode=function(){e.viewMode="none",e.orientationViewMode=!e.orientationViewMode,f.set(p.VIEW_MODE,e.orientationViewMode),C()},e.showHideEditor=v,e.focusQueryEditor=function(){angular.element(document).find(".editable-input").is(":focus")||angular.element(document).find(".CodeMirror textarea:first-child").focus()},e.orientationViewMode=!f.get(p.VIEW_MODE)||"true"===f.get(p.VIEW_MODE),e.viewMode="none",e.getActiveRepository=function(){return o.getActiveRepository()},e.getActiveRepositoryNoError=function(){if(!e.repositoryError)return o.getActiveRepository()},e.orientationViewMode||v(),window.onbeforeunload=function(){e.currentQuery&&e.saveTab(e.currentQuery.id),f.set(p.TABS_STATE,e.tabs)},e.$on("$destroy",(function(){e.currentQuery&&e.saveTab(e.currentQuery.id),f.set(p.TABS_STATE,e.tabs),clearInterval(w)})),e.$on("$destroy",(function(){clearInterval(w),window.editor=null,window.yasr=null}));let D=f.get(p.TABS_STATE_MAXID)||1;function R(e){return $(e).attr("data-id")}function x(){if(e.currentTabConfig.resultsCount>=0){const e=$(".saveAsDropDown");e.length>0&&!window.editor.queryValid?yasr.header.find(".saveAsDropDown").remove():0===e.length&&window.editor.queryValid&&yasr.updateDownloadDropdown()}}function j(t){return!(e.queryIsRunning&&!e.namespacesLoading)||(t?n.info(y.instant("query.editor.new.tab.running.query.warning.msg")):n.info(y.instant("query.editor.tab.switching.running.query.warning.msg")),!1)}e.highlightNextTabChange=!1,e.$on("tabAction",(function(n,r){r.relatedTarget&&(t.cancel(r.relatedTarget.timer),$(r.relatedTarget).css("color",""),e.saveTab(R(r.relatedTarget))),e.loadTab(R(r.target));const o=["var(--primary-color)","","var(--primary-color)"],i=[400,400,400];if(e.highlightNextTabChange){e.highlightNextTabChange=!1;let n=0;$(r.target).css("color",o[n]);const a=function(){n++,n<o.length?($(r.target).css("color",o[n]),r.target.timer=t(a,i[n])):$(r.target).css("color","")};t(a,i[n])}})),e.$on("deleteAllexeptSelected",(function(t,n){e.tabsData=n,e.tabs=n})),e.currentQuery={},e.savedQuery={},e.sampleQueries={},e.editQueryModal=A("#editQueryContainer"),e.deleteQueryModal=A("#confirmDeleteContainer"),e.saveQueryModal=A("#saveQueryContainer"),e.getResultsDescription=function(){let t;if(0===e.currentTabConfig.resultsCount)t="No results.";else{const n=(e.currentTabConfig.page-1)*e.currentTabConfig.pageSize+Math.min(e.currentTabConfig.resultsCount,e.currentTabConfig.pageSize);t=y.instant("query.editor.showing.results.from.msg")+u("currency")(e.currentTabConfig.offset,"",0)+y.instant("query.editor.to")+u("currency")(n,"",0),e.currentTabConfig.allResultsCount>0&&(t+=y.instant(e.currentTabConfig.allResultsCountExact?"query.editor.of":"query.editor.of.at.least"),t+=u("currency")(e.currentTabConfig.allResultsCount,"",0)),t+="."}return t},e.getUpdateDescription=function(){return e.currentTabConfig.customUpdateMessage?y.instant(e.currentTabConfig.customUpdateMessage.msg,{name:e.currentTabConfig.customUpdateMessage.name}):void 0===e.currentTabConfig.sizeDelta?"":e.currentTabConfig.sizeDelta<0?y.instant("yasr.removed.statements.result.msg",{sizeDelta:Math.abs(e.currentTabConfig.sizeDelta)}):e.currentTabConfig.sizeDelta>0?y.instant("yasr.added.statements.result.msg",{sizeDelta:e.currentTabConfig.sizeDelta}):y.instant("yasr.statements.no.change.msg")},e.getStaleWarningMessage=function(){const t=60*Math.round((Date.now()-e.currentTabConfig.timeFinished)/6e4);if(t>=3600)return y.instant("yasr.stale.result.msg",{secondsAgo:e.getHumanReadableSeconds(t)})};const k=function(){};angular.element(c).bind("resize",k),e.$on("$destroy",(function(){angular.element(c).unbind("resize",k)}))}function i(e,t,n,r){n.queryExists&&(e.queryExists=!0),e.query=_.cloneDeep(n.query),e.title=n.title,e.edit=n.edit,e.okButtonText=n.okButtonText,e.existingQueryErrMsg=r.trustAsHtml(n.existingQueryErrMsg),e.ok=function(){e.form.$valid&&t.close(e.query)},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.core.directives.queryeditor.controllers",["graphdb.framework.utils.localstorageadapter","graphdb.framework.rest.sparql.service"]).controller("QueryEditorCtrl",o).controller("QuerySampleModalCtrl",i),o.$inject=["$scope","$timeout","toastr","$repositories","$uibModal","ModalService","SparqlRestService","$filter","$window","$jwtAuth","RDF4JRepositoriesRestService","MonitoringRestService","LocalStorageAdapter","LSKeys","$translate"],i.$inject=["$scope","$uibModalInstance","data","$sce"]},65:function(e,t,n){"use strict";n.r(t);n(10);function r(e,t,n,r){return{restrict:"AE",template:'<a class="nav-link" role="tab" data-toggle="tab" blur="submit" editable-text="tab.name" e-form="editCurrentlySelectedOnly" ng-click="selectThisTab($event)" ng-dblclick="editCurrentTab()" ><span ng-class="{\'text-muted\': !tab.name}">{{ tab.name || (\'sparql.tab.directive.unnamed.tab.title\' | translate)}}</span><button type="button" ng-click="deleteTab($event)" class="btn btn-link btn-sm secondary delete-sparql-tab-btn" title="Delete tab"><i class="icon-close"></i></button></a>',replace:!0,controller:["$scope","$element","$rootScope","ModalService","toastr","$translate",function(e,r,o,i,a,s){function u(e){return $(e).attr("data-id")}function c(e){$('a[data-id = "'+e+'"]').tab("show")}e.state={},$(r).on("shown.bs.tab",(function(e){o.$broadcast("tabAction",e)})),e.deleteTab=function(l){if(l.preventDefault(),l.stopPropagation(),e.tabs.length<2)return void a.warning(s.instant("sparql.tab.directive.close.last.warning"));l.shiftKey?(e.state.selectedTabId=u(r),i.openSimpleModal({title:s.instant("common.confirm"),message:s.instant("sparql.tab.directive.delete.all.tabs.warning"),warning:!0}).result.then((function(){var r;r=e.state.selectedTabId,e.tabs=e.tabs.filter((function(e){if(e.id===r)return e})),c(e.tabs[0].id),t.set(n.TABS_STATE,e.tabs),o.$broadcast("deleteAllexeptSelected",e.tabs)}))):(e.state.idForDelete=u(r),i.openSimpleModal({title:s.instant("common.confirm"),message:s.instant("sparql.tab.directive.close.tab.warning"),warning:!0}).result.then((function(){!function(t){if(angular.isUndefined(t))throw"Delete by id was called with undefined id";const n=function(t){for(let n=0;n<e.tabs.length;n++){if(e.tabs[n].id===t)return n}}(t);e.tabs.splice(n,1),t===e.currentQuery.id&&e.tabs.length>0&&c(n>0?e.tabs[n-1].id:e.tabs[0].id)}(e.state.idForDelete)})));angular.element(document).find(".CodeMirror textarea:first-child").focus()},e.editCurrentTab=function(){if(u(r)!==e.currentQuery.id)return;e.editCurrentlySelectedOnly.$show();const t=$(".editable-buttons");t.children(".btn.btn-primary").addClass("btn-sm"),t.children(".btn.btn-default").addClass("btn-sm"),$(".editable-controls .editable-input").addClass("form-control-sm").on("change",(function(t){e.currentQuery.name=t.currentTarget.$$currentValue})),$(".editable-buttons .glyphicon.glyphicon-ok").removeClass("glyphicon glyphicon-ok").addClass("fa fa-check"),$(".editable-buttons .glyphicon.glyphicon-remove").removeClass("glyphicon glyphicon-remove").addClass("fa fa-close")},e.selectThisTab=function(t){t.preventDefault(),t.stopPropagation(),e.isTabChangeOk(!1)&&$(r).tab("show")}}]}}angular.module("graphdb.framework.core.directives.queryeditor.sparqltab",["graphdb.framework.core","graphdb.framework.utils.localstorageadapter"]).directive("sparqlTab",r),r.$inject=["$rootScope","LocalStorageAdapter","LSKeys","ModalService"]}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[15,11,38,52,83,84,145,162],{124:function(e,t,n){"use strict";n.r(t);n(7),n(22),n(26),n(57);function r(e,t,n,r,o,i){e.getSqlConfigurations=function(){!t.getActiveRepository()||t.isActiveRepoOntopType()||t.isActiveRepoFedXType()?e.jdbcConfigurations=[]:n.getJdbcConfigurations().success((function(t){e.jdbcConfigurations=t})).error((function(e){const t=getError(e);r.error(t,i.instant("jdbc.not.get.SQL.msg"))}))},e.$watch((function(){return t.getActiveRepository()}),(function(){e.getSqlConfigurations()})),e.deleteConfiguration=function(t){o.openSimpleModal({title:i.instant("common.warning"),message:i.instant("jdbc.delete.sql.table.warning.msg",{name:t}),warning:!0}).result.then((function(){n.deleteJdbcConfiguration(t).success((function(){e.getSqlConfigurations()})).error((function(e){r.error(getError(e),i.instant("jdbc.not.delete.sql.msg"))}))}))}}function o(e,t,n,r,o,i,a,s,u,c,l){e.name=t.search().name||"",e.getNamespaces=function(){m(!0,l.instant("common.refreshing.namespaces"),l.instant("common.extra.message")),s.getRepositoryNamespaces().success((function(t){const n={};t.results.bindings.forEach((function(e){n[e.prefix.value]=e.namespace.value})),e.namespaces=n})).error((function(t){e.repositoryError=getError(t)})).finally((function(){m(!1),b()}))},e.setLoader=m,e.addKnownPrefixes=h,e.page=1,e.noPadding={paddingRight:0,paddingLeft:0},e.sqlTypes=["string","iri","boolean","byte","short","int","long","float","double","decimal","date","time","timestamp","Get suggestion..."],e.currentTabConfig={},e.orientationViewMode=!0,e.currentQuery={},e.$watch((function(){return r.getActiveRepository()}),(function(e,n){e!==n&&t.path("jdbc")}));let d=null;e.goBack=function(){d=i((function(){o.history.back()}),1e3)};const g=e.$on("$locationChangeStart",(function(t){!function(t){e.currentQuery.isPristine||(confirm(l.instant("jdbc.warning.unsaved.changes"))?(window.removeEventListener("beforeunload",f),g(),i.cancel(d)):t.preventDefault())}(t)}));function f(t){e.currentQuery.isPristine||(t.returnValue=!0)}window.addEventListener("beforeunload",f),e.$on("$destroy",(function(e){window.removeEventListener("beforeunload",f),g(),i.cancel(d)}));const p={id:"1",name:"",query:"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n\n# Selects two variables to use as columns\nSELECT ?id ?label {\n ?id rdfs:label ?label\n # The following placeholder must be present in the query\n #!filter\n}",inference:!0,sameAs:!0,isNewConfiguration:!0,isPristine:!0};var y;function m(t,n,r){const o=angular.element(document.getElementById("yasr-inner"));e.queryIsRunning=t,t?(e.queryStartTime=Date.now(),e.countTimeouted=!1,e.progressMessage=n,e.extraMessage=r,o.addClass("hide")):(e.progressMessage="",e.extraMessage="",o.removeClass("hide")),null===e.$$phase&&e.$apply()}function b(){e.tabsData=[e.currentQuery];const t=e.currentQuery;e.currentQuery.query?window.editor.setValue(e.currentQuery.query):window.editor.setValue(" "),i((function(){e.currentTabConfig={},e.currentTabConfig.queryType=t.queryType,e.currentTabConfig.resultsCount=t.resultsCount,e.currentTabConfig.offset=t.offset,e.currentTabConfig.allResultsCount=t.allResultsCount,e.currentTabConfig.page=t.page,e.currentTabConfig.pageSize=t.pageSize,e.currentTabConfig.timeFinished=t.timeFinished,e.currentTabConfig.timeTook=t.timeTook,e.currentTabConfig.sizeDelta=t.sizeDelta,e.$apply()}),0),e.canWriteActiveRepo()||(window.editor.options.readOnly=!0)}function w(){e.tabsData=e.tabs=[p],e.currentQuery=_.cloneDeep(p),C(),window.editor&&(e.setQuery(e.currentQuery.query),b()),e.$watch((function(){return e.currentQuery.query}),(function(t,n){t!==n&&e.setDirty()}))}function h(){u.addKnownPrefixes(JSON.stringify(window.editor.getValue())).success((function(e){angular.isDefined(window.editor)&&angular.isDefined(e)&&e!==window.editor.getValue()&&window.editor.setValue(e)})).error((function(e){const t=getError(e);return n.error(t,l.instant("common.add.known.prefixes.error")),!0}))}function T(){E()&&a.getColumnNames(e.currentQuery.query).success((function(t){a.getColumnsTypeSuggestion(e.currentQuery.query,t).success((function(n){const r=[];_.forEach(t,(function(e){r.push({column_name:e,column_type:n[e].column_type,nullable:!0,sparql_type:n[e].sparql_type})})),e.currentQuery.columns=r,e.setDirty()})).error((function(e){n.error(getError(e),l.instant("jdbc.not.suggest.column.types"))}))})).error((function(e){n.error(getError(e),l.instant("jdbc.not.suggest.column.names"))}))}function C(){2===e.page?e.viewMode="editor":e.viewMode="none"}function v(e,t,n,r,o){let i=n[r].value;i=i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");return"<div class = 'literal-cell'>"+("<p class='nonUri' style='border: none; background-color: transparent; padding: 0; margin: 0'>"+i+"</p>")+"</div>"}function q(){return window.editor&&"SELECT"===window.editor.getQueryType()}function S(){return E()&&function(){if(!e.currentQuery.columns||!e.currentQuery.columns.length)return n.error(l.instant("jdbc.warning.one.column.msg"),l.instant("jdbc.invalid.columns")),!1;if(e.containsUnknownColumns())return n.error(l.instant("jdbc.warning.all.column.msg"),l.instant("jdbc.invalid.columns")),!1;return!0}()}function E(){return!!q()||(n.error(l.instant("jdbc.warning.invalid.query"),l.instant("jdbc.invalid.query)")),!1)}e.resetCurrentTabConfig=function(){e.currentTabConfig={pageSize:100,page:1,allResultsCount:0,resultsCount:0,queryType:""}},e.saveTab=function(){},e.setQuery=function(e){window.editor.setValue(e||" ")},e.name?(y=e.name,a.getJdbcConfiguration(y).success((function(e){p.query=e.query,p.name=e.name,p.columns=e.columns,p.isNewConfiguration=!e.name,w()})).error((function(e){const t=getError(e);n.error(t,l.instant("jdbc.not.get.sql.msg2"))}))):w(),e.goToPage=function(t){e.page=t;const n=e.currentQuery.columns;2!==t||n&&0!==n.length||!q()||e.getColumnsSuggestions(),C()},e.save=function(){S()&&(e.currentQuery.name?e.currentQuery.isNewConfiguration?a.createNewJdbcConfiguration(e.currentQuery).success((function(){e.currentQuery.isPristine=!0,e.currentQuery.isNewConfiguration=!1,n.success(l.instant("jdbc.saved.configuration")),e.goBack()})).error((function(e){const t=getError(e);n.error(t,l.instant("jdbc.not.saved.configuration"))})):a.updateJdbcConfiguration(e.currentQuery).success((function(){e.currentQuery.isPristine=!0,e.currentQuery.isNewConfiguration=!1,n.success(l.instant("jdbc.configuration.updated")),e.goBack()})).error((function(e){const t=getError(e);n.error(t,l.instant("jdbc.not.saved.configuration"))})):n.error(l.instant("jdbc.required.configuration.name")))},e.hasPrecision=function(e){return"iri"===e||"string"===e||"decimal"===e},e.containsColumnsWithPrecision=function(t){return t&&t.some(t=>e.hasPrecision(t.column_type))},e.hasScale=function(e){return"decimal"===e},e.containsColumnsWithScale=function(t){return t&&t.some(t=>e.hasScale(t.column_type))},e.isLiteral=function(e){return"iri"!==e&&"unknown"!==e},e.containsNonLiteralColumnsOnly=function(t){return t&&t.every(t=>!e.isLiteral(t.column_type))},e.containsUnknownColumns=function(){return e.currentQuery.columns&&e.currentQuery.columns.find(e=>"unknown"===e.column_type)},$("textarea").on("paste",(function(){i((function(){h()}),0)})),e.selectColumnType=function(t,r){const o=_.find(e.currentQuery.columns,(function(e){return e.column_name===t}));"Get suggestion..."===o.column_type&&a.getColumnsTypeSuggestion(e.currentQuery.query,[t]).success((function(e){o.column_type=e[t].column_type,o.column_type===r?n.info(l.instant("jdbc.same.suggested.sql.type",{type:o.column_type}),l.instant("jdbc.suggest.sql.type"),{allowHtml:!0}):n.success(l.instant("jdbc.suggested.sql.type",{type:o.column_type}),l.instant("jdbc.suggest.sql.type"),{allowHtml:!0}),o.sparql_type=e[t].sparql_type})).error((function(e){n.error(getError(e),l.instant("jdbc.not.suggest.column.type"))})),e.setDirty()},e.getColumnsSuggestions=function(){e.currentQuery.columns&&e.currentQuery.columns.length>0?c.openSimpleModal({title:l.instant("common.warning"),message:l.instant("jdbc.warning.column.type.msg"),warning:!0}).result.then((function(){T()})):T()},e.deleteColumn=function(t,n){c.openSimpleModal({title:l.instant("common.warning"),message:l.instant("jdbc.warning.delete.column.msg",{columnName:t}),warning:!0}).result.then((function(){e.currentQuery.columns.splice(n,1),e.setDirty()}))},e.getPreview=function(){if(S()&&(e.executedQueryTab=e.currentQuery,!e.queryIsRunning)){$.ajaxSetup().headers=$.ajaxSetup().headers||{};const t=r.getActiveRepositoryObject();$.ajaxSetup().headers["X-GraphDB-Repository"]=t?t.id:void 0,$.ajaxSetup().headers["X-GraphDB-Repository-Location"]=t?t.location:void 0,e.currentQuery.outputType="table",e.resetCurrentTabConfig(),m(!0,l.instant("jdbc.preview.first.rows",{name:e.name}),l.instant("common.extra.message"));const o=function(t,r,o){!function(t,r,o){t.results&&t.results.bindings&&t.results.bindings.length?(window.yasr.plugins.table.options.getCellContent=v,e.currentTabConfig.queryType="SELECT",window.yasr.setResponse(r,o,null)):n.info(l.instant("jdbc.table.definition"),l.instant("jdbc.preview.sql"))}(t,o,r),m(!1)},i=function(e){m(!1),n.error(getError(e,0,100),l.instant("jdbc.not.show.preview"))};if(e.canWriteActiveRepo()){const t=JSON.stringify({name:e.currentQuery.name,query:e.currentQuery.query,columns:e.currentQuery.columns||[]});a.getNewSqlTablePreview(t).done(o).fail(i)}else a.getExistingSqlTablePreview(e.currentQuery.name).done(o).fail(i)}},e.setDirty=function(){e.currentQuery.isPristine=!1},e.getTypeLabel=function(e){switch(e){case"iri":return"VARCHAR: IRI";case"string":return"VARCHAR: String";default:return e.indexOf(" ")>0?e:e.toUpperCase()}}}angular.module("graphdb.framework.jdbc.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.monitoring.service","toastr"],["graphdb.framework.utils.notifications"]).controller("JdbcListCtrl",r).controller("JdbcCreateCtrl",o),r.$inject=["$scope","$repositories","JdbcRestService","toastr","ModalService","$translate"],o.$inject=["$scope","$location","toastr","$repositories","$window","$timeout","JdbcRestService","RDF4JRepositoriesRestService","SparqlRestService","ModalService","$translate"]},125:function(e,t){angular.module("graphdb.framework.rest.jdbc.service",[]).factory("JdbcRestService",n),n.$inject=["$http","$repositories","$translate"];function n(e,t){return{getJdbcConfigurations:function(){return e.get("rest/sql-views/tables")},getJdbcConfiguration:function(t){return e.get("rest/sql-views/tables/"+t)},createNewJdbcConfiguration:function(e){return n("POST","",e)},updateJdbcConfiguration:function(e){return n("PUT",e.name,e)},deleteJdbcConfiguration:function(t){return e.delete("rest/sql-views/tables/"+t)},getColumnNames:function(t){return e.post("rest/sql-views/columns",t,{headers:{Accept:"application/json","Content-Type":"text/plain"}})},getColumnsTypeSuggestion:function(n,r){if(!Array.isArray(r))throw new Error(t.instant("jdbc.column.names.constraint"));return e({method:"POST",url:"rest/sql-views/types",data:{query:n,column_names:r}})},getExistingSqlTablePreview:function(e,t){return $.ajax({method:"GET",url:"rest/sql-views/preview/"+e,params:{limit:t}})},getNewSqlTablePreview:function(e,t){return $.ajax({method:"POST",url:"rest/sql-views/preview",contentType:"application/json; charset=utf-8",dataType:"json",data:e,params:{limit:t},headers:{Accept:"application/sparql-results+json"}})}};function n(t,n,r){return e({method:t,url:"rest/sql-views/tables/"+n,noCancelOnRouteChange:!0,data:{name:r.name,query:r.query,columns:r.columns||[]}})}}},179:function(e,t,n){"use strict";n.r(t);n(7),n(23),n(79),n(22),n(124),n(125),n(66),n(61),n(71);angular.module("graphdb.framework.jdbc",["toastr","ui.bootstrap","graphdb.framework.jdbc.controllers","graphdb.framework.core.services.repositories","graphdb.framework.core.directives","graphdb.framework.rest.jdbc.service","graphdb.framework.core.directives.queryeditor.controllers","graphdb.framework.core.directives.queryeditor.sparqltab","graphdb.framework.core.directives.queryeditor.queryeditor"])},313:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},314:function(e,t){(function(t){e.exports=t}).call(this,{})},57:function(e,t){function n(e,t){return{showToastMessageWithDelay:function(n){return new Promise(r=>{e.success(t.instant(n)),setTimeout(r,200)})}}}angular.module("graphdb.framework.utils.notifications",[]).factory("Notifications",n),n.$inject=["toastr","$translate"]},61:function(e,t,n){"use strict";n.r(t);n(10),n(27);var r=n(0);function o(e,t,n,o,i,a,s,u,c,l,d,g,f,p,y){const m={id:"1",name:"",query:"select * where { \n\t?s ?p ?o .\n} limit 100 \n",inference:!0,sameAs:!0};let b,w;function h(t){!function(){if(o.isActiveRepoOntopType())return;const t=document.getElementById("sameAs");!t||e.currentQuery.inference||t.disabled?e.currentQuery.inference&&t.disabled&&(t.removeAttribute("disabled"),e.currentQuery.sameAs=b.appSettings.DEFAULT_SAMEAS):(t.disabled=!0,e.currentQuery.sameAs=!1)}(),e.tabs.forEach((function(n,r){n.id===t.id&&(e.tabs[r].query=t.query,o.isActiveRepoOntopType()||(e.tabs[r].inference=t.inference,e.tabs[r].sameAs=t.sameAs))})),f.set(p.TABS_STATE,e.tabs)}function T(t,n,r,o){const i=angular.element(document.getElementById("yasr-inner"));e.queryIsRunning=t,t?(e.queryStartTime=Date.now(),e.countTimeouted=!1,e.progressMessage=n,e.extraMessage=r,e.noLoaderTimer=o,i.addClass("hide")):(e.progressMessage="",e.extraMessage="",e.noLoaderTimer=!1,e.currentTrackAlias=null,e.abortRequested=!1,i.removeClass("hide")),null===e.$$phase&&e.$apply()}function C(n){function r(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0}if(e.orientationViewMode){if("yasr"===e.viewMode){let e=r()-document.querySelector(".CodeMirror-wrap").getBoundingClientRect().top;e-=40,document.querySelector(".CodeMirror-wrap").style.height=e+"px"}else e.noPadding={},document.querySelector(".CodeMirror-wrap").style.height="";document.getElementById("yasr").style.minHeight=""}else if(e.noPadding={paddingRight:15,paddingLeft:0},window.editor&&document.querySelector(".CodeMirror-wrap")){let e=r()-document.querySelector(".CodeMirror-wrap").getBoundingClientRect().top;e-=40,document.querySelector(".CodeMirror-wrap").style.height=e+"px",document.getElementById("yasr").style.minHeight=e+"px"}else{let r;r=t(n?function(){e.fixSizesOnHorizontalViewModeSwitch(n)}:e.fixSizesOnHorizontalViewModeSwitch,100),e.$on("$destroy",(function(){t.cancel(r)}))}window.yasr&&window.yasr.container&&t((function(){window.yasr.container.resize()}),100)}function v(){C(!0)}function q(t,n){n.newRepo&&(e.tabsData=f.get(p.TABS_STATE),e.tabsData.forEach((function(e){e.yasrData=void 0,e.queryType=void 0,e.resultsCount=0,e.allResultsCount=0,e.sizeDelta=void 0})),f.set(p.TABS_STATE,e.tabsData),e.tabs=e.tabsData,e.currentQuery={},e.errorMessage=null,e.repositoryError=null)}function S(e){t((function(){$('a[data-id = "'+e+'"]').tab("show")}),0)}function E(r,i){if(e.executedQueryTab=e.currentQuery,i){if("SELECT"!==window.editor.getQueryType()&&"CONSTRUCT"!==window.editor.getQueryType()&&"DESCRIBE"!==window.editor.getQueryType())return void n.warning(y.instant("query.editor.warning.msg"));if(o.isActiveRepoOntopType())return void n.warning(y.instant("query.editor.virtual.repo.warning.msg"))}if(e.explainRequested=i,!e.queryIsRunning){if(r?e.currentTabConfig.resultsCount=0:e.resetCurrentTabConfig(),e.lastRunQueryMode=window.editor.getQueryMode(),"update"===e.lastRunQueryMode&&o.isActiveRepoOntopType())return void n.warning(y.instant("query.editor.virtual.repo.update.warning.msg"));if(T(!0,"update"===e.lastRunQueryMode?y.instant("query.editor.executing.update"):y.instant("query.editor.evaluating.query")),"none"!==e.viewMode){e.viewMode="none",e.orientationViewMode&&e.fixSizesOnHorizontalViewModeSwitch();const n=t(window.editor.query,500);e.$on("$destroy",(function(){t.cancel(n)}))}else window.editor.query()}}function Q(t){let n=void 0;return e.tabsData.forEach((function(e){if(e.name===t.name&&e.query===t.body)return n=e.id,e})),n}function A(t){return function(n,r,o){e.savedQuery={name:n,query:r||window.editor.getValue(),shared:o},$(t).modal("show")}}function M(t){for(let n=0;n<e.tabsData.length;n++){if(e.tabsData[n].id===t)return n}}e.getPrincipal=function(){return l.getPrincipal().then(t=>{b=t,function(e,t){m.inference=t.appSettings.DEFAULT_INFERENCE,m.sameAs=t.appSettings.DEFAULT_SAMEAS,e.skipCountQuery=!t.appSettings.EXECUTE_COUNT,e.ignoreSharedQueries=t.appSettings.IGNORE_SHARED_QUERIES,e.tabsData=e.tabs=f.get(p.TABS_STATE)||[m],e.$watchCollection("[currentQuery.inference, currentQuery.sameAs]",(function(e,t,n){h(n.currentQuery)})),e.$on("repositoryIsSet",q)}(e,b)})},e.getPrincipal(),this.hint=document.createElement("span"),this.hint.innerHTML=y.instant("query.editor.autocomplete.hint"),this.hint.style.fontSize="12px",this.hint.style.color="gray",this.hint.style.backgroundColor="white",this.hint.style.position="absolute",this.hint.style.zIndex="3",this.hint.style.paddingLeft="12px",e.$watch((function(){return angular.element(".CodeMirror-hints").length}),e=>{if(e){const e=angular.element(".CodeMirror-hints")[0].getBoundingClientRect();document.body.appendChild(this.hint),this.hint.style.top=e.top-20+"px",this.hint.style.left=e.right-this.hint.offsetWidth-12+"px"}else this.hint&&this.hint.parentNode&&this.hint.parentNode.removeChild(this.hint)}),e.resetCurrentTabConfig=function(){e.currentTabConfig={pageSize:1e3,page:1,allResultsCount:0,resultsCount:0}},e.queryExists=!1,e.resetCurrentTabConfig(),e.saveTab=function(t){const n=M(t);if(void 0===n)return{};const r=e.tabsData[n];return e.saveQueryToLocal(r),r},e.loadTab=function(n){e.tabsData=f.get(p.TABS_STATE)||[m];const r=M(n),i=e.tabsData[r];i.yasrData&&T(!0,y.instant("query.editor.render.results.msg"),null,!0);t((function(){""===e.currentQuery.query&&(e.currentQuery.query=" "),t((function(){window.editor.setValue(e.currentQuery.query),e.yasr.updateDownloadDropdown(),e.$broadcast("tabLoaded",e.currentQuery.id),e.yasr.options.output=i.outputType,i.yasrData&&(i.yasrData.customError?(e.yasr.results={getException:function(){return i.yasrData.customError}},T(!1)):t((function(){e.setYasrResponse(i.yasrData,i.textStatus,i.jqXhrOrErrorString),T(!1),$(".yasr_btnGroup li:nth-child(2)").hasClass("active")&&t((function(){$(".yasr_btnGroup li:nth-child(2) a").get(0).click()}),0)}),0))}),0)}),0),f.set(p.TABS_STATE_CURRENT_ID,n),e.currentQuery=i,t((function(){e.currentTabConfig={},e.currentTabConfig.queryType=i.queryType,e.currentTabConfig.resultsCount=i.resultsCount,e.currentTabConfig.offset=i.offset,e.currentTabConfig.allResultsCount=i.allResultsCount,e.currentTabConfig.allResultsCountExact=i.allResultsCountExact,e.currentTabConfig.page=i.page,e.currentTabConfig.pageSize=i.pageSize,e.currentTabConfig.timeFinished=i.timeFinished,e.currentTabConfig.timeTook=i.timeTook,e.currentTabConfig.sizeDelta=i.sizeDelta,e.currentTabConfig.customUpdateMessage=i.customUpdateMessage,e.currentTabConfig.errorMessage=i.errorMessage,e.currentTabConfig.warningMessage=i.warningMessage,e.$apply()}),0),$("#yasr").css("padding","0"),w||(w=setInterval(x,200));!function(){const t=o.isActiveRepoOntopType(),n=o.isActiveRepoFedXType();(function(e){const t=document.getElementById("sameAs"),n=document.getElementById("inference");t&&(t.disabled=!!e);n&&(n.disabled=!!e)})(t),e.nocount=!(!t&&!n)||!b.appSettings.EXECUTE_COUNT,t&&(e.currentQuery.inference=!0,e.currentQuery.sameAs=!0)}()},e.addNewTab=function(n,r,o){if(!j(!0))return;let i;i=r||o?{id:"1",name:r,query:o,inference:b.appSettings.DEFAULT_INFERENCE,sameAs:b.appSettings.DEFAULT_SAMEAS}:{id:"1",name:"",query:"select * where { \n\t?s ?p ?o .\n} limit 100 \n",inference:b.appSettings.DEFAULT_INFERENCE,sameAs:b.appSettings.DEFAULT_SAMEAS};D++;const a=""+D;e.tabsData=e.tabs;const s=i;s.id=a,e.tabsData.push(s),f.set(p.TABS_STATE_MAXID,D),f.set(p.TABS_STATE,e.tabsData);const u=Array.prototype.slice.call(arguments,1);t((function(){e.$apply(),S(a),n&&n.apply(this,u)}),0),e.tabs=e.tabsData},e.isTabChangeOk=j,e.runQuery=E,e.abortCurrentQuery=function(){g.deleteQuery(e.currentTrackAlias,o.getActiveRepository()).success((function(){e.abortRequested=!0}))},e.editQuery=function(t){i.open({templateUrl:"js/angular/core/directives/queryeditor/templates/query-sample.html",controller:"QuerySampleModalCtrl",resolve:{data:function(){return{title:y.instant("query.editor.edit.saved.query",{name:t.name}),query:t,edit:!0,okButtonText:y.instant("common.save.btn")}}}}).result.then((function(r){const o={name:r.name,body:r.body,shared:r.shared};t.name!==r.name?s.addNewSavedQuery(o).success((function(){e.deleteQueryHttp(t.name,!0)})).error((function(e){const t=getError(e);n.error(t,y.instant("query.editor.edit.saved.query.error"))})):s.editSavedQuery(o).success((function(){$("#editQueryContainer").modal("hide"),e.toggleSampleQueries(),n.success(y.instant("query.editor.edit.saved.query.success.msg",{name:t.name}))})).error((function(e){const t=getError(e);n.error(t,y.instant("query.editor.edit.saved.query.error"))}))}))},e.getNamespaces=function(){T(!0,y.instant("common.refreshing.namespaces"),y.instant("common.extra.message")),e.namespacesLoading=!0,d.getRepositoryNamespaces().success((function(t){const n={};t.results.bindings.forEach((function(e){n[e.prefix.value]=e.namespace.value})),e.namespaces=n})).error((function(t){e.repositoryError=getError(t)})).finally((function(){T(!1),e.namespacesLoading=!1}))},e.changePagination=function(){E(!0,e.explainRequested)},e.toggleSampleQueries=function(){s.getSavedQueries().success((function(t){e.sampleQueries=t.filter(t=>!e.ignoreSharedQueries||t.owner!==e.principal.username)})).error((function(e){const t=getError(e);n.error(t,y.instant("query.editor.get.saved.queries.error"))}))},e.addKnownPrefixes=function(){s.addKnownPrefixes(JSON.stringify(window.editor.getValue())).success((function(e){angular.isDefined(window.editor)&&angular.isDefined(e)&&e!==window.editor.getValue()&&window.editor.setValue(e)})).error((function(e){const t=getError(e);return n.error(t,y.instant("common.add.known.prefixes.error")),!0}))},e.getExistingTabId=Q,e.querySelected=function(t){const n=Q(t);e.toggleSampleQueries(),e.isTabChangeOk(!1)&&(e.highlightNextTabChange=!0,angular.isDefined(n)?S(n):e.addNewTab(null,t.name,t.body))},e.deleteQuery=function(t){a.openSimpleModal({title:y.instant("common.confirm"),message:y.instant("query.editor.delete.saved.query.warning.msg",{savedQueryName:t}),warning:!0}).result.then((function(){e.deleteQueryHttp(t)}))},e.deleteQueryHttp=function(t,r){s.deleteSavedQuery(t).success((function(){e.toggleSampleQueries(),r||n.success(y.instant("query.editor.delete.saved.query.success.msg",{savedQueryName:t}))})).error((function(e){const t=getError(e);n.error(t,y.instant("query.editor.delete.saved.query.error"))}))},e.saveQuery=function(t,n){i.open({templateUrl:"js/angular/core/directives/queryeditor/templates/query-sample.html",controller:"QuerySampleModalCtrl",resolve:{data:function(){return{title:y.instant("query.editor.create.saved.query.msg"),query:{name:t.name,body:t.query,shared:t.shared},edit:!1,okButtonText:y.instant("common.create.btn"),queryExists:n,existingQueryErrMsg:Object(r.decodeHTML)(y.instant("query.sample.existing.query.warning",{name:t.name}))}}}}).result.then((function(t){e.saveQueryHttp(t)}),(function(){}))},e.saveQueryHttp=function(t){s.addNewSavedQuery(t).success((function(){n.success(y.instant("query.editor.save.saved.query.success.msg",{name:t.name}))})).error((function(r,o){const i=getError(r);n.error(i,y.instant("query.editor.create.saved.query.error"));let a=!1;409===o&&(a=!0),t.query=t.body,e.saveQuery(t,a)}))},e.saveQueryToLocal=h,e.setLoader=T,e.getLoaderMessage=function(){const t=(Date.now()-e.queryStartTime)/1e3;let n="",r="";e.noLoaderTimer||(n=e.getHumanReadableSeconds(t));r=e.progressMessage?y.instant("query.editor.progress.msg",{progressMessage:e.progressMessage,timeHuman:n}):y.instant("common.running.operation",{timeHuman:n});e.extraMessage&&t>10&&(r+=y.instant("query.editor.extra.msg",{extraMessage:e.extraMessage}));return r},e.fixSizesOnHorizontalViewModeSwitch=C,e.changeViewMode=function(){e.viewMode="none",e.orientationViewMode=!e.orientationViewMode,f.set(p.VIEW_MODE,e.orientationViewMode),C()},e.showHideEditor=v,e.focusQueryEditor=function(){angular.element(document).find(".editable-input").is(":focus")||angular.element(document).find(".CodeMirror textarea:first-child").focus()},e.orientationViewMode=!f.get(p.VIEW_MODE)||"true"===f.get(p.VIEW_MODE),e.viewMode="none",e.getActiveRepository=function(){return o.getActiveRepository()},e.getActiveRepositoryNoError=function(){if(!e.repositoryError)return o.getActiveRepository()},e.orientationViewMode||v(),window.onbeforeunload=function(){e.currentQuery&&e.saveTab(e.currentQuery.id),f.set(p.TABS_STATE,e.tabs)},e.$on("$destroy",(function(){e.currentQuery&&e.saveTab(e.currentQuery.id),f.set(p.TABS_STATE,e.tabs),clearInterval(w)})),e.$on("$destroy",(function(){clearInterval(w),window.editor=null,window.yasr=null}));let D=f.get(p.TABS_STATE_MAXID)||1;function R(e){return $(e).attr("data-id")}function x(){if(e.currentTabConfig.resultsCount>=0){const e=$(".saveAsDropDown");e.length>0&&!window.editor.queryValid?yasr.header.find(".saveAsDropDown").remove():0===e.length&&window.editor.queryValid&&yasr.updateDownloadDropdown()}}function j(t){return!(e.queryIsRunning&&!e.namespacesLoading)||(t?n.info(y.instant("query.editor.new.tab.running.query.warning.msg")):n.info(y.instant("query.editor.tab.switching.running.query.warning.msg")),!1)}e.highlightNextTabChange=!1,e.$on("tabAction",(function(n,r){r.relatedTarget&&(t.cancel(r.relatedTarget.timer),$(r.relatedTarget).css("color",""),e.saveTab(R(r.relatedTarget))),e.loadTab(R(r.target));const o=["var(--primary-color)","","var(--primary-color)"],i=[400,400,400];if(e.highlightNextTabChange){e.highlightNextTabChange=!1;let n=0;$(r.target).css("color",o[n]);const a=function(){n++,n<o.length?($(r.target).css("color",o[n]),r.target.timer=t(a,i[n])):$(r.target).css("color","")};t(a,i[n])}})),e.$on("deleteAllexeptSelected",(function(t,n){e.tabsData=n,e.tabs=n})),e.currentQuery={},e.savedQuery={},e.sampleQueries={},e.editQueryModal=A("#editQueryContainer"),e.deleteQueryModal=A("#confirmDeleteContainer"),e.saveQueryModal=A("#saveQueryContainer"),e.getResultsDescription=function(){let t;if(0===e.currentTabConfig.resultsCount)t="No results.";else{const n=(e.currentTabConfig.page-1)*e.currentTabConfig.pageSize+Math.min(e.currentTabConfig.resultsCount,e.currentTabConfig.pageSize);t=y.instant("query.editor.showing.results.from.msg")+u("currency")(e.currentTabConfig.offset,"",0)+y.instant("query.editor.to")+u("currency")(n,"",0),e.currentTabConfig.allResultsCount>0&&(t+=y.instant(e.currentTabConfig.allResultsCountExact?"query.editor.of":"query.editor.of.at.least"),t+=u("currency")(e.currentTabConfig.allResultsCount,"",0)),t+="."}return t},e.getUpdateDescription=function(){return e.currentTabConfig.customUpdateMessage?y.instant(e.currentTabConfig.customUpdateMessage.msg,{name:e.currentTabConfig.customUpdateMessage.name}):void 0===e.currentTabConfig.sizeDelta?"":e.currentTabConfig.sizeDelta<0?y.instant("yasr.removed.statements.result.msg",{sizeDelta:Math.abs(e.currentTabConfig.sizeDelta)}):e.currentTabConfig.sizeDelta>0?y.instant("yasr.added.statements.result.msg",{sizeDelta:e.currentTabConfig.sizeDelta}):y.instant("yasr.statements.no.change.msg")},e.getStaleWarningMessage=function(){const t=60*Math.round((Date.now()-e.currentTabConfig.timeFinished)/6e4);if(t>=3600)return y.instant("yasr.stale.result.msg",{secondsAgo:e.getHumanReadableSeconds(t)})};const k=function(){};angular.element(c).bind("resize",k),e.$on("$destroy",(function(){angular.element(c).unbind("resize",k)}))}function i(e,t,n,r){n.queryExists&&(e.queryExists=!0),e.query=_.cloneDeep(n.query),e.title=n.title,e.edit=n.edit,e.okButtonText=n.okButtonText,e.existingQueryErrMsg=r.trustAsHtml(n.existingQueryErrMsg),e.ok=function(){e.form.$valid&&t.close(e.query)},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.core.directives.queryeditor.controllers",["graphdb.framework.utils.localstorageadapter","graphdb.framework.rest.sparql.service"]).controller("QueryEditorCtrl",o).controller("QuerySampleModalCtrl",i),o.$inject=["$scope","$timeout","toastr","$repositories","$uibModal","ModalService","SparqlRestService","$filter","$window","$jwtAuth","RDF4JRepositoriesRestService","MonitoringRestService","LocalStorageAdapter","LSKeys","$translate"],i.$inject=["$scope","$uibModalInstance","data","$sce"]},66:function(e,t,n){"use strict";n.r(t);n(10);function r(e,t,n,r){return{restrict:"AE",template:'<a class="nav-link" role="tab" data-toggle="tab" blur="submit" editable-text="tab.name" e-form="editCurrentlySelectedOnly" ng-click="selectThisTab($event)" ng-dblclick="editCurrentTab()" ><span ng-class="{\'text-muted\': !tab.name}">{{ tab.name || (\'sparql.tab.directive.unnamed.tab.title\' | translate)}}</span><button type="button" ng-click="deleteTab($event)" class="btn btn-link btn-sm secondary delete-sparql-tab-btn" title="Delete tab"><i class="icon-close"></i></button></a>',replace:!0,controller:["$scope","$element","$rootScope","ModalService","toastr","$translate",function(e,r,o,i,a,s){function u(e){return $(e).attr("data-id")}function c(e){$('a[data-id = "'+e+'"]').tab("show")}e.state={},$(r).on("shown.bs.tab",(function(e){o.$broadcast("tabAction",e)})),e.deleteTab=function(l){if(l.preventDefault(),l.stopPropagation(),e.tabs.length<2)return void a.warning(s.instant("sparql.tab.directive.close.last.warning"));l.shiftKey?(e.state.selectedTabId=u(r),i.openSimpleModal({title:s.instant("common.confirm"),message:s.instant("sparql.tab.directive.delete.all.tabs.warning"),warning:!0}).result.then((function(){var r;r=e.state.selectedTabId,e.tabs=e.tabs.filter((function(e){if(e.id===r)return e})),c(e.tabs[0].id),t.set(n.TABS_STATE,e.tabs),o.$broadcast("deleteAllexeptSelected",e.tabs)}))):(e.state.idForDelete=u(r),i.openSimpleModal({title:s.instant("common.confirm"),message:s.instant("sparql.tab.directive.close.tab.warning"),warning:!0}).result.then((function(){!function(t){if(angular.isUndefined(t))throw"Delete by id was called with undefined id";const n=function(t){for(let n=0;n<e.tabs.length;n++){if(e.tabs[n].id===t)return n}}(t);e.tabs.splice(n,1),t===e.currentQuery.id&&e.tabs.length>0&&c(n>0?e.tabs[n-1].id:e.tabs[0].id)}(e.state.idForDelete)})));angular.element(document).find(".CodeMirror textarea:first-child").focus()},e.editCurrentTab=function(){if(u(r)!==e.currentQuery.id)return;e.editCurrentlySelectedOnly.$show();const t=$(".editable-buttons");t.children(".btn.btn-primary").addClass("btn-sm"),t.children(".btn.btn-default").addClass("btn-sm"),$(".editable-controls .editable-input").addClass("form-control-sm").on("change",(function(t){e.currentQuery.name=t.currentTarget.$$currentValue})),$(".editable-buttons .glyphicon.glyphicon-ok").removeClass("glyphicon glyphicon-ok").addClass("fa fa-check"),$(".editable-buttons .glyphicon.glyphicon-remove").removeClass("glyphicon glyphicon-remove").addClass("fa fa-close")},e.selectThisTab=function(t){t.preventDefault(),t.stopPropagation(),e.isTabChangeOk(!1)&&$(r).tab("show")}}]}}angular.module("graphdb.framework.core.directives.queryeditor.sparqltab",["graphdb.framework.core","graphdb.framework.utils.localstorageadapter"]).directive("sparqlTab",r),r.$inject=["$rootScope","LocalStorageAdapter","LSKeys","ModalService"]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[150],{135:function(e,t){angular.module("graphdb.framework.rest.sparql-templates.service",[]).factory("SparqlTemplatesRestService",r),r.$inject=["$http"];function r(e){return{getSparqlTemplates:function(t){return e.get(`rest/repositories/${t}/sparql-templates`)},getSparqlTemplate:function(t,r){return e.get(`rest/repositories/${r}/sparql-templates/configuration`,{params:{templateID:t}})},createSparqlTemplate:function(t,r){return e.post(`rest/repositories/${r}/sparql-templates`,{templateID:t.templateID,query:t.query})},updateSparqlTemplate:function(t,r){return e.put(`rest/repositories/${r}/sparql-templates`,t.query,{params:{templateID:t.templateID},headers:{"Content-Type":"text/plain"}})},deleteSparqlTemplate:function(t,r){return e.delete(`rest/repositories/${r}/sparql-templates`,{params:{templateID:t}})}}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[151],{202:function(e,t){PluginRegistry.add("route",[{url:"/users",module:"graphdb.framework.security",path:"security/app",chunk:"security",controller:"UsersCtrl",templateUrl:"js/angular/security/templates/users.html",title:"menu.users.and.access.label",helpInfo:"view.users.access.helpInfo"},{url:"/user/create",module:"graphdb.framework.security",path:"security/app",chunk:"security",controller:"AddUserCtrl",templateUrl:"js/angular/security/templates/user.html",title:"Create new user"},{url:"/login",module:"graphdb.framework.security",path:"security/app",chunk:"security",controller:"LoginCtrl",templateUrl:"pages/login.html",title:"view.login.title"},{url:"/user/:userId",module:"graphdb.framework.security",path:"security/app",chunk:"security",controller:"EditUserCtrl",templateUrl:"js/angular/security/templates/user.html",title:"Edit user"},{url:"/settings",module:"graphdb.framework.security",path:"security/app",chunk:"security",controller:"ChangeUserPasswordSettingsCtrl",templateUrl:"js/angular/security/templates/user.html",title:"view.settings.title"},{url:"/accessdenied",templateUrl:"pages/accessdenied.html",title:"view.access.denied.title"},{url:"/rolesmappings",module:"graphdb.framework.security",path:"security/app",chunk:"security",controller:"RolesMappingController",templateUrl:"js/angular/security/templates/roles.html",title:"view.roles.mapping.title"},{url:"/ux-test1",templateUrl:"pages/ux-test1.html",controller:"uxTestCtrl",title:"UX Test"},{url:"/ux-test2",templateUrl:"pages/ux-test2.html",controller:"uxTestCtrl",title:"UX Test"}]),PluginRegistry.add("main.menu",{items:[{label:"Setup",labelKey:"menu.setup.label",href:"#",order:5,role:"IS_AUTHENTICATED_FULLY",icon:"icon-settings",guideSelector:"menu-setup"},{label:"Users and Access",labelKey:"menu.users.and.access.label",href:"users",order:2,parent:"Setup",role:"ROLE_ADMIN",children:[{href:"user/create",children:[]}],guideSelector:"sub-menu-user-and-access"},{label:"My Settings",labelKey:"menu.my.settings.label",href:"settings",order:6,parent:"Setup",role:"ROLE_USER",guideSelector:"sub-menu-my-settings"}]})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[152],{78:function(e,t,n){"use strict";n.r(t);n(7),n(24);function s(e,t,n,s,i){e.supportsStatistics=!0,e.settings={statistics:!1},e.getSettings=function(){e.loader=!0,s.getStatistics().then((function(t){e.settings.statistics="true"===t.data,e.supportsStatistics=!0}),(function(n){if(404===n.status)e.supportsStatistics=!1;else{const e=getError(n.data);t.error(e,i.instant("error.getting.settings"))}}))},e.getSettings(),e.setSettings=function(){e.loader=!0,s.toggleStatistics(e.settings.statistics).then((function(){n.close(),t.success(i.instant("saving.settings.success"))}),(function(e){const n=getError(e.data);t.error(n,i.instant("saving.settings.error"))}))},e.submitForm=function(){e.setSettings()},e.cancel=function(){n.dismiss("cancel")}}function i(e,t,n,s,i,c,r){e.loadingLicense=function(){return n.loadingLicense},n.checkLicenseStatus(),e.revertToFree=function(){c.openSimpleModal({title:r.instant("confirm.operation"),message:r.instant("revert.to.free.warning.msg"),warning:!0}).result.then((function(){t.unregisterLicense().success((function(){n.checkLicenseStatus()}))}))}}function c(e,t,n,s,i,c,r,o){e.$on("securityInit",(function(){r.isAdmin()||n.path("/license")})),e.sendLicenseToValidateAndActivate=l;const a=$(".license-textarea");function l(e){t.sendLicenseToValidate(e).success((function(n){"Invalid"!==n.licensee?(a.val(e),function(e,n){s.open({templateUrl:"js/angular/settings/modal/validate-license.html",controller:"ValidateLicenseModalCtrl",size:"lg",resolve:{license:function(){return e}}}).result.then((function(){!function(e){e||(e=a.val());if(e){const n=atob(e.replace(/\s/g,""));t.registerLicense(n).success((function(){c.history.back()})).error((function(){i.error(o.instant("license.register.error"))}))}else i.error(o.instant("no.license.code.error"))}(n)}))}(n,e)):(a.val(""),i.error(n.message))})).error((function(){i.error(o.instant("invalid.license"))}))}e.$watch("currentFile",(function(){if(e.currentFile){const n=e.currentFile;t.extractFromLicenseFile(n).success((function(e){l(e)})).error((function(){i.error(o.instant("could.not.upload.file.error"))}))}})),e.getBackToPreviousPage=function(){c.history.back()}}function r(e,t,n){e.ok=function(){t.close()},e.cancel=function(){t.dismiss("cancel")},e.license=n}function o(e){e.loader=!0,e.setLoader=function(t){e.loader=t}}angular.module("graphdb.framework.settings.controllers",["ngCookies","ui.bootstrap","graphdb.framework.core.services.jwtauth","toastr"]).controller("ActiveLocationSettingsCtrl",s).controller("ValidateLicenseModalCtrl",r).controller("LicenseCtrl",i).controller("RegisterLicenseCtrl",c).controller("LoaderSamplesCtrl",o),s.$inject=["$scope","toastr","$uibModalInstance","LicenseRestService","$translate"],i.$inject=["$scope","LicenseRestService","$licenseService","toastr","$rootScope","ModalService","$translate"],c.$inject=["$scope","LicenseRestService","$location","$uibModal","toastr","$window","$jwtAuth","$translate"],r.$inject=["$scope","$uibModalInstance","license"],o.$inject=["$scope"]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[153],{203:function(e,i){PluginRegistry.add("route",[{url:"/license/register",module:"graphdb.framework.settings",path:"settings/app",chunk:"settings",controller:"RegisterLicenseCtrl",templateUrl:"pages/registerLicenseInfo.html",title:"view.register.license.title",helpInfo:"view.register.license.helpInfo"},{url:"/license",module:"graphdb.framework.settings",path:"settings/app",chunk:"settings",controller:"LicenseCtrl",templateUrl:"pages/licenseInfo.html",title:"view.existing.license.title",helpInfo:"view.existing.license.helpInfo"}]),PluginRegistry.add("main.menu",{items:[{label:"License",labelKey:"menu.license.label",href:"license",order:100,role:"ROLE_ADMIN",parent:"Setup",guideSelector:"sub-menu-license"}]})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[154],{136:function(e,t,r){"use strict";r.r(t);var i=r(320),n=r.n(i),s=r(0),a=r(69);function c(e,t,r,i,c,o,l,u,p,d,y,h,m){const g="http://www.ontotext.com/graphdb/similarity/",f="http://www.ontotext.com/graphdb/similarity/psi/",S=f+"any";e.pluginName="similarity",e.pluginIsActive=!0,e.setPluginIsActive=function(t){e.pluginIsActive=t};const x=function(e){return'"'+e+'"'},v=function(e){return void 0===e||e.startsWith("<<")&&e.endsWith(">>")?e:"<"+e+">"};function b(){return!e.getActiveRepository()||e.isActiveRepoFedXType()||e.isActiveRepoOntopType()}let w;function I(){c.isLicenseValid()&&(e.getAutocompletePromise=p.checkAutocompleteStatus())}e.info=d,e.getActiveRepository=function(){return i.getActiveRepository()},b()||u.getSearchQueries().success((function(t){e.searchQueries=t})).error((function(e){const t=getError(e);r.error(t,h.instant("similarity.could.not.get.search.queries.error"))})),e.encodeURIComponent=function(e){return encodeURIComponent(e)},e.getSimilarityIndexes=function(){!b()&&e.pluginIsActive&&u.getIndexes().success((function(t){e.similarityIndexes=t})).error((function(e){const t=getError(e);r.error(t,h.instant("similarity.could.not.get.indexes.error"))}))},e.pullList=function(){e.getSimilarityIndexes();const r=t((function(){e.$broadcast("checkIsActive"),"false"!==$("#indexes-table").attr("aria-expanded")&&e.getSimilarityIndexes()}),5e3);e.$on("$destroy",(function(){t.cancel(r)}))},e.getActiveRepository()&&c.isLicenseValid()&&e.pullList(),e.$watch((function(){return i.getActiveRepository()}),(function(){!e.getActiveRepository()||e.isActiveRepoOntopType()||e.isActiveRepoFedXType()||(e.getNamespacesPromise=y.getNamespaces(e.getActiveRepository()).success((function(t){I(),e.usedPrefixes={},t.results.bindings.forEach((function(t){e.usedPrefixes[t.prefix.value]=t.namespace.value})),e.$on("$destroy",(function(){w&&w.destroy()})),w=n()(document.getElementById("yasr"),{getUsedPrefixes:e.usedPrefixes,persistency:!1,hideHeader:!0,pluginsOptions:a.YasrUtils.getYasrConfiguration()})})).error((function(e){r.error(getError(e),h.instant("get.namespaces.error.msg"))})))})),e.$on("autocompleteStatus",(function(){I()})),e.loading=!1,e.selected=void 0,e.searchType="searchTerm",e.resultType="termResult",e.$watch("searchType",(function(){e.empty=!0})),e.goToSimilarityIndex=function(t){"BUILT"!==t.status&&"OUTDATED"!==t.status&&"REBUILDING"!==t.status||(e.empty=!0,e.selected!==t&&(e.lastSearch=void 0,e.selected=t),"text"===t.type?e.searchType="searchTerm":"predication"===t.type&&(e.searchType="searchEntity"),"text"!==t.type&&"predication"!==t.type||$("#indexes-table").collapse("hide"))};const A=function(t){const r=angular.element(document.getElementById("yasr-inner")),i=angular.element(document.getElementById("results-loader"));t?(e.loading=!0,r.addClass("opacity-hide"),i.removeClass("opacity-hide")):(e.loading=!1,r.removeClass("opacity-hide"),i.addClass("opacity-hide"))};e.performSearch=function(t,n,s,a,c){A(!0);let o=n;e.lastSearch={},e.lastSearch.type=s,"searchEntityPredicate"===s&&(o=e.psiSubject,e.lastSearch.predicate=n),o="searchTerm"===s?x(o):v(o),e.lastSearch.termOrSubject=o;let l;l="searchAnalogical"===s?e.selected.analogicalQuery?e.selected.analogicalQuery:e.searchQueries.analogical:e.selected.searchQuery?e.selected.searchQuery:e.searchQueries[e.selected.type];const u={query:l,$index:v("http://www.ontotext.com/graphdb/similarity/instance/"+t),$query:o,$searchType:v(("text"===e.selected.type?g:f)+("searchEntityPredicate"===s?"searchEntity":s)),$resultType:v("text"===e.selected.type?g+a:f+"entityResult"),$parameters:x(c)};"searchEntityPredicate"===s&&(u.$psiPredicate=e.lastSearch.predicate?v(e.lastSearch.predicate):v(S)),"searchAnalogical"===s&&(e.searchSubject=n,u.$givenSubject=v(e.analogicalSubject),u.$givenObject=v(e.analogicalObject),u.$searchSubject=v(n)),m({method:"GET",url:"repositories/"+i.getActiveRepository(),params:u,headers:{Accept:"application/x-sparqlstar-results+json, application/sparql-results+json;q=0.9, */*;q=0.8"}}).then((function({data:e,textStatus:t,jqXhrOrErrorString:r}){A(!1),w.setResponse(e,t,r)})).catch((function(e){r.error(getError(e),h.instant("similarity.get.resource.error")),A(!1)}))},e.viewSearchQuery=function(){let t;t="searchAnalogical"===e.lastSearch.type?e.selected.analogicalQuery?e.selected.analogicalQuery:e.searchQueries.analogical:e.selected.searchQuery?e.selected.searchQuery:e.searchQueries[e.selected.type];let r=[],i="";r=t.match(/[a-zA-Z0-9-]+:<http:\/\/www.ontotext.com\/graphdb\/similarity\/instance\/>/),i=null==r?"similarity-index":r[0].substring(0,r[0].indexOf(":"));const n=t.replace("?index",i+":"+e.selected.name).replace("?query",e.lastSearch.termOrSubject).replace("?searchType",("text"===e.selected.type?":":"psi:")+("searchEntityPredicate"===e.lastSearch.type?"searchEntity":e.lastSearch.type)).replace("?resultType","text"===e.selected.type?":"+e.resultType:"psi:entityResult").replace("?parameters",x(e.searchParameters?e.searchParameters:"")).replace("?psiPredicate",e.lastSearch.predicate?v(e.lastSearch.predicate):v(S)).replace("?givenSubject",v(e.analogicalSubject)).replace("?givenObject",v(e.analogicalObject)).replace("?searchSubject",v(e.searchSubject));l.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return n}}})},e.deleteIndex=function(t){o.openSimpleModal({title:h.instant("common.confirm"),message:h.instant("similarity.delete.index.warning",{name:t.name}),warning:!0}).result.then((function(){u.deleteIndex(t).then((function(){e.getSimilarityIndexes()}),(function(e){r.error(getError(e))}))}))},e.viewCreateQuery=function(e){u.getQuery({indexName:e.name,indexOptions:e.options,query:e.selectQuery,indexStopList:e.stopList,queryInference:e.infer,querySameAs:e.sameAs,viewType:e.type,indexAnalyzer:e.analyzer}).success((function(e){l.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return e}}})}))},e.rebuildIndex=function(t){t.searchQuery||(t.searchQuery=t.type?e.searchQueries[t.type]:e.searchQueries.text),o.openSimpleModal({title:h.instant("common.confirm"),message:Object(s.decodeHTML)(h.instant("similarity.rebuild.index.warning",{name:t.name})),warning:!0}).result.then((function(){t.status="REBUILDING",u.rebuildIndex(t).then((function(e){}),(function(e){r.error(getError(e))}))}))},e.copyToClipboardResult=function(e){o.openCopyToClipboardModal(e)},e.trimIRI=function(e){return _.trim(e,"<>")}}angular.module("graphdb.framework.similarity.controllers.list",[]).controller("SimilarityCtrl",c),c.$inject=["$scope","$interval","toastr","$repositories","$licenseService","ModalService","$uibModal","SimilarityRestService","AutocompleteRestService","productInfo","RDF4JRepositoriesRestService","$translate","$http"]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[155],{205:function(i,e){PluginRegistry.add("route",[{url:"/similarity",module:"graphdb.framework.similarity",path:"similarity/app",chunk:"similarity",controller:"SimilarityCtrl",templateUrl:"pages/similarity-indexes.html",title:"view.similarity.indexes.title",helpInfo:"view.similarity.indexes.helpInfo"},{url:"/similarity/index/create",module:"graphdb.framework.similarity",path:"similarity/app",chunk:"similarity",controller:"CreateSimilarityIdxCtrl",templateUrl:"pages/create-index.html",title:"view.create.similarity.index.title",helpInfo:"view.create.similarity.index.helpInfo"}]),PluginRegistry.add("main.menu",{items:[{label:"Setup",labelKey:"menu.setup.label",href:"#",order:5,role:"IS_AUTHENTICATED_FULLY",icon:"icon-settings",guideSelector:"sub-menu-setup"},{label:"Similarity",labelKey:"menu.similarity.label",href:"similarity",order:40,parent:"Explore",role:"IS_AUTHENTICATED_FULLY",children:[{href:"similarity/index/create",children:[]}],guideSelector:"sub-menu-similarity"}]})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[156],{209:function(e,l){PluginRegistry.add("route",[{url:"/sparql-templates",module:"graphdb.framework.sparql-template",path:"sparql-template/app",chunk:"sparql-template",controller:"SparqlTemplatesCtrl",templateUrl:"pages/sparql-templates.html",title:"view.sparql.template.title",helpInfo:"view.sparql.template.helpInfo"},{url:"/sparql-template/create",module:"graphdb.framework.sparql-template",path:"sparql-template/app",chunk:"sparql-template",controller:"SparqlTemplateCreateCtrl",templateUrl:"pages/sparql-template-create.html",title:"view.create.sparql.template.title",helpInfo:"view.create.sparql.template.helpInfo"}]),PluginRegistry.add("main.menu",{items:[{label:"Setup",labelKey:"menu.setup.label",href:"#",order:5,role:"IS_AUTHENTICATED_FULLY",icon:"icon-settings",guideSelector:"menu-setup"},{label:"SPARQL Templates",labelKey:"menu.sparql.template.label",href:"sparql-templates",order:51,parent:"Setup",role:"IS_AUTHENTICATED_FULLY",guideSelector:"sub-menu-sparql-templates"}]})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[157],{207:function(e,l){PluginRegistry.add("route",{url:"/sparql",module:"graphdb.framework.sparql",path:"sparql/app",chunk:"sparql",controller:"QueryEditorCtrl",templateUrl:"pages/sparql.html",title:"view.sparql.title",helpInfo:"view.sparql.helpInfo",reloadOnSearch:!1}),PluginRegistry.add("main.menu",{items:[{label:"SPARQL",labelKey:"menu.sparql.label",href:"sparql",order:2,role:"IS_AUTHENTICATED_FULLY",icon:"icon-sparql",guideSelector:"menu-sparql"}]})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[158],{210:function(t,r,o){"use strict";o.r(r);o(7);angular.module("graphdb.framework.stats",["toastr"]).controller("AdminInfoCtrl",["$scope","$http","toastr","$timeout","$jwtAuth","$translate","AuthTokenService",function(t,r,o,e,n,s,c){r.get("rest/info/data").success((function(r){t.info=r})).error((function(t){const r=getError(t);o.error(r,s.instant("common.error"))})),t.getReportStatus=function(){r.get("rest/report/status").success((function(r){const o=r.split("|",3);t.status=o[0],t.timestamp=o[1],t.errorMessage=o[2],"IN_PROGRESS"===t.status&&e(t.getReportStatus,3e3)})).error((function(t){const r=getError(t);o.error(r,s.instant("common.error"))}))},t.getReportStatus(),t.getReport=function(){let t="rest/report";n.isAuthenticated()&&(t=t+"?authToken="+encodeURIComponent(c.getAuthToken())),window.open(t)},t.makeReport=function(){r.post("rest/report").success((function(){t.status="IN_PROGRESS",e(t.getReportStatus,2e3)})).error((function(t){const r=getError(t);o.error(r,s.instant("common.error"))}))}}])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[159],{211:function(e,t){PluginRegistry.add("route",[{url:"/sysinfo",module:"graphdb.framework.stats",path:"stats/app",chunk:"stats",controller:"AdminInfoCtrl",templateUrl:"pages/info.html",title:"view.system.information.title",helpInfo:"view.system.information.helpInfo"},{url:"/webapi",templateUrl:"pages/webapi.html",title:"view.rest.api.documentation.title",helpInfo:"view.rest.api.documentation.helpInfo"}]);const n="https://graphdb.ontotext.com/documentation/";PluginRegistry.add("main.menu",{items:[{label:"Setup",labelKey:"menu.setup.label",href:"#",order:7,role:"IS_AUTHENTICATED_FULLY",icon:"icon-settings",guideSelector:"menu-setup"},{label:"Help",labelKey:"menu.help.label",href:"#",order:8,icon:"icon-help",guideSelector:"menu-help"},{label:"System information",labelKey:"menu.system.information.label",href:"sysinfo",order:50,parent:"Help",role:"ROLE_ADMIN",guideSelector:"sub-menu-system-information"},{label:"REST API",labelKey:"menu.rest.api.label",href:"webapi",order:1,parent:"Help",guideSelector:"sub-menu-rest-api"},{label:"Documentation",labelKey:"menu.documentation.label",order:2,parent:"Help",icon:"icon-external",hrefFun:function(e){return n+e.productShortVersion+"/"},guideSelector:"sub-menu-documentation"},{label:"Tutorials",labelKey:"menu.tutorials.label",order:3,parent:"Help",icon:"icon-external",hrefFun:function(e){return n+e.productShortVersion+"/tutorials.html"},guideSelector:"sub-menu-developer-hub"},{label:"Support",labelKey:"menu.support.label",order:4,parent:"Help",icon:"icon-external",hrefFun:function(e){return n+e.productShortVersion+"/support.html"},guideSelector:"sub-menu-support"}]})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[16,11,37,66,82,83,149,161],{134:function(e,t){angular.module("graphdb.framework.rest.sparql-templates.service",[]).factory("SparqlTemplatesRestService",r),r.$inject=["$http"];function r(e){return{getSparqlTemplates:function(t){return e.get(`rest/repositories/${t}/sparql-templates`)},getSparqlTemplate:function(t,r){return e.get(`rest/repositories/${r}/sparql-templates/configuration`,{params:{templateID:t}})},createSparqlTemplate:function(t,r){return e.post(`rest/repositories/${r}/sparql-templates`,{templateID:t.templateID,query:t.query})},updateSparqlTemplate:function(t,r){return e.put(`rest/repositories/${r}/sparql-templates`,t.query,{params:{templateID:t.templateID},headers:{"Content-Type":"text/plain"}})},deleteSparqlTemplate:function(t,r){return e.delete(`rest/repositories/${r}/sparql-templates`,{params:{templateID:t}})}}}},137:function(e,t,r){"use strict";r.r(t);r(7),r(22),r(26),r(57),r(25);var n=r(0);function a(e,t,r,n,a,i,o){e.pluginName="sparql-template",e.setPluginIsActive=function(t){e.pluginIsActive=t},e.getSparqlTemplates=function(){i.isLicenseValid()&&t.getActiveRepository()&&!t.isActiveRepoOntopType()&&!t.isActiveRepoFedXType()?r.getSparqlTemplates(t.getActiveRepository()).success((function(t){e.sparqlTemplateIds=t})).error((function(e){const t=getError(e);n.error(t,o.instant("sparql.template.get.templates.error"))})):e.sparqlTemplateIds=[]},e.$watch((function(){return t.getActiveRepository()}),(function(){e.getSparqlTemplates()})),e.deleteTemplate=function(i){a.openSimpleModal({title:o.instant("common.warning"),message:o.instant("sparql.template.delete.template.warning",{templateID:i}),warning:!0}).result.then((function(){r.deleteSparqlTemplate(i,t.getActiveRepository()).success((function(){n.success(i,o.instant("sparql.template.delete.template.success")),e.getSparqlTemplates()})).error((function(e){n.error(getError(e),o.instant("sparql.template.delete.template.failure",{templateID:i}))}))}))}}function i(e,t,r,a,i,o,s,u,c,l,d,p){const g=t.hash()||"";e.templateID=(t.search().templateID||"")+(g?"#"+g:""),e.title=(e.templateID?p.instant("edit"):p.instant("common.create.btn"))+" SPARQL Template",e.getNamespaces=function(){h(!0,p.instant("common.refreshing.namespaces"),p.instant("common.extra.message")),u.getRepositoryNamespaces().success((function(t){const r={};t.results.bindings.forEach((function(e){r[e.prefix.value]=e.namespace.value})),e.namespaces=r})).error((function(t){e.repositoryError=getError(t)})).finally((function(){h(!1),q()}))},e.setLoader=h,e.addKnownPrefixes=S,e.noPadding={paddingRight:0,paddingLeft:0},e.currentTabConfig={},e.orientationViewMode=!0,e.currentQuery={};let f=!1;e.$watch((function(){return a.getActiveRepository()}),(function(e,r){e!==r&&t.path("/sparql-templates")}));let m=null;e.goBack=function(){m=o((function(){i.history.back()}),1e3)};const y=e.$on("$locationChangeStart",(function(t){!function(t){e.currentQuery.isPristine||(confirm(p.instant("jdbc.warning.unsaved.changes"))?(window.removeEventListener("beforeunload",b),y(),o.cancel(m)):t.preventDefault())}(t)}));function b(t){e.currentQuery.isPristine||(t.returnValue=!0)}window.addEventListener("beforeunload",b),e.$on("$destroy",(function(e){window.removeEventListener("beforeunload",b),y(),o.cancel(m)}));const w={templateID:"",query:"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX ex: <http://example.com#>\nDELETE {\n ?subject ex:myPredicate ?oldValue .\n} INSERT {\n ?subject ex:myPredicate ?newValue .\n} WHERE {\n ?id rdf:type ex:MyType .\n ?subject ex:isRelatedTo ?id .\n}\n",inference:!0,sameAs:!0,isNewTemplate:!0,isPristine:!0};var T;function h(t,r,n){const a=angular.element(document.getElementById("yasr-inner"));e.queryIsRunning=t,t?(e.queryStartTime=Date.now(),e.countTimeouted=!1,e.progressMessage=r,e.extraMessage=n,a.addClass("hide")):(e.progressMessage="",e.extraMessage="",a.removeClass("hide")),null===e.$$phase&&e.$apply()}function q(){e.tabsData=[e.currentQuery];const t=e.currentQuery;e.currentQuery.query?window.editor.setValue(e.currentQuery.query):window.editor.setValue(" "),o((function(){e.currentTabConfig={},e.currentTabConfig.queryType=t.queryType,e.currentTabConfig.resultsCount=t.resultsCount,e.currentTabConfig.offset=t.offset,e.currentTabConfig.allResultsCount=t.allResultsCount,e.currentTabConfig.page=t.page,e.currentTabConfig.pageSize=t.pageSize,e.currentTabConfig.timeFinished=t.timeFinished,e.currentTabConfig.timeTook=t.timeTook,e.currentTabConfig.sizeDelta=t.sizeDelta,e.$apply()}),0),e.canWriteActiveRepo()||(window.editor.options.readOnly=!0)}function v(){e.tabsData=e.tabs=[w],e.currentQuery=_.cloneDeep(w),window.editor&&(e.setQuery(e.currentQuery.query),q()),e.$watch((function(){return e.currentQuery.query}),(function(t,r){t!==r&&e.setDirty()}))}function S(){c.addKnownPrefixes(JSON.stringify(window.editor.getValue())).success((function(e){angular.isDefined(window.editor)&&angular.isDefined(e)&&e!==window.editor.getValue()&&window.editor.setValue(e)})).error((function(e){const t=getError(e);return r.error(t,p.instant("common.add.known.prefixes.error")),!0}))}function C(){s.createSparqlTemplate(e.currentQuery,a.getActiveRepository()).success((function(){e.currentQuery.isPristine=!0,e.currentQuery.isNewTemplate=!1,r.success(e.currentQuery.templateID,p.instant("save.sparql.template.success.msg")),e.goBack()})).error((function(t){const n=getError(t);r.error(n,p.instant("save.sparql.template.failure.msg",{templateID:e.currentQuery.templateID}))}))}e.saveTab=function(){},e.setQuery=function(e){window.editor.setValue(e||" ")},e.templateID?(T=e.templateID,s.getSparqlTemplate(T,a.getActiveRepository()).success((function(e){w.query=e,w.templateID=T,w.isNewTemplate=!T,v()})).error((function(t){const n=getError(t);r.error(n,p.instant("sparql.template.get.template.error",{templateID:e.currentQuery.templateID})),e.repositoryError=n}))):v(),e.saveTemplate=function(){(function(){if(!window.editor||"update"!==window.editor.getQueryMode())return r.error(p.instant("sparql.template.query.constraint"),p.instant("jdbc.invalid.query")),!1;return!0})()&&(e.currentQuery.templateID?(e.isInvalidTemplateId=!l.isValidIri(e.currentQuery.templateID,e.currentQuery.templateID.toString()),e.isInvalidTemplateId||(e.currentQuery.isNewTemplate?s.getSparqlTemplates(a.getActiveRepository()).success((function(t){f=t.find(t=>t===e.currentQuery.templateID)})).error((function(e){const t=getError(e);r.error(t,p.instant("sparql.template.get.templates.error"))})).then(()=>{if(f){const t=Object(n.decodeHTML)(p.instant("sparql.template.existing.template.error",{templateID:e.currentQuery.templateID}));d.openSimpleModal({title:p.instant("common.confirm.save"),message:t,warning:!0}).result.then((function(){C()}))}else C()}):e.currentQuery.isPristine?e.goBack():s.updateSparqlTemplate(e.currentQuery,a.getActiveRepository()).success((function(){e.currentQuery.isPristine=!0,e.currentQuery.isNewTemplate=!1,r.success(e.currentQuery.templateID,p.instant("update.sparql.template.success.msg")),e.goBack()})).error((function(t){const n=getError(t);r.error(n,p.instant("save.sparql.template.failure.msg",{templateID:e.currentQuery.templateID}))})))):r.error(p.instant("sparql.template.iri.constraint")))},$("textarea").on("paste",(function(){o((function(){S()}),0)})),e.setDirty=function(){e.currentQuery.isPristine=!1}}angular.module("graphdb.framework.sparql-template.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.monitoring.service","toastr"],["graphdb.framework.utils.notifications"]).controller("SparqlTemplatesCtrl",a).controller("SparqlTemplateCreateCtrl",i),a.$inject=["$scope","$repositories","SparqlTemplatesRestService","toastr","ModalService","$licenseService","$translate"],i.$inject=["$scope","$location","toastr","$repositories","$window","$timeout","SparqlTemplatesRestService","RDF4JRepositoriesRestService","SparqlRestService","UriUtils","ModalService","$translate"]},207:function(e,t,r){"use strict";r.r(t);r(7),r(23),r(79),r(22),r(137),r(134),r(65),r(61),r(70),r(25);angular.module("graphdb.framework.sparql-template",["toastr","ui.bootstrap","graphdb.framework.sparql-template.controllers","graphdb.framework.core.services.repositories","graphdb.framework.core.directives","graphdb.framework.rest.sparql-templates.service","graphdb.framework.core.directives.queryeditor.controllers","graphdb.framework.core.directives.queryeditor.sparqltab","graphdb.framework.core.directives.queryeditor.queryeditor","graphdb.framework.utils.uriutils"])},311:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},312:function(e,t){(function(t){e.exports=t}).call(this,{})},57:function(e,t){function r(e,t){return{showToastMessageWithDelay:function(r){return new Promise(n=>{e.success(t.instant(r)),setTimeout(n,200)})}}}angular.module("graphdb.framework.utils.notifications",[]).factory("Notifications",r),r.$inject=["toastr","$translate"]},61:function(e,t,r){"use strict";r.r(t);r(10),r(27);var n=r(0);function a(e,t,r,a,i,o,s,u,c,l,d,p,g,f,m){const y={id:"1",name:"",query:"select * where { \n\t?s ?p ?o .\n} limit 100 \n",inference:!0,sameAs:!0};let b,w;function T(t){!function(){if(a.isActiveRepoOntopType())return;const t=document.getElementById("sameAs");!t||e.currentQuery.inference||t.disabled?e.currentQuery.inference&&t.disabled&&(t.removeAttribute("disabled"),e.currentQuery.sameAs=b.appSettings.DEFAULT_SAMEAS):(t.disabled=!0,e.currentQuery.sameAs=!1)}(),e.tabs.forEach((function(r,n){r.id===t.id&&(e.tabs[n].query=t.query,a.isActiveRepoOntopType()||(e.tabs[n].inference=t.inference,e.tabs[n].sameAs=t.sameAs))})),g.set(f.TABS_STATE,e.tabs)}function h(t,r,n,a){const i=angular.element(document.getElementById("yasr-inner"));e.queryIsRunning=t,t?(e.queryStartTime=Date.now(),e.countTimeouted=!1,e.progressMessage=r,e.extraMessage=n,e.noLoaderTimer=a,i.addClass("hide")):(e.progressMessage="",e.extraMessage="",e.noLoaderTimer=!1,e.currentTrackAlias=null,e.abortRequested=!1,i.removeClass("hide")),null===e.$$phase&&e.$apply()}function q(r){function n(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0}if(e.orientationViewMode){if("yasr"===e.viewMode){let e=n()-document.querySelector(".CodeMirror-wrap").getBoundingClientRect().top;e-=40,document.querySelector(".CodeMirror-wrap").style.height=e+"px"}else e.noPadding={},document.querySelector(".CodeMirror-wrap").style.height="";document.getElementById("yasr").style.minHeight=""}else if(e.noPadding={paddingRight:15,paddingLeft:0},window.editor&&document.querySelector(".CodeMirror-wrap")){let e=n()-document.querySelector(".CodeMirror-wrap").getBoundingClientRect().top;e-=40,document.querySelector(".CodeMirror-wrap").style.height=e+"px",document.getElementById("yasr").style.minHeight=e+"px"}else{let n;n=t(r?function(){e.fixSizesOnHorizontalViewModeSwitch(r)}:e.fixSizesOnHorizontalViewModeSwitch,100),e.$on("$destroy",(function(){t.cancel(n)}))}window.yasr&&window.yasr.container&&t((function(){window.yasr.container.resize()}),100)}function v(){q(!0)}function S(t,r){r.newRepo&&(e.tabsData=g.get(f.TABS_STATE),e.tabsData.forEach((function(e){e.yasrData=void 0,e.queryType=void 0,e.resultsCount=0,e.allResultsCount=0,e.sizeDelta=void 0})),g.set(f.TABS_STATE,e.tabsData),e.tabs=e.tabsData,e.currentQuery={},e.errorMessage=null,e.repositoryError=null)}function C(e){t((function(){$('a[data-id = "'+e+'"]').tab("show")}),0)}function E(n,i){if(e.executedQueryTab=e.currentQuery,i){if("SELECT"!==window.editor.getQueryType()&&"CONSTRUCT"!==window.editor.getQueryType()&&"DESCRIBE"!==window.editor.getQueryType())return void r.warning(m.instant("query.editor.warning.msg"));if(a.isActiveRepoOntopType())return void r.warning(m.instant("query.editor.virtual.repo.warning.msg"))}if(e.explainRequested=i,!e.queryIsRunning){if(n?e.currentTabConfig.resultsCount=0:e.resetCurrentTabConfig(),e.lastRunQueryMode=window.editor.getQueryMode(),"update"===e.lastRunQueryMode&&a.isActiveRepoOntopType())return void r.warning(m.instant("query.editor.virtual.repo.update.warning.msg"));if(h(!0,"update"===e.lastRunQueryMode?m.instant("query.editor.executing.update"):m.instant("query.editor.evaluating.query")),"none"!==e.viewMode){e.viewMode="none",e.orientationViewMode&&e.fixSizesOnHorizontalViewModeSwitch();const r=t(window.editor.query,500);e.$on("$destroy",(function(){t.cancel(r)}))}else window.editor.query()}}function D(t){let r=void 0;return e.tabsData.forEach((function(e){if(e.name===t.name&&e.query===t.body)return r=e.id,e})),r}function Q(t){return function(r,n,a){e.savedQuery={name:r,query:n||window.editor.getValue(),shared:a},$(t).modal("show")}}function M(t){for(let r=0;r<e.tabsData.length;r++){if(e.tabsData[r].id===t)return r}}e.getPrincipal=function(){return l.getPrincipal().then(t=>{b=t,function(e,t){y.inference=t.appSettings.DEFAULT_INFERENCE,y.sameAs=t.appSettings.DEFAULT_SAMEAS,e.skipCountQuery=!t.appSettings.EXECUTE_COUNT,e.ignoreSharedQueries=t.appSettings.IGNORE_SHARED_QUERIES,e.tabsData=e.tabs=g.get(f.TABS_STATE)||[y],e.$watchCollection("[currentQuery.inference, currentQuery.sameAs]",(function(e,t,r){T(r.currentQuery)})),e.$on("repositoryIsSet",S)}(e,b)})},e.getPrincipal(),this.hint=document.createElement("span"),this.hint.innerHTML=m.instant("query.editor.autocomplete.hint"),this.hint.style.fontSize="12px",this.hint.style.color="gray",this.hint.style.backgroundColor="white",this.hint.style.position="absolute",this.hint.style.zIndex="3",this.hint.style.paddingLeft="12px",e.$watch((function(){return angular.element(".CodeMirror-hints").length}),e=>{if(e){const e=angular.element(".CodeMirror-hints")[0].getBoundingClientRect();document.body.appendChild(this.hint),this.hint.style.top=e.top-20+"px",this.hint.style.left=e.right-this.hint.offsetWidth-12+"px"}else this.hint&&this.hint.parentNode&&this.hint.parentNode.removeChild(this.hint)}),e.resetCurrentTabConfig=function(){e.currentTabConfig={pageSize:1e3,page:1,allResultsCount:0,resultsCount:0}},e.queryExists=!1,e.resetCurrentTabConfig(),e.saveTab=function(t){const r=M(t);if(void 0===r)return{};const n=e.tabsData[r];return e.saveQueryToLocal(n),n},e.loadTab=function(r){e.tabsData=g.get(f.TABS_STATE)||[y];const n=M(r),i=e.tabsData[n];i.yasrData&&h(!0,m.instant("query.editor.render.results.msg"),null,!0);t((function(){""===e.currentQuery.query&&(e.currentQuery.query=" "),t((function(){window.editor.setValue(e.currentQuery.query),e.yasr.updateDownloadDropdown(),e.$broadcast("tabLoaded",e.currentQuery.id),e.yasr.options.output=i.outputType,i.yasrData&&(i.yasrData.customError?(e.yasr.results={getException:function(){return i.yasrData.customError}},h(!1)):t((function(){e.setYasrResponse(i.yasrData,i.textStatus,i.jqXhrOrErrorString),h(!1),$(".yasr_btnGroup li:nth-child(2)").hasClass("active")&&t((function(){$(".yasr_btnGroup li:nth-child(2) a").get(0).click()}),0)}),0))}),0)}),0),g.set(f.TABS_STATE_CURRENT_ID,r),e.currentQuery=i,t((function(){e.currentTabConfig={},e.currentTabConfig.queryType=i.queryType,e.currentTabConfig.resultsCount=i.resultsCount,e.currentTabConfig.offset=i.offset,e.currentTabConfig.allResultsCount=i.allResultsCount,e.currentTabConfig.allResultsCountExact=i.allResultsCountExact,e.currentTabConfig.page=i.page,e.currentTabConfig.pageSize=i.pageSize,e.currentTabConfig.timeFinished=i.timeFinished,e.currentTabConfig.timeTook=i.timeTook,e.currentTabConfig.sizeDelta=i.sizeDelta,e.currentTabConfig.customUpdateMessage=i.customUpdateMessage,e.currentTabConfig.errorMessage=i.errorMessage,e.currentTabConfig.warningMessage=i.warningMessage,e.$apply()}),0),$("#yasr").css("padding","0"),w||(w=setInterval(x,200));!function(){const t=a.isActiveRepoOntopType(),r=a.isActiveRepoFedXType();(function(e){const t=document.getElementById("sameAs"),r=document.getElementById("inference");t&&(t.disabled=!!e);r&&(r.disabled=!!e)})(t),e.nocount=!(!t&&!r)||!b.appSettings.EXECUTE_COUNT,t&&(e.currentQuery.inference=!0,e.currentQuery.sameAs=!0)}()},e.addNewTab=function(r,n,a){if(!I(!0))return;let i;i=n||a?{id:"1",name:n,query:a,inference:b.appSettings.DEFAULT_INFERENCE,sameAs:b.appSettings.DEFAULT_SAMEAS}:{id:"1",name:"",query:"select * where { \n\t?s ?p ?o .\n} limit 100 \n",inference:b.appSettings.DEFAULT_INFERENCE,sameAs:b.appSettings.DEFAULT_SAMEAS};A++;const o=""+A;e.tabsData=e.tabs;const s=i;s.id=o,e.tabsData.push(s),g.set(f.TABS_STATE_MAXID,A),g.set(f.TABS_STATE,e.tabsData);const u=Array.prototype.slice.call(arguments,1);t((function(){e.$apply(),C(o),r&&r.apply(this,u)}),0),e.tabs=e.tabsData},e.isTabChangeOk=I,e.runQuery=E,e.abortCurrentQuery=function(){p.deleteQuery(e.currentTrackAlias,a.getActiveRepository()).success((function(){e.abortRequested=!0}))},e.editQuery=function(t){i.open({templateUrl:"js/angular/core/directives/queryeditor/templates/query-sample.html",controller:"QuerySampleModalCtrl",resolve:{data:function(){return{title:m.instant("query.editor.edit.saved.query",{name:t.name}),query:t,edit:!0,okButtonText:m.instant("common.save.btn")}}}}).result.then((function(n){const a={name:n.name,body:n.body,shared:n.shared};t.name!==n.name?s.addNewSavedQuery(a).success((function(){e.deleteQueryHttp(t.name,!0)})).error((function(e){const t=getError(e);r.error(t,m.instant("query.editor.edit.saved.query.error"))})):s.editSavedQuery(a).success((function(){$("#editQueryContainer").modal("hide"),e.toggleSampleQueries(),r.success(m.instant("query.editor.edit.saved.query.success.msg",{name:t.name}))})).error((function(e){const t=getError(e);r.error(t,m.instant("query.editor.edit.saved.query.error"))}))}))},e.getNamespaces=function(){h(!0,m.instant("common.refreshing.namespaces"),m.instant("common.extra.message")),e.namespacesLoading=!0,d.getRepositoryNamespaces().success((function(t){const r={};t.results.bindings.forEach((function(e){r[e.prefix.value]=e.namespace.value})),e.namespaces=r})).error((function(t){e.repositoryError=getError(t)})).finally((function(){h(!1),e.namespacesLoading=!1}))},e.changePagination=function(){E(!0,e.explainRequested)},e.toggleSampleQueries=function(){s.getSavedQueries().success((function(t){e.sampleQueries=t.filter(t=>!e.ignoreSharedQueries||t.owner!==e.principal.username)})).error((function(e){const t=getError(e);r.error(t,m.instant("query.editor.get.saved.queries.error"))}))},e.addKnownPrefixes=function(){s.addKnownPrefixes(JSON.stringify(window.editor.getValue())).success((function(e){angular.isDefined(window.editor)&&angular.isDefined(e)&&e!==window.editor.getValue()&&window.editor.setValue(e)})).error((function(e){const t=getError(e);return r.error(t,m.instant("common.add.known.prefixes.error")),!0}))},e.getExistingTabId=D,e.querySelected=function(t){const r=D(t);e.toggleSampleQueries(),e.isTabChangeOk(!1)&&(e.highlightNextTabChange=!0,angular.isDefined(r)?C(r):e.addNewTab(null,t.name,t.body))},e.deleteQuery=function(t){o.openSimpleModal({title:m.instant("common.confirm"),message:m.instant("query.editor.delete.saved.query.warning.msg",{savedQueryName:t}),warning:!0}).result.then((function(){e.deleteQueryHttp(t)}))},e.deleteQueryHttp=function(t,n){s.deleteSavedQuery(t).success((function(){e.toggleSampleQueries(),n||r.success(m.instant("query.editor.delete.saved.query.success.msg",{savedQueryName:t}))})).error((function(e){const t=getError(e);r.error(t,m.instant("query.editor.delete.saved.query.error"))}))},e.saveQuery=function(t,r){i.open({templateUrl:"js/angular/core/directives/queryeditor/templates/query-sample.html",controller:"QuerySampleModalCtrl",resolve:{data:function(){return{title:m.instant("query.editor.create.saved.query.msg"),query:{name:t.name,body:t.query,shared:t.shared},edit:!1,okButtonText:m.instant("common.create.btn"),queryExists:r,existingQueryErrMsg:Object(n.decodeHTML)(m.instant("query.sample.existing.query.warning",{name:t.name}))}}}}).result.then((function(t){e.saveQueryHttp(t)}),(function(){}))},e.saveQueryHttp=function(t){s.addNewSavedQuery(t).success((function(){r.success(m.instant("query.editor.save.saved.query.success.msg",{name:t.name}))})).error((function(n,a){const i=getError(n);r.error(i,m.instant("query.editor.create.saved.query.error"));let o=!1;409===a&&(o=!0),t.query=t.body,e.saveQuery(t,o)}))},e.saveQueryToLocal=T,e.setLoader=h,e.getLoaderMessage=function(){const t=(Date.now()-e.queryStartTime)/1e3;let r="",n="";e.noLoaderTimer||(r=e.getHumanReadableSeconds(t));n=e.progressMessage?m.instant("query.editor.progress.msg",{progressMessage:e.progressMessage,timeHuman:r}):m.instant("common.running.operation",{timeHuman:r});e.extraMessage&&t>10&&(n+=m.instant("query.editor.extra.msg",{extraMessage:e.extraMessage}));return n},e.fixSizesOnHorizontalViewModeSwitch=q,e.changeViewMode=function(){e.viewMode="none",e.orientationViewMode=!e.orientationViewMode,g.set(f.VIEW_MODE,e.orientationViewMode),q()},e.showHideEditor=v,e.focusQueryEditor=function(){angular.element(document).find(".editable-input").is(":focus")||angular.element(document).find(".CodeMirror textarea:first-child").focus()},e.orientationViewMode=!g.get(f.VIEW_MODE)||"true"===g.get(f.VIEW_MODE),e.viewMode="none",e.getActiveRepository=function(){return a.getActiveRepository()},e.getActiveRepositoryNoError=function(){if(!e.repositoryError)return a.getActiveRepository()},e.orientationViewMode||v(),window.onbeforeunload=function(){e.currentQuery&&e.saveTab(e.currentQuery.id),g.set(f.TABS_STATE,e.tabs)},e.$on("$destroy",(function(){e.currentQuery&&e.saveTab(e.currentQuery.id),g.set(f.TABS_STATE,e.tabs),clearInterval(w)})),e.$on("$destroy",(function(){clearInterval(w),window.editor=null,window.yasr=null}));let A=g.get(f.TABS_STATE_MAXID)||1;function R(e){return $(e).attr("data-id")}function x(){if(e.currentTabConfig.resultsCount>=0){const e=$(".saveAsDropDown");e.length>0&&!window.editor.queryValid?yasr.header.find(".saveAsDropDown").remove():0===e.length&&window.editor.queryValid&&yasr.updateDownloadDropdown()}}function I(t){return!(e.queryIsRunning&&!e.namespacesLoading)||(t?r.info(m.instant("query.editor.new.tab.running.query.warning.msg")):r.info(m.instant("query.editor.tab.switching.running.query.warning.msg")),!1)}e.highlightNextTabChange=!1,e.$on("tabAction",(function(r,n){n.relatedTarget&&(t.cancel(n.relatedTarget.timer),$(n.relatedTarget).css("color",""),e.saveTab(R(n.relatedTarget))),e.loadTab(R(n.target));const a=["var(--primary-color)","","var(--primary-color)"],i=[400,400,400];if(e.highlightNextTabChange){e.highlightNextTabChange=!1;let r=0;$(n.target).css("color",a[r]);const o=function(){r++,r<a.length?($(n.target).css("color",a[r]),n.target.timer=t(o,i[r])):$(n.target).css("color","")};t(o,i[r])}})),e.$on("deleteAllexeptSelected",(function(t,r){e.tabsData=r,e.tabs=r})),e.currentQuery={},e.savedQuery={},e.sampleQueries={},e.editQueryModal=Q("#editQueryContainer"),e.deleteQueryModal=Q("#confirmDeleteContainer"),e.saveQueryModal=Q("#saveQueryContainer"),e.getResultsDescription=function(){let t;if(0===e.currentTabConfig.resultsCount)t="No results.";else{const r=(e.currentTabConfig.page-1)*e.currentTabConfig.pageSize+Math.min(e.currentTabConfig.resultsCount,e.currentTabConfig.pageSize);t=m.instant("query.editor.showing.results.from.msg")+u("currency")(e.currentTabConfig.offset,"",0)+m.instant("query.editor.to")+u("currency")(r,"",0),e.currentTabConfig.allResultsCount>0&&(t+=m.instant(e.currentTabConfig.allResultsCountExact?"query.editor.of":"query.editor.of.at.least"),t+=u("currency")(e.currentTabConfig.allResultsCount,"",0)),t+="."}return t},e.getUpdateDescription=function(){return e.currentTabConfig.customUpdateMessage?m.instant(e.currentTabConfig.customUpdateMessage.msg,{name:e.currentTabConfig.customUpdateMessage.name}):void 0===e.currentTabConfig.sizeDelta?"":e.currentTabConfig.sizeDelta<0?m.instant("yasr.removed.statements.result.msg",{sizeDelta:Math.abs(e.currentTabConfig.sizeDelta)}):e.currentTabConfig.sizeDelta>0?m.instant("yasr.added.statements.result.msg",{sizeDelta:e.currentTabConfig.sizeDelta}):m.instant("yasr.statements.no.change.msg")},e.getStaleWarningMessage=function(){const t=60*Math.round((Date.now()-e.currentTabConfig.timeFinished)/6e4);if(t>=3600)return m.instant("yasr.stale.result.msg",{secondsAgo:e.getHumanReadableSeconds(t)})};const k=function(){};angular.element(c).bind("resize",k),e.$on("$destroy",(function(){angular.element(c).unbind("resize",k)}))}function i(e,t,r,n){r.queryExists&&(e.queryExists=!0),e.query=_.cloneDeep(r.query),e.title=r.title,e.edit=r.edit,e.okButtonText=r.okButtonText,e.existingQueryErrMsg=n.trustAsHtml(r.existingQueryErrMsg),e.ok=function(){e.form.$valid&&t.close(e.query)},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.core.directives.queryeditor.controllers",["graphdb.framework.utils.localstorageadapter","graphdb.framework.rest.sparql.service"]).controller("QueryEditorCtrl",a).controller("QuerySampleModalCtrl",i),a.$inject=["$scope","$timeout","toastr","$repositories","$uibModal","ModalService","SparqlRestService","$filter","$window","$jwtAuth","RDF4JRepositoriesRestService","MonitoringRestService","LocalStorageAdapter","LSKeys","$translate"],i.$inject=["$scope","$uibModalInstance","data","$sce"]},65:function(e,t,r){"use strict";r.r(t);r(10);function n(e,t,r,n){return{restrict:"AE",template:'<a class="nav-link" role="tab" data-toggle="tab" blur="submit" editable-text="tab.name" e-form="editCurrentlySelectedOnly" ng-click="selectThisTab($event)" ng-dblclick="editCurrentTab()" ><span ng-class="{\'text-muted\': !tab.name}">{{ tab.name || (\'sparql.tab.directive.unnamed.tab.title\' | translate)}}</span><button type="button" ng-click="deleteTab($event)" class="btn btn-link btn-sm secondary delete-sparql-tab-btn" title="Delete tab"><i class="icon-close"></i></button></a>',replace:!0,controller:["$scope","$element","$rootScope","ModalService","toastr","$translate",function(e,n,a,i,o,s){function u(e){return $(e).attr("data-id")}function c(e){$('a[data-id = "'+e+'"]').tab("show")}e.state={},$(n).on("shown.bs.tab",(function(e){a.$broadcast("tabAction",e)})),e.deleteTab=function(l){if(l.preventDefault(),l.stopPropagation(),e.tabs.length<2)return void o.warning(s.instant("sparql.tab.directive.close.last.warning"));l.shiftKey?(e.state.selectedTabId=u(n),i.openSimpleModal({title:s.instant("common.confirm"),message:s.instant("sparql.tab.directive.delete.all.tabs.warning"),warning:!0}).result.then((function(){var n;n=e.state.selectedTabId,e.tabs=e.tabs.filter((function(e){if(e.id===n)return e})),c(e.tabs[0].id),t.set(r.TABS_STATE,e.tabs),a.$broadcast("deleteAllexeptSelected",e.tabs)}))):(e.state.idForDelete=u(n),i.openSimpleModal({title:s.instant("common.confirm"),message:s.instant("sparql.tab.directive.close.tab.warning"),warning:!0}).result.then((function(){!function(t){if(angular.isUndefined(t))throw"Delete by id was called with undefined id";const r=function(t){for(let r=0;r<e.tabs.length;r++){if(e.tabs[r].id===t)return r}}(t);e.tabs.splice(r,1),t===e.currentQuery.id&&e.tabs.length>0&&c(r>0?e.tabs[r-1].id:e.tabs[0].id)}(e.state.idForDelete)})));angular.element(document).find(".CodeMirror textarea:first-child").focus()},e.editCurrentTab=function(){if(u(n)!==e.currentQuery.id)return;e.editCurrentlySelectedOnly.$show();const t=$(".editable-buttons");t.children(".btn.btn-primary").addClass("btn-sm"),t.children(".btn.btn-default").addClass("btn-sm"),$(".editable-controls .editable-input").addClass("form-control-sm").on("change",(function(t){e.currentQuery.name=t.currentTarget.$$currentValue})),$(".editable-buttons .glyphicon.glyphicon-ok").removeClass("glyphicon glyphicon-ok").addClass("fa fa-check"),$(".editable-buttons .glyphicon.glyphicon-remove").removeClass("glyphicon glyphicon-remove").addClass("fa fa-close")},e.selectThisTab=function(t){t.preventDefault(),t.stopPropagation(),e.isTabChangeOk(!1)&&$(n).tab("show")}}]}}angular.module("graphdb.framework.core.directives.queryeditor.sparqltab",["graphdb.framework.core","graphdb.framework.utils.localstorageadapter"]).directive("sparqlTab",n),n.$inject=["$rootScope","LocalStorageAdapter","LSKeys","ModalService"]}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[16,11,38,67,83,84,150,162],{135:function(e,t){angular.module("graphdb.framework.rest.sparql-templates.service",[]).factory("SparqlTemplatesRestService",r),r.$inject=["$http"];function r(e){return{getSparqlTemplates:function(t){return e.get(`rest/repositories/${t}/sparql-templates`)},getSparqlTemplate:function(t,r){return e.get(`rest/repositories/${r}/sparql-templates/configuration`,{params:{templateID:t}})},createSparqlTemplate:function(t,r){return e.post(`rest/repositories/${r}/sparql-templates`,{templateID:t.templateID,query:t.query})},updateSparqlTemplate:function(t,r){return e.put(`rest/repositories/${r}/sparql-templates`,t.query,{params:{templateID:t.templateID},headers:{"Content-Type":"text/plain"}})},deleteSparqlTemplate:function(t,r){return e.delete(`rest/repositories/${r}/sparql-templates`,{params:{templateID:t}})}}}},138:function(e,t,r){"use strict";r.r(t);r(7),r(22),r(26),r(57),r(25);var n=r(0);function a(e,t,r,n,a,i,o){e.pluginName="sparql-template",e.setPluginIsActive=function(t){e.pluginIsActive=t},e.getSparqlTemplates=function(){i.isLicenseValid()&&t.getActiveRepository()&&!t.isActiveRepoOntopType()&&!t.isActiveRepoFedXType()?r.getSparqlTemplates(t.getActiveRepository()).success((function(t){e.sparqlTemplateIds=t})).error((function(e){const t=getError(e);n.error(t,o.instant("sparql.template.get.templates.error"))})):e.sparqlTemplateIds=[]},e.$watch((function(){return t.getActiveRepository()}),(function(){e.getSparqlTemplates()})),e.deleteTemplate=function(i){a.openSimpleModal({title:o.instant("common.warning"),message:o.instant("sparql.template.delete.template.warning",{templateID:i}),warning:!0}).result.then((function(){r.deleteSparqlTemplate(i,t.getActiveRepository()).success((function(){n.success(i,o.instant("sparql.template.delete.template.success")),e.getSparqlTemplates()})).error((function(e){n.error(getError(e),o.instant("sparql.template.delete.template.failure",{templateID:i}))}))}))}}function i(e,t,r,a,i,o,s,u,c,l,d,p){const g=t.hash()||"";e.templateID=(t.search().templateID||"")+(g?"#"+g:""),e.title=(e.templateID?p.instant("edit"):p.instant("common.create.btn"))+" SPARQL Template",e.getNamespaces=function(){h(!0,p.instant("common.refreshing.namespaces"),p.instant("common.extra.message")),u.getRepositoryNamespaces().success((function(t){const r={};t.results.bindings.forEach((function(e){r[e.prefix.value]=e.namespace.value})),e.namespaces=r})).error((function(t){e.repositoryError=getError(t)})).finally((function(){h(!1),q()}))},e.setLoader=h,e.addKnownPrefixes=S,e.noPadding={paddingRight:0,paddingLeft:0},e.currentTabConfig={},e.orientationViewMode=!0,e.currentQuery={};let f=!1;e.$watch((function(){return a.getActiveRepository()}),(function(e,r){e!==r&&t.path("/sparql-templates")}));let m=null;e.goBack=function(){m=o((function(){i.history.back()}),1e3)};const y=e.$on("$locationChangeStart",(function(t){!function(t){e.currentQuery.isPristine||(confirm(p.instant("jdbc.warning.unsaved.changes"))?(window.removeEventListener("beforeunload",b),y(),o.cancel(m)):t.preventDefault())}(t)}));function b(t){e.currentQuery.isPristine||(t.returnValue=!0)}window.addEventListener("beforeunload",b),e.$on("$destroy",(function(e){window.removeEventListener("beforeunload",b),y(),o.cancel(m)}));const w={templateID:"",query:"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX ex: <http://example.com#>\nDELETE {\n ?subject ex:myPredicate ?oldValue .\n} INSERT {\n ?subject ex:myPredicate ?newValue .\n} WHERE {\n ?id rdf:type ex:MyType .\n ?subject ex:isRelatedTo ?id .\n}\n",inference:!0,sameAs:!0,isNewTemplate:!0,isPristine:!0};var T;function h(t,r,n){const a=angular.element(document.getElementById("yasr-inner"));e.queryIsRunning=t,t?(e.queryStartTime=Date.now(),e.countTimeouted=!1,e.progressMessage=r,e.extraMessage=n,a.addClass("hide")):(e.progressMessage="",e.extraMessage="",a.removeClass("hide")),null===e.$$phase&&e.$apply()}function q(){e.tabsData=[e.currentQuery];const t=e.currentQuery;e.currentQuery.query?window.editor.setValue(e.currentQuery.query):window.editor.setValue(" "),o((function(){e.currentTabConfig={},e.currentTabConfig.queryType=t.queryType,e.currentTabConfig.resultsCount=t.resultsCount,e.currentTabConfig.offset=t.offset,e.currentTabConfig.allResultsCount=t.allResultsCount,e.currentTabConfig.page=t.page,e.currentTabConfig.pageSize=t.pageSize,e.currentTabConfig.timeFinished=t.timeFinished,e.currentTabConfig.timeTook=t.timeTook,e.currentTabConfig.sizeDelta=t.sizeDelta,e.$apply()}),0),e.canWriteActiveRepo()||(window.editor.options.readOnly=!0)}function v(){e.tabsData=e.tabs=[w],e.currentQuery=_.cloneDeep(w),window.editor&&(e.setQuery(e.currentQuery.query),q()),e.$watch((function(){return e.currentQuery.query}),(function(t,r){t!==r&&e.setDirty()}))}function S(){c.addKnownPrefixes(JSON.stringify(window.editor.getValue())).success((function(e){angular.isDefined(window.editor)&&angular.isDefined(e)&&e!==window.editor.getValue()&&window.editor.setValue(e)})).error((function(e){const t=getError(e);return r.error(t,p.instant("common.add.known.prefixes.error")),!0}))}function C(){s.createSparqlTemplate(e.currentQuery,a.getActiveRepository()).success((function(){e.currentQuery.isPristine=!0,e.currentQuery.isNewTemplate=!1,r.success(e.currentQuery.templateID,p.instant("save.sparql.template.success.msg")),e.goBack()})).error((function(t){const n=getError(t);r.error(n,p.instant("save.sparql.template.failure.msg",{templateID:e.currentQuery.templateID}))}))}e.saveTab=function(){},e.setQuery=function(e){window.editor.setValue(e||" ")},e.templateID?(T=e.templateID,s.getSparqlTemplate(T,a.getActiveRepository()).success((function(e){w.query=e,w.templateID=T,w.isNewTemplate=!T,v()})).error((function(t){const n=getError(t);r.error(n,p.instant("sparql.template.get.template.error",{templateID:e.currentQuery.templateID})),e.repositoryError=n}))):v(),e.saveTemplate=function(){(function(){if(!window.editor||"update"!==window.editor.getQueryMode())return r.error(p.instant("sparql.template.query.constraint"),p.instant("jdbc.invalid.query")),!1;return!0})()&&(e.currentQuery.templateID?(e.isInvalidTemplateId=!l.isValidIri(e.currentQuery.templateID,e.currentQuery.templateID.toString()),e.isInvalidTemplateId||(e.currentQuery.isNewTemplate?s.getSparqlTemplates(a.getActiveRepository()).success((function(t){f=t.find(t=>t===e.currentQuery.templateID)})).error((function(e){const t=getError(e);r.error(t,p.instant("sparql.template.get.templates.error"))})).then(()=>{if(f){const t=Object(n.decodeHTML)(p.instant("sparql.template.existing.template.error",{templateID:e.currentQuery.templateID}));d.openSimpleModal({title:p.instant("common.confirm.save"),message:t,warning:!0}).result.then((function(){C()}))}else C()}):e.currentQuery.isPristine?e.goBack():s.updateSparqlTemplate(e.currentQuery,a.getActiveRepository()).success((function(){e.currentQuery.isPristine=!0,e.currentQuery.isNewTemplate=!1,r.success(e.currentQuery.templateID,p.instant("update.sparql.template.success.msg")),e.goBack()})).error((function(t){const n=getError(t);r.error(n,p.instant("save.sparql.template.failure.msg",{templateID:e.currentQuery.templateID}))})))):r.error(p.instant("sparql.template.iri.constraint")))},$("textarea").on("paste",(function(){o((function(){S()}),0)})),e.setDirty=function(){e.currentQuery.isPristine=!1}}angular.module("graphdb.framework.sparql-template.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.monitoring.service","toastr"],["graphdb.framework.utils.notifications"]).controller("SparqlTemplatesCtrl",a).controller("SparqlTemplateCreateCtrl",i),a.$inject=["$scope","$repositories","SparqlTemplatesRestService","toastr","ModalService","$licenseService","$translate"],i.$inject=["$scope","$location","toastr","$repositories","$window","$timeout","SparqlTemplatesRestService","RDF4JRepositoriesRestService","SparqlRestService","UriUtils","ModalService","$translate"]},208:function(e,t,r){"use strict";r.r(t);r(7),r(23),r(79),r(22),r(138),r(135),r(66),r(61),r(71),r(25);angular.module("graphdb.framework.sparql-template",["toastr","ui.bootstrap","graphdb.framework.sparql-template.controllers","graphdb.framework.core.services.repositories","graphdb.framework.core.directives","graphdb.framework.rest.sparql-templates.service","graphdb.framework.core.directives.queryeditor.controllers","graphdb.framework.core.directives.queryeditor.sparqltab","graphdb.framework.core.directives.queryeditor.queryeditor","graphdb.framework.utils.uriutils"])},313:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},314:function(e,t){(function(t){e.exports=t}).call(this,{})},57:function(e,t){function r(e,t){return{showToastMessageWithDelay:function(r){return new Promise(n=>{e.success(t.instant(r)),setTimeout(n,200)})}}}angular.module("graphdb.framework.utils.notifications",[]).factory("Notifications",r),r.$inject=["toastr","$translate"]},61:function(e,t,r){"use strict";r.r(t);r(10),r(27);var n=r(0);function a(e,t,r,a,i,o,s,u,c,l,d,p,g,f,m){const y={id:"1",name:"",query:"select * where { \n\t?s ?p ?o .\n} limit 100 \n",inference:!0,sameAs:!0};let b,w;function T(t){!function(){if(a.isActiveRepoOntopType())return;const t=document.getElementById("sameAs");!t||e.currentQuery.inference||t.disabled?e.currentQuery.inference&&t.disabled&&(t.removeAttribute("disabled"),e.currentQuery.sameAs=b.appSettings.DEFAULT_SAMEAS):(t.disabled=!0,e.currentQuery.sameAs=!1)}(),e.tabs.forEach((function(r,n){r.id===t.id&&(e.tabs[n].query=t.query,a.isActiveRepoOntopType()||(e.tabs[n].inference=t.inference,e.tabs[n].sameAs=t.sameAs))})),g.set(f.TABS_STATE,e.tabs)}function h(t,r,n,a){const i=angular.element(document.getElementById("yasr-inner"));e.queryIsRunning=t,t?(e.queryStartTime=Date.now(),e.countTimeouted=!1,e.progressMessage=r,e.extraMessage=n,e.noLoaderTimer=a,i.addClass("hide")):(e.progressMessage="",e.extraMessage="",e.noLoaderTimer=!1,e.currentTrackAlias=null,e.abortRequested=!1,i.removeClass("hide")),null===e.$$phase&&e.$apply()}function q(r){function n(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0}if(e.orientationViewMode){if("yasr"===e.viewMode){let e=n()-document.querySelector(".CodeMirror-wrap").getBoundingClientRect().top;e-=40,document.querySelector(".CodeMirror-wrap").style.height=e+"px"}else e.noPadding={},document.querySelector(".CodeMirror-wrap").style.height="";document.getElementById("yasr").style.minHeight=""}else if(e.noPadding={paddingRight:15,paddingLeft:0},window.editor&&document.querySelector(".CodeMirror-wrap")){let e=n()-document.querySelector(".CodeMirror-wrap").getBoundingClientRect().top;e-=40,document.querySelector(".CodeMirror-wrap").style.height=e+"px",document.getElementById("yasr").style.minHeight=e+"px"}else{let n;n=t(r?function(){e.fixSizesOnHorizontalViewModeSwitch(r)}:e.fixSizesOnHorizontalViewModeSwitch,100),e.$on("$destroy",(function(){t.cancel(n)}))}window.yasr&&window.yasr.container&&t((function(){window.yasr.container.resize()}),100)}function v(){q(!0)}function S(t,r){r.newRepo&&(e.tabsData=g.get(f.TABS_STATE),e.tabsData.forEach((function(e){e.yasrData=void 0,e.queryType=void 0,e.resultsCount=0,e.allResultsCount=0,e.sizeDelta=void 0})),g.set(f.TABS_STATE,e.tabsData),e.tabs=e.tabsData,e.currentQuery={},e.errorMessage=null,e.repositoryError=null)}function C(e){t((function(){$('a[data-id = "'+e+'"]').tab("show")}),0)}function E(n,i){if(e.executedQueryTab=e.currentQuery,i){if("SELECT"!==window.editor.getQueryType()&&"CONSTRUCT"!==window.editor.getQueryType()&&"DESCRIBE"!==window.editor.getQueryType())return void r.warning(m.instant("query.editor.warning.msg"));if(a.isActiveRepoOntopType())return void r.warning(m.instant("query.editor.virtual.repo.warning.msg"))}if(e.explainRequested=i,!e.queryIsRunning){if(n?e.currentTabConfig.resultsCount=0:e.resetCurrentTabConfig(),e.lastRunQueryMode=window.editor.getQueryMode(),"update"===e.lastRunQueryMode&&a.isActiveRepoOntopType())return void r.warning(m.instant("query.editor.virtual.repo.update.warning.msg"));if(h(!0,"update"===e.lastRunQueryMode?m.instant("query.editor.executing.update"):m.instant("query.editor.evaluating.query")),"none"!==e.viewMode){e.viewMode="none",e.orientationViewMode&&e.fixSizesOnHorizontalViewModeSwitch();const r=t(window.editor.query,500);e.$on("$destroy",(function(){t.cancel(r)}))}else window.editor.query()}}function D(t){let r=void 0;return e.tabsData.forEach((function(e){if(e.name===t.name&&e.query===t.body)return r=e.id,e})),r}function Q(t){return function(r,n,a){e.savedQuery={name:r,query:n||window.editor.getValue(),shared:a},$(t).modal("show")}}function M(t){for(let r=0;r<e.tabsData.length;r++){if(e.tabsData[r].id===t)return r}}e.getPrincipal=function(){return l.getPrincipal().then(t=>{b=t,function(e,t){y.inference=t.appSettings.DEFAULT_INFERENCE,y.sameAs=t.appSettings.DEFAULT_SAMEAS,e.skipCountQuery=!t.appSettings.EXECUTE_COUNT,e.ignoreSharedQueries=t.appSettings.IGNORE_SHARED_QUERIES,e.tabsData=e.tabs=g.get(f.TABS_STATE)||[y],e.$watchCollection("[currentQuery.inference, currentQuery.sameAs]",(function(e,t,r){T(r.currentQuery)})),e.$on("repositoryIsSet",S)}(e,b)})},e.getPrincipal(),this.hint=document.createElement("span"),this.hint.innerHTML=m.instant("query.editor.autocomplete.hint"),this.hint.style.fontSize="12px",this.hint.style.color="gray",this.hint.style.backgroundColor="white",this.hint.style.position="absolute",this.hint.style.zIndex="3",this.hint.style.paddingLeft="12px",e.$watch((function(){return angular.element(".CodeMirror-hints").length}),e=>{if(e){const e=angular.element(".CodeMirror-hints")[0].getBoundingClientRect();document.body.appendChild(this.hint),this.hint.style.top=e.top-20+"px",this.hint.style.left=e.right-this.hint.offsetWidth-12+"px"}else this.hint&&this.hint.parentNode&&this.hint.parentNode.removeChild(this.hint)}),e.resetCurrentTabConfig=function(){e.currentTabConfig={pageSize:1e3,page:1,allResultsCount:0,resultsCount:0}},e.queryExists=!1,e.resetCurrentTabConfig(),e.saveTab=function(t){const r=M(t);if(void 0===r)return{};const n=e.tabsData[r];return e.saveQueryToLocal(n),n},e.loadTab=function(r){e.tabsData=g.get(f.TABS_STATE)||[y];const n=M(r),i=e.tabsData[n];i.yasrData&&h(!0,m.instant("query.editor.render.results.msg"),null,!0);t((function(){""===e.currentQuery.query&&(e.currentQuery.query=" "),t((function(){window.editor.setValue(e.currentQuery.query),e.yasr.updateDownloadDropdown(),e.$broadcast("tabLoaded",e.currentQuery.id),e.yasr.options.output=i.outputType,i.yasrData&&(i.yasrData.customError?(e.yasr.results={getException:function(){return i.yasrData.customError}},h(!1)):t((function(){e.setYasrResponse(i.yasrData,i.textStatus,i.jqXhrOrErrorString),h(!1),$(".yasr_btnGroup li:nth-child(2)").hasClass("active")&&t((function(){$(".yasr_btnGroup li:nth-child(2) a").get(0).click()}),0)}),0))}),0)}),0),g.set(f.TABS_STATE_CURRENT_ID,r),e.currentQuery=i,t((function(){e.currentTabConfig={},e.currentTabConfig.queryType=i.queryType,e.currentTabConfig.resultsCount=i.resultsCount,e.currentTabConfig.offset=i.offset,e.currentTabConfig.allResultsCount=i.allResultsCount,e.currentTabConfig.allResultsCountExact=i.allResultsCountExact,e.currentTabConfig.page=i.page,e.currentTabConfig.pageSize=i.pageSize,e.currentTabConfig.timeFinished=i.timeFinished,e.currentTabConfig.timeTook=i.timeTook,e.currentTabConfig.sizeDelta=i.sizeDelta,e.currentTabConfig.customUpdateMessage=i.customUpdateMessage,e.currentTabConfig.errorMessage=i.errorMessage,e.currentTabConfig.warningMessage=i.warningMessage,e.$apply()}),0),$("#yasr").css("padding","0"),w||(w=setInterval(x,200));!function(){const t=a.isActiveRepoOntopType(),r=a.isActiveRepoFedXType();(function(e){const t=document.getElementById("sameAs"),r=document.getElementById("inference");t&&(t.disabled=!!e);r&&(r.disabled=!!e)})(t),e.nocount=!(!t&&!r)||!b.appSettings.EXECUTE_COUNT,t&&(e.currentQuery.inference=!0,e.currentQuery.sameAs=!0)}()},e.addNewTab=function(r,n,a){if(!I(!0))return;let i;i=n||a?{id:"1",name:n,query:a,inference:b.appSettings.DEFAULT_INFERENCE,sameAs:b.appSettings.DEFAULT_SAMEAS}:{id:"1",name:"",query:"select * where { \n\t?s ?p ?o .\n} limit 100 \n",inference:b.appSettings.DEFAULT_INFERENCE,sameAs:b.appSettings.DEFAULT_SAMEAS};A++;const o=""+A;e.tabsData=e.tabs;const s=i;s.id=o,e.tabsData.push(s),g.set(f.TABS_STATE_MAXID,A),g.set(f.TABS_STATE,e.tabsData);const u=Array.prototype.slice.call(arguments,1);t((function(){e.$apply(),C(o),r&&r.apply(this,u)}),0),e.tabs=e.tabsData},e.isTabChangeOk=I,e.runQuery=E,e.abortCurrentQuery=function(){p.deleteQuery(e.currentTrackAlias,a.getActiveRepository()).success((function(){e.abortRequested=!0}))},e.editQuery=function(t){i.open({templateUrl:"js/angular/core/directives/queryeditor/templates/query-sample.html",controller:"QuerySampleModalCtrl",resolve:{data:function(){return{title:m.instant("query.editor.edit.saved.query",{name:t.name}),query:t,edit:!0,okButtonText:m.instant("common.save.btn")}}}}).result.then((function(n){const a={name:n.name,body:n.body,shared:n.shared};t.name!==n.name?s.addNewSavedQuery(a).success((function(){e.deleteQueryHttp(t.name,!0)})).error((function(e){const t=getError(e);r.error(t,m.instant("query.editor.edit.saved.query.error"))})):s.editSavedQuery(a).success((function(){$("#editQueryContainer").modal("hide"),e.toggleSampleQueries(),r.success(m.instant("query.editor.edit.saved.query.success.msg",{name:t.name}))})).error((function(e){const t=getError(e);r.error(t,m.instant("query.editor.edit.saved.query.error"))}))}))},e.getNamespaces=function(){h(!0,m.instant("common.refreshing.namespaces"),m.instant("common.extra.message")),e.namespacesLoading=!0,d.getRepositoryNamespaces().success((function(t){const r={};t.results.bindings.forEach((function(e){r[e.prefix.value]=e.namespace.value})),e.namespaces=r})).error((function(t){e.repositoryError=getError(t)})).finally((function(){h(!1),e.namespacesLoading=!1}))},e.changePagination=function(){E(!0,e.explainRequested)},e.toggleSampleQueries=function(){s.getSavedQueries().success((function(t){e.sampleQueries=t.filter(t=>!e.ignoreSharedQueries||t.owner!==e.principal.username)})).error((function(e){const t=getError(e);r.error(t,m.instant("query.editor.get.saved.queries.error"))}))},e.addKnownPrefixes=function(){s.addKnownPrefixes(JSON.stringify(window.editor.getValue())).success((function(e){angular.isDefined(window.editor)&&angular.isDefined(e)&&e!==window.editor.getValue()&&window.editor.setValue(e)})).error((function(e){const t=getError(e);return r.error(t,m.instant("common.add.known.prefixes.error")),!0}))},e.getExistingTabId=D,e.querySelected=function(t){const r=D(t);e.toggleSampleQueries(),e.isTabChangeOk(!1)&&(e.highlightNextTabChange=!0,angular.isDefined(r)?C(r):e.addNewTab(null,t.name,t.body))},e.deleteQuery=function(t){o.openSimpleModal({title:m.instant("common.confirm"),message:m.instant("query.editor.delete.saved.query.warning.msg",{savedQueryName:t}),warning:!0}).result.then((function(){e.deleteQueryHttp(t)}))},e.deleteQueryHttp=function(t,n){s.deleteSavedQuery(t).success((function(){e.toggleSampleQueries(),n||r.success(m.instant("query.editor.delete.saved.query.success.msg",{savedQueryName:t}))})).error((function(e){const t=getError(e);r.error(t,m.instant("query.editor.delete.saved.query.error"))}))},e.saveQuery=function(t,r){i.open({templateUrl:"js/angular/core/directives/queryeditor/templates/query-sample.html",controller:"QuerySampleModalCtrl",resolve:{data:function(){return{title:m.instant("query.editor.create.saved.query.msg"),query:{name:t.name,body:t.query,shared:t.shared},edit:!1,okButtonText:m.instant("common.create.btn"),queryExists:r,existingQueryErrMsg:Object(n.decodeHTML)(m.instant("query.sample.existing.query.warning",{name:t.name}))}}}}).result.then((function(t){e.saveQueryHttp(t)}),(function(){}))},e.saveQueryHttp=function(t){s.addNewSavedQuery(t).success((function(){r.success(m.instant("query.editor.save.saved.query.success.msg",{name:t.name}))})).error((function(n,a){const i=getError(n);r.error(i,m.instant("query.editor.create.saved.query.error"));let o=!1;409===a&&(o=!0),t.query=t.body,e.saveQuery(t,o)}))},e.saveQueryToLocal=T,e.setLoader=h,e.getLoaderMessage=function(){const t=(Date.now()-e.queryStartTime)/1e3;let r="",n="";e.noLoaderTimer||(r=e.getHumanReadableSeconds(t));n=e.progressMessage?m.instant("query.editor.progress.msg",{progressMessage:e.progressMessage,timeHuman:r}):m.instant("common.running.operation",{timeHuman:r});e.extraMessage&&t>10&&(n+=m.instant("query.editor.extra.msg",{extraMessage:e.extraMessage}));return n},e.fixSizesOnHorizontalViewModeSwitch=q,e.changeViewMode=function(){e.viewMode="none",e.orientationViewMode=!e.orientationViewMode,g.set(f.VIEW_MODE,e.orientationViewMode),q()},e.showHideEditor=v,e.focusQueryEditor=function(){angular.element(document).find(".editable-input").is(":focus")||angular.element(document).find(".CodeMirror textarea:first-child").focus()},e.orientationViewMode=!g.get(f.VIEW_MODE)||"true"===g.get(f.VIEW_MODE),e.viewMode="none",e.getActiveRepository=function(){return a.getActiveRepository()},e.getActiveRepositoryNoError=function(){if(!e.repositoryError)return a.getActiveRepository()},e.orientationViewMode||v(),window.onbeforeunload=function(){e.currentQuery&&e.saveTab(e.currentQuery.id),g.set(f.TABS_STATE,e.tabs)},e.$on("$destroy",(function(){e.currentQuery&&e.saveTab(e.currentQuery.id),g.set(f.TABS_STATE,e.tabs),clearInterval(w)})),e.$on("$destroy",(function(){clearInterval(w),window.editor=null,window.yasr=null}));let A=g.get(f.TABS_STATE_MAXID)||1;function R(e){return $(e).attr("data-id")}function x(){if(e.currentTabConfig.resultsCount>=0){const e=$(".saveAsDropDown");e.length>0&&!window.editor.queryValid?yasr.header.find(".saveAsDropDown").remove():0===e.length&&window.editor.queryValid&&yasr.updateDownloadDropdown()}}function I(t){return!(e.queryIsRunning&&!e.namespacesLoading)||(t?r.info(m.instant("query.editor.new.tab.running.query.warning.msg")):r.info(m.instant("query.editor.tab.switching.running.query.warning.msg")),!1)}e.highlightNextTabChange=!1,e.$on("tabAction",(function(r,n){n.relatedTarget&&(t.cancel(n.relatedTarget.timer),$(n.relatedTarget).css("color",""),e.saveTab(R(n.relatedTarget))),e.loadTab(R(n.target));const a=["var(--primary-color)","","var(--primary-color)"],i=[400,400,400];if(e.highlightNextTabChange){e.highlightNextTabChange=!1;let r=0;$(n.target).css("color",a[r]);const o=function(){r++,r<a.length?($(n.target).css("color",a[r]),n.target.timer=t(o,i[r])):$(n.target).css("color","")};t(o,i[r])}})),e.$on("deleteAllexeptSelected",(function(t,r){e.tabsData=r,e.tabs=r})),e.currentQuery={},e.savedQuery={},e.sampleQueries={},e.editQueryModal=Q("#editQueryContainer"),e.deleteQueryModal=Q("#confirmDeleteContainer"),e.saveQueryModal=Q("#saveQueryContainer"),e.getResultsDescription=function(){let t;if(0===e.currentTabConfig.resultsCount)t="No results.";else{const r=(e.currentTabConfig.page-1)*e.currentTabConfig.pageSize+Math.min(e.currentTabConfig.resultsCount,e.currentTabConfig.pageSize);t=m.instant("query.editor.showing.results.from.msg")+u("currency")(e.currentTabConfig.offset,"",0)+m.instant("query.editor.to")+u("currency")(r,"",0),e.currentTabConfig.allResultsCount>0&&(t+=m.instant(e.currentTabConfig.allResultsCountExact?"query.editor.of":"query.editor.of.at.least"),t+=u("currency")(e.currentTabConfig.allResultsCount,"",0)),t+="."}return t},e.getUpdateDescription=function(){return e.currentTabConfig.customUpdateMessage?m.instant(e.currentTabConfig.customUpdateMessage.msg,{name:e.currentTabConfig.customUpdateMessage.name}):void 0===e.currentTabConfig.sizeDelta?"":e.currentTabConfig.sizeDelta<0?m.instant("yasr.removed.statements.result.msg",{sizeDelta:Math.abs(e.currentTabConfig.sizeDelta)}):e.currentTabConfig.sizeDelta>0?m.instant("yasr.added.statements.result.msg",{sizeDelta:e.currentTabConfig.sizeDelta}):m.instant("yasr.statements.no.change.msg")},e.getStaleWarningMessage=function(){const t=60*Math.round((Date.now()-e.currentTabConfig.timeFinished)/6e4);if(t>=3600)return m.instant("yasr.stale.result.msg",{secondsAgo:e.getHumanReadableSeconds(t)})};const k=function(){};angular.element(c).bind("resize",k),e.$on("$destroy",(function(){angular.element(c).unbind("resize",k)}))}function i(e,t,r,n){r.queryExists&&(e.queryExists=!0),e.query=_.cloneDeep(r.query),e.title=r.title,e.edit=r.edit,e.okButtonText=r.okButtonText,e.existingQueryErrMsg=n.trustAsHtml(r.existingQueryErrMsg),e.ok=function(){e.form.$valid&&t.close(e.query)},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.core.directives.queryeditor.controllers",["graphdb.framework.utils.localstorageadapter","graphdb.framework.rest.sparql.service"]).controller("QueryEditorCtrl",a).controller("QuerySampleModalCtrl",i),a.$inject=["$scope","$timeout","toastr","$repositories","$uibModal","ModalService","SparqlRestService","$filter","$window","$jwtAuth","RDF4JRepositoriesRestService","MonitoringRestService","LocalStorageAdapter","LSKeys","$translate"],i.$inject=["$scope","$uibModalInstance","data","$sce"]},66:function(e,t,r){"use strict";r.r(t);r(10);function n(e,t,r,n){return{restrict:"AE",template:'<a class="nav-link" role="tab" data-toggle="tab" blur="submit" editable-text="tab.name" e-form="editCurrentlySelectedOnly" ng-click="selectThisTab($event)" ng-dblclick="editCurrentTab()" ><span ng-class="{\'text-muted\': !tab.name}">{{ tab.name || (\'sparql.tab.directive.unnamed.tab.title\' | translate)}}</span><button type="button" ng-click="deleteTab($event)" class="btn btn-link btn-sm secondary delete-sparql-tab-btn" title="Delete tab"><i class="icon-close"></i></button></a>',replace:!0,controller:["$scope","$element","$rootScope","ModalService","toastr","$translate",function(e,n,a,i,o,s){function u(e){return $(e).attr("data-id")}function c(e){$('a[data-id = "'+e+'"]').tab("show")}e.state={},$(n).on("shown.bs.tab",(function(e){a.$broadcast("tabAction",e)})),e.deleteTab=function(l){if(l.preventDefault(),l.stopPropagation(),e.tabs.length<2)return void o.warning(s.instant("sparql.tab.directive.close.last.warning"));l.shiftKey?(e.state.selectedTabId=u(n),i.openSimpleModal({title:s.instant("common.confirm"),message:s.instant("sparql.tab.directive.delete.all.tabs.warning"),warning:!0}).result.then((function(){var n;n=e.state.selectedTabId,e.tabs=e.tabs.filter((function(e){if(e.id===n)return e})),c(e.tabs[0].id),t.set(r.TABS_STATE,e.tabs),a.$broadcast("deleteAllexeptSelected",e.tabs)}))):(e.state.idForDelete=u(n),i.openSimpleModal({title:s.instant("common.confirm"),message:s.instant("sparql.tab.directive.close.tab.warning"),warning:!0}).result.then((function(){!function(t){if(angular.isUndefined(t))throw"Delete by id was called with undefined id";const r=function(t){for(let r=0;r<e.tabs.length;r++){if(e.tabs[r].id===t)return r}}(t);e.tabs.splice(r,1),t===e.currentQuery.id&&e.tabs.length>0&&c(r>0?e.tabs[r-1].id:e.tabs[0].id)}(e.state.idForDelete)})));angular.element(document).find(".CodeMirror textarea:first-child").focus()},e.editCurrentTab=function(){if(u(n)!==e.currentQuery.id)return;e.editCurrentlySelectedOnly.$show();const t=$(".editable-buttons");t.children(".btn.btn-primary").addClass("btn-sm"),t.children(".btn.btn-default").addClass("btn-sm"),$(".editable-controls .editable-input").addClass("form-control-sm").on("change",(function(t){e.currentQuery.name=t.currentTarget.$$currentValue})),$(".editable-buttons .glyphicon.glyphicon-ok").removeClass("glyphicon glyphicon-ok").addClass("fa fa-check"),$(".editable-buttons .glyphicon.glyphicon-remove").removeClass("glyphicon glyphicon-remove").addClass("fa fa-close")},e.selectThisTab=function(t){t.preventDefault(),t.stopPropagation(),e.isTabChangeOk(!1)&&$(n).tab("show")}}]}}angular.module("graphdb.framework.core.directives.queryeditor.sparqltab",["graphdb.framework.core","graphdb.framework.utils.localstorageadapter"]).directive("sparqlTab",n),n.$inject=["$rootScope","LocalStorageAdapter","LSKeys","ModalService"]}}]);
|