graphdb-workbench 2.5.0-TR5 → 2.5.0
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.b6f8b750a217ba7ccc09.bundle.js → 0.f8448f998a59db17e94e.bundle.js} +3 -3
- package/dist/{1.def08ec962ac2cae251e.bundle.js → 1.46d9ecd4119bac145f3b.bundle.js} +1 -1
- package/dist/{9.20ca8dfe69566d4b4000.bundle.js → 10.a26ae97905866618b14e.bundle.js} +1 -1
- package/dist/{100.30b22eaf2bc647082625.bundle.js → 100.aef098a33fbb925e0d2d.bundle.js} +1 -1
- package/dist/{101.4093fce7d4115fcf21dc.bundle.js → 101.42eacc63e0fb5834b78a.bundle.js} +1 -1
- package/dist/{102.a98125e7cbe44cf536e2.bundle.js → 102.4f78eeab62aac245879e.bundle.js} +1 -1
- package/dist/{103.4d162f7df14c8d81157b.bundle.js → 103.f38f3cd69ff610955aaf.bundle.js} +1 -1
- package/dist/{104.f0696d49ede65b342317.bundle.js → 104.2e21f1462021dca17db1.bundle.js} +1 -1
- package/dist/{105.097830cf884ff7d82859.bundle.js → 105.76381cb7984bcbc9ba9a.bundle.js} +1 -1
- package/dist/{106.2e488f1a9b4b22ad4026.bundle.js → 106.23e14c6b280756d04533.bundle.js} +1 -1
- package/dist/{107.0495c9673045f1f68bdf.bundle.js → 107.75e40619cb45972dc39f.bundle.js} +1 -1
- package/dist/{108.20ec9347815ab00c4f28.bundle.js → 108.f09444e990531d27e0be.bundle.js} +1 -1
- package/dist/{109.9699fc25bc788fe01bb3.bundle.js → 109.ef97393181ee534042d8.bundle.js} +1 -1
- package/dist/{110.f101a1762899931179a6.bundle.js → 110.d59b8565d2255a282669.bundle.js} +1 -1
- package/dist/{111.782fffba201a2ef304d0.bundle.js → 111.fff9f089f65f01013923.bundle.js} +1 -1
- package/dist/{112.529d6e279b6d0bbaff2e.bundle.js → 112.5bd3fcd7c37f1024fe26.bundle.js} +1 -1
- package/dist/{113.94c8128e0dc2ff349d42.bundle.js → 113.2fa29eca15d32deb3320.bundle.js} +1 -1
- package/dist/{114.2fa7a38692c626887bfe.bundle.js → 114.d78615087abe68db7b2f.bundle.js} +1 -1
- package/dist/{115.8f90e89fb972eacc5c33.bundle.js → 115.558ce3da00d3be87d18a.bundle.js} +1 -1
- package/dist/{116.dd7d9db80081251674c2.bundle.js → 116.577aab1d9bafd0053623.bundle.js} +1 -1
- package/dist/{117.4d04f878d3c445436ca8.bundle.js → 117.c20f037799328c931eba.bundle.js} +1 -1
- package/dist/118.39c8b47405ab93c40847.bundle.js +1 -0
- package/dist/{118.64e18c42fdf042126161.bundle.js → 119.19ee7b3ae143f817c5b1.bundle.js} +1 -1
- package/dist/{12.fadfcb50bfa4c59e0237.bundle.js → 12.7877dd6008df9acf44e1.bundle.js} +1 -1
- package/dist/{119.252679fc95f75d2322e2.bundle.js → 120.b944d5e63424d4307fc8.bundle.js} +1 -1
- package/dist/{120.cafb2283bec468aa2519.bundle.js → 121.3a8954e4c885c56a9817.bundle.js} +1 -1
- package/dist/{121.1a02aa06ad8e9d84e954.bundle.js → 122.71a8cf0330504672fffc.bundle.js} +1 -1
- package/dist/123.c6957ecb441d8a09932a.bundle.js +1 -0
- package/dist/124.27e85a0284e2ebeb7d6e.bundle.js +1 -0
- package/dist/{124.cfdd9ffeb70ce673b073.bundle.js → 125.9e925ae0dd1217d81d89.bundle.js} +1 -1
- package/dist/{125.c51d4597f707f4372ab2.bundle.js → 126.a32b57d6108545746ed3.bundle.js} +1 -1
- package/dist/{126.c630f0e31c7c78b9aa3e.bundle.js → 127.90d1975083eef3d4a715.bundle.js} +1 -1
- package/dist/{127.863991bbf25a97e3314b.bundle.js → 128.544f1a82e19dd245c7de.bundle.js} +1 -1
- package/dist/{128.d7c5c015003cb2b46a89.bundle.js → 129.64ec11449e0c734500c2.bundle.js} +1 -1
- package/dist/{13.def661d2d5c02515c46c.bundle.js → 13.fe78f15334507bcc08ae.bundle.js} +1 -1
- package/dist/{129.7da368c0ddd3df0d59e7.bundle.js → 130.f8e68ac86e17b3622d40.bundle.js} +1 -1
- package/dist/{130.6e96453e99a3061c00bc.bundle.js → 131.4868fc3a837277c30273.bundle.js} +1 -1
- package/dist/{131.7909b5b4a65805f2ac85.bundle.js → 132.7815ab1168a254cb0d47.bundle.js} +1 -1
- package/dist/{132.a32ce3ed762cdeeefcb1.bundle.js → 133.f87e1685dd5ed920f9b5.bundle.js} +1 -1
- package/dist/{133.7c843ac99edfbc5a3c8a.bundle.js → 134.8998ff724a077ecff2ce.bundle.js} +1 -1
- package/dist/{134.284d6550bee70ebe9251.bundle.js → 135.c07268699f76ef7a02ff.bundle.js} +1 -1
- package/dist/{135.0d36b185dc9218339c4a.bundle.js → 136.908f1f6fe3054f99b560.bundle.js} +1 -1
- package/dist/{136.3d6bea5d79a265841cb8.bundle.js → 137.8262ca9736e9818284cd.bundle.js} +1 -1
- package/dist/{137.279f42cf9d6782fc9599.bundle.js → 138.8c149cad49010a65b3ca.bundle.js} +1 -1
- package/dist/{138.7710c7a2d9301fa1ba0e.bundle.js → 139.97ee12e7a3c05be03456.bundle.js} +1 -1
- package/dist/{14.5d871bcf86bdc77c2f06.bundle.js → 14.0bb211bcdc29c6d8b3b5.bundle.js} +4 -4
- package/dist/{139.706b6304e0a555f094fe.bundle.js → 140.6b3c57ffec700081328b.bundle.js} +1 -1
- package/dist/{140.4f9cece7be0358701d6f.bundle.js → 141.4981056237955a34b2e2.bundle.js} +1 -1
- package/dist/{141.20c6975c04b7a8b03bf2.bundle.js → 142.4d60c1795eed3a9570f9.bundle.js} +1 -1
- package/dist/{142.b4e33c353e4600a26cbc.bundle.js → 143.b7057852f7859cf39e75.bundle.js} +1 -1
- package/dist/{143.f4779159a3520551a8c4.bundle.js → 144.3f85f8eacae521d52355.bundle.js} +1 -1
- package/dist/{144.1bfdb76f7a3b00ee8c5f.bundle.js → 145.9281069e9e77978b640a.bundle.js} +1 -1
- package/dist/{145.fcc303d9185be21b9b9c.bundle.js → 146.51d2987de4defe7df7c7.bundle.js} +1 -1
- package/dist/{146.1cbe84062b34decf1bf3.bundle.js → 147.54016549674d35bc2869.bundle.js} +1 -1
- package/dist/{147.95390cc9a55229539b1f.bundle.js → 148.ad95b30f508a0bd02970.bundle.js} +1 -1
- package/dist/149.8dd1281617389f8c189b.bundle.js +1 -0
- package/dist/{15.971b0860a2a52dbfb083.bundle.js → 15.35db798cdef3e654ff7e.bundle.js} +1 -1
- package/dist/{149.37f9ad59acfc268a7a10.bundle.js → 150.5e0ee4350f8edd0e7b9a.bundle.js} +1 -1
- package/dist/{150.4a1996f8b5e73257629d.bundle.js → 151.6b81c99a1ec1b184b82d.bundle.js} +1 -1
- package/dist/{151.4893fa9ae46505fd0984.bundle.js → 152.2e1aa910a68f0086825b.bundle.js} +1 -1
- package/dist/{152.c38bf8cf6073904a8798.bundle.js → 153.7a64973115bdaec26406.bundle.js} +1 -1
- package/dist/{153.6542f557e8593f077764.bundle.js → 154.5938248b52830d0a80a2.bundle.js} +1 -1
- package/dist/{154.d048716c519356d913f8.bundle.js → 155.a4511849c1001c5f2ba6.bundle.js} +1 -1
- package/dist/{155.8546d392bf9b145a2c4f.bundle.js → 156.bbcaf52acb0cecbc6257.bundle.js} +1 -1
- package/dist/{156.ade46cc3994fa23e3d3d.bundle.js → 157.51181d03518519f84b5e.bundle.js} +1 -1
- package/dist/{157.88767bdc74fd85479c74.bundle.js → 158.640e412f6002ee1d7341.bundle.js} +1 -1
- package/dist/{158.a706d054b5030307f2db.bundle.js → 159.10457cbb053c1315d93a.bundle.js} +1 -1
- package/dist/{16.9c43dc9fd9b55d8a62e1.bundle.js → 16.2f60fbeaccd97aefaae2.bundle.js} +1 -1
- package/dist/{159.69da9cc4e42dc701c51f.bundle.js → 160.c46bfdf09357a4c62a53.bundle.js} +1 -1
- package/dist/{160.ff49dd32481710bef803.bundle.js → 161.0f35ee11981f0ea0455f.bundle.js} +1 -1
- package/dist/{161.acf9bbdba1fb013afd65.bundle.js → 162.fef28120701e7d200b01.bundle.js} +1 -1
- package/dist/{162.f926c1f8d1d138f3dab7.bundle.js → 163.38565d40ac5f71d1c875.bundle.js} +1 -1
- package/dist/{163.0c1c472f03dc3d618e9b.bundle.js → 164.b2116f472aa847618aee.bundle.js} +1 -1
- package/dist/{167.e462d62423037c0d40c0.bundle.js → 168.2d4b5a75da5430c73efc.bundle.js} +1 -1
- package/dist/{168.3beb1e035ff7cd68ad79.bundle.js → 169.6897f56896e3664e8b53.bundle.js} +1 -1
- package/dist/{17.c0a7f71ce8def9c4bbba.bundle.js → 17.2bff7856b13fd72e2db4.bundle.js} +1 -1
- package/dist/{169.c1e6980e494d0dd7fbed.bundle.js → 170.d5c0d475c5b6ad84ef77.bundle.js} +1 -1
- package/dist/{170.05a3c4fc28e95bc1edc7.bundle.js → 171.60cdc91b2bf682a20911.bundle.js} +1 -1
- package/dist/{171.8feb7e7a977255e2a59c.bundle.js → 172.1fb9ead3e508a7cfa5f3.bundle.js} +1 -1
- package/dist/{172.5110a57500642785a16d.bundle.js → 173.95602c81a2692624a015.bundle.js} +1 -1
- package/dist/{173.c51e8bb0068767048942.bundle.js → 174.aac1982e67b5ca1731c1.bundle.js} +1 -1
- package/dist/{174.cc90175a31559383d754.bundle.js → 175.5e49a28397900168f816.bundle.js} +1 -1
- package/dist/{175.a11f1999fb4365d11d24.bundle.js → 176.2e6d1a9f4eac4fdd8422.bundle.js} +1 -1
- package/dist/177.3b6aabf3c4db8519ea74.bundle.js +1 -0
- package/dist/178.e10370553beb5c6bb839.bundle.js +1 -0
- package/dist/{178.90435d52f01c37292361.bundle.js → 179.784cbd536b8e636c1272.bundle.js} +1 -1
- package/dist/{18.83a5f41e7ad020e6a0db.bundle.js → 18.d6be3e6583bf3dacd54f.bundle.js} +2 -2
- package/dist/180.d37db50f3ce1b3a04a65.bundle.js +1 -0
- package/dist/{180.e2df1dba837ce2244cb8.bundle.js → 181.f307cabdc4ed7a10ff64.bundle.js} +1 -1
- package/dist/{181.5e99efac9b40fcc83853.bundle.js → 182.e8fe148e90fcd334b9b9.bundle.js} +1 -1
- package/dist/183.a086e00d4dc3c7855611.bundle.js +1 -0
- package/dist/184.ff8a39692d0ff666c9e6.bundle.js +1 -0
- package/dist/{184.552c2b2b052055836ce4.bundle.js → 185.8b9f0b866e848f8a1aac.bundle.js} +1 -1
- package/dist/{185.3a6ad805beea5463bce4.bundle.js → 186.798880846274da7033da.bundle.js} +1 -1
- package/dist/{186.143e5ad84b2c09e46e2f.bundle.js → 187.eb92a35d38294bc21703.bundle.js} +1 -1
- package/dist/{187.a0252349726fc1769062.bundle.js → 188.641582484af80415d29a.bundle.js} +1 -1
- package/dist/{188.027851ded787d03613e6.bundle.js → 189.7ccbb0ef67513ae7001a.bundle.js} +1 -1
- package/dist/{19.363c9aa6e23edc2d4de3.bundle.js → 19.c2a5c3e7a49a4acba486.bundle.js} +2 -2
- package/dist/{189.073d9c322abd0f32eeb2.bundle.js → 190.a3609218c5d8e873a46f.bundle.js} +1 -1
- package/dist/{190.e7e71f5ff37cbf53818b.bundle.js → 191.4c817606bf66c16d9ad1.bundle.js} +1 -1
- package/dist/{191.fa25315693e20379049a.bundle.js → 192.21f366a1ea7e6905f120.bundle.js} +1 -1
- package/dist/{192.413cff782db89de0b18e.bundle.js → 193.4d40b788bd7ddcf16788.bundle.js} +1 -1
- package/dist/{193.f91e9b04e7c557236b54.bundle.js → 194.0170093f1daf20e82b5f.bundle.js} +1 -1
- package/dist/{194.5950cac00640ecf44c8a.bundle.js → 195.d7d8af61458f9416878f.bundle.js} +1 -1
- package/dist/{195.e29cc44cb556ad8ae365.bundle.js → 196.6e6b7589cd1342a0b2b5.bundle.js} +1 -1
- package/dist/{196.ae170313a46e965c68f6.bundle.js → 197.c071fa1fe9e081a3b053.bundle.js} +1 -1
- package/dist/{197.2a95aa72f0947c45119e.bundle.js → 198.3c5ca9ac5a745b4b23a1.bundle.js} +1 -1
- package/dist/{198.3c7033f22651a01cac5f.bundle.js → 199.00ac5221a334189ea09a.bundle.js} +1 -1
- package/dist/{2.27244531b018542ba801.bundle.js → 2.78b4e53269171c9c08a5.bundle.js} +1 -1
- package/dist/{20.633349dfb31fe077713c.bundle.js → 20.8fd969e3860ddffedcc3.bundle.js} +1 -1
- package/dist/{199.06b3c496c200f8814c86.bundle.js → 200.aa3f4dcf9cf98409dbf5.bundle.js} +1 -1
- package/dist/{200.7a2b528816b82fe893d3.bundle.js → 201.a1b147e78f43a3bc99c3.bundle.js} +1 -1
- package/dist/{201.084a4f3fd929961981e5.bundle.js → 202.20e71b18f57e7d234ff0.bundle.js} +1 -1
- package/dist/{202.d0e7aecc14152039e4c4.bundle.js → 203.0219c2ba2d4fe4881af2.bundle.js} +1 -1
- package/dist/{203.f2febb8f757a973644fd.bundle.js → 204.cc169603e18b84e7e65b.bundle.js} +1 -1
- package/dist/{204.ae774828c8152331ad6d.bundle.js → 205.99fb3c89cd9b9183ddbf.bundle.js} +1 -1
- package/dist/{205.b0c57328d5e105079c35.bundle.js → 206.43b04d2170165e13353c.bundle.js} +1 -1
- package/dist/{206.7b699abfaf69be489e57.bundle.js → 207.798c195e1d7d3f301131.bundle.js} +1 -1
- package/dist/{207.bf8c99978e5cc5c08406.bundle.js → 208.34f042066a757f4fd8c0.bundle.js} +1 -1
- package/dist/{208.5147a7c4dbfbd3eb0f69.bundle.js → 209.288844c6a42ff4d5685a.bundle.js} +1 -1
- package/dist/21.c981976c6528073c0a2f.bundle.js +1 -0
- package/dist/210.1ac38e393ca959703d4b.bundle.js +1 -0
- package/dist/{210.56bbb4587d28942d3f1c.bundle.js → 211.d2721b9785e609e2f817.bundle.js} +1 -1
- package/dist/{211.a13bdb482ae7393d0ee6.bundle.js → 212.b6b19c939f21132b451c.bundle.js} +1 -1
- package/dist/{212.ed5d6787ec8aff33b1c8.bundle.js → 213.5a5116f764e6357e53ab.bundle.js} +1 -1
- package/dist/{213.2e9d9ea422421a1e8151.bundle.js → 214.a2640be51c42d820bb83.bundle.js} +1 -1
- package/dist/{214.076164b0af950e717af1.bundle.js → 215.209396a71f130477e2b3.bundle.js} +1 -1
- package/dist/{215.6cde17d50370c0442e85.bundle.js → 216.16e2e982acc750b4045a.bundle.js} +1 -1
- package/dist/{216.15c5469c56659f300b32.bundle.js → 217.8540eb1d1a0946e72dbf.bundle.js} +1 -1
- package/dist/{217.43b77355f258b57a14f7.bundle.js → 218.ef33580c82d20f39f75f.bundle.js} +1 -1
- package/dist/{218.aea02c8376dc86418fbc.bundle.js → 219.1652bc940cdd0088dc18.bundle.js} +1 -1
- package/dist/{22.aeefe163b545627f1d09.bundle.js → 22.9d339503774f4f6c0a8b.bundle.js} +1 -1
- package/dist/{219.516183464924beb9a706.bundle.js → 220.f8f9c348b1fc0cc72bd6.bundle.js} +1 -1
- package/dist/221.b18a92f0ba880edaebbf.bundle.js +1 -0
- package/dist/222.a52ebecd1d5201437ebe.bundle.js +1 -0
- package/dist/{23.3c999215eced890b5ff2.bundle.js → 23.87ca8226d464e3699b8e.bundle.js} +2 -2
- package/dist/24.9076b75f45ce0579f7be.bundle.js +1 -0
- package/dist/{25.29c1a52c46ae6e5bf6e1.bundle.js → 25.073791b8dd02c5b31183.bundle.js} +1 -1
- package/dist/{26.0078e28534d9834ef61c.bundle.js → 26.6e06be7172a866ad45f9.bundle.js} +1 -1
- package/dist/{27.7041267ccea224c740bb.bundle.js → 27.5152c2a1f3b1369e21b0.bundle.js} +1 -1
- package/dist/{28.4e990f76e2e5e755d17a.bundle.js → 28.90b784e728e3d5e4c6aa.bundle.js} +1 -1
- package/dist/{29.724eaf5f0dfd2ac90279.bundle.js → 29.e2309b858706718f1732.bundle.js} +1 -1
- package/dist/{3.e05ab735701193af6482.bundle.js → 3.cf89087c137e759ecd19.bundle.js} +3 -3
- package/dist/{30.70aea4704eeccc7c7f4e.bundle.js → 30.32fb84930c42bae43a74.bundle.js} +1 -1
- package/dist/31.31b7b4bd073b82c09fda.bundle.js +1 -0
- package/dist/{33.6ed382c85a678d5aef03.bundle.js → 33.fa9f0e662060f2e97267.bundle.js} +1 -1
- package/dist/{34.36538ae8d37613f803e8.bundle.js → 34.af22bc6d5ed2bcb72a09.bundle.js} +1 -1
- package/dist/{35.c6277b1733bb56ebb77f.bundle.js → 35.e601e19e63c6ddaf2484.bundle.js} +1 -1
- package/dist/{36.7ed08392620f744fa5fe.bundle.js → 36.df47a70d8efbf1cd033b.bundle.js} +1 -1
- package/dist/{37.d9b0dd8e052ad9170f68.bundle.js → 37.085cdb373f74d55eee07.bundle.js} +1 -1
- package/dist/38.fc172c7b0d24ab0f8a35.bundle.js +1 -0
- package/dist/{4.b2b47509992147defe13.bundle.js → 4.851f9ade6202116ecfb9.bundle.js} +1 -1
- package/dist/{40.ed8046b6a9b0d3caf9be.bundle.js → 40.309ec5212fd53fe696bb.bundle.js} +1 -1
- package/dist/{41.aba092368b9345fe062a.bundle.js → 41.3870740f1d24570cb415.bundle.js} +1 -1
- package/dist/{42.3d78a3aa611c675962fb.bundle.js → 42.b926c2c8620df5c7ed6d.bundle.js} +1 -1
- package/dist/{43.b526b62055ad7de96121.bundle.js → 43.d4551e1f6cac0a1a77e5.bundle.js} +1 -1
- package/dist/{45.92354ad019764175a9ed.bundle.js → 45.a916daee1f0c6873c890.bundle.js} +1 -1
- package/dist/{46.1cd4e185759ae8243acf.bundle.js → 46.4f57238bd032edc81d6d.bundle.js} +1 -1
- package/dist/{47.19d84d51353da324399f.bundle.js → 47.4fbfdaa63628c501a30c.bundle.js} +1 -1
- package/dist/{48.218e2aaabf74b9581a6c.bundle.js → 48.3fbd50adcb0c7dd7ec60.bundle.js} +1 -1
- package/dist/{49.c860016d29f0ce0ca57e.bundle.js → 49.0707795b3b6e40387da8.bundle.js} +1 -1
- package/dist/{5.be2d88e54da2708eefa4.bundle.js → 5.7cfbc07050f137932ffe.bundle.js} +1 -1
- package/dist/{50.5c0fcd0058f3a064e199.bundle.js → 50.8f6cc698b42c96f2b41f.bundle.js} +1 -1
- package/dist/{51.4f3e41ab41b59f359e84.bundle.js → 51.514a339efd6cd11db0f8.bundle.js} +1 -1
- package/dist/{52.d4f5456a2472a9e53d04.bundle.js → 52.23ca96a9ed8d85651731.bundle.js} +1 -1
- package/dist/{53.cffe6e00dbc3ac17312f.bundle.js → 53.174d18435f7bf3bf05a0.bundle.js} +1 -1
- package/dist/{54.a7818f7324e13ec88c6b.bundle.js → 54.7cb3bd3ae8055e350629.bundle.js} +1 -1
- package/dist/{55.ed4b4f736fe52e33a015.bundle.js → 55.f0762e755ba58cbaac26.bundle.js} +1 -1
- package/dist/{56.97fbc0aa4335ce9cacbd.bundle.js → 56.3b0312e77f8607a4d957.bundle.js} +1 -1
- package/dist/{57.489b2ca7bcd40b2cdbd1.bundle.js → 57.dfb7a710da8ca09c725b.bundle.js} +1 -1
- package/dist/{58.b0eb478bedabd86c9f51.bundle.js → 58.ac0fa95bbbe4b2dfb0fc.bundle.js} +1 -1
- package/dist/{59.9cd6b16351fc69b0eddd.bundle.js → 59.273ffcd48e856d2752ff.bundle.js} +1 -1
- package/dist/{6.b71c0688cf5a66986261.bundle.js → 6.c5eea752e1f541f494e8.bundle.js} +1 -1
- package/dist/{60.8294eed673a656d9b671.bundle.js → 60.00a29320ea162becd718.bundle.js} +1 -1
- package/dist/{61.0bdd8867d31cfb74e765.bundle.js → 61.3794de8b6d022738bafa.bundle.js} +1 -1
- package/dist/{62.45480ced0d6b702e1ed1.bundle.js → 62.cf39ad55adb1616560ec.bundle.js} +1 -1
- package/dist/{63.c9b275237948c9fe6cd1.bundle.js → 63.8880f667c958d12b338b.bundle.js} +1 -1
- package/dist/{64.d88caab2c40224d5b6d1.bundle.js → 64.fdd90fedc8a5dc3cacaf.bundle.js} +1 -1
- package/dist/{65.afcbd04d22d792029cec.bundle.js → 65.cdc961a8042c385c49c6.bundle.js} +1 -1
- package/dist/{66.f9d7ffae5780e1ae0073.bundle.js → 66.c3b906de2fcf69089b7b.bundle.js} +1 -1
- package/dist/{67.102bfa70361d4e29e572.bundle.js → 67.9c851e5930459a5f5903.bundle.js} +1 -1
- package/dist/{69.1255e8072e739c4b3486.bundle.js → 69.c5561c83fe410ea9a908.bundle.js} +1 -1
- package/dist/{7.e6d49cdeb97a19ef9ae9.bundle.js → 7.14f008aaac190939acd3.bundle.js} +1 -1
- package/dist/{70.fe6fbd7331d2373c8a24.bundle.js → 70.f2557c225be5923bab24.bundle.js} +1 -1
- package/dist/{72.6e8d51e0d240af360ab5.bundle.js → 72.0780a8424293909f94a4.bundle.js} +1 -1
- package/dist/{74.042e0bb0fcc0661d32b0.bundle.js → 74.48e90caf0b5ecd351f1d.bundle.js} +1 -1
- package/dist/{78.569dd71e4cc7ac3a4383.bundle.js → 78.66f3e9630550f20287ff.bundle.js} +1 -1
- package/dist/{8.b9208e8a96195c97a70e.bundle.js → 8.b5e29f80f8a5766d70d5.bundle.js} +2 -2
- package/dist/{81.c378171b96d12cdf8bcc.bundle.js → 81.2ff1f5047ab4e0591585.bundle.js} +1 -1
- package/dist/{86.62f32aad4394438158a1.bundle.js → 86.637667a4555ae621aff0.bundle.js} +1 -1
- package/dist/{87.7efe382329921dae6a63.bundle.js → 87.b76338a62297ad83960b.bundle.js} +1 -1
- package/dist/{88.f442fbeb61fe955ce244.bundle.js → 88.532e7295b49b1071d45c.bundle.js} +1 -1
- package/dist/{89.560e5a053d8dcbaca38a.bundle.js → 89.90bb1cf65f183ecce47c.bundle.js} +1 -1
- package/dist/9.610b595b60a0fc51466a.bundle.js +1 -0
- package/dist/{90.3fedce156ebc83022f47.bundle.js → 90.683c4d5b142356f274ef.bundle.js} +1 -1
- package/dist/{91.08b1de35f973e0283974.bundle.js → 91.2437dfc2ea1bc89f53f3.bundle.js} +1 -1
- package/dist/{92.fcea4fdca795fa33f2fb.bundle.js → 92.a12cfd3b602e98b344de.bundle.js} +1 -1
- package/dist/{93.420c7a3794d642e35e63.bundle.js → 93.a5cb6192d32cb016bb60.bundle.js} +1 -1
- package/dist/{94.cf5b0e70e34e60663eb5.bundle.js → 94.f6a3e7628449796419b6.bundle.js} +1 -1
- package/dist/{95.a6ad56ceb5d5a63c2b8d.bundle.js → 95.15f0e472c49c81a68c3a.bundle.js} +1 -1
- package/dist/{96.524be695eddce9b9905c.bundle.js → 96.2bf3b75fb0efb6b9e7e8.bundle.js} +1 -1
- package/dist/{97.7173fb835cc5b1ac4cda.bundle.js → 97.bd1988af419f7373b569.bundle.js} +1 -1
- package/dist/{98.18b00fa95b6f5b1cf072.bundle.js → 98.060c6842b3a8ed94dd20.bundle.js} +1 -1
- package/dist/{99.a89c13f7abc4e0374809.bundle.js → 99.6360b70da56083cd76fe.bundle.js} +1 -1
- package/dist/{bundle.c762668cd3fb0f47a1ae.bundle.js → bundle.926694af2feb5084a769.bundle.js} +7 -7
- package/dist/i18n/locale-en.json +13 -9
- package/dist/i18n/locale-fr.json +13 -9
- 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/replace-nodes-dialog.html +1 -1
- 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/license-checker.json +2 -2
- package/dist/{main.59cc940bfa0eccfd4250.bundle.js → main.948c3b96766ce09e145b.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 +9 -8
- 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.cb970154313e9e743bd3.bundle.js → vendor.7b6ede99ef82acd3dcf5.bundle.js} +3 -3
- package/package.json +1 -1
- package/dist/10.3cfac1f6e9e8eb24044a.bundle.js +0 -1
- package/dist/122.eb2e160340159c2c4985.bundle.js +0 -1
- package/dist/123.cbef889603b99ef4f91f.bundle.js +0 -1
- package/dist/148.be960c6fe1da736ee0b5.bundle.js +0 -1
- package/dist/176.71074e5d08cca6c290f9.bundle.js +0 -1
- package/dist/177.0715a1810f8429c70554.bundle.js +0 -1
- package/dist/179.8e7d41653fa7f48dacd4.bundle.js +0 -1
- package/dist/182.69036294c90d2a17f89f.bundle.js +0 -1
- package/dist/183.fc2ffb04ccc31aae652c.bundle.js +0 -1
- package/dist/209.7e960699e4f4298009d8.bundle.js +0 -1
- package/dist/21.d7e23b084c428080af74.bundle.js +0 -1
- package/dist/220.e275fe520fefab7af758.bundle.js +0 -1
- package/dist/221.dfb5409f0365f23033d6.bundle.js +0 -1
- package/dist/24.f66f709065a6b0bf6499.bundle.js +0 -1
- package/dist/31.b0832eb06dff577a2884.bundle.js +0 -1
- package/dist/38.fc47c2dfe84f1191fc52.bundle.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[140],{134:function(e,t,n){"use strict";n.r(t);var r=n(310);angular.module("graphdb.framework.resources.directives",[]).directive("chart",["$rootScope",function(e){return{restrict:"AE",scope:{chart:"="},link:function(t,n){let c;const a=e.$on("$translateChangeSuccess",()=>{t.chart.translateLabels(),c.setOption(t.chart.chartOptions)});function s(){c.setOption(t.chart.chartOptions),t.chart.updateRange(t.chart.dataHolder),c.hideLoading()}function o(e){t.chart.setSelectedSeries(e.selected)}function i(){c.resize()}t.$watch("chart",(function(){c=r.a(n[0],null,{renderer:"svg"}),c.setOption(t.chart.chartOptions),c.showLoading(),c.on("legendselectchanged",o),t.chart.registerRefreshHandler(s),window.addEventListener("resize",i)})),t.$on("$destroy",(function(){c.on("legendselectchanged"),c.dispose(),t.chart.unregisterRefreshHandler(s),a(),window.removeEventListener("resize",i)}))}}}])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[141],{201: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([[142],{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([[143],{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"}})}}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[144],{101: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([[145],{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([[146],{126: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([[147],{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([[148],{131: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"]}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[149],{100: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([[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
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[15,11,38,52,83,84,146,163],{125: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"]},126: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||[]}})}}},180:function(e,t,n){"use strict";n.r(t);n(7),n(23),n(79),n(22),n(125),n(126),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"])},314:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},315: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.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([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[151],{136: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([[152],{203: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([[153],{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([[154],{204: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([[155],{137:function(e,t,r){"use strict";r.r(t);var i=r(321),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([[156],{206: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([[157],{210: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([[158],{208: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([[159],{211: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([[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"]}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[16,11,38,67,83,84,151,163],{136: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}})}}}},139: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"]},209:function(e,t,r){"use strict";r.r(t);r(7),r(23),r(79),r(22),r(139),r(136),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"])},314:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},315: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"]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[160],{212: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"}]})}}]);
|