graphdb-workbench 2.7.0-TR5 → 2.7.0-TR6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{0.a00d587331bedc7e67f7.bundle.js → 0.ed9104b75a9ecc63be07.bundle.js} +3 -3
- package/dist/{1.e8bc97111402c2dad3a7.bundle.js → 1.6542520326947f8e7401.bundle.js} +1 -1
- package/dist/10.63e817e8c0da3f21d9d6.bundle.js +2 -0
- package/dist/100.e65be1edbbcf660c2693.bundle.js +1 -0
- package/dist/101.37fcc9c1f24079f16801.bundle.js +1 -0
- package/dist/102.713827b14321512b5972.bundle.js +1 -0
- package/dist/103.c592539353f82aa3f648.bundle.js +1 -0
- package/dist/104.3bd5c1fc89b46ef10bcb.bundle.js +1 -0
- package/dist/105.e0d4aae2bf7aa9da0848.bundle.js +1 -0
- package/dist/106.ef8a7c54baca1f66b2ec.bundle.js +1 -0
- package/dist/{100.85e7cef0933e07f0233b.bundle.js → 107.3e8a13ed1ed542446991.bundle.js} +1 -1
- package/dist/{101.7a2a77cac34dcecdd91c.bundle.js → 108.b983d0d9fa7db3721756.bundle.js} +1 -1
- package/dist/{102.2d5b09ea559d168425a9.bundle.js → 109.c9145ceb3a36a2c8a448.bundle.js} +1 -1
- package/dist/{10.358b35662c49138f1984.bundle.js → 11.2164439cde136b5e1fbd.bundle.js} +1 -1
- package/dist/{103.1aecb92fbe9e38d0ba41.bundle.js → 110.66e19acf93588614ebd9.bundle.js} +1 -1
- package/dist/{104.7f2c724d8f3d400b4be1.bundle.js → 111.f705d15a4d6f8f8d78bb.bundle.js} +1 -1
- package/dist/{105.8ba223974c6881945a93.bundle.js → 112.bc4b460bd74e6c83b10b.bundle.js} +1 -1
- package/dist/{106.5f9252ae50e59cebacc0.bundle.js → 113.8613ef3903b66d6410f8.bundle.js} +1 -1
- package/dist/{107.565bc97a798ebd66cec8.bundle.js → 114.8b204250cfd7398af583.bundle.js} +1 -1
- package/dist/{108.6b84a18e3d95be2c618f.bundle.js → 115.a380bc638f415cb43ab4.bundle.js} +1 -1
- package/dist/{109.f9537811e2f1fe77865a.bundle.js → 116.886a1a73c61a39858bc3.bundle.js} +1 -1
- package/dist/{110.1d6eec720c025c686148.bundle.js → 117.3cb5b3d7552f58815564.bundle.js} +1 -1
- package/dist/{111.b16c00a9ca0be0914b63.bundle.js → 118.0274019de806b8f05104.bundle.js} +1 -1
- package/dist/{112.65fef969cfd8c77b70e8.bundle.js → 119.d46d23ef2ef98328c570.bundle.js} +1 -1
- package/dist/{11.113ceac7b4250ba1f594.bundle.js → 12.dc381f50676b50994acd.bundle.js} +1 -1
- package/dist/{113.b8fee5042091c743ab5d.bundle.js → 120.86a5103e5eef31e520c7.bundle.js} +1 -1
- package/dist/{114.74a061279e5c96c884cf.bundle.js → 121.773629ecbd0d54956dc5.bundle.js} +1 -1
- package/dist/{115.ebfb5b2247f642b984c7.bundle.js → 122.93131a064a9f7613aacf.bundle.js} +1 -1
- package/dist/{116.f09a7ae8319c03eb8bd1.bundle.js → 123.25548076a84f622fafb9.bundle.js} +1 -1
- package/dist/{117.738c947e2977e3916a62.bundle.js → 124.b3e89d4c9bbd082c00fa.bundle.js} +1 -1
- package/dist/{118.d5b775f8908914dea43a.bundle.js → 125.83a39b263ec791354d4c.bundle.js} +1 -1
- package/dist/{119.71b1704500efa2b9e9b1.bundle.js → 126.d8431f94e184ea60ecb5.bundle.js} +1 -1
- package/dist/{120.59c72472bcb386d066a8.bundle.js → 127.9df8a116e23f8e32f096.bundle.js} +1 -1
- package/dist/{121.82e608fe8f1a7d9425c9.bundle.js → 128.051eccc02e12ff1fc932.bundle.js} +1 -1
- package/dist/129.41117ce0335248715846.bundle.js +1 -0
- package/dist/13.8b82152cf0cb6e60dd08.bundle.js +1 -0
- package/dist/{123.94672c168216f18031ec.bundle.js → 130.032fd60f61b5fc7ace14.bundle.js} +1 -1
- package/dist/{124.6e9fafd52d70b863a5a9.bundle.js → 131.896b81bdcde7bfbc509e.bundle.js} +1 -1
- package/dist/{125.8a2de57b0bffac15a014.bundle.js → 132.a0ec4cb4b1920c9baba0.bundle.js} +1 -1
- package/dist/{126.6902dbfcac02ec8ecfbc.bundle.js → 133.c7e046f05f1c6b6779bd.bundle.js} +1 -1
- package/dist/{127.72b74474796f4d00d457.bundle.js → 134.0a0faaacda7a166fa37d.bundle.js} +1 -1
- package/dist/{128.c04fa671759ce4faad3d.bundle.js → 135.9f64d8c297958acc0011.bundle.js} +1 -1
- package/dist/136.c98a30d047e20acd82d1.bundle.js +1 -0
- package/dist/137.09b88a790c9dce1ed098.bundle.js +1 -0
- package/dist/138.61deb22261d942a05ed2.bundle.js +1 -0
- package/dist/139.62cede18e16b050935f2.bundle.js +1 -0
- package/dist/{13.12b09b019ac4239fe8c4.bundle.js → 14.a789ebfcddd4ed2ff9e1.bundle.js} +1 -1
- package/dist/{131.d907e31592a6adbde5a6.bundle.js → 140.540f25717c7294e6e58b.bundle.js} +1 -1
- package/dist/{132.42c2e3358594e656ca19.bundle.js → 141.3068537c7d3a606a2727.bundle.js} +1 -1
- package/dist/{133.76a12e1048cc1ec090f9.bundle.js → 142.c6b3df1138b73fcaf576.bundle.js} +1 -1
- package/dist/{134.22da8153699505878ac2.bundle.js → 143.80802a07fd2f91f51622.bundle.js} +1 -1
- package/dist/144.9133feecaea49cfabb4b.bundle.js +1 -0
- package/dist/145.554874019e4bac2bc44a.bundle.js +1 -0
- package/dist/146.ae433fa61c40b2742c69.bundle.js +1 -0
- package/dist/147.ec5f862d33396bee9b44.bundle.js +1 -0
- package/dist/148.486555404bc15fd3424a.bundle.js +1 -0
- package/dist/149.276a50fa37aad12bdd53.bundle.js +1 -0
- package/dist/{15.87b1583618f96299713a.bundle.js → 15.d4fc4827a2cf01f0826e.bundle.js} +1 -1
- package/dist/150.da73079de8e80b6935c2.bundle.js +1 -0
- package/dist/151.b96bfaa32fac477f4c0a.bundle.js +1 -0
- package/dist/152.da9a1c31e40d17604d26.bundle.js +1 -0
- package/dist/{135.447ed5a7c62194364aa4.bundle.js → 153.d410155d63238cefcc23.bundle.js} +1 -1
- package/dist/{136.67b335a70cc0a1ae464e.bundle.js → 154.8e772663fcbc31b52f02.bundle.js} +1 -1
- package/dist/{137.6f1eaa8e0241b84b5667.bundle.js → 155.5b444e376b204bcb3035.bundle.js} +1 -1
- package/dist/{138.e7c55a1678e1d9b3f85d.bundle.js → 156.020957b09c9ffcc47f8c.bundle.js} +1 -1
- package/dist/{139.c04e06f613e90be2a301.bundle.js → 157.ca16f005335681870670.bundle.js} +1 -1
- package/dist/{140.087c2b7e23006206be1e.bundle.js → 158.57520a5857b947bf6201.bundle.js} +1 -1
- package/dist/{141.433bd81c674461197187.bundle.js → 159.5df12b8b993a37a5603d.bundle.js} +1 -1
- package/dist/{16.aa3aacba76ae308708ab.bundle.js → 16.d700ae09eee1abbf9981.bundle.js} +2 -2
- package/dist/{142.6754ebe62f44e2a07969.bundle.js → 160.3cf48543afd662501698.bundle.js} +1 -1
- package/dist/{143.94f71211f96bddd32c0f.bundle.js → 161.5ecb7e7c70a87a874a98.bundle.js} +1 -1
- package/dist/{144.c0b2b8bfc3f784e5e61b.bundle.js → 162.5a2fff86a6654461bfd0.bundle.js} +1 -1
- package/dist/{145.56d8b6746f19e65ccf6e.bundle.js → 163.24c886b590385e661603.bundle.js} +1 -1
- package/dist/{146.93318b180110d802e5cf.bundle.js → 164.003a82b67003ee6a0ec2.bundle.js} +1 -1
- package/dist/165.e1ffc7bce628813d41da.bundle.js +1 -0
- package/dist/{148.da07fa64d65aa32c7369.bundle.js → 166.533cea3cfa0cfda50e9c.bundle.js} +1 -1
- package/dist/{149.43d1fa6b64acbea8c118.bundle.js → 167.09f3215b22673b8f8fea.bundle.js} +1 -1
- package/dist/{150.c7ea0ac421ad760fbeab.bundle.js → 168.5253174921a720508303.bundle.js} +1 -1
- package/dist/{151.9418c18b45d632f4482e.bundle.js → 169.e0492a14b654bb0cce58.bundle.js} +1 -1
- package/dist/17.d0f8a39f6eda5fe817ca.bundle.js +3 -0
- package/dist/{152.45cbf86179e00caa82a7.bundle.js → 170.9a3e0bb0dbd41ab77975.bundle.js} +1 -1
- package/dist/171.aaa51f657e0f425f229e.bundle.js +1 -0
- package/dist/{154.32efe630efe8d7de4741.bundle.js → 172.4488d65706884034844a.bundle.js} +1 -1
- package/dist/{155.c384dff8ef530990bdbf.bundle.js → 173.8f1dc239374cd115d1ff.bundle.js} +1 -1
- package/dist/{156.0da1877f6b97f616203d.bundle.js → 174.0f1a82c55ad2ba609453.bundle.js} +1 -1
- package/dist/{157.dd6bc7f30a3dc159992e.bundle.js → 175.2e118a307a1c16417486.bundle.js} +1 -1
- package/dist/{158.36b554b07220f0b4838d.bundle.js → 176.cf7899036ce89758aa00.bundle.js} +1 -1
- package/dist/177.c1c8b678aa8eed799cc6.bundle.js +1 -0
- package/dist/{160.79712c5947e6bf7c5df3.bundle.js → 178.5ecc28bc55d3e902ad75.bundle.js} +1 -1
- package/dist/{161.480e33b56762a8c4a588.bundle.js → 179.a19ff398b743505b3635.bundle.js} +1 -1
- package/dist/18.647b947d7860790c9686.bundle.js +2 -0
- package/dist/{162.5b032939f4835051e9af.bundle.js → 180.c50709a74190b1345780.bundle.js} +1 -1
- package/dist/{163.3c6a812b9f6d4d49cea0.bundle.js → 181.af2de5fcba45e11a7211.bundle.js} +1 -1
- package/dist/{164.eeadd32a94345108b0a3.bundle.js → 182.f88a2e0d823f08898a4b.bundle.js} +1 -1
- package/dist/{165.bb4f99d6123433c86fbf.bundle.js → 183.7524fe737ea0aceb77f8.bundle.js} +1 -1
- package/dist/{166.1b7b316953b302ceead7.bundle.js → 184.f7480ef1f43d6c1a9000.bundle.js} +1 -1
- package/dist/185.a35cd273c0ffca1e3c08.bundle.js +1 -0
- package/dist/186.432954f029ffac893142.bundle.js +1 -0
- package/dist/{169.40142e52c98c33cd23c7.bundle.js → 187.738c15ba94be4dfea5fb.bundle.js} +1 -1
- package/dist/{170.3f300e707c5fa9accf94.bundle.js → 188.a21868816f6e9127920e.bundle.js} +1 -1
- package/dist/{171.361ff38216f3c9ea9cc1.bundle.js → 189.b28177313dbd4e2c5ba5.bundle.js} +1 -1
- package/dist/19.01906b41d42fda63dcdf.bundle.js +1 -0
- package/dist/{172.64aaa39fc32b3a5f1886.bundle.js → 190.5082d499b971a15b75db.bundle.js} +1 -1
- package/dist/{173.079a9d070de1bd509533.bundle.js → 191.3cccafa87c21887cb8c5.bundle.js} +1 -1
- package/dist/{174.15560bdeaead909cc2d3.bundle.js → 192.f0465e8849ab5041c902.bundle.js} +1 -1
- package/dist/{175.e807f4ff4f5f87989c7e.bundle.js → 193.0cf5ae570d197267785f.bundle.js} +1 -1
- package/dist/{176.682f99f3b91909cadcab.bundle.js → 194.be1a2cf527f0d6481797.bundle.js} +1 -1
- package/dist/{177.91b88d7f131c987f17cf.bundle.js → 195.bc27173ce9146cdb6912.bundle.js} +1 -1
- package/dist/{178.b6463850aea339bd70b0.bundle.js → 196.1907de91459d42fe23b6.bundle.js} +1 -1
- package/dist/{179.28d0dc59dd95522981ba.bundle.js → 197.8202985db948fae7659e.bundle.js} +1 -1
- package/dist/198.f05fc35da7d83e811bf7.bundle.js +1 -0
- package/dist/199.de480b6478a2b08230bf.bundle.js +1 -0
- package/dist/2.a8b44d964ad7a1d98bad.bundle.js +2 -0
- package/dist/20.ceb8f62543793b1a412d.bundle.js +1 -0
- package/dist/{182.106ae65b17a3e9754926.bundle.js → 200.2f9431a3126cbd4822ad.bundle.js} +1 -1
- package/dist/{183.01ecc1a7ce7eb7d9b974.bundle.js → 201.98a28049a13f7370aafb.bundle.js} +1 -1
- package/dist/202.459a1af9dbe6a392750f.bundle.js +1 -0
- package/dist/{185.30251a3467e338980fd7.bundle.js → 203.4e1e775b271badd5b7a0.bundle.js} +1 -1
- package/dist/{186.22072600a3eb49650d72.bundle.js → 204.0c54824ba5379dcf786b.bundle.js} +1 -1
- package/dist/{187.1802b2d7f4805bbbfe7b.bundle.js → 205.494e54760de1d765a3da.bundle.js} +1 -1
- package/dist/206.a2c86def7fa57edd6b97.bundle.js +1 -0
- package/dist/{189.8e5e3adedd441defe4c4.bundle.js → 207.2156c5ea87cfeb082367.bundle.js} +1 -1
- package/dist/208.70bb3a3922fd04ab962b.bundle.js +1 -0
- package/dist/{191.16276ad970c288d82156.bundle.js → 209.3fb5541ecf2f1f7398e3.bundle.js} +1 -1
- package/dist/{21.d9430d24e7b374aeabce.bundle.js → 21.55981fcd01c4af6b0eaf.bundle.js} +1 -1
- package/dist/{192.548b6ee57c11a269ca88.bundle.js → 210.2c886af832777acde212.bundle.js} +1 -1
- package/dist/{193.c3363a9ebcb203b6f189.bundle.js → 211.2911b5fedfdc4f2f5547.bundle.js} +1 -1
- package/dist/212.d3655c036b8929eccc33.bundle.js +1 -0
- package/dist/{195.546609ed3083c3390005.bundle.js → 213.4b6548e321a8b1e033c4.bundle.js} +1 -1
- package/dist/{196.f46f41868a5d382775f0.bundle.js → 214.479b7e2e37cfdb6be3ca.bundle.js} +1 -1
- package/dist/{197.9470cf4b9891a3eb6925.bundle.js → 215.d37512ef9d841d75a977.bundle.js} +1 -1
- package/dist/{198.8c5ef8aa7a217856d3b9.bundle.js → 216.95a791227df738b31b70.bundle.js} +1 -1
- package/dist/{199.3f3d2e24ad7c2df4ff75.bundle.js → 217.04551dbc595dedd33c64.bundle.js} +1 -1
- package/dist/{200.e1c197b25a275344cf9a.bundle.js → 218.f815d28456016723d3f5.bundle.js} +1 -1
- package/dist/{201.d2042a5fdeb3f4f03283.bundle.js → 219.c2a4164070da1b4a62fc.bundle.js} +1 -1
- package/dist/22.292405fee3fc85ef2a68.bundle.js +1 -0
- package/dist/{202.60f91721885898abf34f.bundle.js → 220.9aeaf9ed16e83fa5905e.bundle.js} +1 -1
- package/dist/{203.1f1f472136b2fc1e5443.bundle.js → 221.3ab467a44fcabd9a2ddc.bundle.js} +1 -1
- package/dist/{204.a7f39d4ab7db2d1e716b.bundle.js → 222.fef2de97d0c3ed9c0b6f.bundle.js} +1 -1
- package/dist/{205.55fcaa732afd0cdc4d9a.bundle.js → 223.c38e05106af0f91351e2.bundle.js} +1 -1
- package/dist/{206.a7e7ca7839d9700f4e92.bundle.js → 224.1506cd61f849704e8db9.bundle.js} +1 -1
- package/dist/{207.300828dfb3da8d20d44b.bundle.js → 225.0858644ae85c8540271d.bundle.js} +1 -1
- package/dist/{208.608f2d5d3ea795c15a1c.bundle.js → 226.5df8bee461b7ce345128.bundle.js} +1 -1
- package/dist/{209.3ab6edebc9cab4da4d70.bundle.js → 227.764503526cbe98c5e5d9.bundle.js} +1 -1
- package/dist/{210.20168a4baebb4e3f24be.bundle.js → 228.d33ea7a4f3216c12fa1b.bundle.js} +1 -1
- package/dist/{211.777fd4a73a3dcf88cab5.bundle.js → 229.1fa8d61d374b77e199a4.bundle.js} +1 -1
- package/dist/{23.75fab4aa7acae9127880.bundle.js → 23.f501d57cb9c24e0b5374.bundle.js} +1 -1
- package/dist/{212.4fd673308cfc5980177d.bundle.js → 230.7c9241e11b6cefa4d81d.bundle.js} +1 -1
- package/dist/{213.0cd35758ae8d2bf72cbb.bundle.js → 231.b32fb3dffacc1c717900.bundle.js} +1 -1
- package/dist/{214.58d3bc07f84e0707e234.bundle.js → 232.69bffd6579451f938c80.bundle.js} +1 -1
- package/dist/{215.dfee7fc599b755eafe0c.bundle.js → 233.ff230773db36b14d0cd4.bundle.js} +1 -1
- package/dist/234.622298acd35a4d92ee73.bundle.js +1 -0
- package/dist/{217.9eff328f4af88815b696.bundle.js → 235.cdce2600addaaa2959dd.bundle.js} +1 -1
- package/dist/236.6b646746354f90eccc7b.bundle.js +1 -0
- package/dist/{218.36693bd4fcae56dabee5.bundle.js → 237.89fe3b9b98a94643065c.bundle.js} +1 -1
- package/dist/{219.1b4dabee461517ce939d.bundle.js → 238.21185d8bdadc795600ec.bundle.js} +1 -1
- package/dist/{220.060d6d727892a72837bc.bundle.js → 239.4529de4a5895643e1646.bundle.js} +1 -1
- package/dist/{24.b84b0cbfceefc3ca6765.bundle.js → 24.fdb04a3e0e7bd2648ee9.bundle.js} +1 -1
- package/dist/{221.0a6e8b2ffa00e126bc0a.bundle.js → 240.22c8a9eea504bf9860fd.bundle.js} +1 -1
- package/dist/{222.ce6d0c8fb8204bfb056e.bundle.js → 241.6d2dca2197e42d9899db.bundle.js} +1 -1
- package/dist/{223.50f99653670ff0e91fc8.bundle.js → 242.0a98254e631f7acec773.bundle.js} +1 -1
- package/dist/{224.4cb2a64b1b3488d03f68.bundle.js → 243.6fc6b9949d9792d23caa.bundle.js} +1 -1
- package/dist/{225.9c08ad964c9832b46a2d.bundle.js → 244.846ceacd26963cc54610.bundle.js} +1 -1
- package/dist/{226.db265375f13835dcaa81.bundle.js → 245.c95a75c65763ad63a763.bundle.js} +1 -1
- package/dist/{227.739d8aa8a52da1288f11.bundle.js → 246.442621e461590e50b592.bundle.js} +1 -1
- package/dist/247.06e72ccb21477cc24283.bundle.js +1 -0
- package/dist/{229.455f2118b9a15a8a1a01.bundle.js → 248.322f35c97a03e61e75e2.bundle.js} +1 -1
- package/dist/{230.68f65441b5a705f576d7.bundle.js → 249.9820e23ccfc8281911de.bundle.js} +1 -1
- package/dist/25.cae3de924e57a3626193.bundle.js +1 -0
- package/dist/{231.8769cb7c0954c77290d9.bundle.js → 250.6c3d6f8880b791c8b804.bundle.js} +1 -1
- package/dist/{232.771078ac0cb1d05c9b5e.bundle.js → 251.525249db1454e1e7abcb.bundle.js} +1 -1
- package/dist/{233.86b5321eb9cc2446520a.bundle.js → 252.35304a64d48e109f8277.bundle.js} +1 -1
- package/dist/253.50e22be44ab870ff0040.bundle.js +1 -0
- package/dist/{234.0e2e0b7a533d97697bb9.bundle.js → 254.04100e2ae66216f3fd29.bundle.js} +1 -1
- package/dist/255.bbababb10d21e975adf1.bundle.js +1 -0
- package/dist/{235.f067023ee86eac57d53f.bundle.js → 256.e89722b728354238cc3b.bundle.js} +1 -1
- package/dist/{236.9be5416009f61248e8e1.bundle.js → 257.dd21d9b6424bdb71b26c.bundle.js} +1 -1
- package/dist/258.5a1c16231e09cd9b0a08.bundle.js +1 -0
- package/dist/{238.040d8007491d283ab6a5.bundle.js → 259.fef007ec90e3635757cb.bundle.js} +1 -1
- package/dist/{26.4b7f0a525970f66b6def.bundle.js → 26.e78ac166736fd4b7149e.bundle.js} +1 -1
- package/dist/265.cf7eaa76d17dce8ad068.bundle.js +1 -0
- package/dist/{245.a16ba6f4c450b59ccb1c.bundle.js → 266.73bf0eb96d50f86507ac.bundle.js} +1 -1
- package/dist/{246.bb0a17f70fa347e2f4e9.bundle.js → 267.30f5b70390872f659589.bundle.js} +1 -1
- package/dist/{247.a59c275e943f8299877a.bundle.js → 268.f7d1f97d1ce9436bf9ea.bundle.js} +1 -1
- package/dist/{248.4df8a92033a593eeefc5.bundle.js → 269.7eda84a8fffeccafd4a6.bundle.js} +1 -1
- package/dist/{27.3131ec879b62e0ce3146.bundle.js → 27.d77a98199b2b7e7928c7.bundle.js} +1 -1
- package/dist/{249.dac5139f1d2b975f9528.bundle.js → 270.c3082d2d2ad8b4713c30.bundle.js} +1 -1
- package/dist/{250.b8c5b737feb784c2b326.bundle.js → 271.4316d7e7f0402a2f2986.bundle.js} +1 -1
- package/dist/{251.723277bb2c4113d4ddcb.bundle.js → 272.0aaf1835d8abf207b769.bundle.js} +1 -1
- package/dist/{252.28955b5a58b9ae535b7b.bundle.js → 273.bc56492d8d917476bf43.bundle.js} +1 -1
- package/dist/{253.4bafd27703b5ed8d9836.bundle.js → 274.d0d5111c6d1a8c06d799.bundle.js} +1 -1
- package/dist/{254.7e5fdd89881ee617328d.bundle.js → 275.8d1c10ba8ee150630c5a.bundle.js} +1 -1
- package/dist/{255.10d2b48619215ddedc78.bundle.js → 276.c3faa707bf71acfcad02.bundle.js} +1 -1
- package/dist/{256.3c4007e9fecd25e4f156.bundle.js → 277.ad9032f9db0c7608a0d1.bundle.js} +1 -1
- package/dist/{257.f87c595a36dc82508919.bundle.js → 278.176cc39c1a9fa3c10401.bundle.js} +1 -1
- package/dist/{258.172dd375e6ec87f1c332.bundle.js → 279.c568d226fc177babce2c.bundle.js} +1 -1
- package/dist/{28.a6728b32a326de61a82f.bundle.js → 28.5e5546d6afa62d709276.bundle.js} +1 -1
- package/dist/{259.738329e347b6609e5c63.bundle.js → 280.8b75f0af3dfbf2eb1326.bundle.js} +1 -1
- package/dist/{260.7296e9103f4628ff2da9.bundle.js → 281.9787eef812192b9e1e26.bundle.js} +1 -1
- package/dist/{261.200f9786f2578c3f4740.bundle.js → 282.8090e00ffdf4a30d4d76.bundle.js} +1 -1
- package/dist/{262.6e893a14a93da504bc0f.bundle.js → 283.f6680f2a1d8cbdf570f0.bundle.js} +1 -1
- package/dist/{263.1919e74ae4be90921e39.bundle.js → 284.583000da19e4d411f827.bundle.js} +1 -1
- package/dist/{264.b3b52b58b0c2d89cec03.bundle.js → 285.17823daca45d40b41e34.bundle.js} +1 -1
- package/dist/{265.8631d3ba1c424dae74a0.bundle.js → 286.1b249e1d9de93a310cc7.bundle.js} +1 -1
- package/dist/{266.04d39602bfeaa284e76e.bundle.js → 287.9fa69a3246f3ba799e25.bundle.js} +1 -1
- package/dist/{267.6faac41e761d1655d56e.bundle.js → 288.d6fe33445ee39d63c278.bundle.js} +1 -1
- package/dist/{268.a7d4b81474b01843f3fc.bundle.js → 289.ef5629890471c5a06e4e.bundle.js} +1 -1
- package/dist/29.ee2c2b74ccbf16eb11c0.bundle.js +1 -0
- package/dist/{269.c837cbbc68c3fd3eb36c.bundle.js → 290.2cc5267bcf592cdbcab2.bundle.js} +1 -1
- package/dist/{270.1c7a6bbf3e7badad204f.bundle.js → 291.bff1507b0f7773ac384a.bundle.js} +1 -1
- package/dist/{271.b1a6dd36b58b9b429df1.bundle.js → 292.bda0a1731117fd1bcc2b.bundle.js} +1 -1
- package/dist/{272.be2e04ae8155e911f3d9.bundle.js → 293.98c77d74da5033d9ccf8.bundle.js} +1 -1
- package/dist/{273.f1c1a44fabb7b1d03817.bundle.js → 294.7db685faf719d57755a7.bundle.js} +1 -1
- package/dist/{274.0a15fa22b7c06b450979.bundle.js → 295.871527930e2cf1140190.bundle.js} +1 -1
- package/dist/{275.8ed5ad19d4a58f8edf3b.bundle.js → 296.33578f5be9485fc7869c.bundle.js} +1 -1
- package/dist/{276.101e37888686a0055f5c.bundle.js → 297.abe47f42dd124d837c5c.bundle.js} +1 -1
- package/dist/{277.1845fb6def7de2da5a10.bundle.js → 298.3c558fa8d55074c63cae.bundle.js} +1 -1
- package/dist/{278.4461ae7712cfdc163a69.bundle.js → 299.6f64f41c54d0cec76627.bundle.js} +1 -1
- package/dist/{3.99db6750cc19455f5c63.bundle.js → 3.9a49a272eea10e7e5dd1.bundle.js} +1 -1
- package/dist/30.524ebd6d5b8d190503bf.bundle.js +1 -0
- package/dist/300.5c5855399afa8726111c.bundle.js +1 -0
- package/dist/301.0b78ce92aba412fc35cf.bundle.js +1 -0
- package/dist/302.2630b4ca1e97c21d399b.bundle.js +1 -0
- package/dist/303.d5fa19dccafadbe0d361.bundle.js +1 -0
- package/dist/304.13fc58f0774b6eef292f.bundle.js +1 -0
- package/dist/305.7cd3e232f273f0fb45dc.bundle.js +1 -0
- package/dist/306.f575d24fc2dfd0a0d21e.bundle.js +1 -0
- package/dist/{283.fd486048eea6427b13bc.bundle.js → 307.ce51a72f73605ba7d87b.bundle.js} +1 -1
- package/dist/308.bb369aa99078b35bc5e4.bundle.js +1 -0
- package/dist/309.f4a64f143e98eebcc47e.bundle.js +1 -0
- package/dist/{30.fab63415db2393c0aacd.bundle.js → 31.16d2eb040bdc69fe9fc3.bundle.js} +1 -1
- package/dist/{286.242d940fcff403123208.bundle.js → 310.2835f6f45c0c874d7489.bundle.js} +1 -1
- package/dist/{287.235ef6ae483704160b86.bundle.js → 311.2e762f7b45e795942a9c.bundle.js} +1 -1
- package/dist/{288.1b7570b94b7ed0ca955c.bundle.js → 312.8cdbed03997f74ad2d0a.bundle.js} +1 -1
- package/dist/{289.f4100f7d84465fecbb60.bundle.js → 313.0e5cfffe92f2de032b01.bundle.js} +1 -1
- package/dist/{290.7d16f6d1f9a6419872f5.bundle.js → 314.48abb9d12cdc71df0728.bundle.js} +1 -1
- package/dist/{291.3bdbbb070d373a65b403.bundle.js → 315.8c88da570042d278c0c0.bundle.js} +1 -1
- package/dist/{292.484e28f14b0deb0b3cc7.bundle.js → 316.38b8ccd0743845357730.bundle.js} +1 -1
- package/dist/{293.1cecdb9cbbe6226670ed.bundle.js → 317.82f14559fe07fc93e039.bundle.js} +1 -1
- package/dist/{294.8f9be19abffa3054af92.bundle.js → 318.0033815bcb95a1002e45.bundle.js} +1 -1
- package/dist/{295.d03a96b52c1681849e08.bundle.js → 319.aac96415548cc7bf1c51.bundle.js} +1 -1
- package/dist/{31.ef8e29e252707b58742f.bundle.js → 32.b4ed311c56afbf1cd55f.bundle.js} +1 -1
- package/dist/{296.8f3bcb1c820342bf86fd.bundle.js → 320.3d0cdcd8cd307f51fd00.bundle.js} +1 -1
- package/dist/{297.9463695075dbf3677f1f.bundle.js → 321.a1056ed3d9a6effd7e5d.bundle.js} +1 -1
- package/dist/{298.07d2e52d70f8a85769f4.bundle.js → 322.93410eab36cbb7efad07.bundle.js} +1 -1
- package/dist/{299.b6fa1c5a3a6356887c93.bundle.js → 323.569713a611ace53c920b.bundle.js} +1 -1
- package/dist/{300.78149d326bc9c92e743a.bundle.js → 324.1cfd78c51b5a2cbe1f5c.bundle.js} +1 -1
- package/dist/{301.85b8ab99b0f79d3a8314.bundle.js → 325.c3d03ce14bf5e774697f.bundle.js} +1 -1
- package/dist/326.5196fc22a20eb221df3a.bundle.js +1 -0
- package/dist/327.6b10987c5d0a3573dcd5.bundle.js +1 -0
- package/dist/{304.37be0bc201d94d507f63.bundle.js → 328.6620dee9c8f4adb2bccd.bundle.js} +1 -1
- package/dist/{305.3fb71fd591742dfad498.bundle.js → 329.82a4897656145f5fcae7.bundle.js} +1 -1
- package/dist/33.a1be5e37ef93cb31b138.bundle.js +1 -0
- package/dist/{306.e609c7a605a2a0d3907a.bundle.js → 330.1c559bedef039a16c0da.bundle.js} +1 -1
- package/dist/{307.29792f2937f33ddf8ca5.bundle.js → 331.1d7c58078292ef1a36b5.bundle.js} +1 -1
- package/dist/34.104f53bcb6f7ca501c7c.bundle.js +1 -0
- package/dist/35.f1b6f9930457c031277e.bundle.js +1 -0
- package/dist/36.318423a4558378da2eb4.bundle.js +1 -0
- package/dist/{34.ac2f66eeb24c98e03d34.bundle.js → 37.5a3ab7e40ab342a416e3.bundle.js} +2 -2
- package/dist/38.9812e5f4c0ed39c1b595.bundle.js +1 -0
- package/dist/{36.ce2853f88a566ea582fd.bundle.js → 39.5d576bc8d6787de8eb76.bundle.js} +1 -1
- package/dist/4.f599923303eb562ea97e.bundle.js +1 -0
- package/dist/{37.3728dd4999d82ecfbe2e.bundle.js → 40.a3c7b20ee2fd2050dcb9.bundle.js} +1 -1
- package/dist/{38.051296071e4e029d0a10.bundle.js → 41.c4515987e6feca025a25.bundle.js} +1 -1
- package/dist/42.7c35c485473df7dbcf47.bundle.js +1 -0
- package/dist/43.47ca61a651dc3d7b4a57.bundle.js +1 -0
- package/dist/{40.cc7632dbededcec65855.bundle.js → 44.2e33c1c71307c1c0a984.bundle.js} +2 -2
- package/dist/{41.f75bdf525b4b4cb64194.bundle.js → 45.5e16b9d1a3d732f06529.bundle.js} +1 -1
- package/dist/46.607aa4eb00425565b646.bundle.js +1 -0
- package/dist/47.1d64337714b99ddd74b0.bundle.js +1 -0
- package/dist/48.d4f598026b96d6d8c2d3.bundle.js +1 -0
- package/dist/{44.788e1d6fb26edc2c59cd.bundle.js → 49.e845bf4aec7fb862891b.bundle.js} +1 -1
- package/dist/5.a141de7286949ebab2c0.bundle.js +1 -0
- package/dist/{45.436c31412ef4feca66fd.bundle.js → 50.38067511d62d4139cd43.bundle.js} +1 -1
- package/dist/{46.fd89fadba6c634986127.bundle.js → 51.161e530f7f797db7dece.bundle.js} +1 -1
- package/dist/52.bf2e9af7bda577c1f801.bundle.js +1 -0
- package/dist/{48.fec8b65d3211ca5f7a26.bundle.js → 53.32e78161a0bd30c554a4.bundle.js} +1 -1
- package/dist/{49.d98c626661f906259a3a.bundle.js → 54.d56916b4f9225da185cb.bundle.js} +1 -1
- package/dist/{50.d323219062e688bbe8bf.bundle.js → 55.d7510c5bbe2b1645477c.bundle.js} +1 -1
- package/dist/{51.b0164f62a84eda02bb43.bundle.js → 56.2f67f70187a2a4805cf7.bundle.js} +1 -1
- package/dist/{52.67605020690eab6ed801.bundle.js → 57.1232ddbe8a69f601ce88.bundle.js} +1 -1
- package/dist/{53.23988c9fcbb8f2d12d74.bundle.js → 58.0096a2a5f01817c86dbe.bundle.js} +1 -1
- package/dist/59.04940ea7c95bd52e182e.bundle.js +1 -0
- package/dist/6.87521e96605d239c2ed5.bundle.js +1 -0
- package/dist/60.1626c819d3a7411a7997.bundle.js +1 -0
- package/dist/{56.7017efae9dcfdf964ce2.bundle.js → 61.16c994452889fb1bd370.bundle.js} +1 -1
- package/dist/{57.c4e2e0f65936d9c70800.bundle.js → 62.efdfd77ea9ee7a2c6ad4.bundle.js} +1 -1
- package/dist/63.39538271cc01a55bf532.bundle.js +1 -0
- package/dist/64.269ab466a3837c0a457d.bundle.js +1 -0
- package/dist/{60.49caeb2f7aacb944eb00.bundle.js → 65.d5aa90fecdc1c4ef65ed.bundle.js} +1 -1
- package/dist/{61.9a736bb283724dfc9533.bundle.js → 66.30637157c378d453d65f.bundle.js} +1 -1
- package/dist/67.6b6e5b5eefa75f8392c0.bundle.js +1 -0
- package/dist/68.cb5d2f7ad9f035fb3cc0.bundle.js +1 -0
- package/dist/{63.09a0f5084f5986d5698f.bundle.js → 69.6d5b917f623b806a341c.bundle.js} +1 -1
- package/dist/{7.faf8394ebcf08ba97ce5.bundle.js → 7.aaeb8bf1aeaa1708d8ea.bundle.js} +11 -11
- package/dist/70.65cc120c74169587e442.bundle.js +1 -0
- package/dist/{64.2ac43c1d86749ea992ba.bundle.js → 71.7627079b790298411349.bundle.js} +1 -1
- package/dist/{65.2ec64646f1e85b2577d6.bundle.js → 72.4657d01c1f4aa6071089.bundle.js} +1 -1
- package/dist/73.4b55a2f15b1b022a7eda.bundle.js +1 -0
- package/dist/{67.e0c231cd25b9b7c2b30d.bundle.js → 74.c9df03089322e653b5c2.bundle.js} +1 -1
- package/dist/{68.87f22ad8e45e5ac0c87a.bundle.js → 75.8b0a8886505d703e8a26.bundle.js} +1 -1
- package/dist/{69.9aba4d9f6ab64846d1b5.bundle.js → 76.c223d0a8e54de46e8e72.bundle.js} +1 -1
- package/dist/{70.1aae79e6fefd04262aae.bundle.js → 77.5427e462d1af02e23d3c.bundle.js} +1 -1
- package/dist/{71.2ec3e86742399e6f4db1.bundle.js → 78.9e5abaac28af2fc459f7.bundle.js} +1 -1
- package/dist/{72.05340d57ddbb11de1ead.bundle.js → 79.3786efe06f93c5798f86.bundle.js} +1 -1
- package/dist/8.eadebf813f80251d4f69.bundle.js +1 -0
- package/dist/{73.a80fccf4e952dc780733.bundle.js → 80.97f199289e5f990b57ed.bundle.js} +1 -1
- package/dist/{74.0c582d6e53d1a5c97853.bundle.js → 81.054e44797b08909f1dc4.bundle.js} +1 -1
- package/dist/{75.ad8c7c4153bbffa320ce.bundle.js → 82.1eface7e8133300705df.bundle.js} +1 -1
- package/dist/{76.b2c6b5e5c4c43dc90d52.bundle.js → 83.4645557984b0561a17bf.bundle.js} +1 -1
- package/dist/{77.e57ef079ac32b966cf70.bundle.js → 84.a8b6eeaab1dd93e114d3.bundle.js} +1 -1
- package/dist/85.fbf7b73e5f0618c3490c.bundle.js +1 -0
- package/dist/{79.996e847f3dabb9a18236.bundle.js → 86.58260abe386e035b914f.bundle.js} +1 -1
- package/dist/{80.fa6aaba05a99f110dced.bundle.js → 87.aaf184c1e16e85db80d0.bundle.js} +1 -1
- package/dist/{81.9d69b68897e508e8c82e.bundle.js → 88.2ca73168ec01ca2a759b.bundle.js} +1 -1
- package/dist/{82.ab0ea2ac111fae2d7e29.bundle.js → 89.c2089bc29cfb7193782c.bundle.js} +1 -1
- package/dist/9.3282c0dc99853978e694.bundle.js +1 -0
- package/dist/{83.00c2f376826f218e7cf5.bundle.js → 90.903b4551186a3f574fb0.bundle.js} +1 -1
- package/dist/{84.eba17a29cdf7f02e36cf.bundle.js → 91.2afe43ba6816429534e1.bundle.js} +1 -1
- package/dist/{85.3e8caad23fa2474c31b7.bundle.js → 92.cbab9d838987be115041.bundle.js} +1 -1
- package/dist/{86.146a075742f9cd1a3fc8.bundle.js → 93.6cb83dccdf95f48a42cc.bundle.js} +1 -1
- package/dist/{87.664dd337d86dbc91d41a.bundle.js → 94.15e4fe346c58cfd2282e.bundle.js} +1 -1
- package/dist/{88.85d1d0508cd28c4d55f4.bundle.js → 95.e3b0b37f6c37fbba6723.bundle.js} +1 -1
- package/dist/{89.2b25f53f3fa19d4b252f.bundle.js → 96.df01ec7b8db0a5dab6ad.bundle.js} +1 -1
- package/dist/{90.578cd615e9ed69465e4c.bundle.js → 97.b61a8e1d81485a73a88b.bundle.js} +1 -1
- package/dist/{91.6ac2fe3838167546bd3c.bundle.js → 98.37f56c6532c90bfe83c7.bundle.js} +1 -1
- package/dist/{92.0c8c562c18a6c2cfb75f.bundle.js → 99.74d8909fe495a4ee1123.bundle.js} +1 -1
- package/dist/{bundle.f233811e1e1f53767477.bundle.js → bundle.9f9f242ad327b8e01cd4.bundle.js} +60 -60
- package/dist/css/import-resource-tree.css +150 -0
- package/dist/css/import.css +36 -1
- package/dist/i18n/locale-en.json +164 -99
- package/dist/i18n/locale-fr.json +166 -101
- package/dist/index.html +5 -5
- package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
- package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
- package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
- package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
- package/dist/js/angular/import/templates/fileSizeLimitInfo.html +6 -0
- package/dist/js/angular/import/templates/filesTable.html +5 -5
- package/dist/js/angular/import/templates/import-resource-message.html +19 -0
- package/dist/js/angular/import/templates/import-resource-status-info.html +86 -0
- package/dist/js/angular/import/templates/import-resource-tree.html +195 -0
- package/dist/js/angular/import/templates/importInfo.html +8 -8
- package/dist/js/angular/import/templates/settingsModal.html +269 -236
- package/dist/js/angular/import/templates/uploadInfo.html +13 -5
- package/dist/js/angular/import/templates/urlImport.html +1 -1
- package/dist/js/angular/security/templates/user.html +1 -1
- package/dist/license-checker.json +6 -6
- package/dist/{main.731909bbf0e0e95690a3.bundle.js → main.76f659240970ae83eb6d.bundle.js} +1 -1
- package/dist/main.98c547eac0aca6db48bb.css +1 -0
- package/dist/pages/aclmanagement.html +2 -2
- package/dist/pages/autocomplete.html +1 -1
- package/dist/pages/choose-repository-type.html +1 -1
- package/dist/pages/cluster-management/clusterInfo.html +3 -3
- package/dist/pages/create-index.html +1 -1
- package/dist/pages/dependencies.html +1 -1
- package/dist/pages/domainRangeInfo.html +2 -2
- package/dist/pages/edit.html +1 -1
- package/dist/pages/explore.html +1 -1
- package/dist/pages/export.html +2 -2
- package/dist/pages/find.html +1 -1
- package/dist/pages/graph-config/saveGraphConfig.html +8 -8
- package/dist/pages/graphs-visualizations.html +7 -7
- package/dist/pages/guides.html +1 -1
- package/dist/pages/import.html +96 -35
- package/dist/pages/jdbc-create.html +1 -1
- package/dist/pages/monitor/backup-and-restore.html +1 -1
- package/dist/pages/monitor/queries.html +1 -1
- package/dist/pages/monitor/resources.html +1 -1
- package/dist/pages/namespaces.html +2 -2
- package/dist/pages/plugins.html +1 -1
- package/dist/pages/rdfClassHierarchyInfo.html +7 -7
- package/dist/pages/rdfrank.html +2 -2
- package/dist/pages/repositories.html +1 -1
- package/dist/pages/repository.html +1 -1
- package/dist/pages/similarity-indexes.html +1 -1
- package/dist/pages/sparql-editor.html +1 -1
- package/dist/pages/sparql-template-create.html +1 -1
- package/dist/pages/ux-test1.html +2 -2
- package/dist/pages/webapi.html +3 -3
- package/dist/plugins.js +33 -5
- package/dist/{polyfills-dom.4b5f7673fe42fb344b0a.bundle.js → polyfills-dom.3b39f4f2cc2a24a8ee6d.bundle.js} +1 -1
- package/dist/res/swagger5/favicon-16x16.png +0 -0
- package/dist/res/swagger5/favicon-32x32.png +0 -0
- package/dist/res/swagger5/index.css +157 -0
- package/dist/res/swagger5/index.html +47 -0
- package/dist/res/swagger5/oauth2-redirect.html +79 -0
- package/dist/res/swagger5/swagger-initializer.js +49 -0
- package/dist/res/swagger5/swagger-ui-bundle.js +3 -0
- package/dist/res/swagger5/swagger-ui-bundle.js.map +1 -0
- package/dist/res/swagger5/swagger-ui-es-bundle-core.js +3 -0
- package/dist/res/swagger5/swagger-ui-es-bundle-core.js.map +1 -0
- package/dist/res/swagger5/swagger-ui-es-bundle.js +3 -0
- package/dist/res/swagger5/swagger-ui-es-bundle.js.map +1 -0
- package/dist/res/swagger5/swagger-ui-standalone-preset.js +3 -0
- package/dist/res/swagger5/swagger-ui-standalone-preset.js.map +1 -0
- package/dist/res/swagger5/swagger-ui.css +3 -0
- package/dist/res/swagger5/swagger-ui.css.map +1 -0
- package/dist/res/swagger5/swagger-ui.js +2 -0
- package/dist/res/swagger5/swagger-ui.js.map +1 -0
- package/dist/{vendor.e87797d1961b877115b3.bundle.js → vendor.756b3dc4564a64c24aa9.bundle.js} +4 -4
- package/dist/vendor.c3e18291118da6a85719.css +20 -0
- package/dist/{vendors~polyfills-core-js.5a7894bfd0671f3ccc96.bundle.js → vendors~polyfills-core-js.a2be0df5f856f5364259.bundle.js} +1 -1
- package/package.json +3 -3
- package/dist/12.39ad56e2a9b9ea9a0aa5.bundle.js +0 -1
- package/dist/122.1026e3d9215a54004f3e.bundle.js +0 -1
- package/dist/129.c0f963b73843c5073f9c.bundle.js +0 -1
- package/dist/130.b50ada21d908753cd006.bundle.js +0 -1
- package/dist/14.d8eea26d8ea92ada564e.bundle.js +0 -1
- package/dist/147.df33f0ab7f9cfe9eb6f7.bundle.js +0 -1
- package/dist/153.1191bff8aa04d23645c9.bundle.js +0 -1
- package/dist/159.24e75e06e8b978e1ffe0.bundle.js +0 -1
- package/dist/167.b17d11f446908f403108.bundle.js +0 -1
- package/dist/168.b528ac8f543ceb8df107.bundle.js +0 -1
- package/dist/17.b623dfbda370b75d11e2.bundle.js +0 -3
- package/dist/18.da7db8ec72404c1eb96e.bundle.js +0 -2
- package/dist/180.adda87b70e028263f606.bundle.js +0 -1
- package/dist/181.ec9253799f615f307378.bundle.js +0 -1
- package/dist/184.af4ed140f1c4287bd44c.bundle.js +0 -1
- package/dist/188.a2cfced84824c4dfe8a5.bundle.js +0 -1
- package/dist/19.6e0ee6146ca354a2b414.bundle.js +0 -1
- package/dist/190.a4a4d613ec6d97710cd7.bundle.js +0 -1
- package/dist/194.c6e860334bf51bf2e9f9.bundle.js +0 -1
- package/dist/2.a8c465fd2525319d6b35.bundle.js +0 -2
- package/dist/20.c04628b394e206e5932f.bundle.js +0 -1
- package/dist/216.3ca0660c1e538ba58872.bundle.js +0 -1
- package/dist/22.46ba69c135ae3c5da1fe.bundle.js +0 -1
- package/dist/228.fdcb28ad6ffe0b68deb1.bundle.js +0 -1
- package/dist/237.cefe6eceb1e31e816632.bundle.js +0 -1
- package/dist/244.01ab5ea11e83c581c7c2.bundle.js +0 -1
- package/dist/25.d1de3fd5087cdf12ea6c.bundle.js +0 -1
- package/dist/279.c92ee442e9ce9eebfc3b.bundle.js +0 -1
- package/dist/280.26ff7b9d4c8b36f0a5f5.bundle.js +0 -1
- package/dist/281.2740a9c779644ee2f837.bundle.js +0 -1
- package/dist/282.4be6fb572bbfad4021c0.bundle.js +0 -1
- package/dist/284.48ad599d63eed7b695da.bundle.js +0 -1
- package/dist/285.12fe3e0c3879f8d13f94.bundle.js +0 -1
- package/dist/29.c53eccb8ea3263230c3c.bundle.js +0 -1
- package/dist/302.cf5da9bf3cb7a24289c6.bundle.js +0 -1
- package/dist/303.1658c7d370712ecf9416.bundle.js +0 -1
- package/dist/32.490d1e013c10bc056323.bundle.js +0 -1
- package/dist/33.5dfeb44e8f1144e506db.bundle.js +0 -1
- package/dist/35.8fb0ee88c1357259f7ed.bundle.js +0 -1
- package/dist/39.ac6df64dcfe3d472ad85.bundle.js +0 -1
- package/dist/4.2ac4cfd923efde0d590b.bundle.js +0 -1
- package/dist/42.222fdebca4d3748cfcde.bundle.js +0 -1
- package/dist/43.8afdd216c09bfef1c1a8.bundle.js +0 -1
- package/dist/47.b089177e6b8672a89e9e.bundle.js +0 -1
- package/dist/5.186c298dfba17317bf6b.bundle.js +0 -1
- package/dist/54.f9271a7ce6aab87a0dac.bundle.js +0 -1
- package/dist/55.4772e07be818e403681e.bundle.js +0 -1
- package/dist/58.2b4fa1c297c4a23fb56d.bundle.js +0 -1
- package/dist/59.f359a125f9fcf83eaa09.bundle.js +0 -1
- package/dist/6.0a128db7fdb5577980a2.bundle.js +0 -1
- package/dist/62.0ec268eccfe9eddea5ef.bundle.js +0 -1
- package/dist/66.81cc293e4a1df2495063.bundle.js +0 -1
- package/dist/78.fa306109ca5efa264224.bundle.js +0 -1
- package/dist/8.c08c4420cf921f7864e9.bundle.js +0 -1
- package/dist/9.cbaac4f0c99f9bee7025.bundle.js +0 -2
- package/dist/93.f360648656917f0e5c25.bundle.js +0 -1
- package/dist/94.60e1eb57e57516be9b83.bundle.js +0 -1
- package/dist/95.7c36d982f0d39f40a47f.bundle.js +0 -1
- package/dist/96.bec1281d7b4c506ef79e.bundle.js +0 -1
- package/dist/97.ad0efbb2a15caab3900c.bundle.js +0 -1
- package/dist/98.2f408d915541eb7325f6.bundle.js +0 -1
- package/dist/99.97ec882dcccebc375ecd.bundle.js +0 -1
- package/dist/js/angular/import/templates/commonInfo.html +0 -6
- package/dist/main.b830c2fc237abd684f41.css +0 -1
- package/dist/res/swagger/images/collapse.gif +0 -0
- package/dist/res/swagger/images/expand.gif +0 -0
- package/dist/res/swagger/index.html +0 -137
- package/dist/res/swagger/o2c.html +0 -20
- package/dist/res/swagger/swagger-ui.js +0 -35337
- package/dist/res/swagger/swagger-ui.min.js +0 -14
- package/dist/vendor.169ed6d7d226ea8551b7.css +0 -20
- /package/dist/res/{swagger → swagger5}/css/onto-theme.css +0 -0
- /package/dist/res/{swagger → swagger5}/css/print.css +0 -0
- /package/dist/res/{swagger → swagger5}/css/reset.css +0 -0
- /package/dist/res/{swagger → swagger5}/css/screen.css +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/DroidSans-Bold.ttf +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/DroidSans.ttf +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/fontawesome-webfont.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/fontawesome-webfont.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/icons.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600italic.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-600italic.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-italic.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-italic.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/jetbrains-mono-v12-vietnamese_latin-ext_latin_greek_cyrillic-ext_cyrillic-regular.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300italic.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-300italic.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500italic.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500italic.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-italic.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-italic.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/roboto-v30-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-italic.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-italic.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-light.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-light.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-lightitalic.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-lightitalic.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-medium.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-medium.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-mediumitalic.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-mediumitalic.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-regular.woff +0 -0
- /package/dist/res/{swagger → swagger5}/fonts/rubik-regular.woff2 +0 -0
- /package/dist/res/{swagger → swagger5}/images/explorer_icons.png +0 -0
- /package/dist/res/{swagger → swagger5}/images/throbber.gif +0 -0
- /package/dist/res/{swagger → swagger5}/lib/backbone-min.js +0 -0
- /package/dist/res/{swagger → swagger5}/lib/es5-shim.js +0 -0
- /package/dist/res/{swagger → swagger5}/lib/handlebars.min-v4.7.3.js +0 -0
- /package/dist/res/{swagger → swagger5}/lib/highlight.9.1.0.pack.js +0 -0
- /package/dist/res/{swagger → swagger5}/lib/highlight.9.1.0.pack_extended.js +0 -0
- /package/dist/res/{swagger → swagger5}/lib/jquery-3.4.1.min.js +0 -0
- /package/dist/res/{swagger → swagger5}/lib/jquery-migrate-1.4.1.min.js +0 -0
- /package/dist/res/{swagger → swagger5}/lib/jquery.ba-bbq.min.js +0 -0
- /package/dist/res/{swagger → swagger5}/lib/jquery.slideto.min.js +0 -0
- /package/dist/res/{swagger → swagger5}/lib/jquery.wiggle.min.js +0 -0
- /package/dist/res/{swagger → swagger5}/lib/js-yaml.min.js +0 -0
- /package/dist/res/{swagger → swagger5}/lib/jsoneditor.min.js +0 -0
- /package/dist/res/{swagger → swagger5}/lib/lodash.min.js +0 -0
- /package/dist/res/{swagger → swagger5}/lib/marked.js +0 -0
- /package/dist/res/{swagger → swagger5}/lib/object-assign-pollyfill.js +0 -0
- /package/dist/res/{swagger → swagger5}/lib/sanitize-html.min.js +0 -0
- /package/dist/res/{swagger → swagger5}/lib/swagger-oauth.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[16,26,27,28,37,38,44,63,106,107,108,109,110,111,112,114,115,134,162,169,208,217,221,235,237],{153:function(e,t){function r(e){return{initLazyList:function(t,r,n,i,a){return e((function(){const e=t+i-1,o=Math.max(0-i,e),s=Math.min(e+r-1,a.length);o>s?n([]):$.isArray(a)&&n(a.slice(o,s+1))}),100,!0)}}}angular.module("graphdb.framework.graphexplore.services.uiscroll",[]).factory("UiScrollService",r),r.$inject=["$timeout"]},154:function(e,t){angular.module("graphdb.framework.graphexplore.services.rdfsdetails",[]).factory("RdfsLabelCommentService",(function(){return{processAndFilterLabelAndComment:function(e){function t(e){const t={};for(let r in e)if(e.hasOwnProperty(r)){let n=r;r.indexOf(":")>-1&&(n=r,r=r.split(":")[1].toLowerCase()),t[r]=e[n]}return t}const r=e.results.bindings,n=[],i=[];_.each(r,(function(e){let r;angular.isUndefined(e.label)||(r=t(e.label),n.push(r)),angular.isUndefined(e.comment)||(r=t(e.comment),i.push(r))}));const a=function(e){return"en"===e.lang||"de"===e.lang},o=$.grep(n,a)[0],s=$.grep(i,a)[0],c=angular.isUndefined(o)?n.length>0?n[0].value:void 0:o.value,l=angular.isUndefined(s)?i.length>0?i[0].value:void 0:s.value;return{rdfsLabel:c,rdfsComment:l}}}}))},155:function(e,t){angular.module("graphdb.framework.rest.graphexplore.savedgraphs.service",[]).factory("SavedGraphsRestService",r),r.$inject=["$http"];function r(e){return{getSavedGraphs:function(){return e.get("rest/explore-graph/saved")},getSavedGraph:function(t){return e.get("rest/explore-graph/saved/"+encodeURIComponent(t))},editSavedGraph:function(t){return e.put("rest/explore-graph/saved/"+encodeURIComponent(t.id),t)},deleteSavedGraph:function(t){return e.delete("rest/explore-graph/saved/"+encodeURIComponent(t.id))},addNewSavedGraph:function(t){return e.post("rest/explore-graph/saved",t)}}}},156:function(e,t,r){"use strict";r.r(t);var n=r(80);angular.module("graphdb.framework.rest.graphconfig.service",[]).factory("GraphConfigRestService",i);function i(e){return{getGraphConfigs:function(){return e.get("rest/explore-graph/config")},getGraphConfigSamples:function(){return e.get("rest/explore-graph/samples")},loadGraphForConfig:function(t,r,n,i){return e.get(`rest/explore-graph/config/graph/${encodeURIComponent(t.id)}?includeInferred=${r}&linksLimit=${n}&sameAsState=${i}`)},getConfig:function(t){return e.get("rest/explore-graph/config/"+encodeURIComponent(t)).then(e=>Object(n.mapGraphsConfigResponseToModel)(e.data))},createGraphConfig:function(t){return e.post("rest/explore-graph/config",t)},updateGraphConfig:function(t){return console.log("rest update",t),e.put("rest/explore-graph/config/"+encodeURIComponent(t.id),t)},deleteGraphConfig:function(t){return e.delete("rest/explore-graph/config/"+encodeURIComponent(t.id))},validateQuery:function(t,r,n,i,a){return e({method:"POST",url:"rest/explore-graph/validate",data:{query:t,queryType:r,params:n,all:i,oneOf:a}})}}}i.$inject=["$http"]},157:function(e,t,r){"use strict";r.r(t);r(10);function n(e,t,r,n,i,a,o,s,c,l,d,u,p,f,h,g,m){e.classHierarchyData={},e.instancesObj={},e.instancesQueryObj={},e.instancesObj.items=[],e.instancesNotFiltered=[],e.isWarningShowed=!1,e.onopen=e.onclose=()=>angular.noop(),e.currentBrowserLimit=2e3,p.firefox?e.currentBrowserLimit=50:(p.safari||p.msie||p.msedge)&&(e.currentBrowserLimit=400);const y={};let v=0,x=0;t.key="",y.get=function(t,r,n){return c.initLazyList(t,r,n,v,e.instancesObj.items)};let S=allGraphs;const w=function(){if(e.getActiveRepository())return g.resolveGraphs(n.getActiveRepository()).success((function(t){e.graphsInRepo=t.results.bindings.length>1002?t.results.bindings.slice(0,1002):t.results.bindings,C()})).error((function(t){e.repositoryError=getError(t),o.error(getError(t),m.instant("graphexplore.error.getting.graphs"))}))},C=function(){const t=f.get("classHierarchy-selectedGraph-"+n.getActiveRepository());null!==t&&e.graphsInRepo.some(e=>e.contextID.uri===t.contextID.uri)?S=t:f.set("classHierarchy-selectedGraph-"+n.getActiveRepository(),S)};function b(t,r,n){e.classCountSlider.options&&e.classCountSlider.options.ceil!==r&&(e.classCountSlider={});var i;e.classCountSlider.value||(e.showExternalElements=!0,e.classCountSlider={value:r,options:{floor:1,ceil:r,vertical:!0,showSelectionBar:!0,onChange:function(){d(I,100,!0)}}},null===f.get(h.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE)&&r>e.currentBrowserLimit&&(i=e.currentBrowserLimit,p.chrome?o.warning(m.instant("graphexplore.disabling.animations",{classLimit:i}),m.instant("graphexplore.reducing.visual.effects")):o.warning(m.instant("graphexplore.browser.performance",{browser:p.name,classLimit:i}),m.instant("graphexplore.reducing.visual.effects"))));const a=f.get(h.CLASS_HIERARCHY_SWITCH_PREFIXES);null!=a&&"true"!==a&&(e.showExternalElements=!0),n?e.classCountSlider.value=n:r>=1500&&(e.classCountSlider.value=1500,o.warning(m.instant("graphexplore.class.count.slider",{count:1500}),m.instant("graphexplore.reducing.class.count"))),r>=25&&!window.ActiveXObject&&"ActiveXObject"in window&&!e.isWarningShowed&&(e.classCountSlider.value=25,e.isWarningShowed=!0,o.warning(m.instant("graphexplore.class.count.browser",{count:25}),m.instant("graphexplore.reducing.class.count"))),d((function(){e.$broadcast("reCalcViewDimensions")}),200),I();let s=0;$("rzslider").on("wheel",(function(t){t.preventDefault(),t.stopPropagation();const r=(new Date).getTime();if(!(r-s>100))return;s=r,t=t.originalEvent;let n=e.classCountSlider.value;t.deltaY<=-1?n+=1:t.deltaY>=1&&(n-=1),n!==e.classCountSlider.value&&n>=e.classCountSlider.options.floor&&n<=e.classCountSlider.options.ceil&&e.$apply((function(){e.classCountSlider.value=n,d(I,100,!0)}))}))}function I(){e.currentSliderValue=e.classCountSlider.value}function R(e){const t=e.data.fullName,n=e.data.name;s.checkDomainRangeData(t).success((function(e,i){204===i?o.warning(m.instant("graphexplore.no.domain.range",{name:n})):(f.set(h.CLASS_HIERARCHY_LAST_SELECTED_CLASS,r.hash()),r.hash("").path("domain-range-graph").search("uri",t).search("name",n))})).error((function(){o.error(m.instant("graphexplore.error.request.failed",{name:n}))}))}function k(){r.replace().hash("1"),e.instancesObj.items=[],e.showExternalElements=!1,e.showClassInfoPanel=!1,f.clearClassHieararchyState(),e.hidePrefixes="true"===f.get(h.CLASS_HIERARCHY_HIDE_PREFIXES),e.currentSliderValue=void 0,e.classHierarchyData={},t.$broadcast("angucomplete-alt:clearInput")}function E(){e.hasClassHierarchy()&&d((function(){$("#toolbar").removeClass("ng-hide")}),0)}t.$watch((function(){return t.key}),(function(){v=0,_.each(e.instancesObj.items,(function(e){t.key>e&&v++})),x++})),y.revision=function(){return x},e.adapterContainer={adapter:{remain:!0}},e.$on("goToDomainRangeGraphView",(function(e,t){R(t)})),e.$on("classCount",b),e.$on("repositoryIsSet",(function(){if(!i.isLicenseValid())return;if(L===n.getActiveRepository())return;L=n.getActiveRepository();if(e.repositoryError=null,!L)return;S=allGraphs,w().then(A)})),e.datasource=y,e.goToDomainRangeGraphView=R,e.toggleClassInfoSidePanel=function(){e.showClassInfoPanel=!e.showClassInfoPanel,t.$broadcast("sidePanelClosed")},e.getActiveRepositoryNoError=function(){if(!e.repositoryError)return n.getActiveRepository()},e.isSystemRepository=function(){return n.isSystemRepository()},e.confirmReloadClassHierarchy=function(){u.openSimpleModal({title:m.instant("confirm.operation"),message:m.instant("graphexplore.calculating.hierarchy"),warning:!0}).result.then((function(){k(),e.loader=!0,e.hierarchyError=!1,s.reloadClassHierarchy(S.contextID.uri).success((function(t){e.loader=!1,e.classHierarchyData=t,E(),b()})).error((function(t){e.loader=!1,e.hierarchyError=getError(t),o.error(getError(t),m.instant("graphexplore.error.rdf.class.request"))}))}))},e.focusOnRoot=function(){e.$broadcast("rootFocus")},e.copyToClipboard=function(e){u.openCopyToClipboardModal(e)},e.searchedClassCallback=function(e){if(e){const r={name:e.title};t.$broadcast("searchedClass",r)}},e.instancesQueryObj.query="",e.instancesFilterFunc=function(t){return t.resolvedUri.toLowerCase().indexOf(e.instancesQueryObj.query.toLowerCase())>=0},w(),e.$watch("instancesObj.items",(function(){e.instancesObj.items.length>0&&d((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("selectedClass",(function(){e.showClassInfoPanel&&function(t){const r=t.data.fullName;let n=t.data.name;if(n===r){const e=n.lastIndexOf("#");n=n.substring(e+1)}e.encodedUri=encodeURIComponent(r);const i=encodeURIComponent("prefix onto:<http://www.ontotext.com/>\nselect ?s {\n ?s a <"+r+"> .\n}");e.viewInstancesUri="sparql?name="+n+"&infer=true&sameAs=false&query="+i+"&execute=true",s.getRdfsLabelAndComment(r).success((function(t){e.rdfsLabel=t.label,e.rdfsComment=t.comment,e.expanded=!1})).error((function(){o.error("Error getting rdfs:label and rdfs:comment")})),e.instancesQueryObj.query="",e.instancesLoader=!0,s.getClassInstances(r).success((function(t){e.instancesObj.items=[],_.each(t,(function(t,r){const n={};n.type=t.startsWith("<<")&&t.endsWith(">>")?"triple":"uri",n.absUri=encodeURIComponent(t),n.absUriNonEncoded=t,n.resolvedUri=r,e.instancesObj.items.push(n)})),e.instancesLoader=!1,e.instancesSearchPlaceholder=e.instancesObj.items.length<1e3?"Search class instances":"Search first 1000 class instances",e.instancesNotFiltered=e.instancesObj.items})).error((function(){o.error(m.instant("graphexplore.error.instances.request"))}))}(e.selectedClass)})),$(document).ready((function(){$(".prefix-toggle").click((function(){$(".tooltip").hide()}))}));let L=n.getActiveRepository();function A(){k(),!e.isSystemRepository()&&e.isLicenseValid()&&(e.hierarchyError=!1,e.loader=!0,s.getClassHierarchyData(S.contextID.uri).success((function(t,r){e.showExternalElements=!0,e.loader=!1,e.classHierarchyData=t,207===r&&o.warning(m.instant("graphexplore.update.diagram"),m.instant("graphexplore.repository.data.changed")),E()})).error((function(t){e.loader=!1,e.hierarchyError=getError(t),o.error(getError(t),m.instant("graphexplore.error.rdf.class.request"))})))}e.hasClassHierarchy=function(){return e.classHierarchyData.classCount&&e.getActiveRepositoryNoError()&&!e.isSystemRepository()},e.isLicenseValid=function(){return i.isLicenseValid()},e.chosenGraph=function(e){S=e,A(),f.set("classHierarchy-selectedGraph-"+n.getActiveRepository(),S)},e.getSelGraphValue=function(){return S.contextID.value},e.isAllGraphsSelected=function(){return"all.graphs.label"===e.getSelGraphValue()}}angular.module("graphdb.framework.graphexplore.controllers.class",["pageslide-directive","ngAnimate","ui.scroll.jqlite","ui.scroll","angucomplete-alt","rzSlider","toastr","graphdb.framework.utils.localstorageadapter"]).controller("RdfClassHierarchyCtlr",n),n.$inject=["$scope","$rootScope","$location","$repositories","$licenseService","$window","toastr","GraphDataRestService","UiScrollService","RdfsLabelCommentService","$timeout","ModalService","bowser","LocalStorageAdapter","LSKeys","RDF4JRepositoriesRestService","$translate"]},158:function(e,t,r){"use strict";r.r(t);r(10);function n(e,t,r,n,i,a,o,s,c,l,d,u,p){e.predicatesObj={},e.predicatesQueryObj={},e.predicatesObj.items=[],e.predicatesQueryObj.query="",e.predicatesListNotFiltered=[],e.predicatesSearchPlaceholder="Search predicates",e.onopen=e.onclose=()=>angular.noop();const f={};let h=0,g=0;r.key="",f.get=function(t,r,n){return l.initLazyList(t,r,n,h,e.predicatesObj.items)},r.$watch((function(){return r.key}),(function(){h=0,_.each(e.predicatesObj.items,(function(e){r.key>e&&h++})),g++})),f.revision=function(){return g},e.adapterContainer={adapter:{remain:!0}};const m=o.get(s.DOMAIN_RANGE_COLLAPSE_EDGES);function y(){const e=o.get(s.CLASS_HIERARCHY_LAST_SELECTED_CLASS);t.search("").hash(e).path("hierarchy")}e.collapseEdges=null===m||"true"===m,e.datasource=f,e.$on("reloadDomainRangeGraphView",(function(e,r){const n=r.objectPropClassUri,i=r.objectPropClassName;t.path("domain-range-graph").search("uri",n).search("name",i)})),e.$on("switchEdgeMode",(function(e,r){t.path("domain-range-graph").search("uri",r.uri).search("name",r.name).search("collapsed",r.collapsed)})),e.$on("repositoryIsSet",(function(){if(v===i.getActiveRepository())return;v=i.getActiveRepository();y()})),e.$on("changeCollapsedEdgesState",(function(t,r){e.collapseEdges=!r,o.set(s.DOMAIN_RANGE_COLLAPSE_EDGES,e.collapseEdges)})),e.goToClassHierarchyView=y,e.copyToClipboard=function(e){d.openCopyToClipboardModal(e)},e.toggleCollapseEdgesState=function(){e.collapseEdges=!e.collapseEdges,a.history.pushState({collapsed:e.collapseEdges},"domainRangePage",null)},e.predicatesListFilterFunc=function(t){return t.resolvedUri.toLowerCase().indexOf(e.predicatesQueryObj.query.toLowerCase())>=0},e.$watch("predicatesObj.items",(function(){e.predicatesObj.items>0&&n((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("selectedPredicate",(function(){e.showPredicatesInfoPanel&&function(t){const r=t.target,n=t.source;e.encodedUri=encodeURIComponent(t.uri),e.sourceTargetObjectNodeUri=r.objectPropClassUri?r.objectPropClassUri:n.objectPropClassUri,e.encodedSourceTargetObjectNodeUri=encodeURIComponent(e.sourceTargetObjectNodeUri),e.sourceTargetObjectNodeName=r.objectPropClassName?r.objectPropClassName:n.objectPropClassName?n.objectPropClassName:"<i>Literal</i>",-1===e.sourceTargetObjectNodeName.indexOf("Literal")?c.getRdfsLabelAndComment(e.sourceTargetObjectNodeUri).success((function(t){e.rdfsLabel=t.label,e.rdfsComment=t.comment})).error((function(){u.error(p.instant("domain.range.error.get.label.comment"))})):(e.rdfsComment=void 0,e.rdfsLabel=void 0);e.predicatesObj.items=[],e.predicatesQueryObj.query="";const i=r.allEdges?r.allEdges:n.allEdges;_.each(i,(function(t){const r={};r.absUri=encodeURIComponent(t.uri),r.absUriNonEncoded=t.uri,r.resolvedUri=t.name,r.isImplicit=t.implicit,e.predicatesObj.items.push(r)})),e.predicatesListNotFiltered=e.predicatesObj.items}(e.selectedPredicate)})),$(document).ready((function(){$(".compact-mode-toggle").click((function(){$(".tooltip").hide()}))}));let v=i.getActiveRepository()}angular.module("graphdb.framework.graphexplore.controllers.domainrange",["ui.scroll.jqlite","ui.scroll","ngSanitize","graphdb.framework.utils.localstorageadapter"]).controller("DomainRangeGraphCtlr",n),n.$inject=["$scope","$location","$rootScope","$timeout","$repositories","$window","LocalStorageAdapter","LSKeys","GraphDataRestService","UiScrollService","ModalService","toastr","$translate"]},159:function(e,t,r){(function(e){const t="WAIT",r="NO_REPO",n="READY",i="IN_PROGRESS",a="ERROR",o={contextID:{type:"all",value:"all.graphs.label",uri:""}};function s(e){if(e<1e3)return e;const t=Math.floor(Math.log(e)/Math.log(1e3));let r=e/Math.pow(1e3,t);return r=r%1>1/Math.pow(1e3,t-1)?r.toFixed(2):r.toFixed(0),r+["K","M","G","T","P","H"][t-1]}function c(e,s,c,l,d,u,p,f,h,g,m){let y=null;e.status=c.getActiveRepository()?t:r;let v=o;const x=function(){g.resolveGraphs(c.getActiveRepository()).success((function(t){e.graphsInRepo=t.results.bindings.length>1002?t.results.bindings.slice(0,1002):t.results.bindings,S(),e.isSystemRepository()?"READY"!==e.status&&C():(e.status="WAIT",C(!0))})).error((function(t){e.repositoryError=getError(t),l.error(getError(t),m.instant("graphexplore.error.getting.graph"))}))},S=function(){const t=h.get("dependencies-selectedGraph-"+c.getActiveRepository());null!==t&&e.graphsInRepo.some(e=>e.contextID.uri===t.contextID.uri)?v=t:h.set("dependencies-selectedGraph-"+c.getActiveRepository(),v)},w=function(r){d3.select("#dependencies-chord").html(""),e.status=t,u.getRelationshipsData(r,e.direction,v.contextID.uri).success((function(t){e.dependenciesData={matrix:t.right,nodes:t.left,hasLinks:_.sum(_.map(t.right,(function(e){return _.sum(e)})))>0,direction:e.direction},e.status=n})).error((function(t){e.status=n,l.error(getError(t),m.instant("graphexplore.error.dependencies.count"))}))},C=function(r){(e.status!==n||r)&&(e.status=t,u.getRelationshipsStatus(v.contextID.uri).success((function(t){if(e.status=t,e.status===i){if(null!==y)return;y=d(C,2e3)}e.status===n&&(null!==y&&(d.cancel(y),y=null),u.getRelationshipsClasses(e.direction,v.contextID.uri).success((function(t,r){e.allClasses.items=_.filter(t,k),e.allNotFilteredClasses=t,e.selectedClasses=void 0,angular.isUndefined(e.selectedClasses)&&(e.selectedClasses=t.slice(0,10)),w(e.selectedClasses),207===r&&l.warning(m.instant("graphexplore.update.diagram"),m.instant("graphexplore.repository.data.changed"))}))),0===e.status.indexOf("ERROR;")&&(e.status=a,l.error(m.instant("graphexplore.error.dependencies.calc",{error:e.status.substring("ERROR;".length)})))})).error((function(t){e.status=a,l.error(getError(t),m.instant("graphexplore.error.dependencies.count.status"))})))};e.allClasses={},e.allClasses.items=[],e.allNotFilteredClasses=[],e.direction="all";const b={};let I=0,R=0;function k(t){return-1!==t.name.toLowerCase().indexOf(e.classQuery.query.toLowerCase())}s.key="",b.get=function(t,r,n){return p.initLazyList(t,r,n,I,e.allClasses.items)},s.$watch((function(){return s.key}),(function(){I=0,_.each(e.allClasses.items,(function(e){s.key>e&&I++})),R++})),b.revision=function(){return R},e.datasource=b,e.adapterContainer={adapter:{remain:!0}},e.classQuery={},e.classQuery.query="",e.classFilterFunc=k,e.$watch("allClasses.items",(function(){e.allClasses.items.length>0&&d((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("direction",(function(){!c.getActiveRepository()||e.isSystemRepository()||c.isActiveRepoFedXType()||x()})),e.$on("$destroy",(function(){d.cancel(y)})),e.isLoading=function(){return e.status===i||e.status===t},e.confirmCalculateDependencies=function(){f.openSimpleModal({title:m.instant("confirm.operation"),message:m.instant("graphexplore.calculating.relationships"),warning:!0}).result.then((function(){e.calculateDependencies()}))},e.calculateDependencies=function(){e.status=t,e.selectedClasses=void 0,u.calculateRelationships(v.contextID.uri).success((function(t){0===t.indexOf("ERROR;")?l.error(m.instant("graphexplore.error.dependencies.calc",{error:e.status.substring("ERROR;".length)})):C()})).error((function(e){l.error(m.instant("graphexplore.error.could.not.force.count",{error:getError(e)}))}))},e.addClass=function(t){e.selectedClasses.push(t),w(e.selectedClasses)},e.removeClass=function(t){_.remove(e.selectedClasses,(function(e){return e.name===t.name})),w(e.selectedClasses)},e.showClass=function(t){e.classToShow=t},e.isClassByNameShown=function(t){return void 0!==_.find(e.selectedClasses,{name:t})},e.addClassByName=function(t){e.selectedClasses.push(_.find(e.allClasses.items,{name:t})),w(e.selectedClasses)},e.removeClassByName=function(t){_.remove(e.selectedClasses,(function(e){return e.name===t})),w(e.selectedClasses)},e.removeAllClasses=function(){e.selectedClasses=[],w(e.selectedClasses)},e.isSystemRepository=function(){return"SYSTEM"===c.getActiveRepository()};const E=e.$on("repositoryIsSet",(function(){e.classQuery={},e.classQuery.query="",e.repositoryError=null,v=o,c.getActiveRepository()&&!c.isActiveRepoFedXType()?x():e.status=r}));window.addEventListener("beforeunload",(function e(){E(),window.removeEventListener("beforeunload",e)})),e.selectGraph=function(e){v=e,C(!0),h.set("dependencies-selectedGraph-"+c.getActiveRepository(),v)},e.getSelectedGraphValue=function(){return v.contextID.value},e.isAllGraphsSelected=function(){return"all.graphs.label"===e.getSelectedGraphValue()}}Object.defineProperty(e,"allGraphs",{get:()=>o}),angular.module("graphdb.framework.graphexplore.controllers.dependencies",["ui.scroll.jqlite","ui.scroll","toastr","ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter"]).controller("DependenciesChordCtrl",c).config(["$uibTooltipProvider",function(e){e.options({appendToBody:!0})}]).filter("humanize",(function(){return s})),c.$inject=["$scope","$rootScope","$repositories","toastr","$timeout","GraphDataRestService","UiScrollService","ModalService","LocalStorageAdapter","RDF4JRepositoriesRestService","$translate"]}).call(this,r(11))},160:function(e,t,r){"use strict";r.r(t);r(7);var n=r(412),i=r(414),a=(r(10),r(81)),o=r(89);function s(e,t,r,s,c,l,d,u,p,f,h,g,m,y,v,x,S,w,C,b,I,R,k){e.languageChanged=!1,e.propertiesObj={},e.propertiesObj.items=[],e.propertiesQueryObj={},e.propertiesQueryObj.query="",e.propertiesSearchPlaceholder=R.instant("visual.search.instance.placeholder"),e.propertiesNotFiltered=[],e.searchVisible=!1,e.nodeSelected=!1,e.queryResultsMode=!1,e.embedded=f.search().embedded,e.openedNodeInfoPanel=void 0,e.invalidLimit=!1,e.INVALID_LINKS_MSG=R.instant("sidepanel.invalid.limit.links.msg"),e.INVALID_LINKS_TOOLTIP=R.instant("sidepanel.invalid.limit.links.tooltip"),e.datasource=void 0,e.adapterContainer={adapter:{remain:!0}},e.hasInitedRepository=!1,e.defaultSettings={linksLimit:20,includeInferred:!0,sameAsState:!0,languages:["en"],showLinksText:!0,preferredTypes:[],rejectedTypes:[],preferredPredicates:[],rejectedPredicates:["http://dbpedia.org/property/logo","http://dbpedia.org/property/hasPhotoCollection","http://dbpedia.org/property/website","http://dbpedia.org/property/homepage","http://dbpedia.org/ontology/thumbnail","http://xmlns.com/foaf/0.1/depiction","http://xmlns.com/foaf/0.1/homepage","http://xmlns.com/foaf/0.1/mbox","http://dbpedia.org/ontology/wikiPage*","http://dbpedia.org/property/wikiPage*","http://factforge.net/*"],preferredTypesOnly:!1,preferredPredicatesOnly:!1,includeSchema:!0},e.saveSettings=_.cloneDeep(e.defaultSettings),e.defaultGraphConfig={id:"default",name:"Easy graph",startMode:"search"},t.key="",e.onopen=e.onclose=()=>angular.noop(),e.goToHome=()=>{A(),f.url("graphs-visualizations")},e.shouldShowSettings=()=>e.configLoaded&&e.configLoaded.id===e.defaultGraphConfig.id,e.shouldDisableSameAs=()=>{const t=$("#sameAsCheck");return e.settings&&!e.settings.includeInferred&&t.prop("checked")&&(t.prop("checked",!1),e.settings.sameAsState=!1),e.settings&&!e.settings.includeInferred},e.propertiesFilterFunc=t=>t.key.toLowerCase().indexOf(e.propertiesQueryObj.query.toLowerCase())>=0,e.toggleMoreInfo=e=>{angular.element(e.currentTarget).parent().next().toggle(200),angular.element(e.currentTarget).children("span").toggleClass("icon-caret-down").toggleClass("icon-caret-up")},e.copyToClipboard=e=>{m.openCopyToClipboardModal(e)},e.resetSettings=()=>{e.settings=_.cloneDeep(e.defaultSettings),e.validateLinksLimit(),N()},e.changeLimit=t=>{let r=e.settings.linksLimit+t;r<1&&(r=1),r>1e3&&(r=1e3),e.settings.linksLimit=r},e.validateLinksLimit=()=>{e.invalidLimit=!a.NUMBER_PATTERN.test(e.settings.linksLimit)},e.showSettings=()=>{e.showInfoPanel=!0,e.showFilter=!0,e.showNodeInfo=!1,e.showPredicates=!1,e.saveSettings?e.settings=_.cloneDeep(e.saveSettings):e.settings=_.cloneDeep(e.defaultSettings),N()},e.updateSettings=()=>{e.invalidLimit?c.error(e.INVALID_LINKS_TOOLTIP,e.INVALID_LINKS_MSG):(e.saveSettings=e.settings,e.saveSettings.languages=_.map(e.saveSettings.languagesMap,(function(e){return e.text})),e.saveSettings.preferredTypes=_.map(e.saveSettings.preferredTypesMap,(function(e){return e.text})),e.saveSettings.rejectedTypes=_.map(e.saveSettings.rejectedTypesMap,(function(e){return e.text})),e.saveSettings.preferredPredicates=_.map(e.saveSettings.preferredPredicatesMap,(function(e){return e.text})),e.saveSettings.rejectedPredicates=_.map(e.saveSettings.rejectedPredicatesMap,(function(e){return e.text})),e.rootNodeIri?D(e.rootNodeIri):e.queryResultsMode&&f.search().query?M(f.search().query,f.search().sameAs,f.search().inference):"query"===e.configLoaded.startMode&&z(e.configLoaded),P(),e.showInfoPanel=!1,e.showFilter=!1,x.set(S.GRAPHS_VIZ,e.saveSettings))},e.getGraphConfigs=t=>{C.getGraphConfigs().success((function(r){e.graphConfigs=r,t&&t()})).error((function(e){c.error(getError(e),R.instant("graphexplore.error.graph.configs.short.msg"))}))},e.findConfigById=function(t){return t===e.defaultGraphConfig.id?e.defaultGraphConfig:$.grep(e.graphConfigs,(function(e){return e.id===t}))[0]},e.easyGraphSearch=t=>{e.configLoaded=e.defaultGraphConfig,e.openUri(t)},e.deleteConfig=t=>{m.openSimpleModal({title:R.instant("common.confirm"),message:R.instant("graphexplore.delete.graph",{configName:t.name}),warning:!0}).result.then((function(){C.deleteGraphConfig(t).success((function(){e.getGraphConfigs(),e.refreshSavedGraphs()})).error((function(e){c.error(getError(e),R.instant("graphexplore.error.cannot.delete.config"))}))}))},e.goToGraphConfig=e=>{L({config:e.id},{config:e}),A(),z(e)},e.replaceIRIWithPrefix=t=>{const r=e.namespaces,n=_.findLast(r,(function(e){return 0===t.indexOf(e.uri)}));return n?n.prefix+":"+t.substring(n.uri.length):t};const E=[];t.$on("$translateChangeSuccess",(function(){e.INVALID_LINKS_MSG=R.instant("sidepanel.invalid.limit.links.msg"),e.INVALID_LINKS_TOOLTIP=R.instant("sidepanel.invalid.limit.links.tooltip"),e.propertiesSearchPlaceholder=R.instant("visual.search.instance.placeholder")})),e.$on("autocompleteStatus",(function(){ce()})),e.$on("repositoryIsSet",(function(t,r){r.newRepo&&(e.hasInitedRepository=!1),se(r.newRepo),r.newRepo&&(A(),$(".graph-visualization svg").empty(),f.search().query&&(e.goToHome(),O()))}));E.push(t.$watch(()=>t.key,()=>{B=0,_.each(e.propertiesObj.items,(function(e){t.key>e&&B++})),W++}));E.push(e.$watch("propertiesObj.items",()=>{angular.isDefined(e.propertiesObj.items)&&e.propertiesObj.items.length>0&&l((function(){e.adapterContainer.adapter.reload()}),500)}));e.$on("$destroy",()=>{E.forEach(e=>e())});const L=(t,r)=>{e.embedded&&(t.embedded=!0),f.search(t),f.state(r)},A=()=>{e.searchVisible=!1,e.nodeSelected=!1,e.configLoaded=null,e.queryResultsMode=!1,e.lastSavedGraphName=null,e.lastSavedGraphId=null,e.shared=!1,e.numberOfPinnedNodes=0,V={},Y=0},T=()=>k.isActive()?e.defaultSettings:e.saveSettings,P=()=>{T().showLinksText?d3.selectAll("svg .link-wrapper text").style("display","block"):d3.selectAll("svg .link-wrapper text").style("display","none")},N=()=>{e.settings.languagesMap=_.map(e.settings.languages,(function(e){return{text:e}})),e.settings.preferredTypesMap=_.map(e.settings.preferredTypes,(function(e){return{text:e}})),e.settings.rejectedTypesMap=_.map(e.settings.rejectedTypes,(function(e){return{text:e}})),e.settings.preferredPredicatesMap=_.map(e.settings.preferredPredicates,(function(e){return{text:e}})),e.settings.rejectedPredicatesMap=_.map(e.settings.rejectedPredicates,(function(e){return{text:e}}))},D=()=>{e.rootNodeIri&&e.$broadcast("onRootNodeChange",e.rootNodeIri)},O=()=>{f.search().query?(e.searchVisible=!1,e.queryResultsMode=!0,M(f.search().query,f.search().sameAs,f.search().inference)):e.$on("onRootNodeChange",(function(t,r){e.loading=!0;const n=T();angular.isDefined(r)&&(e.rootNodeIri=r,b.getInstanceNode({iri:r,config:e.configLoaded?e.configLoaded.id:e.defaultGraphConfig.id,languages:e.shouldShowSettings()?n.languages:[],includeInferred:n.includeInferred,sameAsState:n.sameAsState}).then((function(t){e.nodeSelected=!0,e.searchVisible=!1,null===t.data.types&&(t.data.types="greyColor"),oe=new ae;const r=oe.addNode(t.data,te/2,re/2);ee=J,Re(r,!0)})).catch((function(t){e.loading=!1,c.error(getError(t),R.instant("graphexplore.error.could.not.load.graph"))})))})),f.search().uri&&e.openUri(f.search().uri,!0),f.search().saved&&w.getSavedGraph(f.search().saved).success((function(t){e.loadSavedGraph(t)})).error((function(e){const t=getError(e);c.error(t,R.instant("graphexplore.error.could.not.open"))}))},M=(t,r,n)=>{const i=T(),a=void 0===r?i.sameAsState:!0===r,o=void 0===n?i.includeInferred:!0===n;e.loading=!0,b.updateGraph({query:t,linksLimit:i.linksLimit,languages:e.shouldShowSettings()?i.languages:[],includeInferred:o,sameAsState:a}).then((function(e){be(e)}),(function(t){e.loading=!1,c.error(getError(t.data),R.instant("graphexplore.error.cannot.load.graph"))}))},G=(e,t)=>{const r=e.split(" ");return t?[r[0],r[1],r[2]].join(">"):[r[0],r[2]].join(">")},j=e=>[e.source.iri,e.target.iri].join(">"),Q=e=>{if(e.isTriple){const t=document.getElementById(Object(o.removeSpecialChars)(G(e.iri)));if(t&&void 0!==t.__data__.x)return t.__data__.x}return e.x},U=e=>{if(e.isTriple){const t=document.getElementById(Object(o.removeSpecialChars)(G(e.iri)));if(t&&void 0!==t.__data__.y)return t.__data__.y}return e.y},H=e=>{const t=e.trim().split(" ");return`<<<${t[0]}> <${t[1]}> <${t[2]}>>>`},F=e=>{const t=e.source.isTriple?G(e.source.iri,!0):e.source.iri,r=e.target.isTriple?G(e.target.iri,!0):e.target.iri;return Object(o.removeSpecialChars)(`${t}>${r}>marker`)},z=t=>{e.configLoaded=t,"search"===t.startMode?e.searchVisible=!0:"node"===t.startMode&&t.startIRI?l((function(){e.openUri(t.startIRI,!0)}),0):"query"===t.startMode&&t.startGraphQuery&&(e.loading=!0,C.loadGraphForConfig(t,t.startQueryIncludeInferred,T().linksLimit,t.startQuerySameAs).then((function(e){be(e)}),(function(t){e.loading=!1,c.error(getError(t),R.instant("graphexplore.error.graph.load"))})))},q=function(){var t,r;f.search().config?(t=f.search().config,r=O,t===e.defaultGraphConfig.id?z(e.defaultGraphConfig):C.getConfig(t).then(e=>{z(e),r()}).catch(e=>{c.error(getError(e),R.instant("graphexplore.error.could.not.load.config",{configId:t}))})):f.search().query||f.search().uri?(z(e.defaultGraphConfig),O()):O()};v.onpopstate=function(t){A(),t.state&&(t.state.config?(z(t.state.config),t.state.uri&&e.openUri(t.state.uri,!0)):t.state.savedGraph&&e.loadSavedGraph(t.state.savedGraph,!0))},e.embedded&&(f.search().query||f.search().uri||f.search().config||f.search().saved)&&(e.noGoHome=!0);let B=0,W=0,V={},Y=0;const K=16,X=d3.zoom().scaleExtent([.5,10]);let Z;const J=d3.zoomIdentity.translate(0,-70).scale(1);X.on("zoom",(function(e){k.isActive()||(ee=e.transform,Z.attr("transform",ee))}));let ee=J;const te=1e3,re=1e3;let ne,ie;function ae(){this.nodes=[],this.links=[],this.tripleNodes=new Map,this.tripleLinksCopy=new Map,this.addNode=function(e,t,r){return e.x=t,e.y=r,this.nodes.push(e),e},this.computeConnectedness=function(){const e={},t={};_.each(this.links,(function(r){const n=r.source.iri,i=r.target.iri,a=_.min([n,i])+"|"+_.max([n,i]);t[a]||(t[a]=1,e[n]=(e[n]||0)+1,e[i]=(e[i]||0)+1)})),_.each(this.links,(function(t){e[t.source.iri]>1&&e[t.target.iri]>1?t.connectedness=Math.min(5,Math.max(e[t.source.iri],e[t.target.iri])-1):t.connectedness=0}))},this.addAndMatchLinks=function(e){const t=this.nodes;Array.prototype.push.apply(this.links,function(e,t){return _.map(e,(function(e){let r,n;r=e.isTripleSource?Te(e.source):_.find(t,(function(t){return t.iri===e.source})),n=e.isTripleTarget?Te(e.target):_.find(t,(function(t){return t.iri===e.target}));let i={source:r,target:n,predicates:e.predicates};if(e.isTripleSource||e.isTripleTarget){let e=`${i.source.isTriple?G(i.source.iri):i.source.iri}>${i.target.isTriple?G(i.target.iri):i.target.iri}`;if(oe.tripleLinksCopy.has(e)){let t=oe.tripleLinksCopy.get(e);return t[0].predicates.push(...i.predicates),t.push(i),oe.tripleLinksCopy.set(e,t),null}oe.tripleLinksCopy.set(e,[i])}return i}))}(e,t));for(let e of oe.tripleLinksCopy.keys())1===oe.tripleLinksCopy.get(e).length&&oe.tripleLinksCopy.delete(e);this.links=this.links.filter(e=>null!==e),this.computeConnectedness()};const t=function(e,t){return r(e,t).length};function r(e,t){return _.filter(t,(function(t){return t.source.iri===e.iri||t.target.iri===e.iri}))}this.countLinks=t,this.linksTypes=function(e,t){const n=r(e,t),i=_.map(n,(function(t){return t.source.iri===e.iri?t.target.types:t.source.types}));return _.uniq(_.flatten(i))},this.linksPredicates=function(e,t){const n=r(e,t),i=_.map(n,(function(e){return e.predicates}));return _.uniq(_.flatten(i))},this.removeTriples=function(e){let t=[];this.tripleNodes.size>0&&e.forEach(e=>{this.tripleNodes.has(e)&&(this.tripleNodes.delete(e),this.links=_.reject(this.links,(function(r){let n=e.split(">"),i=G(r.source.iri),a=G(r.target.iri);if(i===e&&oe.tripleNodes.delete(a)){let e=a.split(">");t.push({source:e[0],target:e[1]})}let o=i===e||a===e||r.source.iri===n[0]&&r.target.iri===n[1];return o&&(oe.tripleLinksCopy.delete(`${i}>${a}`),oe.tripleLinksCopy.delete(`${a}>${i}`)),o})))}),t.forEach(e=>{this.links=_.reject(this.links,(function(t){return t.source.iri===e.source&&t.target.iri===e.target}))})},this.removeNode=function(r){let n=[];this.links=_.reject(this.links,(function(e){let t=e.source.iri===r.iri||e.target.iri===r.iri;return t&&(e.target.isTriple&&n.push(G(e.target.iri)),e.source.isTriple||e.target.isTriple||n.push([e.source.iri,e.target.iri].join(">"))),t})),this.removeTriples(n);const i=this.links;this.nodes=_.reject(this.nodes,(function(e){return 0===t(e,i)})),0===this.nodes.length&&(e.nodeSelected=!1),this.computeConnectedness()},this.removeNodeLeafLinks=function(e){let n=[],i=this.links;this.links=_.reject(this.links,(function(a){let o=a.source.iri===e.iri&&1===t(a.target,i)&&!a.target.isTriple||a.target.iri===e.iri&&1===t(a.source,i)&&!a.source.isTriple;if(!o){let n;if(a.source.iri!==e.iri||2!==t(a.target,i)||a.target.isTriple?a.target.iri!==e.iri||2!==t(a.source,i)||a.source.isTriple||(n=r(a.source,i)):n=r(a.target,i),!n)return!1;o=(n[0].source.iri===e.iri||n[0].target.iri)&&(n[1].source.iri===e.iri||n[1].target.iri)}return o&&(a.target.isTriple&&n.push(G(a.target.iri)),a.source.isTriple||a.target.isTriple||n.push([a.source.iri,a.target.iri].join(">"))),o})),this.removeTriples(n),i=this.links,this.nodes=_.reject(this.nodes,(function(r){return 0===t(r,i)&&r.iri!==e.iri})),this.computeConnectedness()},this.addTriple=function(e,t,r){e.x=t,e.y=r,e.weight=0;let n=G(e.iri);if(this.tripleNodes.has(n)){let t=this.tripleNodes.get(n);t.push(e),this.tripleNodes.set(n,t)}else e.weight=10,this.tripleNodes.set(n,[e])},this.copyState=function(){const e=_.map(this.nodes,(function(e){return{iri:e.iri,isTriple:e.isTriple,size:e.size,labels:_.cloneDeep(e.labels),types:_.cloneDeep(e.types),rdfRank:e.rdfRank,x:e.x,y:e.y,fixed:e.fixed}})),t=JSON.stringify(Array.from(this.tripleNodes.entries())),r=JSON.stringify(Array.from(this.tripleLinksCopy.entries()));return{nodes:e,links:_.map(this.links,(function(e){return{source:e.source.iri,isTripleSource:e.source.isTriple,target:e.target.iri,isTripleTarget:e.target.isTriple,predicates:e.predicates}})),tripleNodes:t,tripleLinksCopy:r,colorIndex:Y,type2color:V,transform:ee}},this.restoreState=function(t){e.nodeSelected=!0,e.searchVisible=!1,this.nodes=_.cloneDeep(t.nodes),this.tripleNodes=t.tripleNodes?new Map(JSON.parse(t.tripleNodes)):new Map,this.links=[],this.addAndMatchLinks(t.links),this.tripleLinksCopy=t.tripleLinksCopy?new Map(JSON.parse(t.tripleLinksCopy)):new Map,_.each(this.nodes,(function(t){t.fixed&&e.numberOfPinnedNodes++})),angular.isDefined(t.colorIndex)&&angular.isDefined(t.type2color)&&(Y=t.colorIndex,V=_.cloneDeep(t.type2color)),angular.isDefined(t.transform)&&(ee=d3.zoomIdentity.translate(t.transform.x,t.transform.y).scale(t.transform.k)),ve()}}e.datasource={get:function(t,r,n){return g.initLazyList(t,r,n,B,e.propertiesObj.items)},revision:function(){return W}},p.when(h.getPrincipal()).then(t=>(t=>{const r=t.appSettings;e.defaultSettings.includeInferred=r.DEFAULT_INFERENCE,e.defaultSettings.sameAsState=r.DEFAULT_INFERENCE&&r.DEFAULT_SAMEAS,e.defaultSettings.includeSchema=r.DEFAULT_VIS_GRAPH_SCHEMA;const n=x.get(S.GRAPHS_VIZ);if(n&&"object"==typeof n)try{e.saveSettings=n,void 0===e.saveSettings.includeSchema&&(e.saveSettings.includeSchema=e.defaultSettings.includeSchema,e.saveSettings.rejectedPredicates=[...e.saveSettings.rejectedPredicates,...e.defaultSettings.rejectedPredicates].unique())}catch(t){e.saveSettings=_.cloneDeep(e.defaultSettings),x.set(S.GRAPHS_VIZ,e.saveSettings)}else e.saveSettings=_.cloneDeep(e.defaultSettings)})(t)),e.showInfoPanel=!1;let oe=new ae;function se(t){!r.getActiveRepository()||e.hasInitedRepository&&!t||(e.hasInitedRepository=!0,t||e.getGraphConfigs(q),e.getNamespacesPromise=I.getNamespaces(e.getActiveRepository()).success((function(t){const r=_.map(t.results.bindings,(function(e){return{uri:e.namespace.value,prefix:e.prefix.value}}));e.namespaces=_.sortBy(r,(function(e){return e.uri.length})),ce()})).error((function(e){c.error(getError(e),R.instant("graphexplore.error.view.will.not.work"))})))}function ce(){s.isLicenseValid()&&(e.getAutocompletePromise=u.checkAutocompleteStatus())}e.addedTag=function(t){return t.text.indexOf(":")<0?(c.warning(R.instant("graphexplore.absolute.prefixed.iri")),null):(t.text=function(e,t){if(!/^<?(http|urn).*>?/.test(e)){const r=e.split(":"),n=r[0],i=r[1];if(!angular.isUndefined(i)){const e=d.getNamespaceUriForPrefix(t,n);if(e)return e+i}}return e}(t.text,e.namespaces),e.pageslideExpanded=!0,t)},e.validateTag=function(e,t,r){if(e.text.indexOf(":")<0)return r?c.warning(R.instant("graphexplore.absolute.prefixed.iri.option"),t):c.warning(R.instant("graphexplore.absolute.prefixed.iri"),t),!1;const n=e.text.indexOf("*");if(n>=0){if(!r)return c.warning(R.instant("graphexplore.wildcards.not.allowed"),t),!1;if(n<e.text.length-1)return c.warning(R.instant("graphexplore.wildcards.last.char"),t),!1}return!0},e.getTagClass=function(e){return e.endsWith("*")?"tag-item-wildcard":null},e.getActiveRepository=function(){return r.getActiveRepository()},e.isLicenseValid=function(){return s.isLicenseValid()},se();const le=d3.scaleLinear().domain([0,9]).range(["hsl(0, 100%, 75%)","hsl(360, 90%, 82%)"]).interpolate(d3.interpolateHslLong),de=d3.scaleLinear().domain([0,9]).range(["hsl(180, 50%, 75%)","hsl(540, 40%, 82%)"]).interpolate(d3.interpolateHslLong);e.getColor=function(e){angular.isUndefined(V[e])&&(V[e]=Y,Y++);const t=V[e];return t>39?"#c2c2c2":t%2==0?le(t/2):de(t/2)};const ue=d3.forceX(te/2).strength(.005),pe=d3.forceY(re/2).strength(.005),fe=d3.forceSimulation().force("x",ue).force("y",pe),he=d3.select(".main-container .graph-visualization").append("svg").attr("viewBox","0 0 "+te+" "+re).attr("preserveAspectRatio","xMidYMid meet");he.append("rect").attr("width",10*te).attr("height",10*re).attr("x",-(10*te-te)/2).attr("y",-(10*re-re)/2).style("fill","none").style("pointer-events","all").call(X).on("click",(function(e){e.stopPropagation(),ke(),fe.stop()}));let ge=0,me=0;const ye=new function(){this.state=!1,this.setLoadingState=function(e){this.state=e},this.getLoadingState=function(){return this.state},this.init=function(e,t){d3.select(t).append("circle").attr("cx",(function(){return e.x})).attr("cy",(function(){return e.y})).attr("class","loader-container").attr("r",(function(){return e.size})).style("fill","fff").style("opacity","0.7"),d3.select(t).append("image").attr("xlink:href","js/angular/templates/loader/ot-loader.svg?v=2.7.0-TR5").attr("x",(function(){return e.x-e.size+5})).attr("y",(function(){return e.y-e.size})).attr("width",(function(){return 2*e.size})).attr("height",(function(){return 2*e.size})).attr("class","node-loader")}};function ve(t){d3.selectAll("svg g").remove(),d3.selectAll(".d3-tip").remove(),d3.selectAll(".menu-events").remove(),Z=he.append("g").attr("class","nodes-container").attr("transform",(function(){return angular.isDefined(ee)&&!t?ee:""}));const r=Object(i.a)().attr("class","d3-tip").customPosition((function(){const e=ne.getBoundingClientRect();return{top:e.bottom+10+"px",left:e.left-30+"px"}})).html((function(t){let r="";return t.fixed&&(r+='<i class="icon-pin"></i> '),t.types.length>0?r+=_.join(_.map(t.types,(function(t){return e.replaceIRIWithPrefix(t)}))," · "):r+="<i>No types</i>",r})),a=function(e){let t="";return t+=_.join(_.map(e.predicates,(function(t,r){if(0===r)return Ne(t);if(r<10)return" · "+Ne(t);if(10===r){const t=function(e){return e.predicates.length-10}(e),r=t>1?t+" predicates":t+" predicate";return" · "+R.instant("graphexplore.tip.text",{textToShow:r})}})),""),t};let s;const d=Object(i.a)().attr("class","d3-tip").customPosition((function(e){const t=s.getBoundingClientRect(),r=function(e){const t=a(e),r=document.createElement("canvas").getContext("2d");return r.font="13px Arial",e.predicates.length<10?r.measureText(t).width:r.measureText(t).width/2}(e);return{top:t.top-30+"px",left:t.left-30+"px",width:r+"px"}})).html((function(e){return a(e)}));const u=function(){l.cancel(void 0),l.cancel(ge),ne=null,r.hide(),me=l((function(){ke()}),500)};he.call(r);he.call(d);let p=he.selectAll(".link"),f=he.selectAll(".node");const h=d3.forceCollide(e=>e.size+5).strength(.5),g=d3.forceManyBody().strength(-300),m=d3.forceCenter(te/2,re/2);fe.nodes(oe.nodes).force("charge",g).force("collide",h).force("center",m).force("link",d3.forceLink(oe.links).distance((function(e){return e.source.isTriple||e.target.isTriple?0:function(e){const t=$("<span></span>"),r=e.predicates[0].split("/"),n=r[r.length-1];t.addClass("predicate-text").text(n),$("body").append(t);const i=t.width()+2*e.source.size+2*e.target.size+50;return t.remove(),.75*i}(e)+30*e.connectedness}))),Z.append("defs").selectAll("marker").data(oe.links).enter().append("marker").attr("class","arrow-marker").attr("id",(function(e){return F(e)})).attr("viewBox","0 -5 10 10").attr("refX",(function(e){return e.target.isTriple?11:e.target.size+11})).attr("refY",0).attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M0,-5L10,0L0,5 L10,0 L0, -5"),p=Z.selectAll(".link").data(oe.links).enter().append("g").attr("class","link-wrapper").attr("id",(function(e){return Object(o.removeSpecialChars)(j(e))})).append("line").attr("class","link").style("stroke-width",1).style("fill","transparent").style("marker-end",(function(e){return`url(#${F(e)})`}));const y=Z.selectAll(".link-wrapper").append("text").text((function(e){return Pe(e)})).attr("class",(function(e){return e.predicates.length>1||oe.tripleNodes.has(j(e))?"predicates":"predicate"})).attr("dy","-0.5em").style("text-anchor","middle").style("display",T().showLinksText?"":"none").on("mouseover",(function(e,t){e.stopPropagation(),function(e,t){l.cancel(void 0);const r=s=e.target;l((function(){s===r&&t.predicates.length>1&&d.show(t,s)}),300)}(e,t)})).on("mouseout",(function(){l.cancel(void 0),s=null,d.hide()})).on("click",(function(t,r){t.stopPropagation(),function(t,r){Ae();const n=j(r);if(1===r.predicates.length&&oe.tripleNodes.has(n)){ie=null;const e=oe.tripleNodes.get(n)[0];if(we(e,this,t.button)){const t={};t.iri=e.iri,t.pred=Ne(e.iri.split(" ")[1]),_e(t)}return}!function(t){if(e.showNodeInfo=!1,e.showPredicates=t.predicates.length>1,e.showFilter=!1,e.showInfoPanel=!1,ie===t)return e.showNodeInfo=!1,e.showInfoPanel=!1,void(ie=null);ie=t,e.showPredicates&&(e.predicates=_.map(t.predicates,(function(e){const r=function(e,t){const r=j(t);return oe.tripleNodes.has(r)?oe.tripleNodes.get(r).findIndex(t=>t.iri.indexOf(e)>=0):-1}(e,t),n=r>-1;return{value:Ne(e),partOfTriple:n,linkId:n?j(t):"",nodeIndex:r}})),e.showInfoPanel=!0)}(r)}(t,r)}));let v,x=0,S=null,w=null;const C=function(t,r,n){let i=n||this.parentNode;Array.isArray(n)&&(i=n[r]);oe.countLinks(t,oe.links)<=T().linksLimit?Re(t,!1,i):c.info(R.instant("graphexplore.increase.limit"),R.instant("graphexplore.node.at.max")),e.closeInfoPanel()};function b(e,t){let r,n,i,a,o=!0;if("down"===t)r=2*e.size,n=e.size/3,i=.8,a=.3;else if("down-fixed"===t)r=2*e.size,n=e.size,i=.8,a=.66;else if("up"===t)r=e.size/3,n=2*e.size,i=.3,a=.8;else{if("fixed"!==t)return;r=e.size,i=.66,o=!1}let s=Z.selectAll(".node-wrapper").filter((function(t){return t===e})).append("text").text("").classed("icon-any pinned",!0).style("font-size",r+"px").attr("x",(function(e){return e.x})).attr("y",(function(e){return e.y})).attr("opacity",i);"fixed"!==t&&"down-fixed"!==t||(e.pin=s),o&&(s=s.transition().duration(1e3).style("font-size",(function(){return n+"px"})).attr("opacity",a),"down-fixed"!==t&&s.remove())}const I=d3.drag().subject((function(e){return e})).on("start",(function(e,t){if(k.isActive())return;0===e.sourceEvent.button&&(t.fixedBeforeDrag=t.fixed,t.isBeingDragged=!0,t.beginDragging=!0,ke(),d3.select(this).classed("dragging",!0),fe.alphaTarget(.3).restart())})).on("drag",(function(t,r){r.isBeingDragged&&(r.fx=t.x,r.fy=t.y,r.fixed?r.beginDragging&&b(r,"fixed"):(e.numberOfPinnedNodes++,r.fixed=!0,b(r,"down-fixed")),r.pinWasFixed=!0,r.beginDragging=null)})).on("end",(function(e,t){t.isBeingDragged&&(t.pinWasFixed&&(t.pinWasFixed=null,d3.select(".pinned").remove()),t.isBeingDragged=!1,d3.select(this).classed("dragging",!1));fe.alphaTarget(0)}));f=Z.selectAll(".node").data(oe.nodes).enter().append("g").attr("class","node-wrapper").attr("id",(function(e){return e.iri})).append("circle").attr("class","node").attr("r",(function(e){return e.size})).style("fill",(function(t){return"greyColor"===t.types?"c2c2c2":e.getColor(t.types[0])})).on("mouseover",(function(t,n){n.isBeingDragged||(l.cancel(me),ge=l(()=>{(function(t,r){if(e.showInfoPanel)return!1;(Se.closeIcon||Se.expandIcon||Se.focusIcon||Se.copyURIIcon)&&Se.removeIcons();if(fe.alpha()<.1)return Se.initIcons(t,r.parentNode),fe.stop(),xe(),!0;return!1})(n,this)&&function(e,t){l.cancel(void 0);const n=ne=t.target;l((function(){ne===n&&r.show(e,ne)}),300)}(n,t)},400))})).on("mouseout",u).on("click",(function(t,r){if(t.button&&0!==t.button)return;const n=this;if(S&&w===n)return l.cancel(S),S=null,void C(r,0,n.parentNode);w=n,u(),e.showPredicates=!1,k.isActive()||(l.cancel(S),S=l((function(){we(r,n,t),S=null}),540))})).on("touchstart",(e,t)=>function(e){x=0,v=l((function(){x<5&&Ce(e),v=null}),1e3)}(t)).on("touchmove",(function(){x++})).on("touchend",(function(){l.cancel(v),v=null})).on("contextmenu",(function(t,n){t.shiftKey||(t.preventDefault(),ke(),e.closeInfoPanel(),n.fixed?(e.numberOfPinnedNodes--,n.fixed=!1,n.fx=null,n.fy=null,b(n,"up"),fe.alpha(1).restart()):(e.numberOfPinnedNodes++,n.fixed=!0,b(n,"down")),function(e){ne&&r.show(e,ne)}(n))})).on("gdb-expand-node",(e,t)=>C(t,0,e.srcElement.parentNode)).on("gdb-show-node-info",(e,t)=>Ee(t)).call(I);const E=Z.selectAll(".node-wrapper").append("foreignObject").style("pointer-events","none").attr("width",(function(e){return 2*e.size*1.75}));Z.insert("g").attr("class","menu-events"),(e=>{e.each((function(e){e.fontSize=n.a.Text.calcFontSizeRaw(e.labels[0].label,e.size,K,!0)})).attr("height",(function(e){return 3*e.fontSize})).append("xhtml:div").attr("class","node-label-body").style("font-size",(function(e){return e.fontSize+"px"})).append("xhtml:div").text((function(e){return e.labels[0].label})),l((function(){$(".node-label-body div").each((function(e,t){let r=t.textContent.substring(0,t.textContent.length-1);let n=0;for(;n<200&&(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)r=r.substring(0,r.length-1),t.textContent=r+"…",n++}))}),50)})(E),fe.on("tick",(function(){p.attr("x1",(function(e){return Q(e.source)})).attr("y1",(function(e){return U(e.source)})).attr("x2",(function(e){return Q(e.target)})).attr("y2",(function(e){return U(e.target)})),y.attr("x",(function(e){let t=Q(e.source),r=Q(e.target);return e.x=.5*(t+r)})).attr("y",(function(e){let t=U(e.source),r=U(e.target);return e.y=.5*(t+r)})).attr("transform",(function(e){return"rotate("+function(e,t){const r={x:Q(e.source),y:U(e.source)},n={x:Q(e.target),y:U(e.target)};if(t)return 180*Math.atan2(n.y-r.y,n.x-r.x)/Math.PI;{const e=180*Math.atan2(n.y-r.y,n.x-r.x)/Math.PI;return e<=90&&e>=-90?e:(e>0?-1:1)*(180-Math.abs(e))}}(e,e.direction)+", "+e.x+", "+e.y+")"})),f.attr("cx",(function(e){return e.x})).attr("cy",(function(e){return e.y})),Z.select(".node-loader").attr("x",(function(e){return e.x-e.size+3})).attr("y",(function(e){return e.y-e.size})),Z.select(".loader-container").attr("cx",(function(e){return e.x})).attr("cy",(function(e){return e.y})),E.attr("x",(function(e){return e.x-1.75*e.size})).attr("y",(function(e){return e.y-3*e.fontSize/2})),d3.select(".pinned").attr("x",(function(e){return e.x})).attr("y",(function(e){return e.y})),xe()})),angular.isDefined(ye)&&ye.setLoadingState(!1),e.loading&&(e.loading=!1),d3.selectAll(".link-wrapper").each((function(){const e=$(this).attr("id").split(">")[0],t=$(this).attr("id").split(">")[1];d3.selectAll(".link").each((function(r){const n=Object(o.removeSpecialChars)(r.source.iri),i=Object(o.removeSpecialChars)(r.target.iri);if(n===t&&i===e){let e=n;e+=">",e+=i;const t=document.createTextNode(" ⟶");document.getElementById(e).lastChild.appendChild(t),r.direction="double"}}))})),d3.selectAll(".d3-actions-tip").remove(),fe.alpha(.3).restart()}function xe(){t.d3alpha=fe.alpha()}const Se=new function(){function r(e,t){return"translate("+(t.x-14+(t.size+15)*Math.cos(e*Math.PI/180-Math.PI/2))+","+(t.y-14+(t.size+15)*Math.sin(e*Math.PI/180-Math.PI/2))+")"}this.closeIcon=void 0,this.expandIcon=void 0,this.collapseIcon=void 0,this.focusIcon=void 0,this.copyURIIcon=void 0,this.actionsTip=void 0,this.removeIcons=function(){this.closeIcon.remove("g"),this.expandIcon&&this.expandIcon.remove("g"),this.collapseIcon&&this.collapseIcon.remove("g"),this.focusIcon.remove("g"),this.copyURIIcon.remove("g"),this.closeIcon=void 0,this.expandIcon=void 0,this.collapseIcon=void 0,this.focusIcon=void 0,this.copyURIIcon=void 0,this.expandedState=!1},this.expandedState=!1,this.initIcons=function(n,a){const o=Object(i.a)().attr("class","d3-tip d3-actions-tip").customPosition((function(e,t){const r=t.target.getBoundingClientRect();return{top:r.top-20+"px",left:r.right+10+"px"}})).html((function(e){return e}));he.call(o);n.isExpanded?(this.collapseIcon=d3.select(".menu-events").append("g").attr("class","collapse-icon").attr("name","collapse").attr("transform",(function(){return r(20,n)})),this.collapseIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.collapseIcon.append("path").attr("d","M22.67,12a.59.59,0,0,1-.53.65l-6.88.72H15.2a.59.59,0,0,1-.59-.65l.72-6.88A.58.58,0,0,1,16,5.33a.59.59,0,0,1,.53.65L16,11.11,21.3,5.79a.64.64,0,0,1,.91.91L16.89,12,22,11.49A.59.59,0,0,1,22.67,12ZM12.59,14.75l-6.75.85a.59.59,0,0,0-.51.66.58.58,0,0,0,.66.51l4.95-.62-5.2,5.2a.64.64,0,1,0,.91.91l5.2-5.2L11.23,22a.59.59,0,0,0,.51.66h.07a.59.59,0,0,0,.59-.52l.85-6.75a.59.59,0,0,0-.17-.49A.58.58,0,0,0,12.59,14.75Z").style("fill","var(--primary-color)"),this.collapseIcon.on("click",(function(){var e;(e=n).isExpanded=!1,oe.removeNodeLeafLinks(e),ve()})).on("mouseover",(function(e){o.show(this.getAttribute("name"),e),l.cancel(ge),l.cancel(me)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)}))):(this.expandIcon=d3.select(".menu-events").append("g").attr("class","expand-icon").attr("name","expand").attr("transform",(function(){return r(20,n)})),this.expandIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.expandIcon.append("path").attr("d","M22.37,6.28l-.72,6.88a.59.59,0,0,1-.59.53H21a.59.59,0,0,1-.53-.65L21,7.9l-5.32,5.32a.64.64,0,0,1-.91-.91L20.1,7,15,7.53a.59.59,0,0,1-.12-1.18l6.88-.72a.59.59,0,0,1,.65.65ZM12.89,20.34,7.95,21l5.2-5.2a.64.64,0,0,0-.91-.91L7,20.05l.62-4.95A.59.59,0,0,0,6.48,15l-.85,6.75a.59.59,0,0,0,.59.67h.07L13,21.52a.59.59,0,1,0-.15-1.18Z").style("fill","var(--primary-color)"),this.expandIcon.on("click",(function(){Re(n,!1,a)})).on("mouseover",(function(e){o.show(this.getAttribute("name"),e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)}))),this.focusIcon=d3.select(".menu-events").append("g").attr("class","focus-icon").attr("name","focus").attr("transform",(function(){return r(20,n)})),this.focusIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.focusIcon.append("path").attr("d","M14.2,23.81a9.8,9.8,0,1,1,6.93-2.87h0A9.74,9.74,0,0,1,14.2,23.81Zm0-18.17a8.37,8.37,0,1,0,5.92,14.29h0A8.37,8.37,0,0,0,14.2,5.64Zm1.42,6.95a2,2,0,1,0,0,2.85A2,2,0,0,0,15.62,12.59Z").style("fill","var(--primary-color)"),this.focusIcon.on("click",(function(){t.$broadcast("onRootNodeChange",n.iri)})).on("mouseover",(function(e){o.show(this.getAttribute("name"),e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)})),this.copyURIIcon=d3.select(".menu-events").append("g").attr("class","icon-link").attr("name","link").attr("transform",(function(){return r(20,n)})),this.copyURIIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.copyURIIcon.append("path").attr("d","M 13.457031 10.164062 C 13.648438 10.164062 13.820312 10.242188 13.941406 10.363281 L 15.492188 11.859375 C 15.984375 12.332031 16.292969 12.992188 16.292969 13.714844 C 16.292969 14.441406 15.984375 15.097656 15.492188 15.574219 L 10.394531 20.496094 C 9.902344 20.972656 9.222656 21.265625 8.472656 21.265625 C 7.71875 21.265625 7.039062 20.972656 6.546875 20.496094 L 4.996094 19 C 4.507812 18.523438 4.203125 17.867188 4.203125 17.144531 C 4.203125 16.421875 4.507812 15.765625 4.996094 15.289062 L 7.542969 12.824219 C 7.667969 12.707031 7.84375 12.628906 8.035156 12.628906 C 8.417969 12.628906 8.726562 12.929688 8.726562 13.300781 C 8.726562 13.484375 8.648438 13.652344 8.523438 13.773438 L 5.976562 16.234375 C 5.738281 16.46875 5.589844 16.792969 5.589844 17.148438 C 5.589844 17.503906 5.738281 17.824219 5.976562 18.058594 L 7.527344 19.566406 C 7.773438 19.792969 8.105469 19.929688 8.472656 19.929688 C 8.835938 19.929688 9.167969 19.792969 9.414062 19.566406 L 14.511719 14.644531 C 14.753906 14.410156 14.90625 14.089844 14.90625 13.730469 C 14.90625 13.375 14.753906 13.054688 14.511719 12.820312 L 12.964844 11.324219 C 12.839844 11.203125 12.761719 11.039062 12.761719 10.855469 C 12.761719 10.488281 13.070312 10.1875 13.449219 10.1875 Z M 17.082031 3.976562 C 17.082031 3.976562 17.085938 3.976562 17.085938 3.976562 C 17.824219 3.976562 18.492188 4.261719 18.980469 4.722656 L 20.535156 6.203125 C 21.042969 6.679688 21.355469 7.34375 21.355469 8.082031 C 21.355469 8.792969 21.058594 9.441406 20.582031 9.914062 L 18.0625 12.402344 C 17.9375 12.527344 17.761719 12.605469 17.566406 12.605469 C 17.183594 12.605469 16.875 12.304688 16.875 11.9375 C 16.875 11.753906 16.949219 11.589844 17.070312 11.46875 L 19.605469 8.984375 C 19.847656 8.75 19.996094 8.429688 19.996094 8.070312 C 19.996094 7.714844 19.847656 7.394531 19.605469 7.160156 L 18.019531 5.667969 C 17.773438 5.445312 17.4375 5.304688 17.070312 5.300781 C 16.703125 5.304688 16.367188 5.453125 16.128906 5.691406 L 11.085938 10.667969 C 10.84375 10.898438 10.695312 11.222656 10.695312 11.578125 C 10.695312 11.933594 10.84375 12.257812 11.085938 12.488281 L 12.675781 13.980469 C 12.804688 14.101562 12.882812 14.273438 12.882812 14.457031 C 12.882812 14.828125 12.574219 15.128906 12.191406 15.128906 C 12.003906 15.128906 11.832031 15.054688 11.707031 14.9375 L 10.140625 13.457031 C 9.636719 12.980469 9.324219 12.316406 9.324219 11.582031 C 9.324219 10.863281 9.621094 10.214844 10.101562 9.742188 L 15.140625 4.765625 C 15.625 4.285156 16.304688 3.980469 17.054688 3.976562 Z M 17.082031 3.976562").style("fill","var(--primary-color)"),this.copyURIIcon.on("click",(function(){e.copyToClipboard(n.iri),ke(),o.hide()})).on("mouseover",(function(e){o.show("<div style='text-align: center;'><b>Copy to ClipBoard</b><br>"+n.iri+"</div>",e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)})),this.closeIcon=d3.select(".menu-events").append("g").attr("class","close-icon").attr("name","remove").attr("transform",(function(){return r(20,n)})),this.closeIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.closeIcon.append("path").attr("d","M14.94,14l5.87-5.87a.66.66,0,1,0-.94-.94L14,13.06,8.13,7.19a.66.66,0,0,0-.94.94L13.06,14,7.19,19.87a.66.66,0,1,0,.94.94L14,14.94l5.87,5.87a.66.66,0,1,0,.94-.94Z").style("fill","var(--primary-color)"),this.closeIcon.on("click",(function(){Ce(n)})).on("mouseover",(function(e){o.show(this.getAttribute("name"),e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)})),this.animateMenu(n)},this.animateMenu=function(e){const t=d3.easeSin;let n=0;let i=20;this.expandIcon&&this.expandIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return r(i,e)})).delay(n+=35),this.collapseIcon&&this.collapseIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return r(i,e)})).delay(n+=35),this.copyURIIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return i+=30,r(i,e)})).delay(n+=35),this.focusIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return i+=30,r(i,e)})).delay(n+=35),this.closeIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return i+=30,r(i,e)})).delay(n+=35),this.expandedState=!0}};function we(r,n,i){return e.showInfoPanel=!1,e.showPredicates=!1,e.showNodeInfo=!1,i.shiftKey&&(i.ctrlKey||i.metaKey)?(t.$broadcast("onRootNodeChange",r.iri),!1):i.ctrlKey||i.metaKey?(Ce(r),!1):void 0!==e.openedNodeInfoPanel&&e.openedNodeInfoPanel===r?(e.pageslideExpanded=!1,e.openedNodeInfoPanel=void 0,!1):(Ee(r),!0)}function Ce(e){oe.removeNode(e),ve()}function be(t){!function(t){e.nodeSelected=!0,null===t.data.types&&(t.data.types="greyColor"),oe=new ae,ee=J}(t),Ie(t)}function Ie(t,r,n){let i=t.data;i=_.filter(i,(function(e){return-1===_.findIndex(oe.links,(function(t){return e.source===t.source.iri&&e.target===t.target.iri}))}));const a=[],o=oe.tripleLinksCopy.values();for(let e=0;e<oe.tripleLinksCopy.size;e++){o.next().value.forEach(e=>{a.push(e)})}i=_.filter(i,(function(e){return-1===_.findIndex(a,(function(t){return e.source===t.source.iri&&e.target===t.target.iri}))})),i=_.filter(i,(function(e){return e.source!==e.target}));const s=((e,t)=>{const r=t.map(t=>t[e]);return t.filter((t,n)=>r.indexOf(t[e])===n)})("iri",_.union(_.flatten(_.map(t.data,(function(e){return[{iri:e.source,isTriple:e.isTripleSource},{iri:e.target,isTriple:e.isTripleTarget}]}))))),l=_.map(oe.nodes,(function(e){return{iri:e.iri,isTriple:Boolean(e.isTriple)}})),d=oe.tripleNodes.values();for(let e=0;e<oe.tripleNodes.size;e++){d.next().value.forEach(e=>{l.push({iri:e.iri,isTriple:e.isTriple})})}const u=_.reject(s,(function(e){return _.some(l,e)}));if(0===u.length)(n||0===i.length)&&c.info(R.instant("graphexplore.error.node.connections")),oe.addAndMatchLinks(i),ve();else{const t=[],n=[],a=T();_.forEach(u,(function(r,i){t.push(b.getInstanceNode({iri:r.isTriple?H(r.iri):r.iri,config:e.configLoaded.id,languages:e.shouldShowSettings()?a.languages:[],includeInferred:a.includeInferred,sameAsState:a.sameAsState}).then((function(e){n[i]=e.data})))})),p.all(t).then((function(){_.forEach(n,(function(e,t){const i=2*Math.PI*t/n.length,a=(r?r.x:0)+Math.cos(i)*re/3,o=(r?r.y:0)+Math.sin(i)*re/3;e.isTriple?oe.addTriple(e,a,o):oe.addNode(e,a,o)})),oe.addAndMatchLinks(i),r&&(r.isExpanded=!0),ve()}))}}function Re(t,r,n){if(ye.getLoadingState())return;ye.init(t,n);const i=T(),a=t.iri;b.getInstanceNodeLinks({iri:a,linksLimit:i.linksLimit,includeInferred:i.includeInferred,config:e.configLoaded.id,preferredTypes:e.shouldShowSettings()?i.preferredTypes:[],rejectedTypes:e.shouldShowSettings()?i.rejectedTypes:[],preferredPredicates:e.shouldShowSettings()?i.preferredPredicates:[],rejectedPredicates:e.shouldShowSettings()?i.rejectedPredicates:[],preferredTypesOnly:e.shouldShowSettings()?i.preferredTypesOnly:[],preferredPredicatesOnly:e.shouldShowSettings()?i.preferredPredicatesOnly:[],languages:e.shouldShowSettings()?i.languages:[],sameAsState:i.sameAsState,includeSchema:i.includeSchema}).then((function(e){Ie(e,t,r)}),(function(t){const r=getError(t.data);c.error(r,R.instant("graphexplore.error.exploring.node")),e.loading=!1,ye.setLoadingState(!1)}))}function ke(){angular.isDefined(Se)&&Se.expandedState&&Se.removeIcons()}function Ee(t){fe.stop(),e.openedNodeInfoPanel=t,e.showNodeInfo=!0,e.showFilter=!1,e.showPredicates=!1,e.nodeLabels=t.labels,e.nodeTypes=t.types,e.rdfRank=t.rdfRank,e.nodeIri=t.iri,e.resourceType=t.isTriple?"triple":"uri",e.encodedIri=t.isTriple?encodeURIComponent(H(t.iri)):encodeURIComponent(t.iri),e.showInfoPanel=!0,e.rdfsLabel=t.labels[0].label,e.rdfsComment=t.comment,e.expanded=!1,e.propertiesQueryObj.query="",e.dataNodeKeysQuery="";const r=T();b.getProperties({iri:t.isTriple?H(t.iri):t.iri,config:e.configLoaded.id,languages:e.shouldShowSettings()?r.languages:[],includeInferred:r.includeInferred,sameAsState:r.sameAsState,rejectedPredicates:e.shouldShowSettings()?r.rejectedPredicates:[]}).then((function(t){e.data=_.mapKeys(t.data,(function(t,r){return e.replaceIRIWithPrefix(r)})),e.propertiesObj.items=[],_.forEach(e.data,(function(t,r){e.propertiesObj.items.push({key:r,value:t})})),e.nodeImage=void 0,e.propertiesNotFiltered=e.propertiesObj.items;const r=_.find(e.propertiesObj.items,(function(e){return"image"===e.key}));r&&(e.nodeImage=r.value[0].v),e.propertiesObj.items=_.reject(e.propertiesObj.items,(function(e){return"image"===e.key})),e.propertiesNotFiltered=e.propertiesObj.items}),(function(e){c.warning(getError(e.data),"Error")}))}function _e(e){Le("predicate","var(--primary-color-dark)",e),Le("predicates","var(--primary-color-dark)",e);const t=document.getElementsByClassName("link");t&&_.each(t,(function(t){const r=t.__data__;(r.source.iri.indexOf(e.iri)>=0||r.target.iri.indexOf(e.iri)>=0)&&(t.style.stroke="var(--primary-color-dark)",t.style.strokeWidth=4)}));const r=document.getElementsByClassName("arrow-marker");r&&_.each(r,(function(t){const r=t.__data__;(r.source.iri.indexOf(e.iri)>=0||r.target.iri.indexOf(e.iri)>=0)&&(t.style.stroke="var(--primary-color-dark)",t.__data__.target.isTriple||t.setAttribute("refX","23"))}))}function Le(e,t,r){const n=document.getElementsByClassName(e);n&&_.each(n,(function(e){const n=e.__data__;r?((n.source.iri.indexOf(r.iri)>=0||n.target.iri.indexOf(r.iri)>=0)&&(e.style.fill=t),G(r.iri)===j(n)&&(e.textContent=r.pred,e.style.fill=t),r.oppLinkIRI&&r.oppLinkIRI===j(n)&&(e.textContent=r.oppTriplePred,e.style.fill=t)):(e.style.fill=t,e.textContent=Pe(n))}))}function Ae(){_.each(e.predicates,(function(e){const t=document.getElementById(e.linkId+e.nodeIndex);t&&(t.style.fontWeight="normal")}));const t=document.getElementsByClassName("link");t&&_.each(t,(function(e){e.style.stroke="#999",e.style.strokeWidth=1})),Le("predicate",""),Le("predicates","");const r=document.getElementsByClassName("arrow-marker");r&&_.each(r,(function(e){e.style.stroke="#999",e.__data__.target.isTriple||e.setAttribute("refX","59")}))}function Te(e){const t=G(e);if(oe.tripleNodes.has(t))return oe.tripleNodes.get(t).find(t=>t.iri===e)}function Pe(e){return e.predicates.length>1?e.predicates.length+" predicates":Ne(e.predicates[0])}function Ne(t){const r=e.replaceIRIWithPrefix(t);return r.length===t.length?t.split("/")[t.split("/").length-1]:r}e.toggleSidePanel=function(){e.pageslideExpanded=!e.pageslideExpanded},e.closeInfoPanel=function(){e.pageslideExpanded=!1,e.openedNodeInfoPanel=void 0,e.predicates=[],ie=null,l((function(){e.showInfoPanel=!1}))},e.clickLink=function(t){if(oe.tripleNodes.has(t.linkId)){Ae();const r=oe.tripleNodes.get(t.linkId)[t.nodeIndex];Ee(r),e.showPredicates=!0;const n=document.getElementById(t.linkId+t.nodeIndex);n&&(n.style.fontWeight="bold");const i={},a=oe.tripleLinksCopy.values();for(let e=0;e<oe.tripleLinksCopy.size;e++){const e=a.next().value;e.length>1&&e.every(t=>t.source.iri===r.iri?(i.iri=e[0].source.iri,t.target.isTriple&&(i.oppLinkIRI=G(t.target.iri),i.oppTriplePred=Ne(t.target.iri.split(" ")[1])),i.pred=Ne(r.iri.split(" ")[1]),1===t.predicates.length&&(i.linkPred=t.predicates[0]),!1):t.target.iri!==r.iri||(i.iri=e[0].target.iri,t.source.isTriple&&(i.oppLinkIRI=G(t.source.iri),i.oppTriplePred=Ne(t.source.iri.split(" ")[1])),i.pred=Ne(r.iri.split(" ")[1]),1===t.predicates.length&&(i.linkPred=t.predicates[0]),!1))}i.iri||(i.iri=r.iri,i.pred=Ne(r.iri.split(" ")[1])),_e(i)}},e.splitPredicate=function(e){return e.split("/")[e.split("/").length-1]},e.getActiveRepository=function(){return r.getActiveRepository()},e.isLoadingLocation=function(){return r.isLoadingLocation()},e.hasActiveLocation=function(){return r.hasActiveLocation()},e.rotate=function(e){ke();const t=10*(e?1:-1)*Math.PI/180,r=Math.cos(t),n=Math.sin(t),i=te/2,a=re/2;d3.selectAll(".node-wrapper").each((function(e){e.x=i+(r*(e.x-i)+n*(e.y-a)),e.y=a+(-n*(e.x-i)+r*(e.y-a)),e.fixed&&(e.fx=e.x,e.fy=e.y)})),fe.alpha(1).restart()},e.openUri=function(t,r){if(!r){const r={};e.configLoaded.id!==e.defaultGraphConfig.id&&(r.config=e.configLoaded.id),r.uri=t,L(r,{uri:t,config:e.configLoaded})}e.$broadcast("onRootNodeChange",t)},e.saveOrUpdateGraph=function(){const t=JSON.stringify(oe.copyState()),r={id:e.lastSavedGraphId,name:e.lastSavedGraphName,data:t,shared:e.shared};r.id?e.saveGraphModal("update",r):e.saveGraphModal("new",r)},e.renameSavedGraph=function(t){e.saveGraphModal("rename",{id:t.id,name:t.name,config:t.config,shared:t.shared})};const De=function(t){w.editSavedGraph(t).success((function(){e.lastSavedGraphName=t.name,e.shared=t.shared,e.refreshSavedGraphs(),c.success(R.instant("graphexplore.saved.graph.was.edited",{name:t.name}))})).error((function(e){const t=getError(e);c.error(t,R.instant("graphexplore.error.cannot.edit"))}))};e.saveGraphModal=function(t,r,n){y.open({templateUrl:"js/angular/graphexplore/templates/modal/save-graph.html",controller:"SaveGraphModalCtrl",resolve:{data:function(){return{mode:t,graph:r,graphExists:n,shared:r.shared}}}}).result.then((function(t){if(t.restart)e.saveGraphModal(t.mode,t.graph,!1);else switch(t.mode){case"new":!function(t){e.configLoaded&&(t.config=e.configLoaded.id),w.addNewSavedGraph(t).success((function(r,n,i){e.lastSavedGraphName=t.name,e.lastSavedGraphId=i()["x-saved-graph-id"],e.shared=t.shared,e.refreshSavedGraphs(),c.success(R.instant("graphexplore.saved.graph",{name:t.name}))})).error((function(r,n){if(422===n)e.saveGraphModal("new",t,!0);else{const e=getError(r);c.error(e,R.instant("graphexplore.error.cannot.create.graph"))}}))}(t.graph);break;case"update":case"rename":De(t.graph)}}))},e.refreshSavedGraphs=function(){w.getSavedGraphs().success((function(t){e.savedGraphs=t})).error((function(e){const t=getError(e);c.error(t,R.instant("graphexplore.error.getting.saved.graphs"))}))},e.loadSavedGraph=function(t,r){t.owner?(e.lastSavedGraphName=t.name,e.lastSavedGraphId=t.id,e.shared=t.shared,e.configLoaded=e.findConfigById(t.config)):(e.lastSavedGraphName=null,e.lastSavedGraphId=null,e.shared=t.shared),e.configLoaded||(e.configLoaded=e.defaultGraphConfig),f.url("?saved="+t.id),oe.restoreState(JSON.parse(t.data)),r||L({saved:t.id},{savedGraph:t})},e.copyToClipboardSavedGraph=function(t){const r=[location.protocol,"//",location.host,location.pathname,"?saved=",t.id].join("");e.copyToClipboard(r)},e.deleteSavedGraph=function(t){m.openSimpleModal({title:R.instant("common.confirm"),message:R.instant("graphexplore.confirm.delete.graph",{graphName:t.name}),warning:!0}).result.then((function(){!function(t){w.deleteSavedGraph(t).success((function(){e.refreshSavedGraphs(),c.success(R.instant("graphexplore.saved.graph.was.deleted",{name:t.name}))})).error((function(e){const t=getError(e);c.error(t,R.instant("graphexplore.error.cannot.delete"))}))}(t)}))},e.openIRI=function(t,r){return r.shiftKey?e.$broadcast("onRootNodeChange",t):window.open(t,"_blank"),!1},e.togglePinAllNodes=function(){ke();const t=angular.isUndefined(e.numberOfPinnedNodes)||e.numberOfPinnedNodes<=0;e.numberOfPinnedNodes=0,d3.selectAll(".node").each((function(r){r.fixed=t,t?(e.numberOfPinnedNodes++,r.fx=r.x,r.fy=r.y):(r.fx=null,r.fy=null)})),fe.alpha(1).restart()},$("body").on("keydown",(function(t){!k.isActive()&&"input"!==t.target.nodeName&&e.nodeSelected&&(37===t.keyCode?e.rotate(!0):39===t.keyCode&&e.rotate(!1))})),e.getLiteralFromPropValue=function(e){return e.substring(e.indexOf(":")+1)}}function c(e,t,r,n){switch(e.mode=r.mode,e.graph=_.cloneDeep(r.graph),e.graphExists=r.graphExists,e.mode){case"new":e.title=n.instant("graphexplore.create.new.graph"),e.okButtonText=n.instant("common.create.btn");break;case"update":e.title=n.instant("graphexplore.update"),e.okButtonText=n.instant("common.save.btn");break;case"rename":e.title=n.instant("graphexplore.rename"),e.okButtonText=n.instant("common.save.btn")}e.ok=function(){e.form.$valid&&t.close({graph:e.graph,mode:e.mode})},e.saveNew=function(){e.graph.name=e.graph.name+" (new)",t.close({graph:e.graph,mode:"new",restart:!0})},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.graphexplore.controllers.graphviz",["ui.scroll.jqlite","ui.scroll","toastr","ui.bootstrap","ngTagsInput","graphdb.framework.utils.localstorageadapter"]).controller("GraphsVisualizationsCtrl",s).controller("SaveGraphModalCtrl",c).config(["$uibTooltipProvider",function(e){e.options({appendToBody:!0})}]),s.$inject=["$scope","$rootScope","$repositories","$licenseService","toastr","$timeout","ClassInstanceDetailsService","AutocompleteRestService","$q","$location","$jwtAuth","UiScrollService","ModalService","$uibModal","$window","LocalStorageAdapter","LSKeys","SavedGraphsRestService","GraphConfigRestService","GraphDataRestService","RDF4JRepositoriesRestService","$translate","GuidesService"],c.$inject=["$scope","$uibModalInstance","data","$translate"]},161:function(e,t,r){"use strict";r.r(t);r(64),r(10);var n=r(63),i=r(62),a=r(14),o=r(68),s=r(80);function c(e,t,r,c,l,d,u,p,f,h,g,m,y,v,x,S){let w;e.newConfig=new o.GraphsConfig,e.revertConfig=void 0,e.page=1,e.totalPages=5,e.helpHidden=1===y.get(v.HIDE_GRAPH_CONFIG_HELP),e.isUpdate=!1,e.shared=!1,e.canEditActiveRepo=e.canWriteActiveRepo(),e.samples=[],e.tabConfig={inference:e.newConfig.startQueryIncludeInferred,sameAs:e.newConfig.startQuerySameAs},e.getAutocompletePromise=void 0,e.getNamespacesPromise=void 0,e.tabsViewModel=[{page:1,label:x.instant("starting.point.label"),type:"startGraphQuery"},{page:2,label:x.instant("graph.expansion"),type:"expandQuery"},{page:3,label:x.instant("node.basics"),type:"resourceQuery"},{page:4,label:x.instant("edge.basics"),type:"predicateLabelQuery"},{page:5,label:x.instant("node.extra"),type:"resourcePropertiesQuery"}];const C=h.configName,b=l.getActiveRepository();e.toggleHelp=t=>{void 0===t&&(t=y.get(v.HIDE_GRAPH_CONFIG_HELP)),1!==t?(y.set(v.HIDE_GRAPH_CONFIG_HELP,1),e.helpHidden=!0):(y.set(v.HIDE_GRAPH_CONFIG_HELP,0),e.helpHidden=!1)},e.fixedVisualCallback=(t,r)=>{e.newConfig.startIRI=t,e.newConfig.startIRILabel=r,w=!0},e.isDefaultGraph=e=>e.isDefaultGraph(),e.isUserGraph=e=>!e.isDefaultGraph(),e.getSampleName=(e,t)=>{if(!e)return"";const r=e.getPropertyDescription(t);return r||(e.id?"Copy of "+e.name:e.name)},e.createGraphConfig=e=>{p.createGraphConfig(e).success((async function(){await g.showToastMessageWithDelay("graphexplore.saved.new.config"),r.url("graphs-visualizations")})).error((function(e){c.error(getError(e),x.instant("graphexplore.error.could.not.create"))}))},e.updateGraphConfig=e=>{p.updateGraphConfig(e).success((async function(){await g.showToastMessageWithDelay("graphexplore.saved.config"),r.url("graphs-visualizations")})).error((function(e){c.error(getError(e),x.instant("graphexplore.error.could.not.save"))}))},e.goToPage=t=>{e.page!==t&&A(()=>{e.showEditor(),e.page=t})},e.goToPreviousPage=()=>{e.page>1&&e.goToPage(e.page-1),$()&&(w=!1)},e.goToNextPage=()=>{O(),e.newConfig.isStartMode(o.StartMode.NODE)&&!w||e.goToPage(e.page+1)},e.saveGraphConfig=()=>{O(),$()&&!w||(e.newConfig.startQueryIncludeInferred=e.tabConfig.inference,e.newConfig.startQuerySameAs=e.tabConfig.sameAs,A(()=>{e.newConfig.name?(e.queryEditorIsDirty=!1,e.isUpdate?e.updateGraphConfig(e.newConfig.toSavePayload()):e.createGraphConfig(e.newConfig.toSavePayload())):P(x.instant("graphexplore.provide.config.name"))}))},e.setQuery=async t=>{const r=t||" ";(await I()).setQuery(r),e.markDirty()},e.markDirty=async()=>{if(e.revertConfig){const t=e.revertConfig.getQueryType(e.page),r=await _();e.queryEditorIsDirty=t!==r}},e.showEditor=()=>{e.viewMode="yasr",L(),E()},e.showPreview=()=>{e.viewMode="editor",R()},e.revertEditor=()=>{e.setQuery(e.revertConfig.getQueryType(e.page)),e.queryEditorIsDirty=!1};const I=()=>a.YasguiComponentDirectiveUtil.getOntotextYasguiElementAsync("#query-editor"),R=async(t,r)=>{const n=await I(),i=await n.getQueryType();if(r&&"SELECT"!==i&&"CONSTRUCT"!==i&&"DESCRIBE"!==i)return void c.warning(x.instant("query.editor.warning.msg"));"update"!==await n.getQueryMode()?e.queryIsRunning||(e.viewMode="editor",k()):c.warning(x.instant("cannot.execute.update.error"))},k=async()=>{(await I()).query(i.RenderingMode.YASR)},E=async()=>(await I()).changeRenderMode(i.RenderingMode.YASQE),_=async()=>(await I()).getQuery(),L=async()=>(await I()).abortQuery(),A=async t=>{const r=await(async()=>{const t=await I();let r=await t.getQuery();return r=r.trim(),e.newConfig.updateModel(r,e.page)})();1===e.page?r.isStartMode(o.StartMode.NODE)&&!r.startIRI?P(x.instant("graphexplore.select.start.node")):r.isStartMode(o.StartMode.QUERY)&&!r.startGraphQuery?P(x.instant("graphexplore.provide.query")):r.isStartMode(o.StartMode.QUERY)?D(t,r.startGraphQuery,"graph"):t():2===e.page?D(t,r.expandQuery,"construct",["node"]):3===e.page?D(t,r.resourceQuery,"tuple",["node"],[],["type","label","comment","rank"]):4===e.page?D(t,r.predicateLabelQuery,"tuple",["edge"],["label"]):5===e.page&&D(t,r.resourcePropertiesQuery,"tuple",["node"],["property","value"])},T=()=>{e.tabConfig.inference=e.newConfig.startQueryIncludeInferred,e.tabConfig.sameAs=e.newConfig.startQuerySameAs,e.setQuery(e.newConfig.getQueryType(e.page))},P=e=>{c.warning(e)},N=()=>{e.getAutocompletePromise=f.checkAutocompleteStatus()},D=(e,t,r,n,i,a)=>{t?p.validateQuery(t,r,n,i,a).success(()=>{e()}).error(e=>{P(getError(e))}):e()},O=()=>{$()&&e.$broadcast("addStartFixedNodeAutomatically",{startIRI:e.newConfig.startIRI})},$=()=>1===e.page&&e.newConfig.isStartMode(o.StartMode.NODE),M=()=>{p.getGraphConfigSamples().success((function(t){e.samples=Object(s.mapGraphConfigSamplesToGraphConfigs)(t).filter(t=>!t.id||e.newConfig.id!==t.id||(e.revertConfig=t,!1))})).error((function(e){c.error(getError(e),x.instant("graphexplore.error.graph.configs"))})),N(),e.getNamespacesPromise=m.getNamespaces(e.getActiveRepository())},G={endpoint:()=>"/repositories/"+l.getActiveRepository(),showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showYasqeActionButtons:!1,yasqeActionButtons:a.INFERRED_AND_SAME_AS_BUTTONS_CONFIGURATION,showQueryButton:!1,initialQuery:" ",componentId:"graphs-config",render:i.RenderingMode.YASQE,maxPersistentResponseSize:0,showYasqeResizer:!1,yasqeMode:n.YasqeMode.PROTECTED,infer:e.newConfig.startQueryIncludeInferred,sameAs:e.newConfig.startQuerySameAs},j=(t,r,n)=>{e.queryIsRunning=t},Q=()=>{window.removeEventListener("beforeunload",U),H.forEach(e=>e())},U=t=>{e.queryEditorIsDirty&&(t.returnValue=!0)},H=[];H.push(e.$on("autocompleteStatus",N)),H.push(e.$on("$locationChangeStart",(t,n)=>{if(e.queryEditorIsDirty){t.preventDefault();((e,t,r,n)=>{S.openSimpleModal({title:e,message:t,warning:!0}).result.then((function(){angular.isFunction(r)&&r()}),(function(){angular.isFunction(n)&&n()}))})(x.instant("common.confirm"),x.instant("visual.config.warning.unsaved.changes"),()=>{Q();const e=r.absUrl().length-r.url().length,t=n.substring(e);r.path(t)})}else Q()})),H.push(e.$on("$destroy",Q)),H.push(e.$watch(e.getActiveRepositoryObject,()=>{(e.newConfig.isStartMode(o.StartMode.QUERY)||e.page>1)&&(e.viewMode="yasr",L().then(E))})),window.addEventListener("beforeunload",U),e.$watch("newConfig.startMode",e=>{e===o.StartMode.QUERY&&T()}),e.$watch("page",t=>{(e.newConfig.isStartMode(o.StartMode.QUERY)||t>1)&&(e.showEditor(),T())}),l.getPrefixes(b).then(t=>(t=>{const r=e.$watch((function(){return e.getActiveRepositoryObject()}),(function(i){if(i){e.canEditActiveRepo=e.canWriteActiveRepo();const i=angular.extend({},G,{prefixes:t,yasqeMode:e.canWriteActiveRepo()?n.YasqeMode.WRITE:n.YasqeMode.PROTECTED});e.yasguiConfig=i,r()}}))})(t)).finally(()=>j(!1)),C?(e.isUpdate=!0,p.getConfig(C).then((function(t){e.newConfig=t,M()})).catch(e=>{c.error(getError(e),x.instant("created.connector",{name:C}))})):(e.isUpdate=!1,M()),e.getActiveRepository()&&(j(!0,x.instant("common.refreshing.namespaces"),x.instant("common.extra.message")),l.getPrefixes(l.getActiveRepository()).then(t=>{e.namespaces=t}).catch((function(t){e.repositoryError=getError(t)})).finally((function(){j(!1)})))}angular.module("graphdb.framework.graphexplore.controllers.graphviz.config",["graphdb.framework.utils.notifications","graphdb.framework.utils.localstorageadapter"]).controller("GraphConfigCtrl",c),c.$inject=["$scope","$timeout","$location","toastr","$repositories","SparqlRestService","$filter","GraphConfigRestService","AutocompleteRestService","$routeParams","Notifications","RDF4JRepositoriesRestService","LocalStorageAdapter","LSKeys","$translate","ModalService"]},162:function(e,t,r){"use strict";r.r(t);var n=r(414),i=r(452),a=r(412),o=r(413);r(10);function s(e,t,r,s,c,l,d,u,p,f,h,g,m){return{restrict:"AE",template:'<div id="classChart"></div>',scope:{classHierarchyData:"=",flattenedClassNames:"=",selectedClass:"=",currentSliderValue:"=",showClassInfoPanel:"=",showExternalElements:"=",hidePrefixes:"=",currentBrowserLimit:"="},link:function(d,y,v){!function(d,y){var v,x,S=d3.pack().size([780,780]),w=d3.scaleLinear().domain([0,4]).range(["hsl(19, 70%, 90%)","hsl(19, 70%, 50%)"]).interpolate(d3.interpolateHcl),C=d3.select("#classChart").insert("svg:svg","h2").attr("viewBox","0 0 800 800").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null);function b(){return C.append("svg:g").attrs({id:"main-group",transform:"translate(400,400)"})}function I(){return"true"===h.get(g.CLASS_HIERARCHY_HIDE_PREFIXES)}function R(){var e=o.a.Export.getCSSRules("css/rdf-class-hierarchy-labels.css?v=2.7.0-TR5");d3.selectAll("#main-group").append("defs"),$("defs").append('<style type="text/css"><![CDATA['+e+"]]></style>"),d3.selectAll("g").style("opacity",1);var t=o.a.Export.generateBase64ImageSource("#classChart svg");d3.select(this).attrs({href:t,download:"class-hierarchy-"+l.getActiveRepository()+".svg"})}d.hidePrefixes=I();var k,E,L=b();if(!d.classHierarchyData.classCount&&l.getActiveRepository()&&!l.isSystemRepository()){e.loader=!0,e.hierarchyError=!1;const t=h.get("classHierarchy-selectedGraph-"+l.getActiveRepository());r.getClassHierarchyData(null!==t?t.contextID.uri:"").success((function(t,r,n){e.loader=!1,207===r&&u.warning(m.instant("graphexplore.update.diagram"),m.instant("graphexplore.repository.data.changed")),d.classHierarchyData=t,d3.select("#download-svg").on("mouseover",R)})).error((function(t){e.loader=!1,e.hierarchyError=getError(t),u.error(m.instant("graphexplore.error.request.failed",{name:f,error:getError(t)}))}))}var A,T,P,N,D,O,M,G={};function j(r,o,l,u){T&&T(),P&&P(),d3.selectAll("#main-group").remove(),L=b(),i.a.SingleChild.addPlaceholders(r,!0),(x=d3.hierarchy(r)).sum((function(e){return e.size})),A=l||x,S(x);var h,g=x.descendants();A.isInFocusTransitive=!0,i.a.SingleChild.removePlaceholders(g),i.a.SingleChild.centerNodes(g),i.a.SingleChild.makePositionsRelativeToZero(g),v||(v=Object(n.a)().attr("class","d3-tip").customPosition((function(e,t){return{top:"inherit",bottom:s.innerHeight-t.clientY+"px",right:s.innerWidth-t.clientX+"px"}})).html((function(e){return e.data.name})),C.call(v));var m=L.selectAll("circle").data(g).enter().append("g");o.doFade&&m.each((function(e){a.a.Transition.fadeIn(d3.select(this),550)}));var y,I=[],R=m.append("circle").attr("class",(function(e){return e.data.role})).attr("guide-selector",(function(e){return"class-"+e.data.name})).style("fill",(function(e){return e.children?w(e.depth):"#E0D0D0"})).each((function(e){if(e.circle=d3.select(this),e.data.name!==f){var t=e.data.name;I.push({name:t}),G[[t]]=e,e.circle.classed("rdf-class",!0),e.circle.on("mouseover",(function(t){o.noPrefixes||e.textHidden?v.show(e,t):v.hide(e)})),e.circle.on("mouseout",v.hide)}})).on("gdb-focus",(e,t)=>E(t)).on("gdb-zoom",(e,t)=>z(t));function N(e){d3.selectAll(".selected").classed("selected",e.selected=!1),e.circle.classed("selected",e.selected=!0),y=e}function D(){d.showClassInfoPanel=!1}I&&(I=_.uniqBy(I,"name"),d.flattenedClassNames=I);var O=a.a.Click.delayDblClick();d3.selectAll(".parent, .topLevelParent, .child, .root").call(O),E=function(e){z(e),e.data.name===f?(D(),d3.selectAll(".selected").classed("selected",!1)):(N(e),d.selectedClass=y,d.showClassInfoPanel=!0,d.$on("sidePanelClosed",(function(t){d3.selectAll(".selected").classed("selected",e.selected=!1)})))},O.on("click",(function(e,t){t.data.id&&s.history.pushState({id:t.data.id},"classHierarchyPage"+t.data.id,"hierarchy#"+t.data.id),v.hide(),E(t)})),O.on("dblclick",(function(t,n){n!==r&&(v.hide(),N(n),e.$broadcast("goToDomainRangeGraphView",y,A),t.stopPropagation())}));var $=0;C.on("wheel",(function(e){v.hide(),e.preventDefault(),e.stopPropagation();var t=(new Date).getTime();if(t-$>100){$=t;var r="";e.deltaY<=-1?r="in":e.deltaY>=1&&(r="out");var n=e.target.__data__;if(n||(n=A),"in"===r){if(n!==A){for(;n.parent&&!n.parent.isInFocusTransitive;)n=n.parent;n.depth<A.depth&&(n=A)}if(n===A&&n.children){for(var i=n.children[0],a=1;a<n.children.length;a++)n.children[a].sortingRank>i.sortingRank&&(i=n.children[a]);i.children&&(n=i)}else n.children||(n=n.parent);z(n,!0)}else"out"===r&&(n=A.parent)&&z(n,!0);A.data.name===f&&s.history.replaceState({id:1},"classHierarchyPage1","hierarchy#1"),Q()}}));var M=L.selectAll("text").data(g).enter().append("text").attr("class",(function(e){return e.children&&e.children.length?"label":"label child-label"})).each((function(e){e.textSel=d3.select(this)}));o.noPrefixes?(M.each((function(e){var t=e.data.name.indexOf(":");e.data.name.indexOf("http://")>-1?e.noPrefixName=e.data.name:t>-1&&(e.noPrefixName=e.data.name.substring(t+1))})),M.style("font-size",(function(e){return a.a.Text.calcFontSize(e.noPrefixName,e.r)})).text((function(e){return a.a.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r/3)}))):M.style("font-size",(function(e){return a.a.Text.calcFontSize(e.data.name,e.r)})).text((function(e){return a.a.Text.getTextWithElipsisIfNeeded(e.data.name,e.r/3)})),M.style("display",(function(e){return e.parent&&e.parent.data===A.data?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,null):(e.textHidden=!0,"none")})),o.doFade&&!o.keepPrevState&&M.each((function(e){a.a.Transition.fadeIn(d3.select(this),550)})),k=function(){function e(e){e&&R.each((function(t){+e===t.data.id&&E(t)}))}var r=t.hash();s.onpopstate=function(t){t.state&&e(t.state.id)},e(r)};var j=L.selectAll("circle, text");function U(e,t){var r=800/e[2];h=e,j.attr("transform",(function(t){return"translate("+(t.x-e[0])*r+","+(t.y-e[1])*r+")"})),R.attr("r",(function(e){return e.r*r})),t&&M.each((function(e){e.data.fullName!==A.data.topLevelParentUri&&A.data.topLevelParentUri!==f||(e.textSel.style("display","none"),A.children&&A.children.length?_.each(A.children,(function(e){e.textSel.style("display","inline")})):A.textSel.style("display","inline"),A.parent&&_.each(A.parent.children,(function(e){e.data.name!==A.data.name&&e.textSel.style("display","inline")})))})),M.style("font-size",(function(e){return o.noPrefixes?a.a.Text.calcFontSize(e.noPrefixName,e.r*r):a.a.Text.calcFontSize(e.data.name,e.r*r)})).text((function(e){return o.noPrefixes?a.a.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r*r/3):a.a.Text.getTextWithElipsisIfNeeded(e.data.name,e.r*r/3)}))}function H(e){var t=2*e+20;return 2*e/t<.3&&(t=2*e+2),t}function F(e){!e.isInFocusTransitive&&e.parent&&e.parent.isInFocusTransitive?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,this.style.display=""):(e.textHidden=!0,this.style.display="none")}function z(e,t){if(c((function(){d.showExternalElements=e.data.name===f})),A!==e&&(e.data.id&&s.history.replaceState({id:e.data.id},"classHierarchyPage"+e.data.id,"hierarchy#"+e.data.id),e.children||(e=e.parent,A!==e))){if(t&&(D(),d3.selectAll(".selected").classed("selected",!1)),A.parent)for(var r=A;r;)r.isInFocusTransitive=!1,r=r.parent;for(r=e;r;)r.isInFocusTransitive=!!r.children,r=r.parent;if(2*(A=e).r/(2*A.r+20)<.3||d.currentSliderValue>d.currentBrowserLimit)U([A.x,A.y,H(A.r)]),M.each((function(e){F.call(this,e)}));else d3.transition().duration(p).tween("zoom",(function(e){var t=d3.interpolateZoom(h,[A.x,A.y,H(A.r)]);return function(e){U(t(e))}})).selectAll("text").each(F)}}U([A.x,A.y,H(A.r)],u),T=d.$on("rootFocus",(function(){s.history.pushState({id:1},"classHierarchyPage1","hierarchy#1"),E(x)})),P=d.$on("classSearch",(function(e){E(e)}))}function Q(){const t=d.classHierarchyData.classCount;let r=h.get(g.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);(!r||r>t)&&(r=t,h.set(g.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,r)),e.$broadcast("classCount",t,r)}window.addEventListener("resize",Q),window.addEventListener("beforeunload",(function e(){window.removeEventListener("resize",Q),window.removeEventListener("beforeunload",e)})),d.$watch("classHierarchyData",(function(){N&&N(),D&&D(),O&&O(),M&&M();var e=I();if(d.classHierarchyData.classCount){Q();var t=_.cloneDeep(d.classHierarchyData);var r,n,i=function(e){return e.descendants().sort((function(e,t){return e.data.sortingRank>t.data.sortingRank?-1:e.data.sortingRank<t.data.sortingRank||e.data.depth>t.data.depth?1:e.data.depth<t.data.depth?-1:0}))}(d3.hierarchy(t));function a(e,t){const i={keepPrevState:!0,noPrefixes:I()};n=i.noPrefixes,j(r||e,i,A,!0),c((function(){h.set(g.CLASS_HIERARCHY_SWITCH_PREFIXES,t),k()}),70)}function o(e,i,o){if(!e)return;h.set(g.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,e),r={name:f,children:[]};const s=new Set;for(let t=1;t<=e;t++)s.add(i[t].data.id),i[t].parent===i[0]&&r.children.push(i[t].data);if(function e(t){if(!t.children)return;const r=[];for(const e of t.children)s.has(e.id)&&r.push($.extend({},e));t.children=r;for(const r of t.children)e(r)}(r),o){n=angular.isUndefined(n)?I():n;j(r,{noPrefixes:n})}else a(t)}var s,l=h.get(g.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);if(l)o(l,i);else{var u={doFade:!0,keepPrevState:!0,noPrefixes:I()};j(t,u),k()}N=d.$watch("hidePrefixes",(function(r){angular.isUndefined(r)||e?e=void 0:c((function(){!function(e){angular.isUndefined(e)||h.set(g.CLASS_HIERARCHY_HIDE_PREFIXES,e)}(r),a(t,!0)}),50)}),!0),D=d.$watch("currentSliderValue",(function(e){o(e,i,!0)}),!0),M=d.$on("onEnterKeypressSearchAction",(function(e){s&&E(s)})),O=d.$on("searchedClass",(function(e,t){(s=G[t.name])&&E(s)}))}}),!0)}(d)}}}angular.module("graphdb.framework.graphexplore.directives.class",["graphdb.framework.graphexplore.controllers.class","graphdb.framework.utils.localstorageadapter"]).constant("ZOOM_DURATION",500).constant("ROOT_OBJ_NAME","RDF Class Hierarchy").directive("rdfClassHierarchy",s),s.$inject=["$rootScope","$location","GraphDataRestService","$window","$timeout","$repositories","$licenseService","toastr","ZOOM_DURATION","ROOT_OBJ_NAME","LocalStorageAdapter","LSKeys","$translate"]},163:function(e,t,r){"use strict";r.r(t);var n=r(413),i=r(412);r(10);function a(e,t,r,a,o,s,c,l,d,u,p,f,h){return{restrict:"AE",template:'<div id="domain-range"></div>',scope:{showPredicatesInfoPanel:"=",selectedPredicate:"=",collapseEdges:"="},link:function(u){const p=l((function(){!function(u){var p=d3.select("#domain-range").append("svg").attr("viewBox","0 0 1200 600").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null),g=d3.forceSimulation(),m=d3.drag().subject((function(e){return e})).on("start",(function(e,t){g.stop(),t.fx=e.x,t.fy=e.y,d3.select(this).classed("selected",!0)})).on("end",(function(e,t){t.fx=null,t.fy=null,d3.select(this).classed("selected",!1),w?(g.alpha(.2).restart(),w=!1):g.restart()})).on("drag",(function(e,t){w=!0,g.alphaTarget(0).restart(),t.fx=e.x,t.fy=e.y})),y=p.append("defs");y.append("marker").attrs({id:"arrow",viewBox:"0 -5 10 10",refX:10,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),y.append("marker").attrs({id:"collapsed-arrow",viewBox:"0 -5 10 10",refX:9,refY:0,markerUnits:"strokeWidth",markerWidth:4,markerHeight:4,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),y.append("marker").attrs({id:"arrow-loop",viewBox:"0 -5 10 10",refX:7,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),d3.select("#download-svg").on("mouseover",(function(){var e=n.a.Export.getCSSRules("css/domain-range-graph.css?v=2.7.0-TR5");$("defs").append('<style type="text/css"><![CDATA['+e+"]]></style>");var t=n.a.Export.generateBase64ImageSource("#domain-range svg");d3.select(this).attrs({href:t,download:"domain-range-graph-"+r.getActiveRepository()+".svg"})})),function(){var e=d3.select(".legend-container").append("svg").attr("viewBox","0 0 "+1200/7+" "+1200/7*1.2).attr("preserveAspectRatio","xMidYMid meet");e.append("rect").attrs({width:1200/7,height:1200/7*1.2}).style("fill","rgba(235, 235, 235, 0.9)");var t=16+1200/18/2.5,r=t+1200/90;e.append("circle").attrs({class:"legend-class-node",cx:(16+t)/2,cy:30,r:1200/18/4.5}),e.append("text").attrs({x:r,y:30+1200/370}).style("font-size",1200/90/1.1+"px").text("main class node"),e.append("circle").attrs({class:"legend-object-node",cx:(16+t)/2,cy:70,r:1200/110/1.25}),e.append("text").attrs({x:r,y:30+1200/370+40}).style("font-size",1200/90/1.1+"px").text("class node"),e.append("circle").attrs({class:"legend-datatype-node",cx:(16+t)/2,cy:70+1200/45,r:1200/110/2}),e.append("text").attrs({x:r,y:99.90990990990991}).style("font-size",1200/90/1.1+"px").text("datatype node"),e.append("line").attrs({class:"property-arrow",x1:16,y1:123.33333333333334,x2:t,y2:123.33333333333334}).style("stroke-width",1.2).attr("marker-end","url("+o.absUrl()+"#arrow)"),e.append("text").attrs({x:r,y:126.57657657657658}).style("font-size",1200/90/1.1+"px").text("explicit property"),e.append("line").attrs({class:"implicit-property-arrow",x1:16,y1:150,x2:t,y2:150}).style("stroke-width",1.2).attr("marker-end","url("+o.absUrl()+"#arrow)"),e.append("text").attrs({x:r,y:150+1200/370}).style("font-size",1200/90/1.1+"px").text("implicit property"),e.append("line").attrs({class:"collapsed-property-arrow",x1:16,y1:150+1200/45,x2:t,y2:150+1200/45}).style("stroke-width",2).attr("marker-end","url("+o.absUrl()+"#collapsed-arrow)"),e.append("text").attrs({x:r,y:179.9099099099099}).style("font-size",1200/90/1.1+"px").text("collapsed property")}();var v=o.search().uri,x=o.search().name;const S=o.search().collapsed;(function(e,t){a.getDomainRangeData(e,t).success((function(e,t,r){u.domainRangeGraphData=e})).error((function(e){d.error("Request for "+x+" failed!")}))})(v,S),$(window).on("popstate",(function(){s.set(c.DOMAIN_RANGE_WENT_BACK,!0)})),t.onpopstate=function(t){t.state&&e.$broadcast("changeCollapsedEdgesState",t.state.collapsed)},u.$watch("collapseEdges",(function(){angular.isUndefined(u.collapseEdges)||(s.set(c.DOMAIN_RANGE_COLLAPSE_EDGES,u.collapseEdges),"true"!==s.get(c.DOMAIN_RANGE_WENT_BACK)&&function(t){e.$broadcast("switchEdgeMode",{uri:v,name:x,collapsed:t})}(u.collapseEdges),s.remove(c.DOMAIN_RANGE_WENT_BACK))})),u.$watch("domainRangeGraphData",(function(){if(u.domainRangeGraphData){var r=_.cloneDeep(u.domainRangeGraphData);const N=r.nodes,D=r.links;g.nodes(N).force("x",d3.forceX(600)).force("y",d3.forceY(300)).force("charge",d3.forceManyBody().strength(-800)).force("link",d3.forceLink(D).distance(1200/3.5));var n=p.selectAll(".link").data(D).enter().append("g");function a(e){e.style("stroke",f),e.style("stroke-width",2),e.attr("marker-end","url("+o.absUrl()+"#collapsed-arrow)")}var s,c,d=0;n.each((function(e){if(e.objectPropNodeClassUri!==v)s=n.append("line").attrs({class:"link","marker-end":"url("+o.absUrl()+"#arrow)"}).style("stroke-width",1.2).each((function(e){switch(e.propertyType){case"objectLeft":e.targetRadius=1200/18;break;case"objectRight":e.targetRadius=1200/110;break;case"datatype":e.targetRadius=1200/110/2;break;default:e.targetRadius=0}var t=d3.select(this);e.targetNodeEdgeCount>1?a(t):e.implicit&&t.style("stroke-dasharray","3, 3")}));else{if(angular.isUndefined(c)){c=d3.select(this).append("path").attrs({d:"M 0 0 A "+1200/18/2+" "+1200/18/2+" 0 1 1 0 "+1200/18/2,class:"loop-link",fill:"none","marker-end":"url("+o.absUrl()+"#arrow-loop)"}).style("stroke-width",1.2)}(d+=e.targetNodeEdgeCount)>1&&a(d3.select(".loop-link"))}}));var y={};function S(){$.isEmptyObject(y)||(y.text.style("fill","black"),y.background.style("fill","#f0f0f0"))}function w(e,t){S(),y.text=d3.select(this),y.background=d3.select(this.previousSibling),y.text.style("fill","white"),y.background.style("fill",f),l((function(){u.showPredicatesInfoPanel=!0,u.selectedPredicate=t})),e.stopPropagation()}$("document").ready((function(){$("#domain-range").bind("click",S)}));var C=n.append("text").attr("class",(function(e){return e.objectPropNodeClassUri===v?"loop-link-property-name":"property-name"})).attr("dx",(function(e){return 1200/18/2*("objectLeft"===e.propertyType?1:-1)})).style("text-anchor",(function(e){return"objectLeft"===e.propertyType?"end":"start"})).style("font-size",1200/90).text((function(e){return e.targetNodeEdgeCount>1?e.targetNodeEdgeCount+" predicates":e.name}));C.each((function(e){var r=d3.select(this);/\d\spredicates/.test(r.text())?r.style("font-weight","bold").on("click",w):r.on("click",(function(e,r){t.open("resource?uri="+encodeURIComponent(r.uri),"_blank")}))}));var b=n.append("rect").attr("class",(function(e){return e.objectPropNodeClassUri!==v?"link-background":"loop-link-background"})).attr("width",(function(e){return e.calculatedWidth=this.previousSibling.getBBox().width,e.calculatedWidth+4})).attr("height",(function(e){return e.calculatedHeight=this.previousSibling.getBBox().height,e.calculatedHeight+2})).attr("transform",(function(e){var t=2-1200/18/2*("objectLeft"===e.propertyType?1:-1);return"objectLeft"===e.propertyType&&(t+=e.calculatedWidth),"translate(-"+t+",-"+(2+e.calculatedHeight/2)+")"})).on("click",(function(e){e.stopPropagation()})),I=p.selectAll(".node").data(N).enter().append("g"),R=I.filter((function(e){return e.objectPropClassUri!==v})).append("circle").each((function(e){var t=d3.select(this);"main"===e.classPosition?t.attrs({class:"class-node",r:1200/18}).attr("marker-end","url("+o.absUrl()+"#loop-link)"):null===e.objectPropClassName?t.attrs({class:"datatype-node",r:1200/110/2}):t.attrs({class:"object-prop-node",r:1200/110})})).call(m);d3.selectAll(".object-prop-node").on("dblclick",(function(t,r,n){u.$apply((function(){e.$broadcast("reloadDomainRangeGraphView",r,n)}))})),I.filter((function(e){return e.objectPropClassName&&e.objectPropClassUri!==v})).append("text").attr("class",(function(e){return e.classPosition+"-class-label"})).style("font-size",1200/90).text((function(e){return e.objectPropClassName})).on("click",(function(e,r){t.open("resource?uri="+encodeURIComponent(r.objectPropClassUri),"_blank")}));var k=I.select("text");p.select(".class-node").each((function(){d3.select(this.parentNode).append("text").attr("class","rdf-class-label").style("font-size",(function(e){return i.a.Text.calcFontSize(x,1200/18)})).text(x).on("click",(function(){t.open("resource?uri="+encodeURIComponent(v),"_blank")}))}));var E=p.select(".class-node + text"),L=d3.select(".class-node"),A=d3.selectAll(".loop-link-background"),T=d3.selectAll(".loop-link-property-name");if(C=d3.selectAll(".property-name"),!angular.isUndefined(c)){var P=[];A.each((function(e,t){d3.select(this);P.push({idx:t,width:e.calculatedWidth,height:e.calculatedHeight})}))}g.on("tick",(function(e){var t=8*g.alpha();function r(e){var t=e.x+1200/18*2,r=e.y-1200/18/1.9;var n=[];A.each((function(i,a){n.push(i),a<h?function(n,i){var a=$.grep(P,(function(e){return e.idx==i}));i>0&&(t+=parseFloat(i*(a[0].height/(i/1.4)))),n.attrs({transform:"rotate(270, "+e.x+","+e.y+") translate("+t+","+r+")",width:a[0].height,height:a[0].width})}(d3.select(this),a):d3.select(this).remove()})),function(e){var t;d3.select(".view-more-preds-label").style("font-weight","bold").each((function(r){r.target.allEdges=e,t=this.getComputedTextLength()})).on("click",w),d3.select(".view-more-preds-rect").attr("height",t+4)}(n)}s.filter((function(e){return e.objectPropNodeClassUri!==v})).attr("x1",(function(e){return e.source.x})).attr("y1",(function(e){return e.source.y})).attr("x2",(function(e){return e.targetX})).attr("y2",(function(e){return e.targetY})).each((function(e){!function(e){"objectLeft"===e.propertyType?(e.source.x-=8*t,e.source.y-=t/9):(e.target.x+=8*t,e.target.y-=t/9)}(e);var r=Math.atan2(e.target.y-e.source.y,e.target.x-e.source.x);e.targetX=e.target.x-Math.cos(r)*e.targetRadius,e.targetY=e.target.y-Math.sin(r)*e.targetRadius})),R.each((function(e){"main"!==e.classPosition||angular.isUndefined(c)||(!function(e){var t=e.x+64,r=e.y-1200/18/5.7-5;c.attr("transform","rotate(270, "+e.x+","+e.y+") translate("+t+","+r+")")}(e),function(e){function t(t,r){var n=$.grep(P,(function(e){return e.idx==r})),i=0;r>0&&(i=parseFloat(2*r*(n[0].height/1.4)));var a=e.x,o=e.y-1200/18*2.1-i;t.attrs({x:a,y:o}).moveToFront()}T.each((function(e,r){var n=d3.select(this),i=T.size()-h;i<0?t(n,r):(0==r&&!u.collapseEdges&&i>1&&(!function(e,t,r){e.classed("view-more-preds-label",!0).text(r+" predicates more ..."),null!==this.nextSibling&&t.classed("view-more-preds-rect",!0)}(n,d3.select(this.nextSibling),i),t(n,r)),r<h?t(n,r):n.remove())}))}(e),r(e)),e.objectPropClassUri!==v&&d3.select(this).attr("cx",(function(e){return"main"===e.classPosition?function(e){!window.ActiveXObject&&"ActiveXObject"in window&&(Math.log10=function(e){return Math.log(e)/Math.LN10});var t=L.attr("cx")-600,r=.5*Math.log10(Math.abs(t));return e.x+=t>0?-r:r,e.x}(e):e.x})).attr("cy",(function(e){return e.y}))})),E.attr("x",(function(e){return e.x})).attr("y",(function(e){return e.y})).moveToFront(),b.filter((function(e){return e.objectPropNodeClassUri!==v})).attr("x",(function(e){return e.target.x>e.source.x?e.source.x+(e.target.x-e.source.x)/2:e.target.x+(e.source.x-e.target.x)/2})).attr("y",(function(e){return e.target.y>e.source.y?e.source.y+(e.target.y-e.source.y)/2:e.target.y+(e.source.y-e.target.y)/2})).moveToFront(),C.attr("x",(function(e){return e.target.x>e.source.x?e.source.x+(e.target.x-e.source.x)/2:e.target.x+(e.source.x-e.target.x)/2})).attr("y",(function(e){return e.target.y>e.source.y?e.source.y+(e.target.y-e.source.y)/2:e.target.y+(e.source.y-e.target.y)/2})).moveToFront(),k.attr("x",(function(e){return"right"===e.classPosition?e.x+1200/110*1.2:e.x-1200/110*1.2})).attr("y",(function(e){return e.y})).moveToFront()}))}}));let w=!1}(u)}),50);u.$on("$destroy",(function(){l.cancel(p)}))}}}angular.module("graphdb.framework.graphexplore.directives.domainrange",["graphdb.framework.graphexplore.controllers.domainrange","graphdb.framework.utils.localstorageadapter"]).constant("ONTO_RED","var(--primary-color)").constant("ONTO_GREEN","var(--tertiary-color)").constant("ONTO_BLUE","var(--secondary-color)").constant("NON_COLLAPSED_REFLEXIVE_LINK_LIMIT",6).directive("domainRangeGraph",a),a.$inject=["$rootScope","$window","$repositories","GraphDataRestService","$location","LocalStorageAdapter","LSKeys","$timeout","toastr","ONTO_RED","ONTO_GREEN","ONTO_BLUE","NON_COLLAPSED_REFLEXIVE_LINK_LIMIT"]},164:function(e,t){function r(e,t){return{restrict:"A",scope:{},templateUrl:"js/angular/graphexplore/templates/systemRepoWarningTemplate.html",link:function(r){r.isSystemRepository=function(){return"SYSTEM"===e.getActiveRepository()},r.hasPermission=function(){return t.hasPermission()}}}}angular.module("graphdb.framework.graphexplore.directives.sysrepo",["graphdb.framework.graphexplore.controllers.class"]).directive("systemRepoWarning",r),r.$inject=["$repositories","$rootScope"]},165:function(e,t){function r(e){return{restrict:"AE",scope:{rdfsLabel:"=",rdfsComment:"=",expanded:"=",alwaysExpanded:"="},templateUrl:"js/angular/graphexplore/templates/rdfsCommentLabelTemplate.html",link:function(t,r){t.stringLimit=e,t.scrollToTop=function(){r[0].getElementsByClassName("rdfs-comment")[0].scrollTop=0},t.checkCommentLength=function(){return r[0].getElementsByClassName("rdfs-comment-text")[0].innerText.length<e},t.equalHeights=function(){const e=r[0].getElementsByClassName("rdfs-comment-text")[0].innerHeight;e<250&&t.expanded&&(r[0].getElementsByClassName("rdfs-comment")[0].innerHeight=e)},t.toggleFullComment=function(){t.expanded=!t.expanded},t.$watch("expanded || alwaysExpanded",(function(r){t.stringLimit=r?t.rdfsComment.length:e}))}}}angular.module("graphdb.framework.graphexplore.directives.rdfsdetails",[]).directive("rdfsCommentLabel",r).constant("SHORT_COMMENT_LENGTH",100),r.$inject=["SHORT_COMMENT_LENGTH"]},166:function(e,t,r){"use strict";r.r(t);var n=r(413);r(91);function i(e,t){return{restrict:"A",template:'<div id="dependencies-chord"></div>',scope:{dependenciesData:"="},link:function(r){r.$watch("dependenciesData",(function(){if(r.dependenciesData){const i=r.dependenciesData;!function(i,a){if(function(){let e=!0;for(const t of i){if(t.some(e=>0!==e)){e=!1;break}}return e}())return;const o=d3.scaleOrdinal(d3.schemeCategory10),s=d3.select("body").append("div").attr("class","tooltip").style("opacity",0);d3.select("body").on("click",(function(){s.style("opacity",0)}));const c=Math.min(800,800)/2.8,l=c-24,d=d3.arc().innerRadius(l).outerRadius(c),u=d3.chord().padAngle(.04).sortSubgroups(d3.descending).sortChords(d3.ascending),p=d3.ribbon().radius(l),f=d3.select("#dependencies-chord").append("svg").attr("viewBox","0 0 800 800").attr("preserveAspectRatio","xMidYMid meet").style("font","10px sans-serif").append("g").attr("id","circle").attr("transform","translate(400,400)");f.append("circle").attr("r",c).style("fill","none");const h=u(i),g=f.selectAll(".group").data(h.groups).enter().append("g").attr("class","group").on("mouseover",(function(){const e=g.nodes().indexOf(this);m.classed("fade",(function(t){return t.source.index!==e&&t.target.index!==e}))}));g.append("title").text((function(e,t){return a[t]})),g.append("path").attr("id",(function(e,t){return"group"+t})).attr("d",d).style("fill",(function(e,t){return o(t)})),g.append("text").each((function(e){e.angle=(e.startAngle+e.endAngle)/2})).attr("dy",".35em").attr("transform",(function(e){return"rotate("+(180*e.angle/Math.PI-90)+")translate("+(l+26)+")"+(e.angle>Math.PI?"rotate(180)":"")})).style("text-anchor",(function(e){return e.angle>Math.PI?"end":null})).text((function(e){return a[e.index]}));const m=f.selectAll(".chord").data(h).enter().append("path").attr("class","chord").style("fill",(function(e){return o(e.target.index)})).style("fill-opacity",".67").style("stroke","#000").style("stroke-width",".25px").style("cursor","pointer").attr("d",p);m.on("mouseover",(function(){d3.select(this).style("fill-opacity","1")})),m.on("mouseout",(function(){d3.select(this).style("fill-opacity",".67")})),m.on("click",(function(e,n){const i=a[n.source.index],o=a[n.target.index],c=e.pageX,l=e.pageY;t.getPredicates(i,o,r.selectedGraph&&r.selectedGraph.contextID.uri).success((function(e){let t="<div class='dependencies-tooltip'>"+("<div class='row'>"+i+" <i class='fa fa-exchange'></i> "+o+"</div>")+_.map(e.slice(0,10),(function(e){const t=" <i class='fa fa-long-arrow-"+("out"===e.direction?"right":"left")+"'></i>";return"<div class='row'>"+e.predicate+" : "+e.weight+t+" </div>"})).join("");e.length>10?t=t+"<div class='pull-right'>And "+(e.length-10).toString()+" more...</div></div>":t+="</div>",s.html(t).style("left",c+"px").style("top",l+"px")})),s.transition().duration(200).style("opacity",1)})),d3.select("#circle").on("mouseleave",(function(){f.selectAll(".chord").classed("fade",!1)})),d3.select("#download-svg").on("mouseover",(function(){const t=n.a.Export.generateBase64ImageSource(".dependencies-chord svg");d3.select(this).attrs({href:t,download:"dependencies-"+e.getActiveRepository()+".svg"})}))}(i.matrix,i.nodes,i.direction)}}))}}}angular.module("graphdb.framework.graphexplore.directives.dependencies",["graphdb.framework.graphexplore.controllers.dependencies","graphdb.framework.rest.graphexplore.data.service"]).directive("dependenciesChord",i),i.$inject=["$repositories","GraphDataRestService"]},167:function(e,t){function r(){return{restrict:"AE",scope:{filterQueryObj:"=",filterFunction:"&",listItemsObj:"=",listItemsNotFiltered:"=",searchPlaceholder:"@"},templateUrl:"js/angular/graphexplore/templates/listItemsSearchFilterTemplate.html",link:function(e){e.filterFunction=e.filterFunction(),e.$watch("filterQueryObj.query",(function(){var t,r,n,i;e.listItemsObj.items=(t=e.filterQueryObj.query,r=e.listItemsObj.items,n=e.listItemsNotFiltered,i=e.filterFunction,t.length>0?_.filter(n,i):r.length!==n.length?n:r)}))}}}angular.module("graphdb.framework.graphexplore.directives.searchfilter",[]).directive("listItemsSearchFilter",r),r.$inject=[]},168:function(e,t){function r(e,t){return{restrict:"AE",scope:{searchData:"=",searchFields:"@",titleField:"@",searchPlaceholder:"@",initialValue:"=",searchedObjCallback:"&"},templateUrl:"js/angular/graphexplore/templates/searchIconInputTemplate.html",link:function(r,n){r.searchedObjCallback=r.searchedObjCallback(),r.performSearchActionOnEnter=function(){e.$broadcast("onEnterKeypressSearchAction")},r.showInput=function(){$("#selectGraphDropdown").hide(),n.find("#search_input #search_input_value")[0].value="",n.find(".search-icon").addClass("animated bounceOut").css("z-index","-1"),n.find("#search_input .angucomplete-holder").css("display","block"),t((function(){n.find("#search_input .angucomplete-holder").css("width","250px").css("left","-215px"),t((function(){n.find(".close-icon").css("display","block").addClass("animated bounceIn").css("z-index","3"),n.find("#search_input #search_input_value").focus()}),200)}),1)},r.hideInput=function(){n.find("#search_input #search_input_value")[0].value="",n.find("#search_input .angucomplete-holder").css("width","0px").css("left","35px"),t((function(){n.find("#search_input .angucomplete-holder").css("display","none"),$("#selectGraphDropdown").show()}),250),n.find(".close-icon").addClass("animated bounceOut").removeClass("bounceOut").css("z-index","-1").css("display","none").click((function(){$(".tooltip").hide()})),t((function(){n.find(".search-icon").css("display","inline-block").removeClass("bounceOut").addClass("bounceIn").css("z-index","3")}),200)}}}}angular.module("graphdb.framework.graphexplore.directives.searchcontrols",[]).directive("searchIconInput",r),r.$inject=["$rootScope","$timeout"]},229:function(e,t,r){"use strict";r.r(t);r(7),r(30),r(24),r(25),r(657),r(658),r(402),r(414),r(203),r(212),r(659),r(436),r(412),r(452),r(413),r(91),r(153),r(154),r(155),r(156),r(157),r(158),r(159),r(160),r(161),r(162),r(163),r(164),r(165),r(166),r(167),r(168),r(82);angular.module("graphdb.framework.graphexplore",["graphdb.framework.core.controllers","graphdb.framework.core.directives","graphdb.framework.rest.graphexplore.data.service","graphdb.framework.graphexplore.services.uiscroll","graphdb.framework.graphexplore.services.rdfsdetails","graphdb.framework.rest.graphexplore.savedgraphs.service","graphdb.framework.rest.graphconfig.service","graphdb.framework.graphexplore.controllers.class","graphdb.framework.graphexplore.controllers.domainrange","graphdb.framework.graphexplore.controllers.dependencies","graphdb.framework.graphexplore.controllers.graphviz","graphdb.framework.graphexplore.controllers.graphviz.config","graphdb.framework.graphexplore.directives.sysrepo","graphdb.framework.graphexplore.directives.rdfsdetails","graphdb.framework.graphexplore.directives.searchfilter","graphdb.framework.graphexplore.directives.class","graphdb.framework.graphexplore.directives.domainrange","graphdb.framework.graphexplore.directives.dependencies","graphdb.framework.graphexplore.directives.searchcontrols","graphdb.framework.core.directives.yasgui-component"])},402:function(e,t,r){var n,i;n=[r(410)],void 0===(i=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),r=select(this);for(var n in e)r.attr(n,e[n])}))}function t(e,t){for(var r in t)e.attr(r,t[r]);return e}return"undefined"==typeof d3&&(d3=r(410)),d3.selection.prototype.attrs=function(r){return("function"==typeof r?e:t)(this,r)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){const e=this.parentNode.firstChild;e&&this.parentNode.insertBefore(this,e)}))},d3}.apply(t,n))||(e.exports=i)},412:function(e,t,r){"use strict";r(402);var n=n||{};n.Text=function(){function e(e,t,r,n){r=r||10;var i=t/3;return"string"==typeof e?(i*=10/(e.substring(0,t/3).length+1.5),i+=1,e.match(/[\u0900-\u0DFF\u1100-\u11FF\u2E80-\u2EFF\u3000-\u9FFF]/)&&(i*=.6),i<r&&(i=r),Math.round(i)):(i<r&&(i=r),Math.round(i))}return{calcFontSizeRaw:e,calcFontSize:function(t,r,n,i){return e(t,r,n)+"px"},getTextWithElipsisIfNeeded:function(e,t){return"string"==typeof e&&e.length>t?e.substring(0,t-3)+"...":e}}}(),n.Transition={fadeIn:function(e,t){e.style("opacity",0).transition().duration(t).style("opacity",1)},fadeOut:function(e,t){e.style("opacity",1).transition().duration(t).style("opacity",0)}},n.Click=function(){const e=function(e,r){let n,i=1,a=arguments.length;for(;++i<a;)n=arguments[i],e[n]=t(e,r,r[n]);return e};function t(e,t,r){return function(){var n=r.apply(t,arguments);return n===t?e:n}}return{delayDblClick:function(){var t=d3.dispatch("click","dblclick");return e((function(e){var r,n=null;e.on("mousedown",(function(){r=d3.pointer(document.body),+new Date})),e.on("mouseup",(function(e,i){var a,o,s;(o=r,s=d3.pointer(document.body),Math.sqrt(Math.pow(o[0]-s[0],2),Math.pow(o[1]-s[1],2))>5)||(n?(window.clearTimeout(n),n=null,t.call("dblclick",e,e,i)):n=window.setTimeout((a=e,function(){t.call("click",a,a,i),n=null}),250))}))}),t,"on")}}}(),t.a=n},413:function(e,t,r){"use strict";r(402);var n=n||{};n.Export={getCSSRules:function(e){const t=$('link[href="'+e+'"]')[0].sheet.rules;let r="";return _.each(t,(function(e){r+=e.cssText})),r},generateBase64ImageSource:function(e){e||(e="svg");const t=d3.selectAll(e).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(t)))}},t.a=n},414:function(e,t,r){"use strict";t.a=function(){var e=function(){return"n"},t=function(){return[0,0]},r=function(){return" "},n=u(),i=null,a=null,o=null,s=null;function c(e){var t;i="svg"===(t=(t=e).node()).tagName.toLowerCase()?t:t.ownerSVGElement,a=i.createSVGPoint(),document.body.appendChild(n)}c.show=function(){var n=Array.prototype.slice.call(arguments);n[n.length-1]instanceof SVGElement&&(o=n.pop());var i,a=r.apply(this,n),u=t.apply(this,n),f=e.apply(this,n),h=p(),g=d.length,m=document.documentElement.scrollTop||document.body.scrollTop,y=document.documentElement.scrollLeft||document.body.scrollLeft,v=s.apply(this,n);for(h.html(a).style("opacity",1).style("pointer-events","all");g--;)h.classed(d[g],!1);const x=n.filter(e=>e instanceof Event);return i=l.get(f).apply(this,x),v?Object.keys(v).forEach((function(e){h.style(e,v[e])})):h.classed(f,!0).style("top",i.top+u[0]+m+"px").style("left",i.left+u[1]+y+"px"),c},c.hide=function(){return p().style("opacity",0).style("pointer-events","none"),c},c.attr=function(e,t){if(arguments.length<2&&"string"==typeof e)return p().attr(e);var r=Array.prototype.slice.call(arguments);return d3.selection.prototype.attr.apply(p(),r),c},c.style=function(e,t){if(arguments.length<2&&"string"==typeof e)return p().style(e);var r=Array.prototype.slice.call(arguments);return d3.selection.prototype.style.apply(p(),r),c},c.direction=function(t){return arguments.length?(e=null==t?t:h(t),c):e},c.offset=function(e){return arguments.length?(t=null==e?e:h(e),c):t},c.html=function(e){return arguments.length?(r=null==e?e:h(e),c):r},c.customPosition=function(e){return arguments.length?(s=null==e?e:h(e),c):s},c.destroy=function(){return n&&(p().remove(),n=null),c};var l=new Map(Object.entries({n:function(e){var t=f(e);return{top:t.n.y-n.offsetHeight,left:t.n.x-n.offsetWidth/2}},s:function(e){var t=f(e);return{top:t.s.y,left:t.s.x-n.offsetWidth/2}},e:function(e){var t=f(e);return{top:t.e.y-n.offsetHeight/2,left:t.e.x}},w:function(e){var t=f(e);return{top:t.w.y-n.offsetHeight/2,left:t.w.x-n.offsetWidth}},nw:function(e){var t=f(e);return{top:t.nw.y-n.offsetHeight,left:t.nw.x-n.offsetWidth}},ne:function(e){var t=f(e);return{top:t.ne.y-n.offsetHeight,left:t.ne.x}},sw:function(e){var t=f(e);return{top:t.sw.y,left:t.sw.x-n.offsetWidth}},se:function(e){var t=f(e);return{top:t.se.y,left:t.e.x}}})),d=l.keys();function u(){var e=d3.select(document.createElement("div"));return e.style("position","absolute").style("top",0).style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),e.node()}function p(){return null===n&&(n=u(),document.body.appendChild(n)),d3.select(n)}function f(e){for(var t=o||e.target;void 0===t.getScreenCTM&&"undefined"===t.parentNode;)t=t.parentNode;var r={},n=t.getScreenCTM(),i=t.getBBox(),s=i.width,c=i.height,l=i.x,d=i.y;return a.x=l,a.y=d,r.nw=a.matrixTransform(n),a.x+=s,r.ne=a.matrixTransform(n),a.y+=c,r.se=a.matrixTransform(n),a.x-=s,r.sw=a.matrixTransform(n),a.y-=c/2,r.w=a.matrixTransform(n),a.x+=s,r.e=a.matrixTransform(n),a.x-=s/2,a.y-=c/2,r.n=a.matrixTransform(n),a.y+=c,r.s=a.matrixTransform(n),r}function h(e){return"function"==typeof e?e:function(){return e}}return c}},452:function(e,t,r){"use strict";var n=n||{};n.SingleChild={addPlaceholders:function e(t,r){if(t.children){for(var n=0;n<t.children.length;n++)e(t.children[n]);if(1===t.children.length){var i=1.2*t.size;r&&(i=.1*t.children[0].size),t.children.push({name:"placeholder",size:i})}}},removePlaceholders:function e(t){for(var r=t.length-1;r>=0;r--){var n=t[r];"placeholder"===n.data.name?t.splice(r,1):n.children&&e(n.children)}},centerNodes:function(e){for(var t=0;t<e.length;t++){var r=e[t];if(r.children&&1===r.children.length){var n=r.x-r.children[0].x;r.children[0].x+=n,i(r.children[0],n)}}function i(e,t){if(e.children)for(var r=0;r<e.children.length;r++)e.children[r].x+=t,i(e.children[r],t)}},makePositionsRelativeToZero:function(e){for(var t=e[0].x,r=e[0].y,n=0;n<e.length;n++){var i=e[n];i.x-=t,i.y-=r}}},t.a=n},62:function(e,t,r){"use strict";r.r(t),r.d(t,"RenderingMode",(function(){return n}));const n={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},63:function(e,t,r){"use strict";r.r(t),r.d(t,"YasqeMode",(function(){return n}));const n={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}},64: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"]},659:function(e,t){
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[16,26,27,28,40,41,49,69,113,114,115,116,117,118,119,121,122,143,180,187,226,235,240,256,258],{165:function(e,t){function r(e){return{initLazyList:function(t,r,n,i,a){return e((function(){const e=t+i-1,o=Math.max(0-i,e),s=Math.min(e+r-1,a.length);o>s?n([]):$.isArray(a)&&n(a.slice(o,s+1))}),100,!0)}}}angular.module("graphdb.framework.graphexplore.services.uiscroll",[]).factory("UiScrollService",r),r.$inject=["$timeout"]},166:function(e,t){angular.module("graphdb.framework.graphexplore.services.rdfsdetails",[]).factory("RdfsLabelCommentService",(function(){return{processAndFilterLabelAndComment:function(e){function t(e){const t={};for(let r in e)if(e.hasOwnProperty(r)){let n=r;r.indexOf(":")>-1&&(n=r,r=r.split(":")[1].toLowerCase()),t[r]=e[n]}return t}const r=e.results.bindings,n=[],i=[];_.each(r,(function(e){let r;angular.isUndefined(e.label)||(r=t(e.label),n.push(r)),angular.isUndefined(e.comment)||(r=t(e.comment),i.push(r))}));const a=function(e){return"en"===e.lang||"de"===e.lang},o=$.grep(n,a)[0],s=$.grep(i,a)[0],c=angular.isUndefined(o)?n.length>0?n[0].value:void 0:o.value,l=angular.isUndefined(s)?i.length>0?i[0].value:void 0:s.value;return{rdfsLabel:c,rdfsComment:l}}}}))},167:function(e,t){angular.module("graphdb.framework.rest.graphexplore.savedgraphs.service",[]).factory("SavedGraphsRestService",r),r.$inject=["$http"];function r(e){return{getSavedGraphs:function(){return e.get("rest/explore-graph/saved")},getSavedGraph:function(t){return e.get("rest/explore-graph/saved/"+encodeURIComponent(t))},editSavedGraph:function(t){return e.put("rest/explore-graph/saved/"+encodeURIComponent(t.id),t)},deleteSavedGraph:function(t){return e.delete("rest/explore-graph/saved/"+encodeURIComponent(t.id))},addNewSavedGraph:function(t){return e.post("rest/explore-graph/saved",t)}}}},168:function(e,t,r){"use strict";r.r(t);var n=r(84);angular.module("graphdb.framework.rest.graphconfig.service",[]).factory("GraphConfigRestService",i);function i(e){return{getGraphConfigs:function(){return e.get("rest/explore-graph/config")},getGraphConfigSamples:function(){return e.get("rest/explore-graph/samples")},loadGraphForConfig:function(t,r,n,i){return e.get(`rest/explore-graph/config/graph/${encodeURIComponent(t.id)}?includeInferred=${r}&linksLimit=${n}&sameAsState=${i}`)},getConfig:function(t){return e.get("rest/explore-graph/config/"+encodeURIComponent(t)).then(e=>Object(n.mapGraphsConfigResponseToModel)(e.data))},createGraphConfig:function(t){return e.post("rest/explore-graph/config",t)},updateGraphConfig:function(t){return console.log("rest update",t),e.put("rest/explore-graph/config/"+encodeURIComponent(t.id),t)},deleteGraphConfig:function(t){return e.delete("rest/explore-graph/config/"+encodeURIComponent(t.id))},validateQuery:function(t,r,n,i,a){return e({method:"POST",url:"rest/explore-graph/validate",data:{query:t,queryType:r,params:n,all:i,oneOf:a}})}}}i.$inject=["$http"]},169:function(e,t,r){"use strict";r.r(t);r(10);function n(e,t,r,n,i,a,o,s,c,l,d,u,p,f,h,g,m){e.classHierarchyData={},e.instancesObj={},e.instancesQueryObj={},e.instancesObj.items=[],e.instancesNotFiltered=[],e.isWarningShowed=!1,e.onopen=e.onclose=()=>angular.noop(),e.currentBrowserLimit=2e3,p.firefox?e.currentBrowserLimit=50:(p.safari||p.msie||p.msedge)&&(e.currentBrowserLimit=400);const y={};let v=0,x=0;t.key="",y.get=function(t,r,n){return c.initLazyList(t,r,n,v,e.instancesObj.items)};let S=allGraphs;const w=function(){if(e.getActiveRepository())return g.resolveGraphs(n.getActiveRepository()).success((function(t){e.graphsInRepo=t.results.bindings.length>1002?t.results.bindings.slice(0,1002):t.results.bindings,C()})).error((function(t){e.repositoryError=getError(t),o.error(getError(t),m.instant("graphexplore.error.getting.graphs"))}))},C=function(){const t=f.get("classHierarchy-selectedGraph-"+n.getActiveRepository());null!==t&&e.graphsInRepo.some(e=>e.contextID.uri===t.contextID.uri)?S=t:f.set("classHierarchy-selectedGraph-"+n.getActiveRepository(),S)};function b(t,r,n){e.classCountSlider.options&&e.classCountSlider.options.ceil!==r&&(e.classCountSlider={});var i;e.classCountSlider.value||(e.showExternalElements=!0,e.classCountSlider={value:r,options:{floor:1,ceil:r,vertical:!0,showSelectionBar:!0,onChange:function(){d(I,100,!0)}}},null===f.get(h.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE)&&r>e.currentBrowserLimit&&(i=e.currentBrowserLimit,p.chrome?o.warning(m.instant("graphexplore.disabling.animations",{classLimit:i}),m.instant("graphexplore.reducing.visual.effects")):o.warning(m.instant("graphexplore.browser.performance",{browser:p.name,classLimit:i}),m.instant("graphexplore.reducing.visual.effects"))));const a=f.get(h.CLASS_HIERARCHY_SWITCH_PREFIXES);null!=a&&"true"!==a&&(e.showExternalElements=!0),n?e.classCountSlider.value=n:r>=1500&&(e.classCountSlider.value=1500,o.warning(m.instant("graphexplore.class.count.slider",{count:1500}),m.instant("graphexplore.reducing.class.count"))),r>=25&&!window.ActiveXObject&&"ActiveXObject"in window&&!e.isWarningShowed&&(e.classCountSlider.value=25,e.isWarningShowed=!0,o.warning(m.instant("graphexplore.class.count.browser",{count:25}),m.instant("graphexplore.reducing.class.count"))),d((function(){e.$broadcast("reCalcViewDimensions")}),200),I();let s=0;$("rzslider").on("wheel",(function(t){t.preventDefault(),t.stopPropagation();const r=(new Date).getTime();if(!(r-s>100))return;s=r,t=t.originalEvent;let n=e.classCountSlider.value;t.deltaY<=-1?n+=1:t.deltaY>=1&&(n-=1),n!==e.classCountSlider.value&&n>=e.classCountSlider.options.floor&&n<=e.classCountSlider.options.ceil&&e.$apply((function(){e.classCountSlider.value=n,d(I,100,!0)}))}))}function I(){e.currentSliderValue=e.classCountSlider.value}function R(e){const t=e.data.fullName,n=e.data.name;s.checkDomainRangeData(t).success((function(e,i){204===i?o.warning(m.instant("graphexplore.no.domain.range",{name:n})):(f.set(h.CLASS_HIERARCHY_LAST_SELECTED_CLASS,r.hash()),r.hash("").path("domain-range-graph").search("uri",t).search("name",n))})).error((function(){o.error(m.instant("graphexplore.error.request.failed",{name:n}))}))}function k(){r.replace().hash("1"),e.instancesObj.items=[],e.showExternalElements=!1,e.showClassInfoPanel=!1,f.clearClassHieararchyState(),e.hidePrefixes="true"===f.get(h.CLASS_HIERARCHY_HIDE_PREFIXES),e.currentSliderValue=void 0,e.classHierarchyData={},t.$broadcast("angucomplete-alt:clearInput")}function E(){e.hasClassHierarchy()&&d((function(){$("#toolbar").removeClass("ng-hide")}),0)}t.$watch((function(){return t.key}),(function(){v=0,_.each(e.instancesObj.items,(function(e){t.key>e&&v++})),x++})),y.revision=function(){return x},e.adapterContainer={adapter:{remain:!0}},e.$on("goToDomainRangeGraphView",(function(e,t){R(t)})),e.$on("classCount",b),e.$on("repositoryIsSet",(function(){if(!i.isLicenseValid())return;if(L===n.getActiveRepository())return;L=n.getActiveRepository();if(e.repositoryError=null,!L)return;S=allGraphs,w().then(A)})),e.datasource=y,e.goToDomainRangeGraphView=R,e.toggleClassInfoSidePanel=function(){e.showClassInfoPanel=!e.showClassInfoPanel,t.$broadcast("sidePanelClosed")},e.getActiveRepositoryNoError=function(){if(!e.repositoryError)return n.getActiveRepository()},e.isSystemRepository=function(){return n.isSystemRepository()},e.confirmReloadClassHierarchy=function(){u.openSimpleModal({title:m.instant("confirm.operation"),message:m.instant("graphexplore.calculating.hierarchy"),warning:!0}).result.then((function(){k(),e.loader=!0,e.hierarchyError=!1,s.reloadClassHierarchy(S.contextID.uri).success((function(t){e.loader=!1,e.classHierarchyData=t,E(),b()})).error((function(t){e.loader=!1,e.hierarchyError=getError(t),o.error(getError(t),m.instant("graphexplore.error.rdf.class.request"))}))}))},e.focusOnRoot=function(){e.$broadcast("rootFocus")},e.copyToClipboard=function(e){u.openCopyToClipboardModal(e)},e.searchedClassCallback=function(e){if(e){const r={name:e.title};t.$broadcast("searchedClass",r)}},e.instancesQueryObj.query="",e.instancesFilterFunc=function(t){return t.resolvedUri.toLowerCase().indexOf(e.instancesQueryObj.query.toLowerCase())>=0},w(),e.$watch("instancesObj.items",(function(){e.instancesObj.items.length>0&&d((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("selectedClass",(function(){e.showClassInfoPanel&&function(t){const r=t.data.fullName;let n=t.data.name;if(n===r){const e=n.lastIndexOf("#");n=n.substring(e+1)}e.encodedUri=encodeURIComponent(r);const i=encodeURIComponent("prefix onto:<http://www.ontotext.com/>\nselect ?s {\n ?s a <"+r+"> .\n}");e.viewInstancesUri="sparql?name="+n+"&infer=true&sameAs=false&query="+i+"&execute=true",s.getRdfsLabelAndComment(r).success((function(t){e.rdfsLabel=t.label,e.rdfsComment=t.comment,e.expanded=!1})).error((function(){o.error("Error getting rdfs:label and rdfs:comment")})),e.instancesQueryObj.query="",e.instancesLoader=!0,s.getClassInstances(r).success((function(t){e.instancesObj.items=[],_.each(t,(function(t,r){const n={};n.type=t.startsWith("<<")&&t.endsWith(">>")?"triple":"uri",n.absUri=encodeURIComponent(t),n.absUriNonEncoded=t,n.resolvedUri=r,e.instancesObj.items.push(n)})),e.instancesLoader=!1,e.instancesSearchPlaceholder=e.instancesObj.items.length<1e3?"Search class instances":"Search first 1000 class instances",e.instancesNotFiltered=e.instancesObj.items})).error((function(){o.error(m.instant("graphexplore.error.instances.request"))}))}(e.selectedClass)})),$(document).ready((function(){$(".prefix-toggle").click((function(){$(".tooltip").hide()}))}));let L=n.getActiveRepository();function A(){k(),!e.isSystemRepository()&&e.isLicenseValid()&&(e.hierarchyError=!1,e.loader=!0,s.getClassHierarchyData(S.contextID.uri).success((function(t,r){e.showExternalElements=!0,e.loader=!1,e.classHierarchyData=t,207===r&&o.warning(m.instant("graphexplore.update.diagram"),m.instant("graphexplore.repository.data.changed")),E()})).error((function(t){e.loader=!1,e.hierarchyError=getError(t),o.error(getError(t),m.instant("graphexplore.error.rdf.class.request"))})))}e.hasClassHierarchy=function(){return e.classHierarchyData.classCount&&e.getActiveRepositoryNoError()&&!e.isSystemRepository()},e.isLicenseValid=function(){return i.isLicenseValid()},e.chosenGraph=function(e){S=e,A(),f.set("classHierarchy-selectedGraph-"+n.getActiveRepository(),S)},e.getSelGraphValue=function(){return S.contextID.value},e.isAllGraphsSelected=function(){return"all.graphs.label"===e.getSelGraphValue()}}angular.module("graphdb.framework.graphexplore.controllers.class",["pageslide-directive","ngAnimate","ui.scroll.jqlite","ui.scroll","angucomplete-alt","rzSlider","toastr","graphdb.framework.utils.localstorageadapter"]).controller("RdfClassHierarchyCtlr",n),n.$inject=["$scope","$rootScope","$location","$repositories","$licenseService","$window","toastr","GraphDataRestService","UiScrollService","RdfsLabelCommentService","$timeout","ModalService","bowser","LocalStorageAdapter","LSKeys","RDF4JRepositoriesRestService","$translate"]},170:function(e,t,r){"use strict";r.r(t);r(10);function n(e,t,r,n,i,a,o,s,c,l,d,u,p){e.predicatesObj={},e.predicatesQueryObj={},e.predicatesObj.items=[],e.predicatesQueryObj.query="",e.predicatesListNotFiltered=[],e.predicatesSearchPlaceholder="Search predicates",e.onopen=e.onclose=()=>angular.noop();const f={};let h=0,g=0;r.key="",f.get=function(t,r,n){return l.initLazyList(t,r,n,h,e.predicatesObj.items)},r.$watch((function(){return r.key}),(function(){h=0,_.each(e.predicatesObj.items,(function(e){r.key>e&&h++})),g++})),f.revision=function(){return g},e.adapterContainer={adapter:{remain:!0}};const m=o.get(s.DOMAIN_RANGE_COLLAPSE_EDGES);function y(){const e=o.get(s.CLASS_HIERARCHY_LAST_SELECTED_CLASS);t.search("").hash(e).path("hierarchy")}e.collapseEdges=null===m||"true"===m,e.datasource=f,e.$on("reloadDomainRangeGraphView",(function(e,r){const n=r.objectPropClassUri,i=r.objectPropClassName;t.path("domain-range-graph").search("uri",n).search("name",i)})),e.$on("switchEdgeMode",(function(e,r){t.path("domain-range-graph").search("uri",r.uri).search("name",r.name).search("collapsed",r.collapsed)})),e.$on("repositoryIsSet",(function(){if(v===i.getActiveRepository())return;v=i.getActiveRepository();y()})),e.$on("changeCollapsedEdgesState",(function(t,r){e.collapseEdges=!r,o.set(s.DOMAIN_RANGE_COLLAPSE_EDGES,e.collapseEdges)})),e.goToClassHierarchyView=y,e.copyToClipboard=function(e){d.openCopyToClipboardModal(e)},e.toggleCollapseEdgesState=function(){e.collapseEdges=!e.collapseEdges,a.history.pushState({collapsed:e.collapseEdges},"domainRangePage",null)},e.predicatesListFilterFunc=function(t){return t.resolvedUri.toLowerCase().indexOf(e.predicatesQueryObj.query.toLowerCase())>=0},e.$watch("predicatesObj.items",(function(){e.predicatesObj.items>0&&n((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("selectedPredicate",(function(){e.showPredicatesInfoPanel&&function(t){const r=t.target,n=t.source;e.encodedUri=encodeURIComponent(t.uri),e.sourceTargetObjectNodeUri=r.objectPropClassUri?r.objectPropClassUri:n.objectPropClassUri,e.encodedSourceTargetObjectNodeUri=encodeURIComponent(e.sourceTargetObjectNodeUri),e.sourceTargetObjectNodeName=r.objectPropClassName?r.objectPropClassName:n.objectPropClassName?n.objectPropClassName:"<i>Literal</i>",-1===e.sourceTargetObjectNodeName.indexOf("Literal")?c.getRdfsLabelAndComment(e.sourceTargetObjectNodeUri).success((function(t){e.rdfsLabel=t.label,e.rdfsComment=t.comment})).error((function(){u.error(p.instant("domain.range.error.get.label.comment"))})):(e.rdfsComment=void 0,e.rdfsLabel=void 0);e.predicatesObj.items=[],e.predicatesQueryObj.query="";const i=r.allEdges?r.allEdges:n.allEdges;_.each(i,(function(t){const r={};r.absUri=encodeURIComponent(t.uri),r.absUriNonEncoded=t.uri,r.resolvedUri=t.name,r.isImplicit=t.implicit,e.predicatesObj.items.push(r)})),e.predicatesListNotFiltered=e.predicatesObj.items}(e.selectedPredicate)})),$(document).ready((function(){$(".compact-mode-toggle").click((function(){$(".tooltip").hide()}))}));let v=i.getActiveRepository()}angular.module("graphdb.framework.graphexplore.controllers.domainrange",["ui.scroll.jqlite","ui.scroll","ngSanitize","graphdb.framework.utils.localstorageadapter"]).controller("DomainRangeGraphCtlr",n),n.$inject=["$scope","$location","$rootScope","$timeout","$repositories","$window","LocalStorageAdapter","LSKeys","GraphDataRestService","UiScrollService","ModalService","toastr","$translate"]},171:function(e,t,r){(function(e){const t="WAIT",r="NO_REPO",n="READY",i="IN_PROGRESS",a="ERROR",o={contextID:{type:"all",value:"all.graphs.label",uri:""}};function s(e){if(e<1e3)return e;const t=Math.floor(Math.log(e)/Math.log(1e3));let r=e/Math.pow(1e3,t);return r=r%1>1/Math.pow(1e3,t-1)?r.toFixed(2):r.toFixed(0),r+["K","M","G","T","P","H"][t-1]}function c(e,s,c,l,d,u,p,f,h,g,m){let y=null;e.status=c.getActiveRepository()?t:r;let v=o;const x=function(){g.resolveGraphs(c.getActiveRepository()).success((function(t){e.graphsInRepo=t.results.bindings.length>1002?t.results.bindings.slice(0,1002):t.results.bindings,S(),e.isSystemRepository()?"READY"!==e.status&&C():(e.status="WAIT",C(!0))})).error((function(t){e.repositoryError=getError(t),l.error(getError(t),m.instant("graphexplore.error.getting.graph"))}))},S=function(){const t=h.get("dependencies-selectedGraph-"+c.getActiveRepository());null!==t&&e.graphsInRepo.some(e=>e.contextID.uri===t.contextID.uri)?v=t:h.set("dependencies-selectedGraph-"+c.getActiveRepository(),v)},w=function(r){d3.select("#dependencies-chord").html(""),e.status=t,u.getRelationshipsData(r,e.direction,v.contextID.uri).success((function(t){e.dependenciesData={matrix:t.right,nodes:t.left,hasLinks:_.sum(_.map(t.right,(function(e){return _.sum(e)})))>0,direction:e.direction},e.status=n})).error((function(t){e.status=n,l.error(getError(t),m.instant("graphexplore.error.dependencies.count"))}))},C=function(r){(e.status!==n||r)&&(e.status=t,u.getRelationshipsStatus(v.contextID.uri).success((function(t){if(e.status=t,e.status===i){if(null!==y)return;y=d(C,2e3)}e.status===n&&(null!==y&&(d.cancel(y),y=null),u.getRelationshipsClasses(e.direction,v.contextID.uri).success((function(t,r){e.allClasses.items=_.filter(t,k),e.allNotFilteredClasses=t,e.selectedClasses=void 0,angular.isUndefined(e.selectedClasses)&&(e.selectedClasses=t.slice(0,10)),w(e.selectedClasses),207===r&&l.warning(m.instant("graphexplore.update.diagram"),m.instant("graphexplore.repository.data.changed"))}))),0===e.status.indexOf("ERROR;")&&(e.status=a,l.error(m.instant("graphexplore.error.dependencies.calc",{error:e.status.substring("ERROR;".length)})))})).error((function(t){e.status=a,l.error(getError(t),m.instant("graphexplore.error.dependencies.count.status"))})))};e.allClasses={},e.allClasses.items=[],e.allNotFilteredClasses=[],e.direction="all";const b={};let I=0,R=0;function k(t){return-1!==t.name.toLowerCase().indexOf(e.classQuery.query.toLowerCase())}s.key="",b.get=function(t,r,n){return p.initLazyList(t,r,n,I,e.allClasses.items)},s.$watch((function(){return s.key}),(function(){I=0,_.each(e.allClasses.items,(function(e){s.key>e&&I++})),R++})),b.revision=function(){return R},e.datasource=b,e.adapterContainer={adapter:{remain:!0}},e.classQuery={},e.classQuery.query="",e.classFilterFunc=k,e.$watch("allClasses.items",(function(){e.allClasses.items.length>0&&d((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("direction",(function(){!c.getActiveRepository()||e.isSystemRepository()||c.isActiveRepoFedXType()||x()})),e.$on("$destroy",(function(){d.cancel(y)})),e.isLoading=function(){return e.status===i||e.status===t},e.confirmCalculateDependencies=function(){f.openSimpleModal({title:m.instant("confirm.operation"),message:m.instant("graphexplore.calculating.relationships"),warning:!0}).result.then((function(){e.calculateDependencies()}))},e.calculateDependencies=function(){e.status=t,e.selectedClasses=void 0,u.calculateRelationships(v.contextID.uri).success((function(t){0===t.indexOf("ERROR;")?l.error(m.instant("graphexplore.error.dependencies.calc",{error:e.status.substring("ERROR;".length)})):C()})).error((function(e){l.error(m.instant("graphexplore.error.could.not.force.count",{error:getError(e)}))}))},e.addClass=function(t){e.selectedClasses.push(t),w(e.selectedClasses)},e.removeClass=function(t){_.remove(e.selectedClasses,(function(e){return e.name===t.name})),w(e.selectedClasses)},e.showClass=function(t){e.classToShow=t},e.isClassByNameShown=function(t){return void 0!==_.find(e.selectedClasses,{name:t})},e.addClassByName=function(t){e.selectedClasses.push(_.find(e.allClasses.items,{name:t})),w(e.selectedClasses)},e.removeClassByName=function(t){_.remove(e.selectedClasses,(function(e){return e.name===t})),w(e.selectedClasses)},e.removeAllClasses=function(){e.selectedClasses=[],w(e.selectedClasses)},e.isSystemRepository=function(){return"SYSTEM"===c.getActiveRepository()};const E=e.$on("repositoryIsSet",(function(){e.classQuery={},e.classQuery.query="",e.repositoryError=null,v=o,c.getActiveRepository()&&!c.isActiveRepoFedXType()?x():e.status=r}));window.addEventListener("beforeunload",(function e(){E(),window.removeEventListener("beforeunload",e)})),e.selectGraph=function(e){v=e,C(!0),h.set("dependencies-selectedGraph-"+c.getActiveRepository(),v)},e.getSelectedGraphValue=function(){return v.contextID.value},e.isAllGraphsSelected=function(){return"all.graphs.label"===e.getSelectedGraphValue()}}Object.defineProperty(e,"allGraphs",{get:()=>o}),angular.module("graphdb.framework.graphexplore.controllers.dependencies",["ui.scroll.jqlite","ui.scroll","toastr","ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter"]).controller("DependenciesChordCtrl",c).config(["$uibTooltipProvider",function(e){e.options({appendToBody:!0})}]).filter("humanize",(function(){return s})),c.$inject=["$scope","$rootScope","$repositories","toastr","$timeout","GraphDataRestService","UiScrollService","ModalService","LocalStorageAdapter","RDF4JRepositoriesRestService","$translate"]}).call(this,r(11))},172:function(e,t,r){"use strict";r.r(t);r(7);var n=r(438),i=r(440),a=(r(10),r(85)),o=r(70);function s(e,t,r,s,c,l,d,u,p,f,h,g,m,y,v,x,S,w,C,b,I,R,k){e.languageChanged=!1,e.propertiesObj={},e.propertiesObj.items=[],e.propertiesQueryObj={},e.propertiesQueryObj.query="",e.propertiesSearchPlaceholder=R.instant("visual.search.instance.placeholder"),e.propertiesNotFiltered=[],e.searchVisible=!1,e.nodeSelected=!1,e.queryResultsMode=!1,e.embedded=f.search().embedded,e.openedNodeInfoPanel=void 0,e.invalidLimit=!1,e.INVALID_LINKS_MSG=R.instant("sidepanel.invalid.limit.links.msg"),e.INVALID_LINKS_TOOLTIP=R.instant("sidepanel.invalid.limit.links.tooltip"),e.datasource=void 0,e.adapterContainer={adapter:{remain:!0}},e.hasInitedRepository=!1,e.defaultSettings={linksLimit:20,includeInferred:!0,sameAsState:!0,languages:["en"],showLinksText:!0,preferredTypes:[],rejectedTypes:[],preferredPredicates:[],rejectedPredicates:["http://dbpedia.org/property/logo","http://dbpedia.org/property/hasPhotoCollection","http://dbpedia.org/property/website","http://dbpedia.org/property/homepage","http://dbpedia.org/ontology/thumbnail","http://xmlns.com/foaf/0.1/depiction","http://xmlns.com/foaf/0.1/homepage","http://xmlns.com/foaf/0.1/mbox","http://dbpedia.org/ontology/wikiPage*","http://dbpedia.org/property/wikiPage*","http://factforge.net/*"],preferredTypesOnly:!1,preferredPredicatesOnly:!1,includeSchema:!0},e.saveSettings=_.cloneDeep(e.defaultSettings),e.defaultGraphConfig={id:"default",name:"Easy graph",startMode:"search"},t.key="",e.onopen=e.onclose=()=>angular.noop(),e.goToHome=()=>{A(),f.url("graphs-visualizations")},e.shouldShowSettings=()=>e.configLoaded&&e.configLoaded.id===e.defaultGraphConfig.id,e.shouldDisableSameAs=()=>{const t=$("#sameAsCheck");return e.settings&&!e.settings.includeInferred&&t.prop("checked")&&(t.prop("checked",!1),e.settings.sameAsState=!1),e.settings&&!e.settings.includeInferred},e.propertiesFilterFunc=t=>t.key.toLowerCase().indexOf(e.propertiesQueryObj.query.toLowerCase())>=0,e.toggleMoreInfo=e=>{angular.element(e.currentTarget).parent().next().toggle(200),angular.element(e.currentTarget).children("span").toggleClass("icon-caret-down").toggleClass("icon-caret-up")},e.copyToClipboard=e=>{m.openCopyToClipboardModal(e)},e.resetSettings=()=>{e.settings=_.cloneDeep(e.defaultSettings),e.validateLinksLimit(),N()},e.changeLimit=t=>{let r=e.settings.linksLimit+t;r<1&&(r=1),r>1e3&&(r=1e3),e.settings.linksLimit=r},e.validateLinksLimit=()=>{e.invalidLimit=!a.NUMBER_PATTERN.test(e.settings.linksLimit)},e.showSettings=()=>{e.showInfoPanel=!0,e.showFilter=!0,e.showNodeInfo=!1,e.showPredicates=!1,e.saveSettings?e.settings=_.cloneDeep(e.saveSettings):e.settings=_.cloneDeep(e.defaultSettings),N()},e.updateSettings=()=>{e.invalidLimit?c.error(e.INVALID_LINKS_TOOLTIP,e.INVALID_LINKS_MSG):(e.saveSettings=e.settings,e.saveSettings.languages=_.map(e.saveSettings.languagesMap,(function(e){return e.text})),e.saveSettings.preferredTypes=_.map(e.saveSettings.preferredTypesMap,(function(e){return e.text})),e.saveSettings.rejectedTypes=_.map(e.saveSettings.rejectedTypesMap,(function(e){return e.text})),e.saveSettings.preferredPredicates=_.map(e.saveSettings.preferredPredicatesMap,(function(e){return e.text})),e.saveSettings.rejectedPredicates=_.map(e.saveSettings.rejectedPredicatesMap,(function(e){return e.text})),e.rootNodeIri?D(e.rootNodeIri):e.queryResultsMode&&f.search().query?M(f.search().query,f.search().sameAs,f.search().inference):"query"===e.configLoaded.startMode&&z(e.configLoaded),P(),e.showInfoPanel=!1,e.showFilter=!1,x.set(S.GRAPHS_VIZ,e.saveSettings))},e.getGraphConfigs=t=>{C.getGraphConfigs().success((function(r){e.graphConfigs=r,t&&t()})).error((function(e){c.error(getError(e),R.instant("graphexplore.error.graph.configs.short.msg"))}))},e.findConfigById=function(t){return t===e.defaultGraphConfig.id?e.defaultGraphConfig:$.grep(e.graphConfigs,(function(e){return e.id===t}))[0]},e.easyGraphSearch=t=>{e.configLoaded=e.defaultGraphConfig,e.openUri(t)},e.deleteConfig=t=>{m.openSimpleModal({title:R.instant("common.confirm"),message:R.instant("graphexplore.delete.graph",{configName:t.name}),warning:!0}).result.then((function(){C.deleteGraphConfig(t).success((function(){e.getGraphConfigs(),e.refreshSavedGraphs()})).error((function(e){c.error(getError(e),R.instant("graphexplore.error.cannot.delete.config"))}))}))},e.goToGraphConfig=e=>{L({config:e.id},{config:e}),A(),z(e)},e.replaceIRIWithPrefix=t=>{const r=e.namespaces,n=_.findLast(r,(function(e){return 0===t.indexOf(e.uri)}));return n?n.prefix+":"+t.substring(n.uri.length):t};const E=[];t.$on("$translateChangeSuccess",(function(){e.INVALID_LINKS_MSG=R.instant("sidepanel.invalid.limit.links.msg"),e.INVALID_LINKS_TOOLTIP=R.instant("sidepanel.invalid.limit.links.tooltip"),e.propertiesSearchPlaceholder=R.instant("visual.search.instance.placeholder")})),e.$on("autocompleteStatus",(function(){ce()})),e.$on("repositoryIsSet",(function(t,r){r.newRepo&&(e.hasInitedRepository=!1),se(r.newRepo),r.newRepo&&(A(),$(".graph-visualization svg").empty(),f.search().query&&(e.goToHome(),O()))}));E.push(t.$watch(()=>t.key,()=>{B=0,_.each(e.propertiesObj.items,(function(e){t.key>e&&B++})),W++}));E.push(e.$watch("propertiesObj.items",()=>{angular.isDefined(e.propertiesObj.items)&&e.propertiesObj.items.length>0&&l((function(){e.adapterContainer.adapter.reload()}),500)}));e.$on("$destroy",()=>{E.forEach(e=>e())});const L=(t,r)=>{e.embedded&&(t.embedded=!0),f.search(t),f.state(r)},A=()=>{e.searchVisible=!1,e.nodeSelected=!1,e.configLoaded=null,e.queryResultsMode=!1,e.lastSavedGraphName=null,e.lastSavedGraphId=null,e.shared=!1,e.numberOfPinnedNodes=0,V={},Y=0},T=()=>k.isActive()?e.defaultSettings:e.saveSettings,P=()=>{T().showLinksText?d3.selectAll("svg .link-wrapper text").style("display","block"):d3.selectAll("svg .link-wrapper text").style("display","none")},N=()=>{e.settings.languagesMap=_.map(e.settings.languages,(function(e){return{text:e}})),e.settings.preferredTypesMap=_.map(e.settings.preferredTypes,(function(e){return{text:e}})),e.settings.rejectedTypesMap=_.map(e.settings.rejectedTypes,(function(e){return{text:e}})),e.settings.preferredPredicatesMap=_.map(e.settings.preferredPredicates,(function(e){return{text:e}})),e.settings.rejectedPredicatesMap=_.map(e.settings.rejectedPredicates,(function(e){return{text:e}}))},D=()=>{e.rootNodeIri&&e.$broadcast("onRootNodeChange",e.rootNodeIri)},O=()=>{f.search().query?(e.searchVisible=!1,e.queryResultsMode=!0,M(f.search().query,f.search().sameAs,f.search().inference)):e.$on("onRootNodeChange",(function(t,r){e.loading=!0;const n=T();angular.isDefined(r)&&(e.rootNodeIri=r,b.getInstanceNode({iri:r,config:e.configLoaded?e.configLoaded.id:e.defaultGraphConfig.id,languages:e.shouldShowSettings()?n.languages:[],includeInferred:n.includeInferred,sameAsState:n.sameAsState}).then((function(t){e.nodeSelected=!0,e.searchVisible=!1,null===t.data.types&&(t.data.types="greyColor"),oe=new ae;const r=oe.addNode(t.data,te/2,re/2);ee=J,Re(r,!0)})).catch((function(t){e.loading=!1,c.error(getError(t),R.instant("graphexplore.error.could.not.load.graph"))})))})),f.search().uri&&e.openUri(f.search().uri,!0),f.search().saved&&w.getSavedGraph(f.search().saved).success((function(t){e.loadSavedGraph(t)})).error((function(e){const t=getError(e);c.error(t,R.instant("graphexplore.error.could.not.open"))}))},M=(t,r,n)=>{const i=T(),a=void 0===r?i.sameAsState:!0===r,o=void 0===n?i.includeInferred:!0===n;e.loading=!0,b.updateGraph({query:t,linksLimit:i.linksLimit,languages:e.shouldShowSettings()?i.languages:[],includeInferred:o,sameAsState:a}).then((function(e){be(e)}),(function(t){e.loading=!1,c.error(getError(t.data),R.instant("graphexplore.error.cannot.load.graph"))}))},G=(e,t)=>{const r=e.split(" ");return t?[r[0],r[1],r[2]].join(">"):[r[0],r[2]].join(">")},j=e=>[e.source.iri,e.target.iri].join(">"),Q=e=>{if(e.isTriple){const t=document.getElementById(Object(o.removeSpecialChars)(G(e.iri)));if(t&&void 0!==t.__data__.x)return t.__data__.x}return e.x},U=e=>{if(e.isTriple){const t=document.getElementById(Object(o.removeSpecialChars)(G(e.iri)));if(t&&void 0!==t.__data__.y)return t.__data__.y}return e.y},H=e=>{const t=e.trim().split(" ");return`<<<${t[0]}> <${t[1]}> <${t[2]}>>>`},F=e=>{const t=e.source.isTriple?G(e.source.iri,!0):e.source.iri,r=e.target.isTriple?G(e.target.iri,!0):e.target.iri;return Object(o.removeSpecialChars)(`${t}>${r}>marker`)},z=t=>{e.configLoaded=t,"search"===t.startMode?e.searchVisible=!0:"node"===t.startMode&&t.startIRI?l((function(){e.openUri(t.startIRI,!0)}),0):"query"===t.startMode&&t.startGraphQuery&&(e.loading=!0,C.loadGraphForConfig(t,t.startQueryIncludeInferred,T().linksLimit,t.startQuerySameAs).then((function(e){be(e)}),(function(t){e.loading=!1,c.error(getError(t),R.instant("graphexplore.error.graph.load"))})))},q=function(){var t,r;f.search().config?(t=f.search().config,r=O,t===e.defaultGraphConfig.id?z(e.defaultGraphConfig):C.getConfig(t).then(e=>{z(e),r()}).catch(e=>{c.error(getError(e),R.instant("graphexplore.error.could.not.load.config",{configId:t}))})):f.search().query||f.search().uri?(z(e.defaultGraphConfig),O()):O()};v.onpopstate=function(t){A(),t.state&&(t.state.config?(z(t.state.config),t.state.uri&&e.openUri(t.state.uri,!0)):t.state.savedGraph&&e.loadSavedGraph(t.state.savedGraph,!0))},e.embedded&&(f.search().query||f.search().uri||f.search().config||f.search().saved)&&(e.noGoHome=!0);let B=0,W=0,V={},Y=0;const K=16,X=d3.zoom().scaleExtent([.5,10]);let Z;const J=d3.zoomIdentity.translate(0,-70).scale(1);X.on("zoom",(function(e){k.isActive()||(ee=e.transform,Z.attr("transform",ee))}));let ee=J;const te=1e3,re=1e3;let ne,ie;function ae(){this.nodes=[],this.links=[],this.tripleNodes=new Map,this.tripleLinksCopy=new Map,this.addNode=function(e,t,r){return e.x=t,e.y=r,this.nodes.push(e),e},this.computeConnectedness=function(){const e={},t={};_.each(this.links,(function(r){const n=r.source.iri,i=r.target.iri,a=_.min([n,i])+"|"+_.max([n,i]);t[a]||(t[a]=1,e[n]=(e[n]||0)+1,e[i]=(e[i]||0)+1)})),_.each(this.links,(function(t){e[t.source.iri]>1&&e[t.target.iri]>1?t.connectedness=Math.min(5,Math.max(e[t.source.iri],e[t.target.iri])-1):t.connectedness=0}))},this.addAndMatchLinks=function(e){const t=this.nodes;Array.prototype.push.apply(this.links,function(e,t){return _.map(e,(function(e){let r,n;r=e.isTripleSource?Te(e.source):_.find(t,(function(t){return t.iri===e.source})),n=e.isTripleTarget?Te(e.target):_.find(t,(function(t){return t.iri===e.target}));let i={source:r,target:n,predicates:e.predicates};if(e.isTripleSource||e.isTripleTarget){let e=`${i.source.isTriple?G(i.source.iri):i.source.iri}>${i.target.isTriple?G(i.target.iri):i.target.iri}`;if(oe.tripleLinksCopy.has(e)){let t=oe.tripleLinksCopy.get(e);return t[0].predicates.push(...i.predicates),t.push(i),oe.tripleLinksCopy.set(e,t),null}oe.tripleLinksCopy.set(e,[i])}return i}))}(e,t));for(let e of oe.tripleLinksCopy.keys())1===oe.tripleLinksCopy.get(e).length&&oe.tripleLinksCopy.delete(e);this.links=this.links.filter(e=>null!==e),this.computeConnectedness()};const t=function(e,t){return r(e,t).length};function r(e,t){return _.filter(t,(function(t){return t.source.iri===e.iri||t.target.iri===e.iri}))}this.countLinks=t,this.linksTypes=function(e,t){const n=r(e,t),i=_.map(n,(function(t){return t.source.iri===e.iri?t.target.types:t.source.types}));return _.uniq(_.flatten(i))},this.linksPredicates=function(e,t){const n=r(e,t),i=_.map(n,(function(e){return e.predicates}));return _.uniq(_.flatten(i))},this.removeTriples=function(e){let t=[];this.tripleNodes.size>0&&e.forEach(e=>{this.tripleNodes.has(e)&&(this.tripleNodes.delete(e),this.links=_.reject(this.links,(function(r){let n=e.split(">"),i=G(r.source.iri),a=G(r.target.iri);if(i===e&&oe.tripleNodes.delete(a)){let e=a.split(">");t.push({source:e[0],target:e[1]})}let o=i===e||a===e||r.source.iri===n[0]&&r.target.iri===n[1];return o&&(oe.tripleLinksCopy.delete(`${i}>${a}`),oe.tripleLinksCopy.delete(`${a}>${i}`)),o})))}),t.forEach(e=>{this.links=_.reject(this.links,(function(t){return t.source.iri===e.source&&t.target.iri===e.target}))})},this.removeNode=function(r){let n=[];this.links=_.reject(this.links,(function(e){let t=e.source.iri===r.iri||e.target.iri===r.iri;return t&&(e.target.isTriple&&n.push(G(e.target.iri)),e.source.isTriple||e.target.isTriple||n.push([e.source.iri,e.target.iri].join(">"))),t})),this.removeTriples(n);const i=this.links;this.nodes=_.reject(this.nodes,(function(e){return 0===t(e,i)})),0===this.nodes.length&&(e.nodeSelected=!1),this.computeConnectedness()},this.removeNodeLeafLinks=function(e){let n=[],i=this.links;this.links=_.reject(this.links,(function(a){let o=a.source.iri===e.iri&&1===t(a.target,i)&&!a.target.isTriple||a.target.iri===e.iri&&1===t(a.source,i)&&!a.source.isTriple;if(!o){let n;if(a.source.iri!==e.iri||2!==t(a.target,i)||a.target.isTriple?a.target.iri!==e.iri||2!==t(a.source,i)||a.source.isTriple||(n=r(a.source,i)):n=r(a.target,i),!n)return!1;o=(n[0].source.iri===e.iri||n[0].target.iri)&&(n[1].source.iri===e.iri||n[1].target.iri)}return o&&(a.target.isTriple&&n.push(G(a.target.iri)),a.source.isTriple||a.target.isTriple||n.push([a.source.iri,a.target.iri].join(">"))),o})),this.removeTriples(n),i=this.links,this.nodes=_.reject(this.nodes,(function(r){return 0===t(r,i)&&r.iri!==e.iri})),this.computeConnectedness()},this.addTriple=function(e,t,r){e.x=t,e.y=r,e.weight=0;let n=G(e.iri);if(this.tripleNodes.has(n)){let t=this.tripleNodes.get(n);t.push(e),this.tripleNodes.set(n,t)}else e.weight=10,this.tripleNodes.set(n,[e])},this.copyState=function(){const e=_.map(this.nodes,(function(e){return{iri:e.iri,isTriple:e.isTriple,size:e.size,labels:_.cloneDeep(e.labels),types:_.cloneDeep(e.types),rdfRank:e.rdfRank,x:e.x,y:e.y,fixed:e.fixed}})),t=JSON.stringify(Array.from(this.tripleNodes.entries())),r=JSON.stringify(Array.from(this.tripleLinksCopy.entries()));return{nodes:e,links:_.map(this.links,(function(e){return{source:e.source.iri,isTripleSource:e.source.isTriple,target:e.target.iri,isTripleTarget:e.target.isTriple,predicates:e.predicates}})),tripleNodes:t,tripleLinksCopy:r,colorIndex:Y,type2color:V,transform:ee}},this.restoreState=function(t){e.nodeSelected=!0,e.searchVisible=!1,this.nodes=_.cloneDeep(t.nodes),this.tripleNodes=t.tripleNodes?new Map(JSON.parse(t.tripleNodes)):new Map,this.links=[],this.addAndMatchLinks(t.links),this.tripleLinksCopy=t.tripleLinksCopy?new Map(JSON.parse(t.tripleLinksCopy)):new Map,_.each(this.nodes,(function(t){t.fixed&&e.numberOfPinnedNodes++})),angular.isDefined(t.colorIndex)&&angular.isDefined(t.type2color)&&(Y=t.colorIndex,V=_.cloneDeep(t.type2color)),angular.isDefined(t.transform)&&(ee=d3.zoomIdentity.translate(t.transform.x,t.transform.y).scale(t.transform.k)),ve()}}e.datasource={get:function(t,r,n){return g.initLazyList(t,r,n,B,e.propertiesObj.items)},revision:function(){return W}},p.when(h.getPrincipal()).then(t=>(t=>{const r=t.appSettings;e.defaultSettings.includeInferred=r.DEFAULT_INFERENCE,e.defaultSettings.sameAsState=r.DEFAULT_INFERENCE&&r.DEFAULT_SAMEAS,e.defaultSettings.includeSchema=r.DEFAULT_VIS_GRAPH_SCHEMA;const n=x.get(S.GRAPHS_VIZ);if(n&&"object"==typeof n)try{e.saveSettings=n,void 0===e.saveSettings.includeSchema&&(e.saveSettings.includeSchema=e.defaultSettings.includeSchema,e.saveSettings.rejectedPredicates=[...e.saveSettings.rejectedPredicates,...e.defaultSettings.rejectedPredicates].unique())}catch(t){e.saveSettings=_.cloneDeep(e.defaultSettings),x.set(S.GRAPHS_VIZ,e.saveSettings)}else e.saveSettings=_.cloneDeep(e.defaultSettings)})(t)),e.showInfoPanel=!1;let oe=new ae;function se(t){!r.getActiveRepository()||e.hasInitedRepository&&!t||(e.hasInitedRepository=!0,t||e.getGraphConfigs(q),e.getNamespacesPromise=I.getNamespaces(e.getActiveRepository()).success((function(t){const r=_.map(t.results.bindings,(function(e){return{uri:e.namespace.value,prefix:e.prefix.value}}));e.namespaces=_.sortBy(r,(function(e){return e.uri.length})),ce()})).error((function(e){c.error(getError(e),R.instant("graphexplore.error.view.will.not.work"))})))}function ce(){s.isLicenseValid()&&(e.getAutocompletePromise=u.checkAutocompleteStatus())}e.addedTag=function(t){return t.text.indexOf(":")<0?(c.warning(R.instant("graphexplore.absolute.prefixed.iri")),null):(t.text=function(e,t){if(!/^<?(http|urn).*>?/.test(e)){const r=e.split(":"),n=r[0],i=r[1];if(!angular.isUndefined(i)){const e=d.getNamespaceUriForPrefix(t,n);if(e)return e+i}}return e}(t.text,e.namespaces),e.pageslideExpanded=!0,t)},e.validateTag=function(e,t,r){if(e.text.indexOf(":")<0)return r?c.warning(R.instant("graphexplore.absolute.prefixed.iri.option"),t):c.warning(R.instant("graphexplore.absolute.prefixed.iri"),t),!1;const n=e.text.indexOf("*");if(n>=0){if(!r)return c.warning(R.instant("graphexplore.wildcards.not.allowed"),t),!1;if(n<e.text.length-1)return c.warning(R.instant("graphexplore.wildcards.last.char"),t),!1}return!0},e.getTagClass=function(e){return e.endsWith("*")?"tag-item-wildcard":null},e.getActiveRepository=function(){return r.getActiveRepository()},e.isLicenseValid=function(){return s.isLicenseValid()},se();const le=d3.scaleLinear().domain([0,9]).range(["hsl(0, 100%, 75%)","hsl(360, 90%, 82%)"]).interpolate(d3.interpolateHslLong),de=d3.scaleLinear().domain([0,9]).range(["hsl(180, 50%, 75%)","hsl(540, 40%, 82%)"]).interpolate(d3.interpolateHslLong);e.getColor=function(e){angular.isUndefined(V[e])&&(V[e]=Y,Y++);const t=V[e];return t>39?"#c2c2c2":t%2==0?le(t/2):de(t/2)};const ue=d3.forceX(te/2).strength(.005),pe=d3.forceY(re/2).strength(.005),fe=d3.forceSimulation().force("x",ue).force("y",pe),he=d3.select(".main-container .graph-visualization").append("svg").attr("viewBox","0 0 "+te+" "+re).attr("preserveAspectRatio","xMidYMid meet");he.append("rect").attr("width",10*te).attr("height",10*re).attr("x",-(10*te-te)/2).attr("y",-(10*re-re)/2).style("fill","none").style("pointer-events","all").call(X).on("click",(function(e){e.stopPropagation(),ke(),fe.stop()}));let ge=0,me=0;const ye=new function(){this.state=!1,this.setLoadingState=function(e){this.state=e},this.getLoadingState=function(){return this.state},this.init=function(e,t){d3.select(t).append("circle").attr("cx",(function(){return e.x})).attr("cy",(function(){return e.y})).attr("class","loader-container").attr("r",(function(){return e.size})).style("fill","fff").style("opacity","0.7"),d3.select(t).append("image").attr("xlink:href","js/angular/templates/loader/ot-loader.svg?v=2.7.0-TR6").attr("x",(function(){return e.x-e.size+5})).attr("y",(function(){return e.y-e.size})).attr("width",(function(){return 2*e.size})).attr("height",(function(){return 2*e.size})).attr("class","node-loader")}};function ve(t){d3.selectAll("svg g").remove(),d3.selectAll(".d3-tip").remove(),d3.selectAll(".menu-events").remove(),Z=he.append("g").attr("class","nodes-container").attr("transform",(function(){return angular.isDefined(ee)&&!t?ee:""}));const r=Object(i.a)().attr("class","d3-tip").customPosition((function(){const e=ne.getBoundingClientRect();return{top:e.bottom+10+"px",left:e.left-30+"px"}})).html((function(t){let r="";return t.fixed&&(r+='<i class="icon-pin"></i> '),t.types.length>0?r+=_.join(_.map(t.types,(function(t){return e.replaceIRIWithPrefix(t)}))," · "):r+="<i>No types</i>",r})),a=function(e){let t="";return t+=_.join(_.map(e.predicates,(function(t,r){if(0===r)return Ne(t);if(r<10)return" · "+Ne(t);if(10===r){const t=function(e){return e.predicates.length-10}(e),r=t>1?t+" predicates":t+" predicate";return" · "+R.instant("graphexplore.tip.text",{textToShow:r})}})),""),t};let s;const d=Object(i.a)().attr("class","d3-tip").customPosition((function(e){const t=s.getBoundingClientRect(),r=function(e){const t=a(e),r=document.createElement("canvas").getContext("2d");return r.font="13px Arial",e.predicates.length<10?r.measureText(t).width:r.measureText(t).width/2}(e);return{top:t.top-30+"px",left:t.left-30+"px",width:r+"px"}})).html((function(e){return a(e)}));const u=function(){l.cancel(void 0),l.cancel(ge),ne=null,r.hide(),me=l((function(){ke()}),500)};he.call(r);he.call(d);let p=he.selectAll(".link"),f=he.selectAll(".node");const h=d3.forceCollide(e=>e.size+5).strength(.5),g=d3.forceManyBody().strength(-300),m=d3.forceCenter(te/2,re/2);fe.nodes(oe.nodes).force("charge",g).force("collide",h).force("center",m).force("link",d3.forceLink(oe.links).distance((function(e){return e.source.isTriple||e.target.isTriple?0:function(e){const t=$("<span></span>"),r=e.predicates[0].split("/"),n=r[r.length-1];t.addClass("predicate-text").text(n),$("body").append(t);const i=t.width()+2*e.source.size+2*e.target.size+50;return t.remove(),.75*i}(e)+30*e.connectedness}))),Z.append("defs").selectAll("marker").data(oe.links).enter().append("marker").attr("class","arrow-marker").attr("id",(function(e){return F(e)})).attr("viewBox","0 -5 10 10").attr("refX",(function(e){return e.target.isTriple?11:e.target.size+11})).attr("refY",0).attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M0,-5L10,0L0,5 L10,0 L0, -5"),p=Z.selectAll(".link").data(oe.links).enter().append("g").attr("class","link-wrapper").attr("id",(function(e){return Object(o.removeSpecialChars)(j(e))})).append("line").attr("class","link").style("stroke-width",1).style("fill","transparent").style("marker-end",(function(e){return`url(#${F(e)})`}));const y=Z.selectAll(".link-wrapper").append("text").text((function(e){return Pe(e)})).attr("class",(function(e){return e.predicates.length>1||oe.tripleNodes.has(j(e))?"predicates":"predicate"})).attr("dy","-0.5em").style("text-anchor","middle").style("display",T().showLinksText?"":"none").on("mouseover",(function(e,t){e.stopPropagation(),function(e,t){l.cancel(void 0);const r=s=e.target;l((function(){s===r&&t.predicates.length>1&&d.show(t,s)}),300)}(e,t)})).on("mouseout",(function(){l.cancel(void 0),s=null,d.hide()})).on("click",(function(t,r){t.stopPropagation(),function(t,r){Ae();const n=j(r);if(1===r.predicates.length&&oe.tripleNodes.has(n)){ie=null;const e=oe.tripleNodes.get(n)[0];if(we(e,this,t.button)){const t={};t.iri=e.iri,t.pred=Ne(e.iri.split(" ")[1]),_e(t)}return}!function(t){if(e.showNodeInfo=!1,e.showPredicates=t.predicates.length>1,e.showFilter=!1,e.showInfoPanel=!1,ie===t)return e.showNodeInfo=!1,e.showInfoPanel=!1,void(ie=null);ie=t,e.showPredicates&&(e.predicates=_.map(t.predicates,(function(e){const r=function(e,t){const r=j(t);return oe.tripleNodes.has(r)?oe.tripleNodes.get(r).findIndex(t=>t.iri.indexOf(e)>=0):-1}(e,t),n=r>-1;return{value:Ne(e),partOfTriple:n,linkId:n?j(t):"",nodeIndex:r}})),e.showInfoPanel=!0)}(r)}(t,r)}));let v,x=0,S=null,w=null;const C=function(t,r,n){let i=n||this.parentNode;Array.isArray(n)&&(i=n[r]);oe.countLinks(t,oe.links)<=T().linksLimit?Re(t,!1,i):c.info(R.instant("graphexplore.increase.limit"),R.instant("graphexplore.node.at.max")),e.closeInfoPanel()};function b(e,t){let r,n,i,a,o=!0;if("down"===t)r=2*e.size,n=e.size/3,i=.8,a=.3;else if("down-fixed"===t)r=2*e.size,n=e.size,i=.8,a=.66;else if("up"===t)r=e.size/3,n=2*e.size,i=.3,a=.8;else{if("fixed"!==t)return;r=e.size,i=.66,o=!1}let s=Z.selectAll(".node-wrapper").filter((function(t){return t===e})).append("text").text("").classed("icon-any pinned",!0).style("font-size",r+"px").attr("x",(function(e){return e.x})).attr("y",(function(e){return e.y})).attr("opacity",i);"fixed"!==t&&"down-fixed"!==t||(e.pin=s),o&&(s=s.transition().duration(1e3).style("font-size",(function(){return n+"px"})).attr("opacity",a),"down-fixed"!==t&&s.remove())}const I=d3.drag().subject((function(e){return e})).on("start",(function(e,t){if(k.isActive())return;0===e.sourceEvent.button&&(t.fixedBeforeDrag=t.fixed,t.isBeingDragged=!0,t.beginDragging=!0,ke(),d3.select(this).classed("dragging",!0),fe.alphaTarget(.3).restart())})).on("drag",(function(t,r){r.isBeingDragged&&(r.fx=t.x,r.fy=t.y,r.fixed?r.beginDragging&&b(r,"fixed"):(e.numberOfPinnedNodes++,r.fixed=!0,b(r,"down-fixed")),r.pinWasFixed=!0,r.beginDragging=null)})).on("end",(function(e,t){t.isBeingDragged&&(t.pinWasFixed&&(t.pinWasFixed=null,d3.select(".pinned").remove()),t.isBeingDragged=!1,d3.select(this).classed("dragging",!1));fe.alphaTarget(0)}));f=Z.selectAll(".node").data(oe.nodes).enter().append("g").attr("class","node-wrapper").attr("id",(function(e){return e.iri})).append("circle").attr("class","node").attr("r",(function(e){return e.size})).style("fill",(function(t){return"greyColor"===t.types?"c2c2c2":e.getColor(t.types[0])})).on("mouseover",(function(t,n){n.isBeingDragged||(l.cancel(me),ge=l(()=>{(function(t,r){if(e.showInfoPanel)return!1;(Se.closeIcon||Se.expandIcon||Se.focusIcon||Se.copyURIIcon)&&Se.removeIcons();if(fe.alpha()<.1)return Se.initIcons(t,r.parentNode),fe.stop(),xe(),!0;return!1})(n,this)&&function(e,t){l.cancel(void 0);const n=ne=t.target;l((function(){ne===n&&r.show(e,ne)}),300)}(n,t)},400))})).on("mouseout",u).on("click",(function(t,r){if(t.button&&0!==t.button)return;const n=this;if(S&&w===n)return l.cancel(S),S=null,void C(r,0,n.parentNode);w=n,u(),e.showPredicates=!1,k.isActive()||(l.cancel(S),S=l((function(){we(r,n,t),S=null}),540))})).on("touchstart",(e,t)=>function(e){x=0,v=l((function(){x<5&&Ce(e),v=null}),1e3)}(t)).on("touchmove",(function(){x++})).on("touchend",(function(){l.cancel(v),v=null})).on("contextmenu",(function(t,n){t.shiftKey||(t.preventDefault(),ke(),e.closeInfoPanel(),n.fixed?(e.numberOfPinnedNodes--,n.fixed=!1,n.fx=null,n.fy=null,b(n,"up"),fe.alpha(1).restart()):(e.numberOfPinnedNodes++,n.fixed=!0,b(n,"down")),function(e){ne&&r.show(e,ne)}(n))})).on("gdb-expand-node",(e,t)=>C(t,0,e.srcElement.parentNode)).on("gdb-show-node-info",(e,t)=>Ee(t)).call(I);const E=Z.selectAll(".node-wrapper").append("foreignObject").style("pointer-events","none").attr("width",(function(e){return 2*e.size*1.75}));Z.insert("g").attr("class","menu-events"),(e=>{e.each((function(e){e.fontSize=n.a.Text.calcFontSizeRaw(e.labels[0].label,e.size,K,!0)})).attr("height",(function(e){return 3*e.fontSize})).append("xhtml:div").attr("class","node-label-body").style("font-size",(function(e){return e.fontSize+"px"})).append("xhtml:div").text((function(e){return e.labels[0].label})),l((function(){$(".node-label-body div").each((function(e,t){let r=t.textContent.substring(0,t.textContent.length-1);let n=0;for(;n<200&&(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)r=r.substring(0,r.length-1),t.textContent=r+"…",n++}))}),50)})(E),fe.on("tick",(function(){p.attr("x1",(function(e){return Q(e.source)})).attr("y1",(function(e){return U(e.source)})).attr("x2",(function(e){return Q(e.target)})).attr("y2",(function(e){return U(e.target)})),y.attr("x",(function(e){let t=Q(e.source),r=Q(e.target);return e.x=.5*(t+r)})).attr("y",(function(e){let t=U(e.source),r=U(e.target);return e.y=.5*(t+r)})).attr("transform",(function(e){return"rotate("+function(e,t){const r={x:Q(e.source),y:U(e.source)},n={x:Q(e.target),y:U(e.target)};if(t)return 180*Math.atan2(n.y-r.y,n.x-r.x)/Math.PI;{const e=180*Math.atan2(n.y-r.y,n.x-r.x)/Math.PI;return e<=90&&e>=-90?e:(e>0?-1:1)*(180-Math.abs(e))}}(e,e.direction)+", "+e.x+", "+e.y+")"})),f.attr("cx",(function(e){return e.x})).attr("cy",(function(e){return e.y})),Z.select(".node-loader").attr("x",(function(e){return e.x-e.size+3})).attr("y",(function(e){return e.y-e.size})),Z.select(".loader-container").attr("cx",(function(e){return e.x})).attr("cy",(function(e){return e.y})),E.attr("x",(function(e){return e.x-1.75*e.size})).attr("y",(function(e){return e.y-3*e.fontSize/2})),d3.select(".pinned").attr("x",(function(e){return e.x})).attr("y",(function(e){return e.y})),xe()})),angular.isDefined(ye)&&ye.setLoadingState(!1),e.loading&&(e.loading=!1),d3.selectAll(".link-wrapper").each((function(){const e=$(this).attr("id").split(">")[0],t=$(this).attr("id").split(">")[1];d3.selectAll(".link").each((function(r){const n=Object(o.removeSpecialChars)(r.source.iri),i=Object(o.removeSpecialChars)(r.target.iri);if(n===t&&i===e){let e=n;e+=">",e+=i;const t=document.createTextNode(" ⟶");document.getElementById(e).lastChild.appendChild(t),r.direction="double"}}))})),d3.selectAll(".d3-actions-tip").remove(),fe.alpha(.3).restart()}function xe(){t.d3alpha=fe.alpha()}const Se=new function(){function r(e,t){return"translate("+(t.x-14+(t.size+15)*Math.cos(e*Math.PI/180-Math.PI/2))+","+(t.y-14+(t.size+15)*Math.sin(e*Math.PI/180-Math.PI/2))+")"}this.closeIcon=void 0,this.expandIcon=void 0,this.collapseIcon=void 0,this.focusIcon=void 0,this.copyURIIcon=void 0,this.actionsTip=void 0,this.removeIcons=function(){this.closeIcon.remove("g"),this.expandIcon&&this.expandIcon.remove("g"),this.collapseIcon&&this.collapseIcon.remove("g"),this.focusIcon.remove("g"),this.copyURIIcon.remove("g"),this.closeIcon=void 0,this.expandIcon=void 0,this.collapseIcon=void 0,this.focusIcon=void 0,this.copyURIIcon=void 0,this.expandedState=!1},this.expandedState=!1,this.initIcons=function(n,a){const o=Object(i.a)().attr("class","d3-tip d3-actions-tip").customPosition((function(e,t){const r=t.target.getBoundingClientRect();return{top:r.top-20+"px",left:r.right+10+"px"}})).html((function(e){return e}));he.call(o);n.isExpanded?(this.collapseIcon=d3.select(".menu-events").append("g").attr("class","collapse-icon").attr("name","collapse").attr("transform",(function(){return r(20,n)})),this.collapseIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.collapseIcon.append("path").attr("d","M22.67,12a.59.59,0,0,1-.53.65l-6.88.72H15.2a.59.59,0,0,1-.59-.65l.72-6.88A.58.58,0,0,1,16,5.33a.59.59,0,0,1,.53.65L16,11.11,21.3,5.79a.64.64,0,0,1,.91.91L16.89,12,22,11.49A.59.59,0,0,1,22.67,12ZM12.59,14.75l-6.75.85a.59.59,0,0,0-.51.66.58.58,0,0,0,.66.51l4.95-.62-5.2,5.2a.64.64,0,1,0,.91.91l5.2-5.2L11.23,22a.59.59,0,0,0,.51.66h.07a.59.59,0,0,0,.59-.52l.85-6.75a.59.59,0,0,0-.17-.49A.58.58,0,0,0,12.59,14.75Z").style("fill","var(--primary-color)"),this.collapseIcon.on("click",(function(){var e;(e=n).isExpanded=!1,oe.removeNodeLeafLinks(e),ve()})).on("mouseover",(function(e){o.show(this.getAttribute("name"),e),l.cancel(ge),l.cancel(me)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)}))):(this.expandIcon=d3.select(".menu-events").append("g").attr("class","expand-icon").attr("name","expand").attr("transform",(function(){return r(20,n)})),this.expandIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.expandIcon.append("path").attr("d","M22.37,6.28l-.72,6.88a.59.59,0,0,1-.59.53H21a.59.59,0,0,1-.53-.65L21,7.9l-5.32,5.32a.64.64,0,0,1-.91-.91L20.1,7,15,7.53a.59.59,0,0,1-.12-1.18l6.88-.72a.59.59,0,0,1,.65.65ZM12.89,20.34,7.95,21l5.2-5.2a.64.64,0,0,0-.91-.91L7,20.05l.62-4.95A.59.59,0,0,0,6.48,15l-.85,6.75a.59.59,0,0,0,.59.67h.07L13,21.52a.59.59,0,1,0-.15-1.18Z").style("fill","var(--primary-color)"),this.expandIcon.on("click",(function(){Re(n,!1,a)})).on("mouseover",(function(e){o.show(this.getAttribute("name"),e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)}))),this.focusIcon=d3.select(".menu-events").append("g").attr("class","focus-icon").attr("name","focus").attr("transform",(function(){return r(20,n)})),this.focusIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.focusIcon.append("path").attr("d","M14.2,23.81a9.8,9.8,0,1,1,6.93-2.87h0A9.74,9.74,0,0,1,14.2,23.81Zm0-18.17a8.37,8.37,0,1,0,5.92,14.29h0A8.37,8.37,0,0,0,14.2,5.64Zm1.42,6.95a2,2,0,1,0,0,2.85A2,2,0,0,0,15.62,12.59Z").style("fill","var(--primary-color)"),this.focusIcon.on("click",(function(){t.$broadcast("onRootNodeChange",n.iri)})).on("mouseover",(function(e){o.show(this.getAttribute("name"),e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)})),this.copyURIIcon=d3.select(".menu-events").append("g").attr("class","icon-link").attr("name","link").attr("transform",(function(){return r(20,n)})),this.copyURIIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.copyURIIcon.append("path").attr("d","M 13.457031 10.164062 C 13.648438 10.164062 13.820312 10.242188 13.941406 10.363281 L 15.492188 11.859375 C 15.984375 12.332031 16.292969 12.992188 16.292969 13.714844 C 16.292969 14.441406 15.984375 15.097656 15.492188 15.574219 L 10.394531 20.496094 C 9.902344 20.972656 9.222656 21.265625 8.472656 21.265625 C 7.71875 21.265625 7.039062 20.972656 6.546875 20.496094 L 4.996094 19 C 4.507812 18.523438 4.203125 17.867188 4.203125 17.144531 C 4.203125 16.421875 4.507812 15.765625 4.996094 15.289062 L 7.542969 12.824219 C 7.667969 12.707031 7.84375 12.628906 8.035156 12.628906 C 8.417969 12.628906 8.726562 12.929688 8.726562 13.300781 C 8.726562 13.484375 8.648438 13.652344 8.523438 13.773438 L 5.976562 16.234375 C 5.738281 16.46875 5.589844 16.792969 5.589844 17.148438 C 5.589844 17.503906 5.738281 17.824219 5.976562 18.058594 L 7.527344 19.566406 C 7.773438 19.792969 8.105469 19.929688 8.472656 19.929688 C 8.835938 19.929688 9.167969 19.792969 9.414062 19.566406 L 14.511719 14.644531 C 14.753906 14.410156 14.90625 14.089844 14.90625 13.730469 C 14.90625 13.375 14.753906 13.054688 14.511719 12.820312 L 12.964844 11.324219 C 12.839844 11.203125 12.761719 11.039062 12.761719 10.855469 C 12.761719 10.488281 13.070312 10.1875 13.449219 10.1875 Z M 17.082031 3.976562 C 17.082031 3.976562 17.085938 3.976562 17.085938 3.976562 C 17.824219 3.976562 18.492188 4.261719 18.980469 4.722656 L 20.535156 6.203125 C 21.042969 6.679688 21.355469 7.34375 21.355469 8.082031 C 21.355469 8.792969 21.058594 9.441406 20.582031 9.914062 L 18.0625 12.402344 C 17.9375 12.527344 17.761719 12.605469 17.566406 12.605469 C 17.183594 12.605469 16.875 12.304688 16.875 11.9375 C 16.875 11.753906 16.949219 11.589844 17.070312 11.46875 L 19.605469 8.984375 C 19.847656 8.75 19.996094 8.429688 19.996094 8.070312 C 19.996094 7.714844 19.847656 7.394531 19.605469 7.160156 L 18.019531 5.667969 C 17.773438 5.445312 17.4375 5.304688 17.070312 5.300781 C 16.703125 5.304688 16.367188 5.453125 16.128906 5.691406 L 11.085938 10.667969 C 10.84375 10.898438 10.695312 11.222656 10.695312 11.578125 C 10.695312 11.933594 10.84375 12.257812 11.085938 12.488281 L 12.675781 13.980469 C 12.804688 14.101562 12.882812 14.273438 12.882812 14.457031 C 12.882812 14.828125 12.574219 15.128906 12.191406 15.128906 C 12.003906 15.128906 11.832031 15.054688 11.707031 14.9375 L 10.140625 13.457031 C 9.636719 12.980469 9.324219 12.316406 9.324219 11.582031 C 9.324219 10.863281 9.621094 10.214844 10.101562 9.742188 L 15.140625 4.765625 C 15.625 4.285156 16.304688 3.980469 17.054688 3.976562 Z M 17.082031 3.976562").style("fill","var(--primary-color)"),this.copyURIIcon.on("click",(function(){e.copyToClipboard(n.iri),ke(),o.hide()})).on("mouseover",(function(e){o.show("<div style='text-align: center;'><b>Copy to ClipBoard</b><br>"+n.iri+"</div>",e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)})),this.closeIcon=d3.select(".menu-events").append("g").attr("class","close-icon").attr("name","remove").attr("transform",(function(){return r(20,n)})),this.closeIcon.append("circle").attr("cx",14).attr("cy",14).attr("r",13).style("fill","#eee"),this.closeIcon.append("path").attr("d","M14.94,14l5.87-5.87a.66.66,0,1,0-.94-.94L14,13.06,8.13,7.19a.66.66,0,0,0-.94.94L13.06,14,7.19,19.87a.66.66,0,1,0,.94.94L14,14.94l5.87,5.87a.66.66,0,1,0,.94-.94Z").style("fill","var(--primary-color)"),this.closeIcon.on("click",(function(){Ce(n)})).on("mouseover",(function(e){o.show(this.getAttribute("name"),e),l.cancel(me),l.cancel(ge)})).on("mouseout",(function(){o.hide(),me=l((function(){ke()}),500)})),this.animateMenu(n)},this.animateMenu=function(e){const t=d3.easeSin;let n=0;let i=20;this.expandIcon&&this.expandIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return r(i,e)})).delay(n+=35),this.collapseIcon&&this.collapseIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return r(i,e)})).delay(n+=35),this.copyURIIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return i+=30,r(i,e)})).delay(n+=35),this.focusIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return i+=30,r(i,e)})).delay(n+=35),this.closeIcon.transition().duration(100).style("opacity",1).ease(t).attr("transform",(function(){return i+=30,r(i,e)})).delay(n+=35),this.expandedState=!0}};function we(r,n,i){return e.showInfoPanel=!1,e.showPredicates=!1,e.showNodeInfo=!1,i.shiftKey&&(i.ctrlKey||i.metaKey)?(t.$broadcast("onRootNodeChange",r.iri),!1):i.ctrlKey||i.metaKey?(Ce(r),!1):void 0!==e.openedNodeInfoPanel&&e.openedNodeInfoPanel===r?(e.pageslideExpanded=!1,e.openedNodeInfoPanel=void 0,!1):(Ee(r),!0)}function Ce(e){oe.removeNode(e),ve()}function be(t){!function(t){e.nodeSelected=!0,null===t.data.types&&(t.data.types="greyColor"),oe=new ae,ee=J}(t),Ie(t)}function Ie(t,r,n){let i=t.data;i=_.filter(i,(function(e){return-1===_.findIndex(oe.links,(function(t){return e.source===t.source.iri&&e.target===t.target.iri}))}));const a=[],o=oe.tripleLinksCopy.values();for(let e=0;e<oe.tripleLinksCopy.size;e++){o.next().value.forEach(e=>{a.push(e)})}i=_.filter(i,(function(e){return-1===_.findIndex(a,(function(t){return e.source===t.source.iri&&e.target===t.target.iri}))})),i=_.filter(i,(function(e){return e.source!==e.target}));const s=((e,t)=>{const r=t.map(t=>t[e]);return t.filter((t,n)=>r.indexOf(t[e])===n)})("iri",_.union(_.flatten(_.map(t.data,(function(e){return[{iri:e.source,isTriple:e.isTripleSource},{iri:e.target,isTriple:e.isTripleTarget}]}))))),l=_.map(oe.nodes,(function(e){return{iri:e.iri,isTriple:Boolean(e.isTriple)}})),d=oe.tripleNodes.values();for(let e=0;e<oe.tripleNodes.size;e++){d.next().value.forEach(e=>{l.push({iri:e.iri,isTriple:e.isTriple})})}const u=_.reject(s,(function(e){return _.some(l,e)}));if(0===u.length)(n||0===i.length)&&c.info(R.instant("graphexplore.error.node.connections")),oe.addAndMatchLinks(i),ve();else{const t=[],n=[],a=T();_.forEach(u,(function(r,i){t.push(b.getInstanceNode({iri:r.isTriple?H(r.iri):r.iri,config:e.configLoaded.id,languages:e.shouldShowSettings()?a.languages:[],includeInferred:a.includeInferred,sameAsState:a.sameAsState}).then((function(e){n[i]=e.data})))})),p.all(t).then((function(){_.forEach(n,(function(e,t){const i=2*Math.PI*t/n.length,a=(r?r.x:0)+Math.cos(i)*re/3,o=(r?r.y:0)+Math.sin(i)*re/3;e.isTriple?oe.addTriple(e,a,o):oe.addNode(e,a,o)})),oe.addAndMatchLinks(i),r&&(r.isExpanded=!0),ve()}))}}function Re(t,r,n){if(ye.getLoadingState())return;ye.init(t,n);const i=T(),a=t.iri;b.getInstanceNodeLinks({iri:a,linksLimit:i.linksLimit,includeInferred:i.includeInferred,config:e.configLoaded.id,preferredTypes:e.shouldShowSettings()?i.preferredTypes:[],rejectedTypes:e.shouldShowSettings()?i.rejectedTypes:[],preferredPredicates:e.shouldShowSettings()?i.preferredPredicates:[],rejectedPredicates:e.shouldShowSettings()?i.rejectedPredicates:[],preferredTypesOnly:e.shouldShowSettings()?i.preferredTypesOnly:[],preferredPredicatesOnly:e.shouldShowSettings()?i.preferredPredicatesOnly:[],languages:e.shouldShowSettings()?i.languages:[],sameAsState:i.sameAsState,includeSchema:i.includeSchema}).then((function(e){Ie(e,t,r)}),(function(t){const r=getError(t.data);c.error(r,R.instant("graphexplore.error.exploring.node")),e.loading=!1,ye.setLoadingState(!1)}))}function ke(){angular.isDefined(Se)&&Se.expandedState&&Se.removeIcons()}function Ee(t){fe.stop(),e.openedNodeInfoPanel=t,e.showNodeInfo=!0,e.showFilter=!1,e.showPredicates=!1,e.nodeLabels=t.labels,e.nodeTypes=t.types,e.rdfRank=t.rdfRank,e.nodeIri=t.iri,e.resourceType=t.isTriple?"triple":"uri",e.encodedIri=t.isTriple?encodeURIComponent(H(t.iri)):encodeURIComponent(t.iri),e.showInfoPanel=!0,e.rdfsLabel=t.labels[0].label,e.rdfsComment=t.comment,e.expanded=!1,e.propertiesQueryObj.query="",e.dataNodeKeysQuery="";const r=T();b.getProperties({iri:t.isTriple?H(t.iri):t.iri,config:e.configLoaded.id,languages:e.shouldShowSettings()?r.languages:[],includeInferred:r.includeInferred,sameAsState:r.sameAsState,rejectedPredicates:e.shouldShowSettings()?r.rejectedPredicates:[]}).then((function(t){e.data=_.mapKeys(t.data,(function(t,r){return e.replaceIRIWithPrefix(r)})),e.propertiesObj.items=[],_.forEach(e.data,(function(t,r){e.propertiesObj.items.push({key:r,value:t})})),e.nodeImage=void 0,e.propertiesNotFiltered=e.propertiesObj.items;const r=_.find(e.propertiesObj.items,(function(e){return"image"===e.key}));r&&(e.nodeImage=r.value[0].v),e.propertiesObj.items=_.reject(e.propertiesObj.items,(function(e){return"image"===e.key})),e.propertiesNotFiltered=e.propertiesObj.items}),(function(e){c.warning(getError(e.data),"Error")}))}function _e(e){Le("predicate","var(--primary-color-dark)",e),Le("predicates","var(--primary-color-dark)",e);const t=document.getElementsByClassName("link");t&&_.each(t,(function(t){const r=t.__data__;(r.source.iri.indexOf(e.iri)>=0||r.target.iri.indexOf(e.iri)>=0)&&(t.style.stroke="var(--primary-color-dark)",t.style.strokeWidth=4)}));const r=document.getElementsByClassName("arrow-marker");r&&_.each(r,(function(t){const r=t.__data__;(r.source.iri.indexOf(e.iri)>=0||r.target.iri.indexOf(e.iri)>=0)&&(t.style.stroke="var(--primary-color-dark)",t.__data__.target.isTriple||t.setAttribute("refX","23"))}))}function Le(e,t,r){const n=document.getElementsByClassName(e);n&&_.each(n,(function(e){const n=e.__data__;r?((n.source.iri.indexOf(r.iri)>=0||n.target.iri.indexOf(r.iri)>=0)&&(e.style.fill=t),G(r.iri)===j(n)&&(e.textContent=r.pred,e.style.fill=t),r.oppLinkIRI&&r.oppLinkIRI===j(n)&&(e.textContent=r.oppTriplePred,e.style.fill=t)):(e.style.fill=t,e.textContent=Pe(n))}))}function Ae(){_.each(e.predicates,(function(e){const t=document.getElementById(e.linkId+e.nodeIndex);t&&(t.style.fontWeight="normal")}));const t=document.getElementsByClassName("link");t&&_.each(t,(function(e){e.style.stroke="#999",e.style.strokeWidth=1})),Le("predicate",""),Le("predicates","");const r=document.getElementsByClassName("arrow-marker");r&&_.each(r,(function(e){e.style.stroke="#999",e.__data__.target.isTriple||e.setAttribute("refX","59")}))}function Te(e){const t=G(e);if(oe.tripleNodes.has(t))return oe.tripleNodes.get(t).find(t=>t.iri===e)}function Pe(e){return e.predicates.length>1?e.predicates.length+" predicates":Ne(e.predicates[0])}function Ne(t){const r=e.replaceIRIWithPrefix(t);return r.length===t.length?t.split("/")[t.split("/").length-1]:r}e.toggleSidePanel=function(){e.pageslideExpanded=!e.pageslideExpanded},e.closeInfoPanel=function(){e.pageslideExpanded=!1,e.openedNodeInfoPanel=void 0,e.predicates=[],ie=null,l((function(){e.showInfoPanel=!1}))},e.clickLink=function(t){if(oe.tripleNodes.has(t.linkId)){Ae();const r=oe.tripleNodes.get(t.linkId)[t.nodeIndex];Ee(r),e.showPredicates=!0;const n=document.getElementById(t.linkId+t.nodeIndex);n&&(n.style.fontWeight="bold");const i={},a=oe.tripleLinksCopy.values();for(let e=0;e<oe.tripleLinksCopy.size;e++){const e=a.next().value;e.length>1&&e.every(t=>t.source.iri===r.iri?(i.iri=e[0].source.iri,t.target.isTriple&&(i.oppLinkIRI=G(t.target.iri),i.oppTriplePred=Ne(t.target.iri.split(" ")[1])),i.pred=Ne(r.iri.split(" ")[1]),1===t.predicates.length&&(i.linkPred=t.predicates[0]),!1):t.target.iri!==r.iri||(i.iri=e[0].target.iri,t.source.isTriple&&(i.oppLinkIRI=G(t.source.iri),i.oppTriplePred=Ne(t.source.iri.split(" ")[1])),i.pred=Ne(r.iri.split(" ")[1]),1===t.predicates.length&&(i.linkPred=t.predicates[0]),!1))}i.iri||(i.iri=r.iri,i.pred=Ne(r.iri.split(" ")[1])),_e(i)}},e.splitPredicate=function(e){return e.split("/")[e.split("/").length-1]},e.getActiveRepository=function(){return r.getActiveRepository()},e.isLoadingLocation=function(){return r.isLoadingLocation()},e.hasActiveLocation=function(){return r.hasActiveLocation()},e.rotate=function(e){ke();const t=10*(e?1:-1)*Math.PI/180,r=Math.cos(t),n=Math.sin(t),i=te/2,a=re/2;d3.selectAll(".node-wrapper").each((function(e){e.x=i+(r*(e.x-i)+n*(e.y-a)),e.y=a+(-n*(e.x-i)+r*(e.y-a)),e.fixed&&(e.fx=e.x,e.fy=e.y)})),fe.alpha(1).restart()},e.openUri=function(t,r){if(!r){const r={};e.configLoaded.id!==e.defaultGraphConfig.id&&(r.config=e.configLoaded.id),r.uri=t,L(r,{uri:t,config:e.configLoaded})}e.$broadcast("onRootNodeChange",t)},e.saveOrUpdateGraph=function(){const t=JSON.stringify(oe.copyState()),r={id:e.lastSavedGraphId,name:e.lastSavedGraphName,data:t,shared:e.shared};r.id?e.saveGraphModal("update",r):e.saveGraphModal("new",r)},e.renameSavedGraph=function(t){e.saveGraphModal("rename",{id:t.id,name:t.name,config:t.config,shared:t.shared})};const De=function(t){w.editSavedGraph(t).success((function(){e.lastSavedGraphName=t.name,e.shared=t.shared,e.refreshSavedGraphs(),c.success(R.instant("graphexplore.saved.graph.was.edited",{name:t.name}))})).error((function(e){const t=getError(e);c.error(t,R.instant("graphexplore.error.cannot.edit"))}))};e.saveGraphModal=function(t,r,n){y.open({templateUrl:"js/angular/graphexplore/templates/modal/save-graph.html",controller:"SaveGraphModalCtrl",resolve:{data:function(){return{mode:t,graph:r,graphExists:n,shared:r.shared}}}}).result.then((function(t){if(t.restart)e.saveGraphModal(t.mode,t.graph,!1);else switch(t.mode){case"new":!function(t){e.configLoaded&&(t.config=e.configLoaded.id),w.addNewSavedGraph(t).success((function(r,n,i){e.lastSavedGraphName=t.name,e.lastSavedGraphId=i()["x-saved-graph-id"],e.shared=t.shared,e.refreshSavedGraphs(),c.success(R.instant("graphexplore.saved.graph",{name:t.name}))})).error((function(r,n){if(422===n)e.saveGraphModal("new",t,!0);else{const e=getError(r);c.error(e,R.instant("graphexplore.error.cannot.create.graph"))}}))}(t.graph);break;case"update":case"rename":De(t.graph)}}))},e.refreshSavedGraphs=function(){w.getSavedGraphs().success((function(t){e.savedGraphs=t})).error((function(e){const t=getError(e);c.error(t,R.instant("graphexplore.error.getting.saved.graphs"))}))},e.loadSavedGraph=function(t,r){t.owner?(e.lastSavedGraphName=t.name,e.lastSavedGraphId=t.id,e.shared=t.shared,e.configLoaded=e.findConfigById(t.config)):(e.lastSavedGraphName=null,e.lastSavedGraphId=null,e.shared=t.shared),e.configLoaded||(e.configLoaded=e.defaultGraphConfig),f.url("?saved="+t.id),oe.restoreState(JSON.parse(t.data)),r||L({saved:t.id},{savedGraph:t})},e.copyToClipboardSavedGraph=function(t){const r=[location.protocol,"//",location.host,location.pathname,"?saved=",t.id].join("");e.copyToClipboard(r)},e.deleteSavedGraph=function(t){m.openSimpleModal({title:R.instant("common.confirm"),message:R.instant("graphexplore.confirm.delete.graph",{graphName:t.name}),warning:!0}).result.then((function(){!function(t){w.deleteSavedGraph(t).success((function(){e.refreshSavedGraphs(),c.success(R.instant("graphexplore.saved.graph.was.deleted",{name:t.name}))})).error((function(e){const t=getError(e);c.error(t,R.instant("graphexplore.error.cannot.delete"))}))}(t)}))},e.openIRI=function(t,r){return r.shiftKey?e.$broadcast("onRootNodeChange",t):window.open(t,"_blank"),!1},e.togglePinAllNodes=function(){ke();const t=angular.isUndefined(e.numberOfPinnedNodes)||e.numberOfPinnedNodes<=0;e.numberOfPinnedNodes=0,d3.selectAll(".node").each((function(r){r.fixed=t,t?(e.numberOfPinnedNodes++,r.fx=r.x,r.fy=r.y):(r.fx=null,r.fy=null)})),fe.alpha(1).restart()},$("body").on("keydown",(function(t){!k.isActive()&&"input"!==t.target.nodeName&&e.nodeSelected&&(37===t.keyCode?e.rotate(!0):39===t.keyCode&&e.rotate(!1))})),e.getLiteralFromPropValue=function(e){return e.substring(e.indexOf(":")+1)}}function c(e,t,r,n){switch(e.mode=r.mode,e.graph=_.cloneDeep(r.graph),e.graphExists=r.graphExists,e.mode){case"new":e.title=n.instant("graphexplore.create.new.graph"),e.okButtonText=n.instant("common.create.btn");break;case"update":e.title=n.instant("graphexplore.update"),e.okButtonText=n.instant("common.save.btn");break;case"rename":e.title=n.instant("graphexplore.rename"),e.okButtonText=n.instant("common.save.btn")}e.ok=function(){e.form.$valid&&t.close({graph:e.graph,mode:e.mode})},e.saveNew=function(){e.graph.name=e.graph.name+" (new)",t.close({graph:e.graph,mode:"new",restart:!0})},e.cancel=function(){t.dismiss("cancel")}}angular.module("graphdb.framework.graphexplore.controllers.graphviz",["ui.scroll.jqlite","ui.scroll","toastr","ui.bootstrap","ngTagsInput","graphdb.framework.utils.localstorageadapter"]).controller("GraphsVisualizationsCtrl",s).controller("SaveGraphModalCtrl",c).config(["$uibTooltipProvider",function(e){e.options({appendToBody:!0})}]),s.$inject=["$scope","$rootScope","$repositories","$licenseService","toastr","$timeout","ClassInstanceDetailsService","AutocompleteRestService","$q","$location","$jwtAuth","UiScrollService","ModalService","$uibModal","$window","LocalStorageAdapter","LSKeys","SavedGraphsRestService","GraphConfigRestService","GraphDataRestService","RDF4JRepositoriesRestService","$translate","GuidesService"],c.$inject=["$scope","$uibModalInstance","data","$translate"]},173:function(e,t,r){"use strict";r.r(t);r(68),r(10);var n=r(66),i=r(64),a=r(14),o=r(73),s=r(84);function c(e,t,r,c,l,d,u,p,f,h,g,m,y,v,x,S){let w;e.newConfig=new o.GraphsConfig,e.revertConfig=void 0,e.page=1,e.totalPages=5,e.helpHidden=1===y.get(v.HIDE_GRAPH_CONFIG_HELP),e.isUpdate=!1,e.shared=!1,e.canEditActiveRepo=e.canWriteActiveRepo(),e.samples=[],e.tabConfig={inference:e.newConfig.startQueryIncludeInferred,sameAs:e.newConfig.startQuerySameAs},e.getAutocompletePromise=void 0,e.getNamespacesPromise=void 0,e.tabsViewModel=[{page:1,label:x.instant("starting.point.label"),type:"startGraphQuery"},{page:2,label:x.instant("graph.expansion"),type:"expandQuery"},{page:3,label:x.instant("node.basics"),type:"resourceQuery"},{page:4,label:x.instant("edge.basics"),type:"predicateLabelQuery"},{page:5,label:x.instant("node.extra"),type:"resourcePropertiesQuery"}];const C=h.configName,b=l.getActiveRepository();e.toggleHelp=t=>{void 0===t&&(t=y.get(v.HIDE_GRAPH_CONFIG_HELP)),1!==t?(y.set(v.HIDE_GRAPH_CONFIG_HELP,1),e.helpHidden=!0):(y.set(v.HIDE_GRAPH_CONFIG_HELP,0),e.helpHidden=!1)},e.fixedVisualCallback=(t,r)=>{e.newConfig.startIRI=t,e.newConfig.startIRILabel=r,w=!0},e.isDefaultGraph=e=>e.isDefaultGraph(),e.isUserGraph=e=>!e.isDefaultGraph(),e.getSampleName=(e,t)=>{if(!e)return"";const r=e.getPropertyDescription(t);return r||(e.id?"Copy of "+e.name:e.name)},e.createGraphConfig=e=>{p.createGraphConfig(e).success((async function(){await g.showToastMessageWithDelay("graphexplore.saved.new.config"),r.url("graphs-visualizations")})).error((function(e){c.error(getError(e),x.instant("graphexplore.error.could.not.create"))}))},e.updateGraphConfig=e=>{p.updateGraphConfig(e).success((async function(){await g.showToastMessageWithDelay("graphexplore.saved.config"),r.url("graphs-visualizations")})).error((function(e){c.error(getError(e),x.instant("graphexplore.error.could.not.save"))}))},e.goToPage=t=>{e.page!==t&&A(()=>{e.showEditor(),e.page=t})},e.goToPreviousPage=()=>{e.page>1&&e.goToPage(e.page-1),$()&&(w=!1)},e.goToNextPage=()=>{O(),e.newConfig.isStartMode(o.StartMode.NODE)&&!w||e.goToPage(e.page+1)},e.saveGraphConfig=()=>{O(),$()&&!w||(e.newConfig.startQueryIncludeInferred=e.tabConfig.inference,e.newConfig.startQuerySameAs=e.tabConfig.sameAs,A(()=>{e.newConfig.name?(e.queryEditorIsDirty=!1,e.isUpdate?e.updateGraphConfig(e.newConfig.toSavePayload()):e.createGraphConfig(e.newConfig.toSavePayload())):P(x.instant("graphexplore.provide.config.name"))}))},e.setQuery=async t=>{const r=t||" ";(await I()).setQuery(r),e.markDirty()},e.markDirty=async()=>{if(e.revertConfig){const t=e.revertConfig.getQueryType(e.page),r=await _();e.queryEditorIsDirty=t!==r}},e.showEditor=()=>{e.viewMode="yasr",L(),E()},e.showPreview=()=>{e.viewMode="editor",R()},e.revertEditor=()=>{e.setQuery(e.revertConfig.getQueryType(e.page)),e.queryEditorIsDirty=!1};const I=()=>a.YasguiComponentDirectiveUtil.getOntotextYasguiElementAsync("#query-editor"),R=async(t,r)=>{const n=await I(),i=await n.getQueryType();if(r&&"SELECT"!==i&&"CONSTRUCT"!==i&&"DESCRIBE"!==i)return void c.warning(x.instant("query.editor.warning.msg"));"update"!==await n.getQueryMode()?e.queryIsRunning||(e.viewMode="editor",k()):c.warning(x.instant("cannot.execute.update.error"))},k=async()=>{(await I()).query(i.RenderingMode.YASR)},E=async()=>(await I()).changeRenderMode(i.RenderingMode.YASQE),_=async()=>(await I()).getQuery(),L=async()=>(await I()).abortQuery(),A=async t=>{const r=await(async()=>{const t=await I();let r=await t.getQuery();return r=r.trim(),e.newConfig.updateModel(r,e.page)})();1===e.page?r.isStartMode(o.StartMode.NODE)&&!r.startIRI?P(x.instant("graphexplore.select.start.node")):r.isStartMode(o.StartMode.QUERY)&&!r.startGraphQuery?P(x.instant("graphexplore.provide.query")):r.isStartMode(o.StartMode.QUERY)?D(t,r.startGraphQuery,"graph"):t():2===e.page?D(t,r.expandQuery,"construct",["node"]):3===e.page?D(t,r.resourceQuery,"tuple",["node"],[],["type","label","comment","rank"]):4===e.page?D(t,r.predicateLabelQuery,"tuple",["edge"],["label"]):5===e.page&&D(t,r.resourcePropertiesQuery,"tuple",["node"],["property","value"])},T=()=>{e.tabConfig.inference=e.newConfig.startQueryIncludeInferred,e.tabConfig.sameAs=e.newConfig.startQuerySameAs,e.setQuery(e.newConfig.getQueryType(e.page))},P=e=>{c.warning(e)},N=()=>{e.getAutocompletePromise=f.checkAutocompleteStatus()},D=(e,t,r,n,i,a)=>{t?p.validateQuery(t,r,n,i,a).success(()=>{e()}).error(e=>{P(getError(e))}):e()},O=()=>{$()&&e.$broadcast("addStartFixedNodeAutomatically",{startIRI:e.newConfig.startIRI})},$=()=>1===e.page&&e.newConfig.isStartMode(o.StartMode.NODE),M=()=>{p.getGraphConfigSamples().success((function(t){e.samples=Object(s.mapGraphConfigSamplesToGraphConfigs)(t).filter(t=>!t.id||e.newConfig.id!==t.id||(e.revertConfig=t,!1))})).error((function(e){c.error(getError(e),x.instant("graphexplore.error.graph.configs"))})),N(),e.getNamespacesPromise=m.getNamespaces(e.getActiveRepository())},G={endpoint:()=>"/repositories/"+l.getActiveRepository(),showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showYasqeActionButtons:!1,yasqeActionButtons:a.INFERRED_AND_SAME_AS_BUTTONS_CONFIGURATION,showQueryButton:!1,initialQuery:" ",componentId:"graphs-config",render:i.RenderingMode.YASQE,maxPersistentResponseSize:0,showYasqeResizer:!1,yasqeMode:n.YasqeMode.PROTECTED,infer:e.newConfig.startQueryIncludeInferred,sameAs:e.newConfig.startQuerySameAs},j=(t,r,n)=>{e.queryIsRunning=t},Q=()=>{window.removeEventListener("beforeunload",U),H.forEach(e=>e())},U=t=>{e.queryEditorIsDirty&&(t.returnValue=!0)},H=[];H.push(e.$on("autocompleteStatus",N)),H.push(e.$on("$locationChangeStart",(t,n)=>{if(e.queryEditorIsDirty){t.preventDefault();((e,t,r,n)=>{S.openSimpleModal({title:e,message:t,warning:!0}).result.then((function(){angular.isFunction(r)&&r()}),(function(){angular.isFunction(n)&&n()}))})(x.instant("common.confirm"),x.instant("visual.config.warning.unsaved.changes"),()=>{Q();const e=r.absUrl().length-r.url().length,t=n.substring(e);r.path(t)})}else Q()})),H.push(e.$on("$destroy",Q)),H.push(e.$watch(e.getActiveRepositoryObject,()=>{(e.newConfig.isStartMode(o.StartMode.QUERY)||e.page>1)&&(e.viewMode="yasr",L().then(E))})),window.addEventListener("beforeunload",U),e.$watch("newConfig.startMode",e=>{e===o.StartMode.QUERY&&T()}),e.$watch("page",t=>{(e.newConfig.isStartMode(o.StartMode.QUERY)||t>1)&&(e.showEditor(),T())}),l.getPrefixes(b).then(t=>(t=>{const r=e.$watch((function(){return e.getActiveRepositoryObject()}),(function(i){if(i){e.canEditActiveRepo=e.canWriteActiveRepo();const i=angular.extend({},G,{prefixes:t,yasqeMode:e.canWriteActiveRepo()?n.YasqeMode.WRITE:n.YasqeMode.PROTECTED});e.yasguiConfig=i,r()}}))})(t)).finally(()=>j(!1)),C?(e.isUpdate=!0,p.getConfig(C).then((function(t){e.newConfig=t,M()})).catch(e=>{c.error(getError(e),x.instant("created.connector",{name:C}))})):(e.isUpdate=!1,M()),e.getActiveRepository()&&(j(!0,x.instant("common.refreshing.namespaces"),x.instant("common.extra.message")),l.getPrefixes(l.getActiveRepository()).then(t=>{e.namespaces=t}).catch((function(t){e.repositoryError=getError(t)})).finally((function(){j(!1)})))}angular.module("graphdb.framework.graphexplore.controllers.graphviz.config",["graphdb.framework.utils.notifications","graphdb.framework.utils.localstorageadapter"]).controller("GraphConfigCtrl",c),c.$inject=["$scope","$timeout","$location","toastr","$repositories","SparqlRestService","$filter","GraphConfigRestService","AutocompleteRestService","$routeParams","Notifications","RDF4JRepositoriesRestService","LocalStorageAdapter","LSKeys","$translate","ModalService"]},174:function(e,t,r){"use strict";r.r(t);var n=r(440),i=r(478),a=r(438),o=r(439);r(10);function s(e,t,r,s,c,l,d,u,p,f,h,g,m){return{restrict:"AE",template:'<div id="classChart"></div>',scope:{classHierarchyData:"=",flattenedClassNames:"=",selectedClass:"=",currentSliderValue:"=",showClassInfoPanel:"=",showExternalElements:"=",hidePrefixes:"=",currentBrowserLimit:"="},link:function(d,y,v){!function(d,y){var v,x,S=d3.pack().size([780,780]),w=d3.scaleLinear().domain([0,4]).range(["hsl(19, 70%, 90%)","hsl(19, 70%, 50%)"]).interpolate(d3.interpolateHcl),C=d3.select("#classChart").insert("svg:svg","h2").attr("viewBox","0 0 800 800").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null);function b(){return C.append("svg:g").attrs({id:"main-group",transform:"translate(400,400)"})}function I(){return"true"===h.get(g.CLASS_HIERARCHY_HIDE_PREFIXES)}function R(){var e=o.a.Export.getCSSRules("css/rdf-class-hierarchy-labels.css?v=2.7.0-TR6");d3.selectAll("#main-group").append("defs"),$("defs").append('<style type="text/css"><![CDATA['+e+"]]></style>"),d3.selectAll("g").style("opacity",1);var t=o.a.Export.generateBase64ImageSource("#classChart svg");d3.select(this).attrs({href:t,download:"class-hierarchy-"+l.getActiveRepository()+".svg"})}d.hidePrefixes=I();var k,E,L=b();if(!d.classHierarchyData.classCount&&l.getActiveRepository()&&!l.isSystemRepository()){e.loader=!0,e.hierarchyError=!1;const t=h.get("classHierarchy-selectedGraph-"+l.getActiveRepository());r.getClassHierarchyData(null!==t?t.contextID.uri:"").success((function(t,r,n){e.loader=!1,207===r&&u.warning(m.instant("graphexplore.update.diagram"),m.instant("graphexplore.repository.data.changed")),d.classHierarchyData=t,d3.select("#download-svg").on("mouseover",R)})).error((function(t){e.loader=!1,e.hierarchyError=getError(t),u.error(m.instant("graphexplore.error.request.failed",{name:f,error:getError(t)}))}))}var A,T,P,N,D,O,M,G={};function j(r,o,l,u){T&&T(),P&&P(),d3.selectAll("#main-group").remove(),L=b(),i.a.SingleChild.addPlaceholders(r,!0),(x=d3.hierarchy(r)).sum((function(e){return e.size})),A=l||x,S(x);var h,g=x.descendants();A.isInFocusTransitive=!0,i.a.SingleChild.removePlaceholders(g),i.a.SingleChild.centerNodes(g),i.a.SingleChild.makePositionsRelativeToZero(g),v||(v=Object(n.a)().attr("class","d3-tip").customPosition((function(e,t){return{top:"inherit",bottom:s.innerHeight-t.clientY+"px",right:s.innerWidth-t.clientX+"px"}})).html((function(e){return e.data.name})),C.call(v));var m=L.selectAll("circle").data(g).enter().append("g");o.doFade&&m.each((function(e){a.a.Transition.fadeIn(d3.select(this),550)}));var y,I=[],R=m.append("circle").attr("class",(function(e){return e.data.role})).attr("guide-selector",(function(e){return"class-"+e.data.name})).style("fill",(function(e){return e.children?w(e.depth):"#E0D0D0"})).each((function(e){if(e.circle=d3.select(this),e.data.name!==f){var t=e.data.name;I.push({name:t}),G[[t]]=e,e.circle.classed("rdf-class",!0),e.circle.on("mouseover",(function(t){o.noPrefixes||e.textHidden?v.show(e,t):v.hide(e)})),e.circle.on("mouseout",v.hide)}})).on("gdb-focus",(e,t)=>E(t)).on("gdb-zoom",(e,t)=>z(t));function N(e){d3.selectAll(".selected").classed("selected",e.selected=!1),e.circle.classed("selected",e.selected=!0),y=e}function D(){d.showClassInfoPanel=!1}I&&(I=_.uniqBy(I,"name"),d.flattenedClassNames=I);var O=a.a.Click.delayDblClick();d3.selectAll(".parent, .topLevelParent, .child, .root").call(O),E=function(e){z(e),e.data.name===f?(D(),d3.selectAll(".selected").classed("selected",!1)):(N(e),d.selectedClass=y,d.showClassInfoPanel=!0,d.$on("sidePanelClosed",(function(t){d3.selectAll(".selected").classed("selected",e.selected=!1)})))},O.on("click",(function(e,t){t.data.id&&s.history.pushState({id:t.data.id},"classHierarchyPage"+t.data.id,"hierarchy#"+t.data.id),v.hide(),E(t)})),O.on("dblclick",(function(t,n){n!==r&&(v.hide(),N(n),e.$broadcast("goToDomainRangeGraphView",y,A),t.stopPropagation())}));var $=0;C.on("wheel",(function(e){v.hide(),e.preventDefault(),e.stopPropagation();var t=(new Date).getTime();if(t-$>100){$=t;var r="";e.deltaY<=-1?r="in":e.deltaY>=1&&(r="out");var n=e.target.__data__;if(n||(n=A),"in"===r){if(n!==A){for(;n.parent&&!n.parent.isInFocusTransitive;)n=n.parent;n.depth<A.depth&&(n=A)}if(n===A&&n.children){for(var i=n.children[0],a=1;a<n.children.length;a++)n.children[a].sortingRank>i.sortingRank&&(i=n.children[a]);i.children&&(n=i)}else n.children||(n=n.parent);z(n,!0)}else"out"===r&&(n=A.parent)&&z(n,!0);A.data.name===f&&s.history.replaceState({id:1},"classHierarchyPage1","hierarchy#1"),Q()}}));var M=L.selectAll("text").data(g).enter().append("text").attr("class",(function(e){return e.children&&e.children.length?"label":"label child-label"})).each((function(e){e.textSel=d3.select(this)}));o.noPrefixes?(M.each((function(e){var t=e.data.name.indexOf(":");e.data.name.indexOf("http://")>-1?e.noPrefixName=e.data.name:t>-1&&(e.noPrefixName=e.data.name.substring(t+1))})),M.style("font-size",(function(e){return a.a.Text.calcFontSize(e.noPrefixName,e.r)})).text((function(e){return a.a.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r/3)}))):M.style("font-size",(function(e){return a.a.Text.calcFontSize(e.data.name,e.r)})).text((function(e){return a.a.Text.getTextWithElipsisIfNeeded(e.data.name,e.r/3)})),M.style("display",(function(e){return e.parent&&e.parent.data===A.data?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,null):(e.textHidden=!0,"none")})),o.doFade&&!o.keepPrevState&&M.each((function(e){a.a.Transition.fadeIn(d3.select(this),550)})),k=function(){function e(e){e&&R.each((function(t){+e===t.data.id&&E(t)}))}var r=t.hash();s.onpopstate=function(t){t.state&&e(t.state.id)},e(r)};var j=L.selectAll("circle, text");function U(e,t){var r=800/e[2];h=e,j.attr("transform",(function(t){return"translate("+(t.x-e[0])*r+","+(t.y-e[1])*r+")"})),R.attr("r",(function(e){return e.r*r})),t&&M.each((function(e){e.data.fullName!==A.data.topLevelParentUri&&A.data.topLevelParentUri!==f||(e.textSel.style("display","none"),A.children&&A.children.length?_.each(A.children,(function(e){e.textSel.style("display","inline")})):A.textSel.style("display","inline"),A.parent&&_.each(A.parent.children,(function(e){e.data.name!==A.data.name&&e.textSel.style("display","inline")})))})),M.style("font-size",(function(e){return o.noPrefixes?a.a.Text.calcFontSize(e.noPrefixName,e.r*r):a.a.Text.calcFontSize(e.data.name,e.r*r)})).text((function(e){return o.noPrefixes?a.a.Text.getTextWithElipsisIfNeeded(e.noPrefixName,e.r*r/3):a.a.Text.getTextWithElipsisIfNeeded(e.data.name,e.r*r/3)}))}function H(e){var t=2*e+20;return 2*e/t<.3&&(t=2*e+2),t}function F(e){!e.isInFocusTransitive&&e.parent&&e.parent.isInFocusTransitive?(e.textHidden=this.textContent.indexOf("...")+3===this.textContent.length,this.style.display=""):(e.textHidden=!0,this.style.display="none")}function z(e,t){if(c((function(){d.showExternalElements=e.data.name===f})),A!==e&&(e.data.id&&s.history.replaceState({id:e.data.id},"classHierarchyPage"+e.data.id,"hierarchy#"+e.data.id),e.children||(e=e.parent,A!==e))){if(t&&(D(),d3.selectAll(".selected").classed("selected",!1)),A.parent)for(var r=A;r;)r.isInFocusTransitive=!1,r=r.parent;for(r=e;r;)r.isInFocusTransitive=!!r.children,r=r.parent;if(2*(A=e).r/(2*A.r+20)<.3||d.currentSliderValue>d.currentBrowserLimit)U([A.x,A.y,H(A.r)]),M.each((function(e){F.call(this,e)}));else d3.transition().duration(p).tween("zoom",(function(e){var t=d3.interpolateZoom(h,[A.x,A.y,H(A.r)]);return function(e){U(t(e))}})).selectAll("text").each(F)}}U([A.x,A.y,H(A.r)],u),T=d.$on("rootFocus",(function(){s.history.pushState({id:1},"classHierarchyPage1","hierarchy#1"),E(x)})),P=d.$on("classSearch",(function(e){E(e)}))}function Q(){const t=d.classHierarchyData.classCount;let r=h.get(g.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);(!r||r>t)&&(r=t,h.set(g.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,r)),e.$broadcast("classCount",t,r)}window.addEventListener("resize",Q),window.addEventListener("beforeunload",(function e(){window.removeEventListener("resize",Q),window.removeEventListener("beforeunload",e)})),d.$watch("classHierarchyData",(function(){N&&N(),D&&D(),O&&O(),M&&M();var e=I();if(d.classHierarchyData.classCount){Q();var t=_.cloneDeep(d.classHierarchyData);var r,n,i=function(e){return e.descendants().sort((function(e,t){return e.data.sortingRank>t.data.sortingRank?-1:e.data.sortingRank<t.data.sortingRank||e.data.depth>t.data.depth?1:e.data.depth<t.data.depth?-1:0}))}(d3.hierarchy(t));function a(e,t){const i={keepPrevState:!0,noPrefixes:I()};n=i.noPrefixes,j(r||e,i,A,!0),c((function(){h.set(g.CLASS_HIERARCHY_SWITCH_PREFIXES,t),k()}),70)}function o(e,i,o){if(!e)return;h.set(g.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE,e),r={name:f,children:[]};const s=new Set;for(let t=1;t<=e;t++)s.add(i[t].data.id),i[t].parent===i[0]&&r.children.push(i[t].data);if(function e(t){if(!t.children)return;const r=[];for(const e of t.children)s.has(e.id)&&r.push($.extend({},e));t.children=r;for(const r of t.children)e(r)}(r),o){n=angular.isUndefined(n)?I():n;j(r,{noPrefixes:n})}else a(t)}var s,l=h.get(g.CLASS_HIERARCHY_CURRENT_SLIDER_VALUE);if(l)o(l,i);else{var u={doFade:!0,keepPrevState:!0,noPrefixes:I()};j(t,u),k()}N=d.$watch("hidePrefixes",(function(r){angular.isUndefined(r)||e?e=void 0:c((function(){!function(e){angular.isUndefined(e)||h.set(g.CLASS_HIERARCHY_HIDE_PREFIXES,e)}(r),a(t,!0)}),50)}),!0),D=d.$watch("currentSliderValue",(function(e){o(e,i,!0)}),!0),M=d.$on("onEnterKeypressSearchAction",(function(e){s&&E(s)})),O=d.$on("searchedClass",(function(e,t){(s=G[t.name])&&E(s)}))}}),!0)}(d)}}}angular.module("graphdb.framework.graphexplore.directives.class",["graphdb.framework.graphexplore.controllers.class","graphdb.framework.utils.localstorageadapter"]).constant("ZOOM_DURATION",500).constant("ROOT_OBJ_NAME","RDF Class Hierarchy").directive("rdfClassHierarchy",s),s.$inject=["$rootScope","$location","GraphDataRestService","$window","$timeout","$repositories","$licenseService","toastr","ZOOM_DURATION","ROOT_OBJ_NAME","LocalStorageAdapter","LSKeys","$translate"]},175:function(e,t,r){"use strict";r.r(t);var n=r(439),i=r(438);r(10);function a(e,t,r,a,o,s,c,l,d,u,p,f,h){return{restrict:"AE",template:'<div id="domain-range"></div>',scope:{showPredicatesInfoPanel:"=",selectedPredicate:"=",collapseEdges:"="},link:function(u){const p=l((function(){!function(u){var p=d3.select("#domain-range").append("svg").attr("viewBox","0 0 1200 600").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null),g=d3.forceSimulation(),m=d3.drag().subject((function(e){return e})).on("start",(function(e,t){g.stop(),t.fx=e.x,t.fy=e.y,d3.select(this).classed("selected",!0)})).on("end",(function(e,t){t.fx=null,t.fy=null,d3.select(this).classed("selected",!1),w?(g.alpha(.2).restart(),w=!1):g.restart()})).on("drag",(function(e,t){w=!0,g.alphaTarget(0).restart(),t.fx=e.x,t.fy=e.y})),y=p.append("defs");y.append("marker").attrs({id:"arrow",viewBox:"0 -5 10 10",refX:10,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),y.append("marker").attrs({id:"collapsed-arrow",viewBox:"0 -5 10 10",refX:9,refY:0,markerUnits:"strokeWidth",markerWidth:4,markerHeight:4,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),y.append("marker").attrs({id:"arrow-loop",viewBox:"0 -5 10 10",refX:7,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:f}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),d3.select("#download-svg").on("mouseover",(function(){var e=n.a.Export.getCSSRules("css/domain-range-graph.css?v=2.7.0-TR6");$("defs").append('<style type="text/css"><![CDATA['+e+"]]></style>");var t=n.a.Export.generateBase64ImageSource("#domain-range svg");d3.select(this).attrs({href:t,download:"domain-range-graph-"+r.getActiveRepository()+".svg"})})),function(){var e=d3.select(".legend-container").append("svg").attr("viewBox","0 0 "+1200/7+" "+1200/7*1.2).attr("preserveAspectRatio","xMidYMid meet");e.append("rect").attrs({width:1200/7,height:1200/7*1.2}).style("fill","rgba(235, 235, 235, 0.9)");var t=16+1200/18/2.5,r=t+1200/90;e.append("circle").attrs({class:"legend-class-node",cx:(16+t)/2,cy:30,r:1200/18/4.5}),e.append("text").attrs({x:r,y:30+1200/370}).style("font-size",1200/90/1.1+"px").text("main class node"),e.append("circle").attrs({class:"legend-object-node",cx:(16+t)/2,cy:70,r:1200/110/1.25}),e.append("text").attrs({x:r,y:30+1200/370+40}).style("font-size",1200/90/1.1+"px").text("class node"),e.append("circle").attrs({class:"legend-datatype-node",cx:(16+t)/2,cy:70+1200/45,r:1200/110/2}),e.append("text").attrs({x:r,y:99.90990990990991}).style("font-size",1200/90/1.1+"px").text("datatype node"),e.append("line").attrs({class:"property-arrow",x1:16,y1:123.33333333333334,x2:t,y2:123.33333333333334}).style("stroke-width",1.2).attr("marker-end","url("+o.absUrl()+"#arrow)"),e.append("text").attrs({x:r,y:126.57657657657658}).style("font-size",1200/90/1.1+"px").text("explicit property"),e.append("line").attrs({class:"implicit-property-arrow",x1:16,y1:150,x2:t,y2:150}).style("stroke-width",1.2).attr("marker-end","url("+o.absUrl()+"#arrow)"),e.append("text").attrs({x:r,y:150+1200/370}).style("font-size",1200/90/1.1+"px").text("implicit property"),e.append("line").attrs({class:"collapsed-property-arrow",x1:16,y1:150+1200/45,x2:t,y2:150+1200/45}).style("stroke-width",2).attr("marker-end","url("+o.absUrl()+"#collapsed-arrow)"),e.append("text").attrs({x:r,y:179.9099099099099}).style("font-size",1200/90/1.1+"px").text("collapsed property")}();var v=o.search().uri,x=o.search().name;const S=o.search().collapsed;(function(e,t){a.getDomainRangeData(e,t).success((function(e,t,r){u.domainRangeGraphData=e})).error((function(e){d.error("Request for "+x+" failed!")}))})(v,S),$(window).on("popstate",(function(){s.set(c.DOMAIN_RANGE_WENT_BACK,!0)})),t.onpopstate=function(t){t.state&&e.$broadcast("changeCollapsedEdgesState",t.state.collapsed)},u.$watch("collapseEdges",(function(){angular.isUndefined(u.collapseEdges)||(s.set(c.DOMAIN_RANGE_COLLAPSE_EDGES,u.collapseEdges),"true"!==s.get(c.DOMAIN_RANGE_WENT_BACK)&&function(t){e.$broadcast("switchEdgeMode",{uri:v,name:x,collapsed:t})}(u.collapseEdges),s.remove(c.DOMAIN_RANGE_WENT_BACK))})),u.$watch("domainRangeGraphData",(function(){if(u.domainRangeGraphData){var r=_.cloneDeep(u.domainRangeGraphData);const N=r.nodes,D=r.links;g.nodes(N).force("x",d3.forceX(600)).force("y",d3.forceY(300)).force("charge",d3.forceManyBody().strength(-800)).force("link",d3.forceLink(D).distance(1200/3.5));var n=p.selectAll(".link").data(D).enter().append("g");function a(e){e.style("stroke",f),e.style("stroke-width",2),e.attr("marker-end","url("+o.absUrl()+"#collapsed-arrow)")}var s,c,d=0;n.each((function(e){if(e.objectPropNodeClassUri!==v)s=n.append("line").attrs({class:"link","marker-end":"url("+o.absUrl()+"#arrow)"}).style("stroke-width",1.2).each((function(e){switch(e.propertyType){case"objectLeft":e.targetRadius=1200/18;break;case"objectRight":e.targetRadius=1200/110;break;case"datatype":e.targetRadius=1200/110/2;break;default:e.targetRadius=0}var t=d3.select(this);e.targetNodeEdgeCount>1?a(t):e.implicit&&t.style("stroke-dasharray","3, 3")}));else{if(angular.isUndefined(c)){c=d3.select(this).append("path").attrs({d:"M 0 0 A "+1200/18/2+" "+1200/18/2+" 0 1 1 0 "+1200/18/2,class:"loop-link",fill:"none","marker-end":"url("+o.absUrl()+"#arrow-loop)"}).style("stroke-width",1.2)}(d+=e.targetNodeEdgeCount)>1&&a(d3.select(".loop-link"))}}));var y={};function S(){$.isEmptyObject(y)||(y.text.style("fill","black"),y.background.style("fill","#f0f0f0"))}function w(e,t){S(),y.text=d3.select(this),y.background=d3.select(this.previousSibling),y.text.style("fill","white"),y.background.style("fill",f),l((function(){u.showPredicatesInfoPanel=!0,u.selectedPredicate=t})),e.stopPropagation()}$("document").ready((function(){$("#domain-range").bind("click",S)}));var C=n.append("text").attr("class",(function(e){return e.objectPropNodeClassUri===v?"loop-link-property-name":"property-name"})).attr("dx",(function(e){return 1200/18/2*("objectLeft"===e.propertyType?1:-1)})).style("text-anchor",(function(e){return"objectLeft"===e.propertyType?"end":"start"})).style("font-size",1200/90).text((function(e){return e.targetNodeEdgeCount>1?e.targetNodeEdgeCount+" predicates":e.name}));C.each((function(e){var r=d3.select(this);/\d\spredicates/.test(r.text())?r.style("font-weight","bold").on("click",w):r.on("click",(function(e,r){t.open("resource?uri="+encodeURIComponent(r.uri),"_blank")}))}));var b=n.append("rect").attr("class",(function(e){return e.objectPropNodeClassUri!==v?"link-background":"loop-link-background"})).attr("width",(function(e){return e.calculatedWidth=this.previousSibling.getBBox().width,e.calculatedWidth+4})).attr("height",(function(e){return e.calculatedHeight=this.previousSibling.getBBox().height,e.calculatedHeight+2})).attr("transform",(function(e){var t=2-1200/18/2*("objectLeft"===e.propertyType?1:-1);return"objectLeft"===e.propertyType&&(t+=e.calculatedWidth),"translate(-"+t+",-"+(2+e.calculatedHeight/2)+")"})).on("click",(function(e){e.stopPropagation()})),I=p.selectAll(".node").data(N).enter().append("g"),R=I.filter((function(e){return e.objectPropClassUri!==v})).append("circle").each((function(e){var t=d3.select(this);"main"===e.classPosition?t.attrs({class:"class-node",r:1200/18}).attr("marker-end","url("+o.absUrl()+"#loop-link)"):null===e.objectPropClassName?t.attrs({class:"datatype-node",r:1200/110/2}):t.attrs({class:"object-prop-node",r:1200/110})})).call(m);d3.selectAll(".object-prop-node").on("dblclick",(function(t,r,n){u.$apply((function(){e.$broadcast("reloadDomainRangeGraphView",r,n)}))})),I.filter((function(e){return e.objectPropClassName&&e.objectPropClassUri!==v})).append("text").attr("class",(function(e){return e.classPosition+"-class-label"})).style("font-size",1200/90).text((function(e){return e.objectPropClassName})).on("click",(function(e,r){t.open("resource?uri="+encodeURIComponent(r.objectPropClassUri),"_blank")}));var k=I.select("text");p.select(".class-node").each((function(){d3.select(this.parentNode).append("text").attr("class","rdf-class-label").style("font-size",(function(e){return i.a.Text.calcFontSize(x,1200/18)})).text(x).on("click",(function(){t.open("resource?uri="+encodeURIComponent(v),"_blank")}))}));var E=p.select(".class-node + text"),L=d3.select(".class-node"),A=d3.selectAll(".loop-link-background"),T=d3.selectAll(".loop-link-property-name");if(C=d3.selectAll(".property-name"),!angular.isUndefined(c)){var P=[];A.each((function(e,t){d3.select(this);P.push({idx:t,width:e.calculatedWidth,height:e.calculatedHeight})}))}g.on("tick",(function(e){var t=8*g.alpha();function r(e){var t=e.x+1200/18*2,r=e.y-1200/18/1.9;var n=[];A.each((function(i,a){n.push(i),a<h?function(n,i){var a=$.grep(P,(function(e){return e.idx==i}));i>0&&(t+=parseFloat(i*(a[0].height/(i/1.4)))),n.attrs({transform:"rotate(270, "+e.x+","+e.y+") translate("+t+","+r+")",width:a[0].height,height:a[0].width})}(d3.select(this),a):d3.select(this).remove()})),function(e){var t;d3.select(".view-more-preds-label").style("font-weight","bold").each((function(r){r.target.allEdges=e,t=this.getComputedTextLength()})).on("click",w),d3.select(".view-more-preds-rect").attr("height",t+4)}(n)}s.filter((function(e){return e.objectPropNodeClassUri!==v})).attr("x1",(function(e){return e.source.x})).attr("y1",(function(e){return e.source.y})).attr("x2",(function(e){return e.targetX})).attr("y2",(function(e){return e.targetY})).each((function(e){!function(e){"objectLeft"===e.propertyType?(e.source.x-=8*t,e.source.y-=t/9):(e.target.x+=8*t,e.target.y-=t/9)}(e);var r=Math.atan2(e.target.y-e.source.y,e.target.x-e.source.x);e.targetX=e.target.x-Math.cos(r)*e.targetRadius,e.targetY=e.target.y-Math.sin(r)*e.targetRadius})),R.each((function(e){"main"!==e.classPosition||angular.isUndefined(c)||(!function(e){var t=e.x+64,r=e.y-1200/18/5.7-5;c.attr("transform","rotate(270, "+e.x+","+e.y+") translate("+t+","+r+")")}(e),function(e){function t(t,r){var n=$.grep(P,(function(e){return e.idx==r})),i=0;r>0&&(i=parseFloat(2*r*(n[0].height/1.4)));var a=e.x,o=e.y-1200/18*2.1-i;t.attrs({x:a,y:o}).moveToFront()}T.each((function(e,r){var n=d3.select(this),i=T.size()-h;i<0?t(n,r):(0==r&&!u.collapseEdges&&i>1&&(!function(e,t,r){e.classed("view-more-preds-label",!0).text(r+" predicates more ..."),null!==this.nextSibling&&t.classed("view-more-preds-rect",!0)}(n,d3.select(this.nextSibling),i),t(n,r)),r<h?t(n,r):n.remove())}))}(e),r(e)),e.objectPropClassUri!==v&&d3.select(this).attr("cx",(function(e){return"main"===e.classPosition?function(e){!window.ActiveXObject&&"ActiveXObject"in window&&(Math.log10=function(e){return Math.log(e)/Math.LN10});var t=L.attr("cx")-600,r=.5*Math.log10(Math.abs(t));return e.x+=t>0?-r:r,e.x}(e):e.x})).attr("cy",(function(e){return e.y}))})),E.attr("x",(function(e){return e.x})).attr("y",(function(e){return e.y})).moveToFront(),b.filter((function(e){return e.objectPropNodeClassUri!==v})).attr("x",(function(e){return e.target.x>e.source.x?e.source.x+(e.target.x-e.source.x)/2:e.target.x+(e.source.x-e.target.x)/2})).attr("y",(function(e){return e.target.y>e.source.y?e.source.y+(e.target.y-e.source.y)/2:e.target.y+(e.source.y-e.target.y)/2})).moveToFront(),C.attr("x",(function(e){return e.target.x>e.source.x?e.source.x+(e.target.x-e.source.x)/2:e.target.x+(e.source.x-e.target.x)/2})).attr("y",(function(e){return e.target.y>e.source.y?e.source.y+(e.target.y-e.source.y)/2:e.target.y+(e.source.y-e.target.y)/2})).moveToFront(),k.attr("x",(function(e){return"right"===e.classPosition?e.x+1200/110*1.2:e.x-1200/110*1.2})).attr("y",(function(e){return e.y})).moveToFront()}))}}));let w=!1}(u)}),50);u.$on("$destroy",(function(){l.cancel(p)}))}}}angular.module("graphdb.framework.graphexplore.directives.domainrange",["graphdb.framework.graphexplore.controllers.domainrange","graphdb.framework.utils.localstorageadapter"]).constant("ONTO_RED","var(--primary-color)").constant("ONTO_GREEN","var(--tertiary-color)").constant("ONTO_BLUE","var(--secondary-color)").constant("NON_COLLAPSED_REFLEXIVE_LINK_LIMIT",6).directive("domainRangeGraph",a),a.$inject=["$rootScope","$window","$repositories","GraphDataRestService","$location","LocalStorageAdapter","LSKeys","$timeout","toastr","ONTO_RED","ONTO_GREEN","ONTO_BLUE","NON_COLLAPSED_REFLEXIVE_LINK_LIMIT"]},176:function(e,t){function r(e,t){return{restrict:"A",scope:{},templateUrl:"js/angular/graphexplore/templates/systemRepoWarningTemplate.html",link:function(r){r.isSystemRepository=function(){return"SYSTEM"===e.getActiveRepository()},r.hasPermission=function(){return t.hasPermission()}}}}angular.module("graphdb.framework.graphexplore.directives.sysrepo",["graphdb.framework.graphexplore.controllers.class"]).directive("systemRepoWarning",r),r.$inject=["$repositories","$rootScope"]},177:function(e,t){function r(e){return{restrict:"AE",scope:{rdfsLabel:"=",rdfsComment:"=",expanded:"=",alwaysExpanded:"="},templateUrl:"js/angular/graphexplore/templates/rdfsCommentLabelTemplate.html",link:function(t,r){t.stringLimit=e,t.scrollToTop=function(){r[0].getElementsByClassName("rdfs-comment")[0].scrollTop=0},t.checkCommentLength=function(){return r[0].getElementsByClassName("rdfs-comment-text")[0].innerText.length<e},t.equalHeights=function(){const e=r[0].getElementsByClassName("rdfs-comment-text")[0].innerHeight;e<250&&t.expanded&&(r[0].getElementsByClassName("rdfs-comment")[0].innerHeight=e)},t.toggleFullComment=function(){t.expanded=!t.expanded},t.$watch("expanded || alwaysExpanded",(function(r){t.stringLimit=r?t.rdfsComment.length:e}))}}}angular.module("graphdb.framework.graphexplore.directives.rdfsdetails",[]).directive("rdfsCommentLabel",r).constant("SHORT_COMMENT_LENGTH",100),r.$inject=["SHORT_COMMENT_LENGTH"]},178:function(e,t,r){"use strict";r.r(t);var n=r(439);r(96);function i(e,t){return{restrict:"A",template:'<div id="dependencies-chord"></div>',scope:{dependenciesData:"="},link:function(r){r.$watch("dependenciesData",(function(){if(r.dependenciesData){const i=r.dependenciesData;!function(i,a){if(function(){let e=!0;for(const t of i){if(t.some(e=>0!==e)){e=!1;break}}return e}())return;const o=d3.scaleOrdinal(d3.schemeCategory10),s=d3.select("body").append("div").attr("class","tooltip").style("opacity",0);d3.select("body").on("click",(function(){s.style("opacity",0)}));const c=Math.min(800,800)/2.8,l=c-24,d=d3.arc().innerRadius(l).outerRadius(c),u=d3.chord().padAngle(.04).sortSubgroups(d3.descending).sortChords(d3.ascending),p=d3.ribbon().radius(l),f=d3.select("#dependencies-chord").append("svg").attr("viewBox","0 0 800 800").attr("preserveAspectRatio","xMidYMid meet").style("font","10px sans-serif").append("g").attr("id","circle").attr("transform","translate(400,400)");f.append("circle").attr("r",c).style("fill","none");const h=u(i),g=f.selectAll(".group").data(h.groups).enter().append("g").attr("class","group").on("mouseover",(function(){const e=g.nodes().indexOf(this);m.classed("fade",(function(t){return t.source.index!==e&&t.target.index!==e}))}));g.append("title").text((function(e,t){return a[t]})),g.append("path").attr("id",(function(e,t){return"group"+t})).attr("d",d).style("fill",(function(e,t){return o(t)})),g.append("text").each((function(e){e.angle=(e.startAngle+e.endAngle)/2})).attr("dy",".35em").attr("transform",(function(e){return"rotate("+(180*e.angle/Math.PI-90)+")translate("+(l+26)+")"+(e.angle>Math.PI?"rotate(180)":"")})).style("text-anchor",(function(e){return e.angle>Math.PI?"end":null})).text((function(e){return a[e.index]}));const m=f.selectAll(".chord").data(h).enter().append("path").attr("class","chord").style("fill",(function(e){return o(e.target.index)})).style("fill-opacity",".67").style("stroke","#000").style("stroke-width",".25px").style("cursor","pointer").attr("d",p);m.on("mouseover",(function(){d3.select(this).style("fill-opacity","1")})),m.on("mouseout",(function(){d3.select(this).style("fill-opacity",".67")})),m.on("click",(function(e,n){const i=a[n.source.index],o=a[n.target.index],c=e.pageX,l=e.pageY;t.getPredicates(i,o,r.selectedGraph&&r.selectedGraph.contextID.uri).success((function(e){let t="<div class='dependencies-tooltip'>"+("<div class='row'>"+i+" <i class='fa fa-exchange'></i> "+o+"</div>")+_.map(e.slice(0,10),(function(e){const t=" <i class='fa fa-long-arrow-"+("out"===e.direction?"right":"left")+"'></i>";return"<div class='row'>"+e.predicate+" : "+e.weight+t+" </div>"})).join("");e.length>10?t=t+"<div class='pull-right'>And "+(e.length-10).toString()+" more...</div></div>":t+="</div>",s.html(t).style("left",c+"px").style("top",l+"px")})),s.transition().duration(200).style("opacity",1)})),d3.select("#circle").on("mouseleave",(function(){f.selectAll(".chord").classed("fade",!1)})),d3.select("#download-svg").on("mouseover",(function(){const t=n.a.Export.generateBase64ImageSource(".dependencies-chord svg");d3.select(this).attrs({href:t,download:"dependencies-"+e.getActiveRepository()+".svg"})}))}(i.matrix,i.nodes,i.direction)}}))}}}angular.module("graphdb.framework.graphexplore.directives.dependencies",["graphdb.framework.graphexplore.controllers.dependencies","graphdb.framework.rest.graphexplore.data.service"]).directive("dependenciesChord",i),i.$inject=["$repositories","GraphDataRestService"]},179:function(e,t){function r(){return{restrict:"AE",scope:{filterQueryObj:"=",filterFunction:"&",listItemsObj:"=",listItemsNotFiltered:"=",searchPlaceholder:"@"},templateUrl:"js/angular/graphexplore/templates/listItemsSearchFilterTemplate.html",link:function(e){e.filterFunction=e.filterFunction(),e.$watch("filterQueryObj.query",(function(){var t,r,n,i;e.listItemsObj.items=(t=e.filterQueryObj.query,r=e.listItemsObj.items,n=e.listItemsNotFiltered,i=e.filterFunction,t.length>0?_.filter(n,i):r.length!==n.length?n:r)}))}}}angular.module("graphdb.framework.graphexplore.directives.searchfilter",[]).directive("listItemsSearchFilter",r),r.$inject=[]},180:function(e,t){function r(e,t){return{restrict:"AE",scope:{searchData:"=",searchFields:"@",titleField:"@",searchPlaceholder:"@",initialValue:"=",searchedObjCallback:"&"},templateUrl:"js/angular/graphexplore/templates/searchIconInputTemplate.html",link:function(r,n){r.searchedObjCallback=r.searchedObjCallback(),r.performSearchActionOnEnter=function(){e.$broadcast("onEnterKeypressSearchAction")},r.showInput=function(){$("#selectGraphDropdown").hide(),n.find("#search_input #search_input_value")[0].value="",n.find(".search-icon").addClass("animated bounceOut").css("z-index","-1"),n.find("#search_input .angucomplete-holder").css("display","block"),t((function(){n.find("#search_input .angucomplete-holder").css("width","250px").css("left","-215px"),t((function(){n.find(".close-icon").css("display","block").addClass("animated bounceIn").css("z-index","3"),n.find("#search_input #search_input_value").focus()}),200)}),1)},r.hideInput=function(){n.find("#search_input #search_input_value")[0].value="",n.find("#search_input .angucomplete-holder").css("width","0px").css("left","35px"),t((function(){n.find("#search_input .angucomplete-holder").css("display","none"),$("#selectGraphDropdown").show()}),250),n.find(".close-icon").addClass("animated bounceOut").removeClass("bounceOut").css("z-index","-1").css("display","none").click((function(){$(".tooltip").hide()})),t((function(){n.find(".search-icon").css("display","inline-block").removeClass("bounceOut").addClass("bounceIn").css("z-index","3")}),200)}}}}angular.module("graphdb.framework.graphexplore.directives.searchcontrols",[]).directive("searchIconInput",r),r.$inject=["$rootScope","$timeout"]},250:function(e,t,r){"use strict";r.r(t);r(7),r(30),r(24),r(25),r(683),r(684),r(428),r(440),r(224),r(233),r(685),r(462),r(438),r(478),r(439),r(96),r(165),r(166),r(167),r(168),r(169),r(170),r(171),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179),r(180),r(86);angular.module("graphdb.framework.graphexplore",["graphdb.framework.core.controllers","graphdb.framework.core.directives","graphdb.framework.rest.graphexplore.data.service","graphdb.framework.graphexplore.services.uiscroll","graphdb.framework.graphexplore.services.rdfsdetails","graphdb.framework.rest.graphexplore.savedgraphs.service","graphdb.framework.rest.graphconfig.service","graphdb.framework.graphexplore.controllers.class","graphdb.framework.graphexplore.controllers.domainrange","graphdb.framework.graphexplore.controllers.dependencies","graphdb.framework.graphexplore.controllers.graphviz","graphdb.framework.graphexplore.controllers.graphviz.config","graphdb.framework.graphexplore.directives.sysrepo","graphdb.framework.graphexplore.directives.rdfsdetails","graphdb.framework.graphexplore.directives.searchfilter","graphdb.framework.graphexplore.directives.class","graphdb.framework.graphexplore.directives.domainrange","graphdb.framework.graphexplore.directives.dependencies","graphdb.framework.graphexplore.directives.searchcontrols","graphdb.framework.core.directives.yasgui-component"])},428:function(e,t,r){var n,i;n=[r(436)],void 0===(i=function(){function e(e,t){return e.each((function(){var e=t.apply(this,arguments),r=select(this);for(var n in e)r.attr(n,e[n])}))}function t(e,t){for(var r in t)e.attr(r,t[r]);return e}return"undefined"==typeof d3&&(d3=r(436)),d3.selection.prototype.attrs=function(r){return("function"==typeof r?e:t)(this,r)},d3.selection.prototype.moveToFront=function(){return this.each((function(){d3.select(this.parentNode.appendChild(this))}))},d3.selection.prototype.moveToBack=function(){return this.each((function(){const e=this.parentNode.firstChild;e&&this.parentNode.insertBefore(this,e)}))},d3}.apply(t,n))||(e.exports=i)},438:function(e,t,r){"use strict";r(428);var n=n||{};n.Text=function(){function e(e,t,r,n){r=r||10;var i=t/3;return"string"==typeof e?(i*=10/(e.substring(0,t/3).length+1.5),i+=1,e.match(/[\u0900-\u0DFF\u1100-\u11FF\u2E80-\u2EFF\u3000-\u9FFF]/)&&(i*=.6),i<r&&(i=r),Math.round(i)):(i<r&&(i=r),Math.round(i))}return{calcFontSizeRaw:e,calcFontSize:function(t,r,n,i){return e(t,r,n)+"px"},getTextWithElipsisIfNeeded:function(e,t){return"string"==typeof e&&e.length>t?e.substring(0,t-3)+"...":e}}}(),n.Transition={fadeIn:function(e,t){e.style("opacity",0).transition().duration(t).style("opacity",1)},fadeOut:function(e,t){e.style("opacity",1).transition().duration(t).style("opacity",0)}},n.Click=function(){const e=function(e,r){let n,i=1,a=arguments.length;for(;++i<a;)n=arguments[i],e[n]=t(e,r,r[n]);return e};function t(e,t,r){return function(){var n=r.apply(t,arguments);return n===t?e:n}}return{delayDblClick:function(){var t=d3.dispatch("click","dblclick");return e((function(e){var r,n=null;e.on("mousedown",(function(){r=d3.pointer(document.body),+new Date})),e.on("mouseup",(function(e,i){var a,o,s;(o=r,s=d3.pointer(document.body),Math.sqrt(Math.pow(o[0]-s[0],2),Math.pow(o[1]-s[1],2))>5)||(n?(window.clearTimeout(n),n=null,t.call("dblclick",e,e,i)):n=window.setTimeout((a=e,function(){t.call("click",a,a,i),n=null}),250))}))}),t,"on")}}}(),t.a=n},439:function(e,t,r){"use strict";r(428);var n=n||{};n.Export={getCSSRules:function(e){const t=$('link[href="'+e+'"]')[0].sheet.rules;let r="";return _.each(t,(function(e){r+=e.cssText})),r},generateBase64ImageSource:function(e){e||(e="svg");const t=d3.selectAll(e).attr("version","1.1").attr("xmlns","http://www.w3.org/2000/svg").node().parentNode.innerHTML;return"data:image/svg+xml;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(t)))}},t.a=n},440:function(e,t,r){"use strict";t.a=function(){var e=function(){return"n"},t=function(){return[0,0]},r=function(){return" "},n=u(),i=null,a=null,o=null,s=null;function c(e){var t;i="svg"===(t=(t=e).node()).tagName.toLowerCase()?t:t.ownerSVGElement,a=i.createSVGPoint(),document.body.appendChild(n)}c.show=function(){var n=Array.prototype.slice.call(arguments);n[n.length-1]instanceof SVGElement&&(o=n.pop());var i,a=r.apply(this,n),u=t.apply(this,n),f=e.apply(this,n),h=p(),g=d.length,m=document.documentElement.scrollTop||document.body.scrollTop,y=document.documentElement.scrollLeft||document.body.scrollLeft,v=s.apply(this,n);for(h.html(a).style("opacity",1).style("pointer-events","all");g--;)h.classed(d[g],!1);const x=n.filter(e=>e instanceof Event);return i=l.get(f).apply(this,x),v?Object.keys(v).forEach((function(e){h.style(e,v[e])})):h.classed(f,!0).style("top",i.top+u[0]+m+"px").style("left",i.left+u[1]+y+"px"),c},c.hide=function(){return p().style("opacity",0).style("pointer-events","none"),c},c.attr=function(e,t){if(arguments.length<2&&"string"==typeof e)return p().attr(e);var r=Array.prototype.slice.call(arguments);return d3.selection.prototype.attr.apply(p(),r),c},c.style=function(e,t){if(arguments.length<2&&"string"==typeof e)return p().style(e);var r=Array.prototype.slice.call(arguments);return d3.selection.prototype.style.apply(p(),r),c},c.direction=function(t){return arguments.length?(e=null==t?t:h(t),c):e},c.offset=function(e){return arguments.length?(t=null==e?e:h(e),c):t},c.html=function(e){return arguments.length?(r=null==e?e:h(e),c):r},c.customPosition=function(e){return arguments.length?(s=null==e?e:h(e),c):s},c.destroy=function(){return n&&(p().remove(),n=null),c};var l=new Map(Object.entries({n:function(e){var t=f(e);return{top:t.n.y-n.offsetHeight,left:t.n.x-n.offsetWidth/2}},s:function(e){var t=f(e);return{top:t.s.y,left:t.s.x-n.offsetWidth/2}},e:function(e){var t=f(e);return{top:t.e.y-n.offsetHeight/2,left:t.e.x}},w:function(e){var t=f(e);return{top:t.w.y-n.offsetHeight/2,left:t.w.x-n.offsetWidth}},nw:function(e){var t=f(e);return{top:t.nw.y-n.offsetHeight,left:t.nw.x-n.offsetWidth}},ne:function(e){var t=f(e);return{top:t.ne.y-n.offsetHeight,left:t.ne.x}},sw:function(e){var t=f(e);return{top:t.sw.y,left:t.sw.x-n.offsetWidth}},se:function(e){var t=f(e);return{top:t.se.y,left:t.e.x}}})),d=l.keys();function u(){var e=d3.select(document.createElement("div"));return e.style("position","absolute").style("top",0).style("opacity",0).style("pointer-events","none").style("box-sizing","border-box"),e.node()}function p(){return null===n&&(n=u(),document.body.appendChild(n)),d3.select(n)}function f(e){for(var t=o||e.target;void 0===t.getScreenCTM&&"undefined"===t.parentNode;)t=t.parentNode;var r={},n=t.getScreenCTM(),i=t.getBBox(),s=i.width,c=i.height,l=i.x,d=i.y;return a.x=l,a.y=d,r.nw=a.matrixTransform(n),a.x+=s,r.ne=a.matrixTransform(n),a.y+=c,r.se=a.matrixTransform(n),a.x-=s,r.sw=a.matrixTransform(n),a.y-=c/2,r.w=a.matrixTransform(n),a.x+=s,r.e=a.matrixTransform(n),a.x-=s/2,a.y-=c/2,r.n=a.matrixTransform(n),a.y+=c,r.s=a.matrixTransform(n),r}function h(e){return"function"==typeof e?e:function(){return e}}return c}},478:function(e,t,r){"use strict";var n=n||{};n.SingleChild={addPlaceholders:function e(t,r){if(t.children){for(var n=0;n<t.children.length;n++)e(t.children[n]);if(1===t.children.length){var i=1.2*t.size;r&&(i=.1*t.children[0].size),t.children.push({name:"placeholder",size:i})}}},removePlaceholders:function e(t){for(var r=t.length-1;r>=0;r--){var n=t[r];"placeholder"===n.data.name?t.splice(r,1):n.children&&e(n.children)}},centerNodes:function(e){for(var t=0;t<e.length;t++){var r=e[t];if(r.children&&1===r.children.length){var n=r.x-r.children[0].x;r.children[0].x+=n,i(r.children[0],n)}}function i(e,t){if(e.children)for(var r=0;r<e.children.length;r++)e.children[r].x+=t,i(e.children[r],t)}},makePositionsRelativeToZero:function(e){for(var t=e[0].x,r=e[0].y,n=0;n<e.length;n++){var i=e[n];i.x-=t,i.y-=r}}},t.a=n},64:function(e,t,r){"use strict";r.r(t),r.d(t,"RenderingMode",(function(){return n}));const n={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},66:function(e,t,r){"use strict";r.r(t),r.d(t,"YasqeMode",(function(){return n}));const n={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}},68: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"]},685:function(e,t){
|
|
2
2
|
/*! Copyright (c) 2014 Hidenari Nozaki and contributors | Licensed under the MIT license */
|
|
3
|
-
!function(e,t){"use strict";!function(e){e.module("angucomplete-alt",[]).directive("angucompleteAlt",["$q","$parse","$http","$sce","$timeout","$templateCache","$interpolate",function(e,t,r,n,i,a,o){function s(t,a,o,s){var c,l,d,u,p,f,h=a.find("input"),g=3,m=null,y="autocomplete-required",v=null,x=null,S=a[0].querySelector(".angucomplete-dropdown"),w=!1,C=null;function b(e,r){e&&("object"==typeof e?(t.searchStr=E(e),k({originalObject:e})):"string"==typeof e&&e.length>0?t.searchStr=e:console&&console.error&&console.error("Tried to set "+(r?"initial":"")+" value of angucomplete to",e,"which is an invalid value"),A(!0))}function I(e){C=null,t.hideResults(e),document.body.removeEventListener("click",I)}function R(e){return e.which?e.which:e.keyCode}function k(e){"function"==typeof t.selectedObject?t.selectedObject(e,t.selectedObjectData):t.selectedObject=e,A(!!e)}function E(e){return t.titleField.split(",").map((function(t){return _(e,t)})).join(" ")}function _(e,t){var r,n;if(t){r=t.split("."),n=e;for(var i=0;i<r.length;i++)n=n[r[i]]}else n=e;return n}function L(e,r){var i,a,o;if(o=new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i"),e)return e.match&&e.replace||(e=e.toString()),i=(a=e.match(o))?e.replace(o,'<span class="'+t.matchClass+'">'+a[0]+"</span>"):e,n.trustAsHtml(i)}function A(e){t.notEmpty=e,v=t.searchStr,t.fieldRequired&&s&&t.inputName&&s[t.inputName].$setValidity(y,e)}function T(e){!t.overrideSuggestions||t.selectedObject&&t.selectedObject.originalObject===t.searchStr||(e&&e.preventDefault(),i.cancel(m),M(),k({originalObject:t.searchStr}),t.clearSelected&&(t.searchStr=null),Q())}function P(){return a[0].querySelectorAll(".angucomplete-row")[t.currentIndex]}function N(e){S.scrollTop=S.scrollTop+e}function D(){var e=t.results[t.currentIndex];t.matchClass?h.val(E(e.originalObject)):h.val(e.title)}function O(e){return function(r,n,i,a){n||i||a||!r.data||(r=r.data),t.searching=!1,F(_(l(r),t.remoteUrlDataField),e)}}function $(e,r,n,i){t.searching=!1,0!==r&&-1!==r&&(r||n||i||(r=e.status),t.remoteUrlErrorCallback?t.remoteUrlErrorCallback(e,r,n,i):console&&console.error&&console.error("http error"))}function M(){x&&x.resolve()}function G(n){var i={},a=t.remoteUrl+encodeURIComponent(n);t.remoteUrlRequestFormatter&&(i={params:t.remoteUrlRequestFormatter(n)},a=t.remoteUrl),t.remoteUrlRequestWithCredentials&&(i.withCredentials=!0),M(),x=e.defer(),i.timeout=x.promise,r.get(a,i).success(O(n)).error($)}function j(r){M(),x=e.defer(),t.remoteApiHandler(r,x.promise).then(O(r)).catch($)}function Q(){t.showDropdown=!1,t.results=[],S&&(S.scrollTop=0)}function U(){t.showDropdown=u,t.currentIndex=t.focusFirst?0:-1,t.results=[]}function H(e){!e||e.length<g||(t.localData?t.$apply((function(){var r;r=void 0!==t.localSearch()?t.localSearch()(e,t.localData):function(e){var r,n,i,a,o=t.searchFields.split(","),s=[];for(void 0!==t.parseInput()&&(e=t.parseInput()(e)),r=0;r<t.localData.length;r++){for(n=!1,i=0;i<o.length;i++)a=_(t.localData[r],o[i])||"",n=n||a.toString().toLowerCase().indexOf(e.toString().toLowerCase())>=0;n&&(s[s.length]=t.localData[r])}return s}(e),t.searching=!1,F(r,e)})):t.remoteApiHandler?j(e):G(e))}function F(e,r){var n,i,a,o,s,c;if(e&&e.length>0)for(t.results=[],n=0;n<e.length;n++)t.titleField&&""!==t.titleField&&(o=s=E(e[n])),i="",t.descriptionField&&(i=c=_(e[n],t.descriptionField)),a="",t.imageField&&(a=_(e[n],t.imageField)),t.matchClass&&(s=L(o,r),c=L(i,r)),t.results[t.results.length]={title:s,description:c,image:a,originalObject:e[n]};else t.results=[];t.autoMatch&&1===t.results.length&&function(e,r,n){if(!n)return!1;for(var i in r)if(r[i].toLowerCase()===n.toLowerCase())return t.selectResult(e),!0;return!1}(t.results[0],{title:o,desc:i||""},t.searchStr)?t.showDropdown=!1:0!==t.results.length||p?t.showDropdown=!0:t.showDropdown=!1}function z(){t.localData?F(t.localData,""):t.remoteApiHandler?j(""):G("")}a.on("mousedown",(function(e){e.target.id?(C=e.target.id)===t.id+"_dropdown"&&document.body.addEventListener("click",I):C=e.target.className})),t.currentIndex=t.focusFirst?0:null,t.searching=!1,d=t.$watch("initialValue",(function(e){e&&(d(),b(e,!0))})),t.$watch("fieldRequired",(function(e,r){e!==r&&(e?v&&-1!==t.currentIndex?A(!0):A(!1):s[t.inputName].$setValidity(y,!0))})),t.$on("angucomplete-alt:clearInput",(function(e,r){r&&r!==t.id||(t.searchStr=null,k(),A(!1),Q())})),t.$on("angucomplete-alt:changeInput",(function(e,r,n){r&&r===t.id&&b(n)})),t.onFocusHandler=function(){t.focusIn&&t.focusIn(),0!==g||t.searchStr&&0!==t.searchStr.length||(t.currentIndex=t.focusFirst?0:t.currentIndex,t.showDropdown=!0,z())},t.hideResults=function(){C&&(C===t.id+"_dropdown"||C.indexOf("angucomplete")>=0)?C=null:(c=i((function(){Q(),t.$apply((function(){t.searchStr&&t.searchStr.length>0&&h.val(t.searchStr)}))}),200),M(),t.focusOut&&t.focusOut(),t.overrideSuggestions&&t.searchStr&&t.searchStr.length>0&&-1===t.currentIndex&&T())},t.resetHideResults=function(){c&&i.cancel(c)},t.hoverRow=function(e){t.currentIndex=e},t.selectResult=function(e){t.matchClass&&(e.title=E(e.originalObject),e.description=_(e.originalObject,t.descriptionField)),t.clearSelected?t.searchStr=null:t.searchStr=e.title,k(e),Q()},t.inputChangeHandler=function(e){return e.length<g?(M(),Q()):0===e.length&&0===g&&(t.searching=!1,z()),t.inputChanged&&(e=t.inputChanged(e)),e},t.fieldRequiredClass&&""!==t.fieldRequiredClass&&(y=t.fieldRequiredClass),t.minlength&&""!==t.minlength&&(g=parseInt(t.minlength,10)),t.pause||(t.pause=500),t.clearSelected||(t.clearSelected=!1),t.overrideSuggestions||(t.overrideSuggestions=!1),t.fieldRequired&&s&&(t.initialValue?A(!0):A(!1)),t.inputType=o.type?o.type:"text",t.textSearching=o.textSearching?o.textSearching:"Searching...",t.textNoResults=o.textNoResults?o.textNoResults:"No results found",u="false"!==t.textSearching,p="false"!==t.textNoResults,t.maxlength=o.maxlength?o.maxlength:524288,h.on("keydown",(function(e){var r=R(e),n=null,i=null;13===r&&t.results?(t.currentIndex>=0&&t.currentIndex<t.results.length?(e.preventDefault(),t.selectResult(t.results[t.currentIndex])):(T(e),Q()),t.$apply()):40===r&&t.results?(e.preventDefault(),t.currentIndex+1<t.results.length&&t.showDropdown&&(t.$apply((function(){t.currentIndex++,D()})),w&&(n=P(),S.getBoundingClientRect().top+parseInt(getComputedStyle(S).maxHeight,10)<n.getBoundingClientRect().bottom&&N(function(e){var t=getComputedStyle(e);return e.offsetHeight+parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}(n))))):38===r&&t.results?(e.preventDefault(),t.currentIndex>=1?(t.$apply((function(){t.currentIndex--,D()})),w&&(i=P().getBoundingClientRect().top-(S.getBoundingClientRect().top+parseInt(getComputedStyle(S).paddingTop,10)))<0&&N(i-1)):0===t.currentIndex&&t.$apply((function(){t.currentIndex=-1,h.val(t.searchStr)}))):9===r?t.results&&t.results.length>0&&t.showDropdown?-1===t.currentIndex&&t.overrideSuggestions?T():(-1===t.currentIndex&&(t.currentIndex=0),t.selectResult(t.results[t.currentIndex]),t.$digest()):t.searchStr&&t.searchStr.length>0&&T():27===r&&e.preventDefault()})),h.on("keyup",(function(e){var r=R(e);if(37!==r&&39!==r)if(38===r||13===r)e.preventDefault();else if(40===r)e.preventDefault(),!t.showDropdown&&t.searchStr&&t.searchStr.length>=g&&(U(),t.searching=!0,H(t.searchStr));else if(27===r)Q(),t.$apply((function(){h.val(t.searchStr)}));else{if(0===g&&!t.searchStr)return;t.searchStr&&""!==t.searchStr?t.searchStr.length>=g&&(U(),m&&i.cancel(m),t.searching=!0,m=i((function(){H(t.searchStr)}),t.pause)):t.showDropdown=!1,v&&v!==t.searchStr&&!t.clearSelected&&t.$apply((function(){k()}))}})),f="remoteUrlResponseFormatter",l=function(e){return t[f]?t[f](e):e},i((function(){var e=getComputedStyle(S);w=e.maxHeight&&"auto"===e.overflowY}))}return a.put("/angucomplete-alt/index.html",'<div class="angucomplete-holder" ng-class="{\'angucomplete-dropdown-visible\': showDropdown}"> <input id="{{id}}_value" name="{{inputName}}" tabindex="{{fieldTabindex}}" ng-class="{\'angucomplete-input-not-empty\': notEmpty}" ng-model="searchStr" ng-disabled="disableInput" type="{{inputType}}" placeholder="{{placeholder}}" maxlength="{{maxlength}}" ng-focus="onFocusHandler()" class="{{inputClass}}" ng-focus="resetHideResults()" ng-blur="hideResults($event)" autocapitalize="off" autocorrect="off" autocomplete="off" ng-change="inputChangeHandler(searchStr)"/> <div id="{{id}}_dropdown" class="angucomplete-dropdown" ng-show="showDropdown"> <div class="angucomplete-searching" ng-show="searching" ng-bind="textSearching"></div> <div class="angucomplete-searching" ng-show="!searching && (!results || results.length == 0)" ng-bind="textNoResults"></div> <div class="angucomplete-row" ng-repeat="result in results" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}"> <div ng-if="imageField" class="angucomplete-image-holder"> <img ng-if="result.image && result.image != \'\'" ng-src="{{result.image}}" class="angucomplete-image"/> <div ng-if="!result.image && result.image != \'\'" class="angucomplete-image-default"></div> </div> <div class="angucomplete-title" ng-if="matchClass" ng-bind-html="result.title"></div> <div class="angucomplete-title" ng-if="!matchClass">{{ result.title }}</div> <div ng-if="matchClass && result.description && result.description != \'\'" class="angucomplete-description" ng-bind-html="result.description"></div> <div ng-if="!matchClass && result.description && result.description != \'\'" class="angucomplete-description">{{result.description}}</div> </div> </div></div>'),{restrict:"EA",require:"^?form",scope:{selectedObject:"=",selectedObjectData:"=",disableInput:"=",initialValue:"=",localData:"=",localSearch:"&",remoteUrlRequestFormatter:"=",remoteUrlRequestWithCredentials:"@",remoteUrlResponseFormatter:"=",remoteUrlErrorCallback:"=",remoteApiHandler:"=",id:"@",type:"@",placeholder:"@",textSearching:"@",textNoResults:"@",remoteUrl:"@",remoteUrlDataField:"@",titleField:"@",descriptionField:"@",imageField:"@",inputClass:"@",pause:"@",searchFields:"@",minlength:"@",matchClass:"@",clearSelected:"@",overrideSuggestions:"@",fieldRequired:"=",fieldRequiredClass:"@",inputChanged:"=",autoMatch:"@",focusOut:"&",focusIn:"&",fieldTabindex:"@",inputName:"@",focusFirst:"@",parseInput:"&"},templateUrl:function(e,t){return t.templateUrl||"/angucomplete-alt/index.html"},compile:function(e){var t=o.startSymbol(),r=o.endSymbol();if("{{"!==t||"}}"!==r){var n=e.html().replace(/\{\{/g,t).replace(/\}\}/g,r);e.html(n)}return s}}}])}(window.angular)}()},68:function(e,t,r){"use strict";r.r(t),r.d(t,"StartMode",(function(){return n})),r.d(t,"GraphsConfig",(function(){return i}));const n={QUERY:"query",NODE:"node",SEARCH:"search"};class i{constructor(e,t,r=n.SEARCH,i,a=!0,o=!0,s,c,l,d,u,p,f,h,g,m,y,v,x,S,w){this._id=e,this._name=t,this._startMode=r,this._owner=i,this._startQueryIncludeInferred=a,this._startQuerySameAs=o,this._startGraphQuery=s,this._startIRI=c,this._startIRILabel=l,this._expandQuery=d,this._resourceQuery=u,this._predicateLabelQuery=p,this._resourcePropertiesQuery=f,this._shared=h,this._description=g,this._hint=m,this._startGraphQueryDescription=y,this._expandQueryDescription=v,this._resourceQueryDescription=x,this._predicateLabelQueryDescription=S,this._resourcePropertiesQueryDescription=w}isStartMode(e){return this.startMode===e}isDefaultGraph(){return"Minimal"===this.name||"Advanced"===this.name}getPropertyDescription(e){return this[e+"Description"]}getQueryType(e){let t;return this.isStartMode(n.QUERY)&&1===e?t=this.startGraphQuery:2===e?t=this.expandQuery:3===e?t=this.resourceQuery:4===e?t=this.predicateLabelQuery:5===e&&(t=this.resourcePropertiesQuery),t||""}updateModel(e,t){return this.isStartMode(n.QUERY)&&1===t?this.startGraphQuery=e:2===t?this.expandQuery=e:3===t?this.resourceQuery=e:4===t?this.predicateLabelQuery=e:5===t&&(this.resourcePropertiesQuery=e),this}toSavePayload(){return{id:this.id,name:this.name,startMode:this.startMode,owner:this.owner,startQueryIncludeInferred:this.startQueryIncludeInferred,startQuerySameAs:this.startQuerySameAs,startGraphQuery:this.startGraphQuery,startIRI:this.startIRI,startIRILabel:this.startIRILabel,expandQuery:this.expandQuery,resourceQuery:this.resourceQuery,predicateLabelQuery:this.predicateLabelQuery,resourcePropertiesQuery:this.resourcePropertiesQuery,shared:this.shared,description:this.description,hint:this.hint}}get id(){return this._id}set id(e){this._id=e}get name(){return this._name}set name(e){this._name=e}get startMode(){return this._startMode}set startMode(e){this._startMode=e}get owner(){return this._owner}set owner(e){this._owner=e}get startQueryIncludeInferred(){return this._startQueryIncludeInferred}set startQueryIncludeInferred(e){this._startQueryIncludeInferred=e}get startQuerySameAs(){return this._startQuerySameAs}set startQuerySameAs(e){this._startQuerySameAs=e}get startGraphQuery(){return this._startGraphQuery}set startGraphQuery(e){this._startGraphQuery=e}get startIRI(){return this._startIRI}set startIRI(e){this._startIRI=e}get startIRILabel(){return this._startIRILabel}set startIRILabel(e){this._startIRILabel=e}get expandQuery(){return this._expandQuery}set expandQuery(e){this._expandQuery=e}get resourceQuery(){return this._resourceQuery}set resourceQuery(e){this._resourceQuery=e}get predicateLabelQuery(){return this._predicateLabelQuery}set predicateLabelQuery(e){this._predicateLabelQuery=e}get resourcePropertiesQuery(){return this._resourcePropertiesQuery}set resourcePropertiesQuery(e){this._resourcePropertiesQuery=e}get shared(){return this._shared}set shared(e){this._shared=e}get description(){return this._description}set description(e){this._description=e}get hint(){return this._hint}set hint(e){this._hint=e}get startGraphQueryDescription(){return this._startGraphQueryDescription}set startGraphQueryDescription(e){this._startGraphQueryDescription=e}get expandQueryDescription(){return this._expandQueryDescription}set expandQueryDescription(e){this._expandQueryDescription=e}get resourceQueryDescription(){return this._resourceQueryDescription}set resourceQueryDescription(e){this._resourceQueryDescription=e}get predicateLabelQueryDescription(){return this._predicateLabelQueryDescription}set predicateLabelQueryDescription(e){this._predicateLabelQueryDescription=e}get resourcePropertiesQueryDescription(){return this._resourcePropertiesQueryDescription}set resourcePropertiesQueryDescription(e){this._resourcePropertiesQueryDescription=e}}},80:function(e,t,r){"use strict";r.r(t),r.d(t,"mapGraphsConfigResponseToModel",(function(){return i})),r.d(t,"mapGraphConfigSampleToGraphConfig",(function(){return a})),r.d(t,"mapGraphConfigSamplesToGraphConfigs",(function(){return o}));var n=r(68);const i=e=>new n.GraphsConfig(e.id,e.name,e.startMode,e.owner,e.startQueryIncludeInferred,e.startQuerySameAs,e.startGraphQuery,e.startIRI,e.startIRILabel,e.expandQuery,e.resourceQuery,e.predicateLabelQuery,e.resourcePropertiesQuery,e.shared,e.description,e.hint),a=e=>new n.GraphsConfig(e.id,e.name,e.startMode,e.owner,e.startQueryIncludeInferred,e.startQuerySameAs,e.startGraphQuery,e.startIRI,e.startIRILabel,e.expandQuery,e.resourceQuery,e.predicateLabelQuery,e.resourcePropertiesQuery,e.shared,e.description,e.hint,e.startGraphQueryDescription,e.expandQueryDescription,e.resourceQueryDescription,e.predicateLabelQueryDescription,e.resourcePropertiesQueryDescription),o=e=>e.map(e=>a(e))},81:function(e,t,r){"use strict";r.r(t),r.d(t,"STATIC_RULESETS",(function(){return n})),r.d(t,"REPOSITORY_TYPES",(function(){return i})),r.d(t,"FILENAME_PATTERN",(function(){return a})),r.d(t,"NUMBER_PATTERN",(function(){return o}));const n=[{id:"empty",name:"No inference"},{id:"rdfs-optimized",name:"RDFS (Optimized)"},{id:"rdfs",name:"RDFS"},{id:"rdfsplus-optimized",name:"RDFS-Plus (Optimized)"},{id:"owl-horst-optimized",name:"OWL-Horst (Optimized)"},{id:"owl-horst",name:"OWL-Horst"},{id:"owl2-ql-optimized",name:"OWL2-QL (Optimized)"},{id:"owl2-ql",name:"OWL2-QL"},{id:"owl-max-optimized",name:"OWL-Max (Optimized)"},{id:"owl-max",name:"OWL-Max"},{id:"owl2-rl-optimized",name:"OWL2-RL (Optimized)"},{id:"owl2-rl",name:"OWL2-RL"}],i={graphdbRepo:"graphdb",free:"free",eeWorker:"worker",eeMaster:"master",ontop:"ontop",se:"se",fedx:"fedx"},a=new RegExp("^[a-zA-Z0-9-_]+$"),o=new RegExp("^[0-9]+$")},89:function(e,t,r){"use strict";r.r(t),r.d(t,"removeSpecialChars",(function(){return n})),r.d(t,"toBoolean",(function(){return i}));const n=e=>e.replace(/[()']/g,""),i=e=>"string"==typeof e?"true"===e:Boolean(e)},91:function(e,t){angular.module("graphdb.framework.rest.graphexplore.data.service",[]).factory("GraphDataRestService",r),r.$inject=["$http"];function r(e){return{getClassHierarchyData:function(t){return e.get("rest/class-hierarchy",{params:{graphURI:t}})},reloadClassHierarchy:function(t){return e.get("rest/class-hierarchy",{params:{doReload:!0,graphURI:t}})},getClassInstances:function(t){return e.get("rest/class-hierarchy/class-instances",{params:{targetUri:t}})},getDomainRangeData:function(t,r){return e.get("rest/domain-range",{params:{targetUri:t,collapsed:r}})},checkDomainRangeData:function(t){return e.head("rest/domain-range",{params:{targetUri:t}})},getRelationshipsData:function(t,r,n){return e.get("rest/dependencies/matrix",{params:{mode:r,classes:_.map(t,(function(e){return e.name})),graphURI:n}})},getRelationshipsClasses:function(t,r){return e.get("rest/dependencies/classes",{params:{mode:t,graphURI:r}})},getRelationshipsStatus:function(t){return e.get("rest/dependencies/status",{params:{graphURI:t}})},calculateRelationships:function(t){return e.get("rest/dependencies/update",{params:{graphURI:t}})},getPredicates:function(t,r,n){return e.get("rest/dependencies/predicates",{params:{from:t,to:r,mode:"all",graphURI:n}})},getInstanceNode:function(t){return e.get("rest/explore-graph/node",{params:t})},getInstanceNodeLinks:function(t){return e.get("rest/explore-graph/links",{params:t})},getProperties:function(t){return e.get("rest/explore-graph/properties",{params:t})},updateGraph:function(t){let r={headers:{"Content-Type":"application/json"}};return r=Object.assign(r,t),e.post("rest/explore-graph/graph",r)},getRdfsLabelAndComment:function(t,r,n){const i=n||{};return e({url:"rest/explore/details",method:"GET",params:_.extend(i,{uri:t,languages:r}),headers:{Accept:"application/json"}})}}}}}]);
|
|
3
|
+
!function(e,t){"use strict";!function(e){e.module("angucomplete-alt",[]).directive("angucompleteAlt",["$q","$parse","$http","$sce","$timeout","$templateCache","$interpolate",function(e,t,r,n,i,a,o){function s(t,a,o,s){var c,l,d,u,p,f,h=a.find("input"),g=3,m=null,y="autocomplete-required",v=null,x=null,S=a[0].querySelector(".angucomplete-dropdown"),w=!1,C=null;function b(e,r){e&&("object"==typeof e?(t.searchStr=E(e),k({originalObject:e})):"string"==typeof e&&e.length>0?t.searchStr=e:console&&console.error&&console.error("Tried to set "+(r?"initial":"")+" value of angucomplete to",e,"which is an invalid value"),A(!0))}function I(e){C=null,t.hideResults(e),document.body.removeEventListener("click",I)}function R(e){return e.which?e.which:e.keyCode}function k(e){"function"==typeof t.selectedObject?t.selectedObject(e,t.selectedObjectData):t.selectedObject=e,A(!!e)}function E(e){return t.titleField.split(",").map((function(t){return _(e,t)})).join(" ")}function _(e,t){var r,n;if(t){r=t.split("."),n=e;for(var i=0;i<r.length;i++)n=n[r[i]]}else n=e;return n}function L(e,r){var i,a,o;if(o=new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i"),e)return e.match&&e.replace||(e=e.toString()),i=(a=e.match(o))?e.replace(o,'<span class="'+t.matchClass+'">'+a[0]+"</span>"):e,n.trustAsHtml(i)}function A(e){t.notEmpty=e,v=t.searchStr,t.fieldRequired&&s&&t.inputName&&s[t.inputName].$setValidity(y,e)}function T(e){!t.overrideSuggestions||t.selectedObject&&t.selectedObject.originalObject===t.searchStr||(e&&e.preventDefault(),i.cancel(m),M(),k({originalObject:t.searchStr}),t.clearSelected&&(t.searchStr=null),Q())}function P(){return a[0].querySelectorAll(".angucomplete-row")[t.currentIndex]}function N(e){S.scrollTop=S.scrollTop+e}function D(){var e=t.results[t.currentIndex];t.matchClass?h.val(E(e.originalObject)):h.val(e.title)}function O(e){return function(r,n,i,a){n||i||a||!r.data||(r=r.data),t.searching=!1,F(_(l(r),t.remoteUrlDataField),e)}}function $(e,r,n,i){t.searching=!1,0!==r&&-1!==r&&(r||n||i||(r=e.status),t.remoteUrlErrorCallback?t.remoteUrlErrorCallback(e,r,n,i):console&&console.error&&console.error("http error"))}function M(){x&&x.resolve()}function G(n){var i={},a=t.remoteUrl+encodeURIComponent(n);t.remoteUrlRequestFormatter&&(i={params:t.remoteUrlRequestFormatter(n)},a=t.remoteUrl),t.remoteUrlRequestWithCredentials&&(i.withCredentials=!0),M(),x=e.defer(),i.timeout=x.promise,r.get(a,i).success(O(n)).error($)}function j(r){M(),x=e.defer(),t.remoteApiHandler(r,x.promise).then(O(r)).catch($)}function Q(){t.showDropdown=!1,t.results=[],S&&(S.scrollTop=0)}function U(){t.showDropdown=u,t.currentIndex=t.focusFirst?0:-1,t.results=[]}function H(e){!e||e.length<g||(t.localData?t.$apply((function(){var r;r=void 0!==t.localSearch()?t.localSearch()(e,t.localData):function(e){var r,n,i,a,o=t.searchFields.split(","),s=[];for(void 0!==t.parseInput()&&(e=t.parseInput()(e)),r=0;r<t.localData.length;r++){for(n=!1,i=0;i<o.length;i++)a=_(t.localData[r],o[i])||"",n=n||a.toString().toLowerCase().indexOf(e.toString().toLowerCase())>=0;n&&(s[s.length]=t.localData[r])}return s}(e),t.searching=!1,F(r,e)})):t.remoteApiHandler?j(e):G(e))}function F(e,r){var n,i,a,o,s,c;if(e&&e.length>0)for(t.results=[],n=0;n<e.length;n++)t.titleField&&""!==t.titleField&&(o=s=E(e[n])),i="",t.descriptionField&&(i=c=_(e[n],t.descriptionField)),a="",t.imageField&&(a=_(e[n],t.imageField)),t.matchClass&&(s=L(o,r),c=L(i,r)),t.results[t.results.length]={title:s,description:c,image:a,originalObject:e[n]};else t.results=[];t.autoMatch&&1===t.results.length&&function(e,r,n){if(!n)return!1;for(var i in r)if(r[i].toLowerCase()===n.toLowerCase())return t.selectResult(e),!0;return!1}(t.results[0],{title:o,desc:i||""},t.searchStr)?t.showDropdown=!1:0!==t.results.length||p?t.showDropdown=!0:t.showDropdown=!1}function z(){t.localData?F(t.localData,""):t.remoteApiHandler?j(""):G("")}a.on("mousedown",(function(e){e.target.id?(C=e.target.id)===t.id+"_dropdown"&&document.body.addEventListener("click",I):C=e.target.className})),t.currentIndex=t.focusFirst?0:null,t.searching=!1,d=t.$watch("initialValue",(function(e){e&&(d(),b(e,!0))})),t.$watch("fieldRequired",(function(e,r){e!==r&&(e?v&&-1!==t.currentIndex?A(!0):A(!1):s[t.inputName].$setValidity(y,!0))})),t.$on("angucomplete-alt:clearInput",(function(e,r){r&&r!==t.id||(t.searchStr=null,k(),A(!1),Q())})),t.$on("angucomplete-alt:changeInput",(function(e,r,n){r&&r===t.id&&b(n)})),t.onFocusHandler=function(){t.focusIn&&t.focusIn(),0!==g||t.searchStr&&0!==t.searchStr.length||(t.currentIndex=t.focusFirst?0:t.currentIndex,t.showDropdown=!0,z())},t.hideResults=function(){C&&(C===t.id+"_dropdown"||C.indexOf("angucomplete")>=0)?C=null:(c=i((function(){Q(),t.$apply((function(){t.searchStr&&t.searchStr.length>0&&h.val(t.searchStr)}))}),200),M(),t.focusOut&&t.focusOut(),t.overrideSuggestions&&t.searchStr&&t.searchStr.length>0&&-1===t.currentIndex&&T())},t.resetHideResults=function(){c&&i.cancel(c)},t.hoverRow=function(e){t.currentIndex=e},t.selectResult=function(e){t.matchClass&&(e.title=E(e.originalObject),e.description=_(e.originalObject,t.descriptionField)),t.clearSelected?t.searchStr=null:t.searchStr=e.title,k(e),Q()},t.inputChangeHandler=function(e){return e.length<g?(M(),Q()):0===e.length&&0===g&&(t.searching=!1,z()),t.inputChanged&&(e=t.inputChanged(e)),e},t.fieldRequiredClass&&""!==t.fieldRequiredClass&&(y=t.fieldRequiredClass),t.minlength&&""!==t.minlength&&(g=parseInt(t.minlength,10)),t.pause||(t.pause=500),t.clearSelected||(t.clearSelected=!1),t.overrideSuggestions||(t.overrideSuggestions=!1),t.fieldRequired&&s&&(t.initialValue?A(!0):A(!1)),t.inputType=o.type?o.type:"text",t.textSearching=o.textSearching?o.textSearching:"Searching...",t.textNoResults=o.textNoResults?o.textNoResults:"No results found",u="false"!==t.textSearching,p="false"!==t.textNoResults,t.maxlength=o.maxlength?o.maxlength:524288,h.on("keydown",(function(e){var r=R(e),n=null,i=null;13===r&&t.results?(t.currentIndex>=0&&t.currentIndex<t.results.length?(e.preventDefault(),t.selectResult(t.results[t.currentIndex])):(T(e),Q()),t.$apply()):40===r&&t.results?(e.preventDefault(),t.currentIndex+1<t.results.length&&t.showDropdown&&(t.$apply((function(){t.currentIndex++,D()})),w&&(n=P(),S.getBoundingClientRect().top+parseInt(getComputedStyle(S).maxHeight,10)<n.getBoundingClientRect().bottom&&N(function(e){var t=getComputedStyle(e);return e.offsetHeight+parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}(n))))):38===r&&t.results?(e.preventDefault(),t.currentIndex>=1?(t.$apply((function(){t.currentIndex--,D()})),w&&(i=P().getBoundingClientRect().top-(S.getBoundingClientRect().top+parseInt(getComputedStyle(S).paddingTop,10)))<0&&N(i-1)):0===t.currentIndex&&t.$apply((function(){t.currentIndex=-1,h.val(t.searchStr)}))):9===r?t.results&&t.results.length>0&&t.showDropdown?-1===t.currentIndex&&t.overrideSuggestions?T():(-1===t.currentIndex&&(t.currentIndex=0),t.selectResult(t.results[t.currentIndex]),t.$digest()):t.searchStr&&t.searchStr.length>0&&T():27===r&&e.preventDefault()})),h.on("keyup",(function(e){var r=R(e);if(37!==r&&39!==r)if(38===r||13===r)e.preventDefault();else if(40===r)e.preventDefault(),!t.showDropdown&&t.searchStr&&t.searchStr.length>=g&&(U(),t.searching=!0,H(t.searchStr));else if(27===r)Q(),t.$apply((function(){h.val(t.searchStr)}));else{if(0===g&&!t.searchStr)return;t.searchStr&&""!==t.searchStr?t.searchStr.length>=g&&(U(),m&&i.cancel(m),t.searching=!0,m=i((function(){H(t.searchStr)}),t.pause)):t.showDropdown=!1,v&&v!==t.searchStr&&!t.clearSelected&&t.$apply((function(){k()}))}})),f="remoteUrlResponseFormatter",l=function(e){return t[f]?t[f](e):e},i((function(){var e=getComputedStyle(S);w=e.maxHeight&&"auto"===e.overflowY}))}return a.put("/angucomplete-alt/index.html",'<div class="angucomplete-holder" ng-class="{\'angucomplete-dropdown-visible\': showDropdown}"> <input id="{{id}}_value" name="{{inputName}}" tabindex="{{fieldTabindex}}" ng-class="{\'angucomplete-input-not-empty\': notEmpty}" ng-model="searchStr" ng-disabled="disableInput" type="{{inputType}}" placeholder="{{placeholder}}" maxlength="{{maxlength}}" ng-focus="onFocusHandler()" class="{{inputClass}}" ng-focus="resetHideResults()" ng-blur="hideResults($event)" autocapitalize="off" autocorrect="off" autocomplete="off" ng-change="inputChangeHandler(searchStr)"/> <div id="{{id}}_dropdown" class="angucomplete-dropdown" ng-show="showDropdown"> <div class="angucomplete-searching" ng-show="searching" ng-bind="textSearching"></div> <div class="angucomplete-searching" ng-show="!searching && (!results || results.length == 0)" ng-bind="textNoResults"></div> <div class="angucomplete-row" ng-repeat="result in results" ng-click="selectResult(result)" ng-mouseenter="hoverRow($index)" ng-class="{\'angucomplete-selected-row\': $index == currentIndex}"> <div ng-if="imageField" class="angucomplete-image-holder"> <img ng-if="result.image && result.image != \'\'" ng-src="{{result.image}}" class="angucomplete-image"/> <div ng-if="!result.image && result.image != \'\'" class="angucomplete-image-default"></div> </div> <div class="angucomplete-title" ng-if="matchClass" ng-bind-html="result.title"></div> <div class="angucomplete-title" ng-if="!matchClass">{{ result.title }}</div> <div ng-if="matchClass && result.description && result.description != \'\'" class="angucomplete-description" ng-bind-html="result.description"></div> <div ng-if="!matchClass && result.description && result.description != \'\'" class="angucomplete-description">{{result.description}}</div> </div> </div></div>'),{restrict:"EA",require:"^?form",scope:{selectedObject:"=",selectedObjectData:"=",disableInput:"=",initialValue:"=",localData:"=",localSearch:"&",remoteUrlRequestFormatter:"=",remoteUrlRequestWithCredentials:"@",remoteUrlResponseFormatter:"=",remoteUrlErrorCallback:"=",remoteApiHandler:"=",id:"@",type:"@",placeholder:"@",textSearching:"@",textNoResults:"@",remoteUrl:"@",remoteUrlDataField:"@",titleField:"@",descriptionField:"@",imageField:"@",inputClass:"@",pause:"@",searchFields:"@",minlength:"@",matchClass:"@",clearSelected:"@",overrideSuggestions:"@",fieldRequired:"=",fieldRequiredClass:"@",inputChanged:"=",autoMatch:"@",focusOut:"&",focusIn:"&",fieldTabindex:"@",inputName:"@",focusFirst:"@",parseInput:"&"},templateUrl:function(e,t){return t.templateUrl||"/angucomplete-alt/index.html"},compile:function(e){var t=o.startSymbol(),r=o.endSymbol();if("{{"!==t||"}}"!==r){var n=e.html().replace(/\{\{/g,t).replace(/\}\}/g,r);e.html(n)}return s}}}])}(window.angular)}()},70:function(e,t,r){"use strict";r.r(t),r.d(t,"removeSpecialChars",(function(){return i})),r.d(t,"toBoolean",(function(){return a})),r.d(t,"toTitleCase",(function(){return o}));var n=r(65);const i=e=>e.replace(/[()']/g,""),a=e=>"string"==typeof e?"true"===e:Boolean(e),o=e=>e?Object(n.upperFirst)(e.toLowerCase()):e},73:function(e,t,r){"use strict";r.r(t),r.d(t,"StartMode",(function(){return n})),r.d(t,"GraphsConfig",(function(){return i}));const n={QUERY:"query",NODE:"node",SEARCH:"search"};class i{constructor(e,t,r=n.SEARCH,i,a=!0,o=!0,s,c,l,d,u,p,f,h,g,m,y,v,x,S,w){this._id=e,this._name=t,this._startMode=r,this._owner=i,this._startQueryIncludeInferred=a,this._startQuerySameAs=o,this._startGraphQuery=s,this._startIRI=c,this._startIRILabel=l,this._expandQuery=d,this._resourceQuery=u,this._predicateLabelQuery=p,this._resourcePropertiesQuery=f,this._shared=h,this._description=g,this._hint=m,this._startGraphQueryDescription=y,this._expandQueryDescription=v,this._resourceQueryDescription=x,this._predicateLabelQueryDescription=S,this._resourcePropertiesQueryDescription=w}isStartMode(e){return this.startMode===e}isDefaultGraph(){return"Minimal"===this.name||"Advanced"===this.name}getPropertyDescription(e){return this[e+"Description"]}getQueryType(e){let t;return this.isStartMode(n.QUERY)&&1===e?t=this.startGraphQuery:2===e?t=this.expandQuery:3===e?t=this.resourceQuery:4===e?t=this.predicateLabelQuery:5===e&&(t=this.resourcePropertiesQuery),t||""}updateModel(e,t){return this.isStartMode(n.QUERY)&&1===t?this.startGraphQuery=e:2===t?this.expandQuery=e:3===t?this.resourceQuery=e:4===t?this.predicateLabelQuery=e:5===t&&(this.resourcePropertiesQuery=e),this}toSavePayload(){return{id:this.id,name:this.name,startMode:this.startMode,owner:this.owner,startQueryIncludeInferred:this.startQueryIncludeInferred,startQuerySameAs:this.startQuerySameAs,startGraphQuery:this.startGraphQuery,startIRI:this.startIRI,startIRILabel:this.startIRILabel,expandQuery:this.expandQuery,resourceQuery:this.resourceQuery,predicateLabelQuery:this.predicateLabelQuery,resourcePropertiesQuery:this.resourcePropertiesQuery,shared:this.shared,description:this.description,hint:this.hint}}get id(){return this._id}set id(e){this._id=e}get name(){return this._name}set name(e){this._name=e}get startMode(){return this._startMode}set startMode(e){this._startMode=e}get owner(){return this._owner}set owner(e){this._owner=e}get startQueryIncludeInferred(){return this._startQueryIncludeInferred}set startQueryIncludeInferred(e){this._startQueryIncludeInferred=e}get startQuerySameAs(){return this._startQuerySameAs}set startQuerySameAs(e){this._startQuerySameAs=e}get startGraphQuery(){return this._startGraphQuery}set startGraphQuery(e){this._startGraphQuery=e}get startIRI(){return this._startIRI}set startIRI(e){this._startIRI=e}get startIRILabel(){return this._startIRILabel}set startIRILabel(e){this._startIRILabel=e}get expandQuery(){return this._expandQuery}set expandQuery(e){this._expandQuery=e}get resourceQuery(){return this._resourceQuery}set resourceQuery(e){this._resourceQuery=e}get predicateLabelQuery(){return this._predicateLabelQuery}set predicateLabelQuery(e){this._predicateLabelQuery=e}get resourcePropertiesQuery(){return this._resourcePropertiesQuery}set resourcePropertiesQuery(e){this._resourcePropertiesQuery=e}get shared(){return this._shared}set shared(e){this._shared=e}get description(){return this._description}set description(e){this._description=e}get hint(){return this._hint}set hint(e){this._hint=e}get startGraphQueryDescription(){return this._startGraphQueryDescription}set startGraphQueryDescription(e){this._startGraphQueryDescription=e}get expandQueryDescription(){return this._expandQueryDescription}set expandQueryDescription(e){this._expandQueryDescription=e}get resourceQueryDescription(){return this._resourceQueryDescription}set resourceQueryDescription(e){this._resourceQueryDescription=e}get predicateLabelQueryDescription(){return this._predicateLabelQueryDescription}set predicateLabelQueryDescription(e){this._predicateLabelQueryDescription=e}get resourcePropertiesQueryDescription(){return this._resourcePropertiesQueryDescription}set resourcePropertiesQueryDescription(e){this._resourcePropertiesQueryDescription=e}}},84:function(e,t,r){"use strict";r.r(t),r.d(t,"mapGraphsConfigResponseToModel",(function(){return i})),r.d(t,"mapGraphConfigSampleToGraphConfig",(function(){return a})),r.d(t,"mapGraphConfigSamplesToGraphConfigs",(function(){return o}));var n=r(73);const i=e=>new n.GraphsConfig(e.id,e.name,e.startMode,e.owner,e.startQueryIncludeInferred,e.startQuerySameAs,e.startGraphQuery,e.startIRI,e.startIRILabel,e.expandQuery,e.resourceQuery,e.predicateLabelQuery,e.resourcePropertiesQuery,e.shared,e.description,e.hint),a=e=>new n.GraphsConfig(e.id,e.name,e.startMode,e.owner,e.startQueryIncludeInferred,e.startQuerySameAs,e.startGraphQuery,e.startIRI,e.startIRILabel,e.expandQuery,e.resourceQuery,e.predicateLabelQuery,e.resourcePropertiesQuery,e.shared,e.description,e.hint,e.startGraphQueryDescription,e.expandQueryDescription,e.resourceQueryDescription,e.predicateLabelQueryDescription,e.resourcePropertiesQueryDescription),o=e=>e.map(e=>a(e))},85:function(e,t,r){"use strict";r.r(t),r.d(t,"STATIC_RULESETS",(function(){return n})),r.d(t,"REPOSITORY_TYPES",(function(){return i})),r.d(t,"FILENAME_PATTERN",(function(){return a})),r.d(t,"NUMBER_PATTERN",(function(){return o}));const n=[{id:"empty",name:"No inference"},{id:"rdfs-optimized",name:"RDFS (Optimized)"},{id:"rdfs",name:"RDFS"},{id:"rdfsplus-optimized",name:"RDFS-Plus (Optimized)"},{id:"owl-horst-optimized",name:"OWL-Horst (Optimized)"},{id:"owl-horst",name:"OWL-Horst"},{id:"owl2-ql-optimized",name:"OWL2-QL (Optimized)"},{id:"owl2-ql",name:"OWL2-QL"},{id:"owl-max-optimized",name:"OWL-Max (Optimized)"},{id:"owl-max",name:"OWL-Max"},{id:"owl2-rl-optimized",name:"OWL2-RL (Optimized)"},{id:"owl2-rl",name:"OWL2-RL"}],i={graphdbRepo:"graphdb",free:"free",eeWorker:"worker",eeMaster:"master",ontop:"ontop",se:"se",fedx:"fedx"},a=new RegExp("^[a-zA-Z0-9-_]+$"),o=new RegExp("^[0-9]+$")},96:function(e,t){angular.module("graphdb.framework.rest.graphexplore.data.service",[]).factory("GraphDataRestService",r),r.$inject=["$http"];function r(e){return{getClassHierarchyData:function(t){return e.get("rest/class-hierarchy",{params:{graphURI:t}})},reloadClassHierarchy:function(t){return e.get("rest/class-hierarchy",{params:{doReload:!0,graphURI:t}})},getClassInstances:function(t){return e.get("rest/class-hierarchy/class-instances",{params:{targetUri:t}})},getDomainRangeData:function(t,r){return e.get("rest/domain-range",{params:{targetUri:t,collapsed:r}})},checkDomainRangeData:function(t){return e.head("rest/domain-range",{params:{targetUri:t}})},getRelationshipsData:function(t,r,n){return e.get("rest/dependencies/matrix",{params:{mode:r,classes:_.map(t,(function(e){return e.name})),graphURI:n}})},getRelationshipsClasses:function(t,r){return e.get("rest/dependencies/classes",{params:{mode:t,graphURI:r}})},getRelationshipsStatus:function(t){return e.get("rest/dependencies/status",{params:{graphURI:t}})},calculateRelationships:function(t){return e.get("rest/dependencies/update",{params:{graphURI:t}})},getPredicates:function(t,r,n){return e.get("rest/dependencies/predicates",{params:{from:t,to:r,mode:"all",graphURI:n}})},getInstanceNode:function(t){return e.get("rest/explore-graph/node",{params:t})},getInstanceNodeLinks:function(t){return e.get("rest/explore-graph/links",{params:t})},getProperties:function(t){return e.get("rest/explore-graph/properties",{params:t})},updateGraph:function(t){let r={headers:{"Content-Type":"application/json"}};return r=Object.assign(r,t),e.post("rest/explore-graph/graph",r)},getRdfsLabelAndComment:function(t,r,n){const i=n||{};return e({url:"rest/explore/details",method:"GET",params:_.extend(i,{uri:t,languages:r}),headers:{Accept:"application/json"}})}}}}}]);
|