graphdb-workbench 3.0.1 → 3.0.2-TR2
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/{1.4557dfdb926ba6471bb3.bundle.js → 1.39c8f2b09d3018e6a9cd.bundle.js} +1 -1
- package/dist/{10.8a76ef708b5c69241c68.bundle.js → 10.4f80be12b2cd899d4fc2.bundle.js} +1 -1
- package/dist/100.2daf71ab49c93a1c9d40.bundle.js +1 -0
- package/dist/{99.a745a27e01490b0d843d.bundle.js → 101.70d205b9691d74539dd7.bundle.js} +1 -1
- package/dist/{100.c4aaa3d10f570dba12a9.bundle.js → 102.8b6782cd3c24d47c87d2.bundle.js} +1 -1
- package/dist/{101.8f0b38c2e58132599194.bundle.js → 103.ff8e7dd53d94f93552bf.bundle.js} +1 -1
- package/dist/{103.96f2287dde7e4fc25c9d.bundle.js → 104.a1b5b2e868eb117b48ac.bundle.js} +1 -1
- package/dist/{104.ddeb2cb5758d1ed52b33.bundle.js → 105.0121f779d777d869ce4e.bundle.js} +1 -1
- package/dist/{105.e8302c421c3d7b516b4c.bundle.js → 106.55cf93dab531f6120a6e.bundle.js} +1 -1
- package/dist/{106.00a983e1594a051a5fe7.bundle.js → 107.c0d5d1b4a12c8a01745e.bundle.js} +1 -1
- package/dist/{107.7b548755171f42f06352.bundle.js → 108.9ca7ca14da8593ef91ba.bundle.js} +1 -1
- package/dist/{108.160515780d319edefb5c.bundle.js → 109.1c877e801581e1f60bf8.bundle.js} +1 -1
- package/dist/11.cc21bcbc41edfd865a48.bundle.js +1 -0
- package/dist/{109.1da75239f8e2a5d63b23.bundle.js → 110.3740001dabee596bbf71.bundle.js} +1 -1
- package/dist/{110.780a31b32e116f49a75f.bundle.js → 111.f0ae6a0107628aaeef02.bundle.js} +1 -1
- package/dist/{111.7e3057275034cb5dc5a6.bundle.js → 112.ed43d212e04e37907453.bundle.js} +1 -1
- package/dist/{112.22145690dd697aa9275d.bundle.js → 113.0b94d0e087a818cf9d4c.bundle.js} +1 -1
- package/dist/{113.c135232a9177d596406c.bundle.js → 114.88b6c5ce916e956cc2e5.bundle.js} +1 -1
- package/dist/{114.b2c0df64a560a8dd5ae0.bundle.js → 115.3a159adc54ebc83243cd.bundle.js} +1 -1
- package/dist/{115.543de06ecb5553155522.bundle.js → 116.b75b69c7fe15583deb8a.bundle.js} +1 -1
- package/dist/{116.79b9b3abc0b03e8b7924.bundle.js → 117.a3706ff54783c451de62.bundle.js} +1 -1
- package/dist/{117.ae87c77380fb7660d9ec.bundle.js → 118.e93de50f0149eb2931a4.bundle.js} +1 -1
- package/dist/{118.6756956bb51b3350690d.bundle.js → 119.e5733c827c71ba3106fc.bundle.js} +1 -1
- package/dist/12.5d075599ef637022c23c.bundle.js +1 -0
- package/dist/{119.c8e77171125b6497990a.bundle.js → 120.346f38c1b8fa9bb399aa.bundle.js} +1 -1
- package/dist/{120.1484bac063921edb7a2c.bundle.js → 121.0a271d2bfea3fc050225.bundle.js} +1 -1
- package/dist/{121.6a0ffc9dfc3ea14fd0d3.bundle.js → 122.6812fc0e3f6f60eec16d.bundle.js} +1 -1
- package/dist/{122.13363b4c4f89776fa1b5.bundle.js → 123.31d75efb53b4049f1b67.bundle.js} +1 -1
- package/dist/{123.616625d0908d7e6eab3d.bundle.js → 124.2e17f7bde4612462c957.bundle.js} +1 -1
- package/dist/{124.924dce24aad641d1dd23.bundle.js → 125.f74277a2a44949ca0b4c.bundle.js} +1 -1
- package/dist/{125.d86cff2a5cc679dc20d9.bundle.js → 126.63677abd348f7f462e66.bundle.js} +1 -1
- package/dist/{126.ff5a04a468a8a8d1a99a.bundle.js → 127.41cba8bf8e30ac29ab7e.bundle.js} +1 -1
- package/dist/{127.954cf8032872deba10e6.bundle.js → 128.2ec10c750cf6d0f151f4.bundle.js} +1 -1
- package/dist/{128.639a495883f611c4691e.bundle.js → 129.7b10d7005f33d6187a4b.bundle.js} +1 -1
- package/dist/{13.c904bbb863125c4ff6cc.bundle.js → 13.c1f8c588c7fc852bbe1d.bundle.js} +1 -1
- package/dist/{129.5d11264c418527e53342.bundle.js → 130.6eaf3aa6daac5859f7d7.bundle.js} +1 -1
- package/dist/{130.82fe31a14b953086bb45.bundle.js → 131.45ae15011beefb1ec398.bundle.js} +1 -1
- package/dist/{131.e4be75b25c9eb85db5a8.bundle.js → 132.f675fe2fd349527933b3.bundle.js} +1 -1
- package/dist/{132.364bb39217e31f46480f.bundle.js → 133.1efc1419d69e84db2b4b.bundle.js} +1 -1
- package/dist/{133.df86fdb8d83ca7237793.bundle.js → 134.01ec95b828ad09fcb1a9.bundle.js} +1 -1
- package/dist/{134.33804d658ebadcbc3b55.bundle.js → 135.7d15f409bdb1e8630623.bundle.js} +1 -1
- package/dist/{135.797fc168b7a948df2ccb.bundle.js → 136.1ff57ae90902aff352e4.bundle.js} +1 -1
- package/dist/{136.5ca50393ed4761535bfe.bundle.js → 137.044a888e82e4ac13cbed.bundle.js} +1 -1
- package/dist/{137.d8b48c06ecd279c12ca7.bundle.js → 138.f910e9be040100f08326.bundle.js} +1 -1
- package/dist/{138.3bb6b7be471eb2d04c6e.bundle.js → 139.7e7adea811551510d1d4.bundle.js} +1 -1
- package/dist/{14.d0ab3c83926b616e7354.bundle.js → 14.d0c7642a1a7041f50137.bundle.js} +1 -1
- package/dist/{139.ea151aec614a76870451.bundle.js → 140.3e12b1909d34b2b23d66.bundle.js} +1 -1
- package/dist/{140.6583cf41ab8e891ebbb6.bundle.js → 141.022a52911a1fba3e9273.bundle.js} +1 -1
- package/dist/{141.af39fc3a6dc1dafdb5ab.bundle.js → 142.9b8ed6c5c8e7a9f5de47.bundle.js} +1 -1
- package/dist/{142.c2392a48e4d3a2a16866.bundle.js → 143.81cfe46fdf48ae310839.bundle.js} +1 -1
- package/dist/{143.e4511e1698aca68814e3.bundle.js → 144.fbf7737acce465cf274d.bundle.js} +1 -1
- package/dist/{144.f58114954e257cb77bde.bundle.js → 145.72459692d3c167aee55e.bundle.js} +1 -1
- package/dist/{145.d558ac05737ca5ef00a4.bundle.js → 146.e435b2bdae83a56537f6.bundle.js} +1 -1
- package/dist/{146.de12b58d856c54decc0b.bundle.js → 147.f4e3eb741619b49bcc80.bundle.js} +1 -1
- package/dist/{147.6faf4e13462207010d38.bundle.js → 148.44ea646c66b6b0e8f996.bundle.js} +1 -1
- package/dist/{148.25167c5ae125b23811c9.bundle.js → 149.0c8405d83935b512abfb.bundle.js} +1 -1
- package/dist/{15.8ab8b6f8c611ec1dfddc.bundle.js → 15.79a075c0e170b3066b07.bundle.js} +1 -1
- package/dist/{149.9629d0dfe4f62aa15bba.bundle.js → 150.fb80c0c92d602a623c36.bundle.js} +1 -1
- package/dist/{150.c8bf724fbe76d0e0696d.bundle.js → 151.0b79280f2a959473ff16.bundle.js} +1 -1
- package/dist/{151.4970e08b91e9849ae5e3.bundle.js → 152.410c52dad18a5a3961f6.bundle.js} +1 -1
- package/dist/{152.8a1ea0a8d04e0873f67b.bundle.js → 153.cb649018e1db6b8c4f1c.bundle.js} +1 -1
- package/dist/{153.64e4e15ca8abeb5268e3.bundle.js → 154.a96812700b8b52d10e57.bundle.js} +1 -1
- package/dist/160.1e607beff0e4f8e426cf.bundle.js +1 -0
- package/dist/{161.228b61b39d936f8fca31.bundle.js → 161.2a41444b94b2db7dd638.bundle.js} +1 -1
- package/dist/{163.716d49313f3e196497dd.bundle.js → 163.9c8a1cb6d8692b5347a4.bundle.js} +1 -1
- package/dist/{166.31241e54608319e510e2.bundle.js → 166.c08c74fdaa7965adecbc.bundle.js} +1 -1
- package/dist/{17.019de109eebe6b7563fe.bundle.js → 17.e163dfcc19d77667295a.bundle.js} +1 -1
- package/dist/{173.425381e5433b54da911c.bundle.js → 173.4fb35b26d3b118d10626.bundle.js} +1 -1
- package/dist/{175.b94e42f1b1b7479f46ad.bundle.js → 175.ec71d7bdff18c571a78e.bundle.js} +1 -1
- package/dist/{179.63500ae70b7715467e79.bundle.js → 179.be20755cb9848e72b319.bundle.js} +1 -1
- package/dist/{18.6722328814b9fcee2f6e.bundle.js → 18.b2d04af2d60cc37a5ebe.bundle.js} +1 -1
- package/dist/{180.a91ac4fc484a71bd5ed8.bundle.js → 180.a82dac6c561436705ae7.bundle.js} +1 -1
- package/dist/{19.a0af0ec7c0e4eb7ab20c.bundle.js → 19.407c7beb11ea143e1f9e.bundle.js} +1 -1
- package/dist/{190.431c135250df34322375.bundle.js → 190.4969eb91b83aaa7cd263.bundle.js} +1 -1
- package/dist/{2.354e410d4fb45ab44420.bundle.js → 2.842d68f9e1fac66644aa.bundle.js} +1 -1
- package/dist/{20.b2e6e5248ede44286621.bundle.js → 20.d9c0a2300fac55616a64.bundle.js} +1 -1
- package/dist/{21.6de69abd52835f511f89.bundle.js → 21.db9a15c2ce6264384788.bundle.js} +1 -1
- package/dist/{22.035be7329fd099903c2b.bundle.js → 22.1408d06830b72a459d6a.bundle.js} +1 -1
- package/dist/{23.f499db643c1d187eefe1.bundle.js → 23.e6835ca70f33d8babcca.bundle.js} +1 -1
- package/dist/231.909faa919088245e9988.bundle.js +1 -1
- package/dist/{24.057be6f617f4e3f35691.bundle.js → 24.8fbf33e98e7c306e8ea8.bundle.js} +1 -1
- package/dist/{242.c2143bfd879222a393dc.bundle.js → 242.2aceac5a4d9f377f3553.bundle.js} +1 -1
- package/dist/{243.ed8bd30b9501bcb22fd3.bundle.js → 243.35701551c53ddd41d3e2.bundle.js} +1 -1
- package/dist/{248.35714eeadd519aa9dfcf.bundle.js → 248.b1fb4b93555c3f69bc46.bundle.js} +1 -1
- package/dist/{25.25d1fdcb1cbeafd51681.bundle.js → 25.6f945a6e26e6daa27763.bundle.js} +1 -1
- package/dist/{258.af0b3d78c0f9b4c4b483.bundle.js → 258.fc7172db37e5b0ca1279.bundle.js} +1 -1
- package/dist/{26.3aa8a6a7f10039840838.bundle.js → 26.76be6828c642933221c3.bundle.js} +1 -1
- package/dist/{264.c6d038d027b8f5579b62.bundle.js → 264.8e759dd1686c37c32b07.bundle.js} +1 -1
- package/dist/{287.4f8a30c6c6c72ebafedb.bundle.js → 287.a750fc40fa90418f3d6d.bundle.js} +1 -1
- package/dist/{29.33b92413c2f0a708b821.bundle.js → 29.5ec5948f2e30819e6dc8.bundle.js} +1 -1
- package/dist/{3.77b848d2eb7fdb2523b0.bundle.js → 3.33dccf88ff294b9ba7cf.bundle.js} +1 -1
- package/dist/{30.f818533689767fa3e2ca.bundle.js → 30.a60e3c2ac0de3b37e185.bundle.js} +1 -1
- package/dist/31.7452fe0f096c31a9a1f1.bundle.js +2 -0
- package/dist/{312.0e853d11527c8a2fc070.bundle.js → 312.c03a255fbafa0d4335b7.bundle.js} +1 -1
- package/dist/{32.e14fc108d80a26925f88.bundle.js → 32.14b30077e63f4b1b729a.bundle.js} +1 -1
- package/dist/{322.6524ee61a5bbcdc82bad.bundle.js → 322.34c7ffacecadc1dff436.bundle.js} +1 -1
- package/dist/{33.fec387c3be8b00368957.bundle.js → 33.da597e608351b4872771.bundle.js} +1 -1
- package/dist/{332.2db32da5af5ac8856a0c.bundle.js → 332.eb8ac0b7d982535eb48b.bundle.js} +1 -1
- package/dist/{334.2970372fd546db2cd792.bundle.js → 334.85e45ef3709738a8c800.bundle.js} +1 -1
- package/dist/{335.b445bf889c4bfaa20ded.bundle.js → 335.5a6a3768096f7e02a5a3.bundle.js} +1 -1
- package/dist/{34.61223a86d6cb125fc2c8.bundle.js → 34.51476f9015bca2457953.bundle.js} +1 -1
- package/dist/{348.a113e5a47d253a04ee81.bundle.js → 348.da14c1b3111036fe2e02.bundle.js} +1 -1
- package/dist/{35.1b457bfdeea08b897d25.bundle.js → 35.dec1963ba9e2a21fdbec.bundle.js} +1 -1
- package/dist/{353.8dbc0f6a10d578ed65d8.bundle.js → 353.5ca0dd499b0e4ec5a228.bundle.js} +1 -1
- package/dist/{36.54cce0e26c592b832258.bundle.js → 36.5bdd80f32426b30c458d.bundle.js} +1 -1
- package/dist/{363.7a3d9b6e636d736c57b1.bundle.js → 363.fe7a10fbfe3ad1a31725.bundle.js} +1 -1
- package/dist/{37.be47535106d4b3dbc077.bundle.js → 37.3e74a6a07640c4d8db96.bundle.js} +1 -1
- package/dist/{38.79bf8cac11760d2e69be.bundle.js → 38.8819c36a5204129f3dbc.bundle.js} +1 -1
- package/dist/{381.aea7ee474ca60accc01b.bundle.js → 381.7705312c8cedfe733a17.bundle.js} +1 -1
- package/dist/{382.c69f3647cc33ace74db4.bundle.js → 382.3b6533fe63bb7b89d2a6.bundle.js} +1 -1
- package/dist/{385.559499835625e3e755d3.bundle.js → 385.93498ab442f8c50fadbc.bundle.js} +1 -1
- package/dist/{39.051d67965709d49db0ab.bundle.js → 39.8be9b0247c3518abbf8b.bundle.js} +1 -1
- package/dist/{392.96254712f6158ac44044.bundle.js → 392.fd509c86891257f9777f.bundle.js} +1 -1
- package/dist/399.0a3aec07fe2383cc35ba.bundle.js +1 -0
- package/dist/{40.9208517ef50b6f8024c6.bundle.js → 40.2747ad0262dc133c782c.bundle.js} +1 -1
- package/dist/404.163e08fb2eeea2362f8a.bundle.js +1 -0
- package/dist/{41.0d8779a7af2eb26cf157.bundle.js → 41.c6545eb0ce13e63738d2.bundle.js} +1 -1
- package/dist/410.b74d59055b7cf830abe5.bundle.js +1 -0
- package/dist/416.68f6286f80654cdbe4e4.bundle.js +1 -1
- package/dist/417.70adf0a6f0571c394764.bundle.js +1 -1
- package/dist/42.baaa159c3b1e81422600.bundle.js +1 -0
- package/dist/423.6edb13ec0cf08388c947.bundle.js +1 -1
- package/dist/424.725b821051516e73783a.bundle.js +1 -1
- package/dist/425.03fcf969da1a4e92fec3.bundle.js +1 -1
- package/dist/426.aa6924f6f1192d037009.bundle.js +1 -1
- package/dist/427.5c7b72141707b841e8a3.bundle.js +1 -1
- package/dist/428.0d471ce7c68654947c04.bundle.js +1 -1
- package/dist/{43.96e8540045f061114280.bundle.js → 43.46cf7aa71531400f5ce3.bundle.js} +1 -1
- package/dist/{44.45a26f697588279fbc60.bundle.js → 44.ec337831549cfeaab224.bundle.js} +1 -1
- package/dist/443.969280af4067a22d1a8b.bundle.js +1 -1
- package/dist/444.a5971579184b091ed392.bundle.js +1 -1
- package/dist/445.2b20cb9e68a11879f6c4.bundle.js +1 -1
- package/dist/446.fe3cf3d6e288c8c4444b.bundle.js +1 -1
- package/dist/447.d1d078921f6f28e2fa38.bundle.js +1 -1
- package/dist/448.d6c9bed6d99b8b23619f.bundle.js +1 -1
- package/dist/{45.8c13732f2859713c90c4.bundle.js → 45.e79cfcb4606177c83d29.bundle.js} +1 -1
- package/dist/{46.f04ca39b752caadd9714.bundle.js → 46.db4b433aebdbb6965f9d.bundle.js} +1 -1
- package/dist/468.8e259940c62a68ef3055.bundle.js +1 -1
- package/dist/{47.5773e1581c385ba39851.bundle.js → 47.89ad9da6a07545789631.bundle.js} +1 -1
- package/dist/{48.06454bbe08df5938e67a.bundle.js → 48.8726b8de8055297cec7c.bundle.js} +1 -1
- package/dist/480.379bf3b338e0a3224a1f.bundle.js +1 -1
- package/dist/481.0387239b174f787e70ea.bundle.js +1 -1
- package/dist/483.c81275cb05dd78ce389f.bundle.js +1 -1
- package/dist/484.25a82c267c3a705d2a65.bundle.js +1 -1
- package/dist/485.91cbfbfd37eccde375c9.bundle.js +1 -1
- package/dist/488.a69dcce23066c0dafdf7.bundle.js +1 -1
- package/dist/489.a976085b601cccf438d4.bundle.js +1 -1
- package/dist/49.ec8921fc54aaae50ca52.bundle.js +1 -0
- package/dist/490.d3e0f3e499b5a24f6808.bundle.js +1 -1
- package/dist/491.62c185868f9d99dd5713.bundle.js +1 -1
- package/dist/5.163df03f5440d982d268.bundle.js +2 -0
- package/dist/50.4886e820614f9dadb147.bundle.js +1 -0
- package/dist/{51.676e3d8a0e328ad836ed.bundle.js → 51.014f0ee2c2a7ff9ce3ff.bundle.js} +1 -1
- package/dist/{52.cfdfa7095a554e758861.bundle.js → 52.85c3ec8030d92959e556.bundle.js} +1 -1
- package/dist/{54.c54ba6791e3926ebb553.bundle.js → 54.f1ed20f259011ef082b2.bundle.js} +1 -1
- package/dist/{55.fb160be660f713a3d6a1.bundle.js → 55.3262334c9d8a63b347ab.bundle.js} +1 -1
- package/dist/{56.a97521bde50d8e02ab1d.bundle.js → 56.f9d140f83b5462444e57.bundle.js} +1 -1
- package/dist/{57.ec17cacc850ae1904aeb.bundle.js → 57.fcd6814bee867f2345e7.bundle.js} +1 -1
- package/dist/{58.0c8ce6607800bf7ff0ac.bundle.js → 58.914f27e1a230e164d29b.bundle.js} +1 -1
- package/dist/{59.47183b72936629232e7f.bundle.js → 59.a7f0559fb46565813cf0.bundle.js} +1 -1
- package/dist/{6.33f8c6c7e324640238de.bundle.js → 6.0bfc114054ad3b233305.bundle.js} +1 -1
- package/dist/{60.046829a1be3f196bef1c.bundle.js → 60.6c9b4c93b093288c7649.bundle.js} +1 -1
- package/dist/{61.f625328fcc0d35aa07a4.bundle.js → 61.424616e10051d7cdbc93.bundle.js} +1 -1
- package/dist/{62.842d67b8758eed682f2c.bundle.js → 62.c335ec2480066d4422a9.bundle.js} +1 -1
- package/dist/63.e55beded50a778a97299.bundle.js +1 -0
- package/dist/{63.c3630cbfa8f6884a417d.bundle.js → 64.7a62b6f780380840f244.bundle.js} +1 -1
- package/dist/{64.91ba76d42905a3d9afbe.bundle.js → 65.8d5f1b79d228176db399.bundle.js} +1 -1
- package/dist/{65.198a4d69873309746593.bundle.js → 66.75d04ae3be915ecd5afe.bundle.js} +1 -1
- package/dist/{66.b7385a74d4f3287237ba.bundle.js → 67.dbc1e4410498f4ceae46.bundle.js} +1 -1
- package/dist/{67.3488f2543baf36d3c494.bundle.js → 68.aeae93de29be6d346977.bundle.js} +1 -1
- package/dist/{68.4e51b896e74fbd145701.bundle.js → 69.3024e70e93884b7138eb.bundle.js} +1 -1
- package/dist/{69.a2244fec1e7110f5aeec.bundle.js → 70.f982fe4a8c44d2ef72a6.bundle.js} +1 -1
- package/dist/{70.0b30be583854923aadc1.bundle.js → 71.8ffc1c2036362cf40526.bundle.js} +1 -1
- package/dist/{71.24d20933fd9614cf27af.bundle.js → 72.a47d3fdd3239098987a8.bundle.js} +1 -1
- package/dist/{72.5d2f018d17e995bc6455.bundle.js → 73.1d8cf985f584d6a29f1b.bundle.js} +1 -1
- package/dist/{73.3f407c010a17e4a109b9.bundle.js → 74.70762fed64c1503da986.bundle.js} +1 -1
- package/dist/{74.1d496e6a8dc0abfcbe04.bundle.js → 75.e464e055d7b66bf2fc93.bundle.js} +1 -1
- package/dist/76.fc1058890354a7ee6abe.bundle.js +1 -0
- package/dist/{76.9ca923a9265537ac7be4.bundle.js → 77.bf8560beda63d53b83c2.bundle.js} +1 -1
- package/dist/{77.f53fbf119a8b73148a25.bundle.js → 78.eecf35e4f25434df649e.bundle.js} +1 -1
- package/dist/{78.933cb90bda144ed95290.bundle.js → 79.074403a4200f684a0945.bundle.js} +1 -1
- package/dist/{8.3cf83e59a56858648ad9.bundle.js → 8.e3c3c3676785a030527d.bundle.js} +1 -1
- package/dist/{79.6e0224e241895965a9d3.bundle.js → 80.07a80c5fe69c039db15d.bundle.js} +1 -1
- package/dist/{80.f7d6d3108e6d18b96cd7.bundle.js → 81.234a3c0b3136c4a55730.bundle.js} +1 -1
- package/dist/{81.b79dd505cb205eb7eff0.bundle.js → 82.3e71f24921a2283967c3.bundle.js} +1 -1
- package/dist/{82.cd869e55416407b078e0.bundle.js → 83.cf2e3938d315b0470906.bundle.js} +1 -1
- package/dist/{83.b085735389d935aa6f42.bundle.js → 84.c1e18d720b266e35aec2.bundle.js} +1 -1
- package/dist/{84.7f9377fc605aff3f0d48.bundle.js → 85.7dc677e973a2dfcddfea.bundle.js} +1 -1
- package/dist/86.adb4b3504c93eb726fcd.bundle.js +1 -0
- package/dist/{85.8a74811c261c635235f7.bundle.js → 87.ddab9647e5ff9f432212.bundle.js} +1 -1
- package/dist/{86.c491436398aef8142dc3.bundle.js → 88.e04e9207f68a222a8a64.bundle.js} +1 -1
- package/dist/{87.cf9f719c3dd04bc64102.bundle.js → 89.51eac4bd9aa2668b96fb.bundle.js} +1 -1
- package/dist/{88.7d844f12b9d68b0be1d7.bundle.js → 90.ac1501d736615a2bc7f6.bundle.js} +1 -1
- package/dist/{89.2c1bcd6a70ba8769b6b9.bundle.js → 91.4c80dbc7c0af8d2d07f5.bundle.js} +1 -1
- package/dist/{90.b93a0ecac4f5bcfeed0f.bundle.js → 92.69c6a0625b9e94d1a9df.bundle.js} +1 -1
- package/dist/{91.44e1598ed46ac2197521.bundle.js → 93.4e0f1104ab14c3dfae71.bundle.js} +1 -1
- package/dist/{92.e81e734ef32fe8b56d78.bundle.js → 94.62f609daaeaf1e0b9f63.bundle.js} +1 -1
- package/dist/{93.6486890affff9e0f6ca8.bundle.js → 95.2c784e759051491850fb.bundle.js} +1 -1
- package/dist/{94.13212f8f2d50c66cb482.bundle.js → 96.22c66e3781a4afc22d1a.bundle.js} +1 -1
- package/dist/{95.6fe91e68bef2c41f2645.bundle.js → 97.856052734f379717d4cc.bundle.js} +1 -1
- package/dist/{96.4bd66eace72867bf76e1.bundle.js → 98.be86330473bf291530fa.bundle.js} +1 -1
- package/dist/{97.4cfafc4c6cedd50e973e.bundle.js → 99.6af4734887301734ebbe.bundle.js} +1 -1
- package/dist/{bundle.e7ff3a088b4fc9e2ec9e.bundle.js → bundle.31413cc7737cbad7f78d.bundle.js} +19 -19
- package/dist/css/autocomplete.css +5 -0
- package/dist/css/clustermanagement.css +10 -7
- package/dist/css/rdf-class-hierarchy.css +1 -1
- package/dist/i18n/locale-en.json +11 -1
- package/dist/i18n/locale-fr.json +11 -1
- package/dist/index.html +3 -3
- package/dist/js/angular/autocomplete/templates/modal/add-label.html +5 -2
- package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +16 -7
- package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
- package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.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/shuttle-multiselect/templates/shuttle-multiselect.html +1 -1
- package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
- package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
- package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
- package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +2 -2
- package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
- package/dist/js/angular/graphql/templates/graphql-playground.html +1 -1
- package/dist/js/angular/graphql/templates/modal/endpoint-configuration-modal.html +1 -1
- package/dist/js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html +1 -1
- package/dist/js/angular/graphql/templates/modal/import-endpoint-definition-modal.html +1 -1
- package/dist/js/angular/security/templates/user.html +2 -2
- package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
- package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +2 -2
- package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
- package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
- package/dist/license-checker.json +4 -4
- package/dist/pages/aclmanagement.html +2 -2
- package/dist/pages/autocomplete.html +1 -1
- package/dist/pages/choose-repository-type.html +1 -1
- package/dist/pages/cluster-management/clusterInfo.html +3 -3
- package/dist/pages/create-index.html +1 -1
- package/dist/pages/dependencies.html +1 -1
- package/dist/pages/domainRangeInfo.html +2 -2
- package/dist/pages/edit.html +1 -1
- package/dist/pages/explore.html +1 -1
- package/dist/pages/export.html +1 -1
- package/dist/pages/find.html +1 -1
- package/dist/pages/graph-config/saveGraphConfig.html +8 -8
- package/dist/pages/graphs-visualizations.html +7 -7
- package/dist/pages/guides.html +1 -1
- package/dist/pages/import.html +2 -2
- package/dist/pages/jdbc-create.html +1 -1
- package/dist/pages/monitor/backup-and-restore.html +1 -1
- package/dist/pages/monitor/queries.html +1 -1
- package/dist/pages/monitor/resources.html +1 -1
- package/dist/pages/namespaces.html +2 -2
- package/dist/pages/plugins.html +1 -1
- package/dist/pages/rdfClassHierarchyInfo.html +9 -11
- 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 +2 -2
- package/dist/res/swagger5/index.html +12 -12
- package/package.json +2 -2
- package/dist/102.2b1c8399187ccefe5a4f.bundle.js +0 -1
- package/dist/11.7343b4e08a786f0a1eab.bundle.js +0 -1
- package/dist/12.3669f82ad6489ffeb12b.bundle.js +0 -1
- package/dist/154.89f16e758f1caaae814c.bundle.js +0 -1
- package/dist/160.90a42dd6a992307c602d.bundle.js +0 -1
- package/dist/31.721783158dcfdee0b882.bundle.js +0 -2
- package/dist/399.b13be7ef0c258335c762.bundle.js +0 -1
- package/dist/404.00ef41fe988cd9161359.bundle.js +0 -1
- package/dist/410.a86d6bdafde1b951e239.bundle.js +0 -1
- package/dist/42.0147219d61d3814c266c.bundle.js +0 -1
- package/dist/49.6b885bb67696745b1634.bundle.js +0 -1
- package/dist/5.045fbb4da4ea6659e905.bundle.js +0 -2
- package/dist/50.ee3ed147b2bc2382a0a2.bundle.js +0 -1
- package/dist/75.0e43af19262a978d6aab.bundle.js +0 -1
- package/dist/98.6586c3413d178a0cab8c.bundle.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[35,36,47,72,81,95,120,242,318,319,354,363,383],{102:function(t,e,n){"use strict";n.r(e),n.d(e,"TTYGEventName",(function(){return i}));var o=n(24);function r(t){var e=void 0,n=void 0,r=void 0,a=void 0,s={},c=void 0,u=!1,l=function(){return Object(o.cloneDeep)(e)},d=function(){return Object(o.cloneDeep)(n)},f=function(t){n=Object(o.cloneDeep)(t),h(i.CHAT_LIST_UPDATED,d())},g=function(){return Object(o.cloneDeep)(r)},p=function(){return Object(o.cloneDeep)(a)},m=function(){return Object(o.cloneDeep)(s)},y=function(t){return!!s[t]},E=function(){return u},h=function(e,n){t.emitSync(e,Object(o.cloneDeep)(n))},T=function(e,n){return t.subscribeSync(e,(function(t){return n(t)}))};return{resetContext:function(){e=void 0,n=void 0,r=void 0,a=void 0,s={},c=void 0,u=!1},emit:h,subscribe:T,getChats:d,updateChats:f,addChat:function(t){n.appendChat(t),f(n)},replaceChat:function(t,e){n.replaceChat(t,e),f(n)},onChatsListChanged:function(t){return n&&angular.isFunction(t)&&t(d()),T(i.CHAT_LIST_UPDATED,(function(e){return t(e)}))},getSelectedChat:g,selectChat:function(t){r&&r.id===t.id||(r=Object(o.cloneDeep)(t),h(i.SELECT_CHAT,g()))},deselectChat:function(){r=void 0,h(i.SELECT_CHAT,g())},deleteChat:function(t){n.deleteChat(t),f(n)},onSelectedChatChanged:function(t){return angular.isFunction(t)&&t(g()),T(i.SELECT_CHAT,(function(e){return t(e)}))},updateSelectedChat:function(t){r&&r.id&&t&&r.id!==t.id||(r=Object(o.cloneDeep)(t),h(i.SELECTED_CHAT_UPDATED,g()))},onSelectedChatUpdated:function(t){return r&&angular.isFunction(t)&&t(g()),T(i.SELECTED_CHAT_UPDATED,(function(e){return t(e)}))},onLastMessageReceived:function(t){return r&&angular.isFunction(t)&&t(g()),T(i.LAST_MESSAGE_RECEIVED,(function(e){return t(e)}))},updateAgents:function(t){e=Object(o.cloneDeep)(t),h(i.AGENT_LIST_UPDATED,l())},onAgentsListChanged:function(t){return e&&angular.isFunction(t)&&t(l()),T(i.AGENT_LIST_UPDATED,(function(e){return t(e)}))},getAgents:l,getAgent:function(t){if(e)return Object(o.cloneDeep)(e.getAgent(t))},selectAgent:function(t){a=Object(o.cloneDeep)(t),h(i.AGENT_SELECTED,p())},getSelectedAgent:p,onSelectedAgentChanged:function(t){return a&&angular.isFunction(t)&&t(p()),T(i.AGENT_SELECTED,(function(e){return t(e)}))},getDefaultAgent:function(){return Object(o.cloneDeep)(c)},setDefaultAgent:function(t){c=t},setCanModifyAgent:function(t){u=Object(o.cloneDeep)(t),h(i.CAN_MODIFY_AGENT_UPDATED,E())},getCanModifyAgent:E,onCanUpdateAgentUpdated:function(t){return angular.isFunction(t)&&t(E()),T(i.CAN_MODIFY_AGENT_UPDATED,(function(e){return t(e)}))},hasExplainResponse:y,toggleExplainResponse:function(t){y(t)&&(s[t].expanded=!s[t].expanded,h(i.EXPLAIN_RESPONSE_CACHE_UPDATED,m()))},getExplainResponse:function(t){return Object(o.cloneDeep)(s[t])},addExplainResponseCache:function(t){s[t.answerId]=Object(o.cloneDeep)(t),h(i.EXPLAIN_RESPONSE_CACHE_UPDATED,m())},onExplainResponseCacheUpdated:function(t){return angular.isFunction(t)&&t(m()),T(i.EXPLAIN_RESPONSE_CACHE_UPDATED,(function(e){return t(e)}))}}}angular.module("graphdb.framework.ttyg.services.ttygcontext",[]).factory("TTYGContextService",r),r.$inject=["EventEmitterService","TTYGService"];var i={CREATE_CHAT:"createChat",CREATE_CHAT_SUCCESSFUL:"chatCreated",CREATE_CHAT_FAILURE:"chatCreationFailed",RENAME_CHAT:"renameChat",RENAME_CHAT_SUCCESSFUL:"chatRenamed",RENAME_CHAT_FAILURE:"chatRenamedFailure",SELECT_CHAT:"selectChat",SELECTED_CHAT_UPDATED:"selectChatUpdated",LAST_MESSAGE_RECEIVED:"lastMessageReceived",DELETING_CHAT:"deletingChat",DELETE_CHAT:"deleteChat",DELETE_CHAT_SUCCESSFUL:"chatDeleted",DELETE_CHAT_FAILURE:"chatDeletedFailure",CHAT_EXPORT:"chatExport",CHAT_EXPORT_SUCCESSFUL:"chatExportSuccess",CHAT_EXPORT_FAILURE:"chatExportFailure",CHAT_LIST_UPDATED:"chatListUpdated",ASK_QUESTION:"askQuestion",ASK_QUESTION_FAILURE:"askQuestionFailure",CONTINUE_CHAT_RUN:"continueChatRun",LOAD_CHATS:"loadChats",LOAD_CHAT_SUCCESSFUL:"loadChatSuccess",LOAD_CHAT_FAILURE:"loadChatFailure",AGENT_LIST_UPDATED:"agentListUpdated",OPEN_AGENT_SETTINGS:"openAgentSettings",EDIT_AGENT:"editAgent",CLONE_AGENT:"cloneAgent",DELETE_AGENT:"deleteAgent",AGENT_DELETED:"agentDeleted",DELETING_AGENT:"deletingAgent",AGENT_SELECTED:"agentSelected",GO_TO_CREATE_SIMILARITY_VIEW:"goToCreateSimilarityView",GO_TO_CONNECTORS_VIEW:"goToConnectorsView",EXPLAIN_RESPONSE:"explainResponse",EXPLAIN_RESPONSE_CACHE_UPDATED:"explainResponseCacheUpdated",GO_TO_SPARQL_EDITOR:"openQueryInSparqlEditor",CAN_MODIFY_AGENT_UPDATED:"canModifyAgentUpdated"}},106:function(t,e,n){"use strict";n.r(e),n.d(e,"SimilarityIndexType",(function(){return o}));var o={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:function(t){return o.TEXT===t},isTextLiteralType:function(t){return o.TEXT_LITERAL===t},isPredicationType:function(t){return o.PREDICATION===t}}},107:function(t,e,n){"use strict";n.r(e),n.d(e,"SimilarityIndexStatus",(function(){return o}));var o={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:function(t){return o.CREATING===t},isBuildingStatus:function(t){return o.BUILDING===t},isBuiltStatus:function(t){return o.BUILT===t},isRebuildingStatus:function(t){return o.REBUILDING===t},isOutdatedStatus:function(t){return o.OUTDATED===t},isInterruptedStatus:function(t){return o.INTERRUPTED===t},isObsoleteStatus:function(t){return o.OBSOLETE===t},isFailedStatus:function(t){return o.FAILED===t}}},110:function(t,e,n){"use strict";n.r(e),n.d(e,"SimilarityIndex",(function(){return c}));var o=n(106),r=n(107);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,s(o.key),o)}}function s(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var c=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=o.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""},(e=[{key:"isTextType",value:function(){return o.SimilarityIndexType.isTextType(this.type)}},{key:"isTextLiteralType",value:function(){return o.SimilarityIndexType.isTextLiteralType(this.type)}},{key:"isPredicationType",value:function(){return o.SimilarityIndexType.isPredicationType(this.type)}},{key:"isCreatingStatus",value:function(){return r.SimilarityIndexStatus.isCreatingStatus(this.status)}},{key:"isBuildingStatus",value:function(){return r.SimilarityIndexStatus.isBuildingStatus(this.status)}},{key:"isBuiltStatus",value:function(){return r.SimilarityIndexStatus.isBuiltStatus(this.status)}},{key:"isRebuildingStatus",value:function(){return r.SimilarityIndexStatus.isRebuildingStatus(this.status)}},{key:"isOutdatedStatus",value:function(){return r.SimilarityIndexStatus.isOutdatedStatus(this.status)}},{key:"isInterruptedStatus",value:function(){return r.SimilarityIndexStatus.isInterruptedStatus(this.status)}},{key:"isObsoleteStatus",value:function(){return r.SimilarityIndexStatus.isObsoleteStatus(this.status)}},{key:"isFailedStatus",value:function(){return r.SimilarityIndexStatus.isFailedStatus(this.status)}}])&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},111:function(t,e){angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",n),n.$inject=["$http"];function n(t){return{getConnectors:function(e,n){if(e)return t.get("rest/connectors",{headers:{"X-GraphDB-Repository":e,"X-GraphDB-Repository-Location":n}});return t.get("rest/connectors")},initConnector:function(e){return t.get("".concat("rest/connectors","/options?prefix=").concat(e))},hasConnector:function(e,n,o){if(n)return t.get("".concat("rest/connectors","/existing?prefix=").concat(e),{headers:{"X-GraphDB-Repository":n,"X-GraphDB-Repository-Location":o}});return t.get("".concat("rest/connectors","/existing?prefix=").concat(e))},checkConnector:function(e){return t.post("".concat("rest/connectors","/check"),e,{headers:{"Content-Type":"text/plain"}})}}}},117:function(t,e,n){"use strict";n.r(e),n.d(e,"mapIndexesResponseToSimilarityIndex",(function(){return r}));var o=n(110),r=function(t){return t.map((function(t){var e=new o.SimilarityIndex;return e.type=t.type,e.stopList=t.stopList,e.status=t.status,e.selectQuery=t.selectQuery,e.searchQuery=t.searchQuery,e.sameAs=t.sameAs,e.options=t.options,e.name=t.name,e.infer=t.infer,e.analyzer=t.analyzer,e.analogicalQuery=t.analogicalQuery,e}))}},122:function(t,e,n){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,s(o.key),o)}}function a(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}n.r(e),n.d(e,"ConnectorTypesListModel",(function(){return c})),n.d(e,"ConnectorTypeModel",(function(){return u})),n.d(e,"ConnectorListModel",(function(){return l})),n.d(e,"ConnectorModel",(function(){return d})),n.d(e,"ConnectorSettingsModel",(function(){return f}));var c=function(){return a((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,t),this._connectors=e.connectors||[]}),[{key:"getConnectorByName",value:function(t){return this._connectors.find((function(e){return e.name===t}))}},{key:"connectors",get:function(){return this._connectors},set:function(t){this._connectors=t}}])}(),u=function(){return a((function t(e){r(this,t),this._name=e.name,this._prefix=e.prefix}),[{key:"name",get:function(){return this._name},set:function(t){this._name=t}},{key:"prefix",get:function(){return this._prefix},set:function(t){this._prefix=t}}])}(),l=function(){return a((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];r(this,t),this._connectors=e.connectors}),[{key:"connectors",get:function(){return this._connectors},set:function(t){this._connectors=t}}])}(),d=function(){return a((function t(e){r(this,t),this._name=e.name,this._settings=new f(e)}),[{key:"settings",get:function(){return this._settings},set:function(t){this._settings=t}},{key:"name",get:function(){return this._name},set:function(t){this._name=t}}])}(),f=function(){return a((function t(e){r(this,t),this._settings=e.values||{}}),[{key:"settings",get:function(){return this._settings},set:function(t){this._settings=t}}])}()},123:function(t,e){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",n),n.$inject=["$http","$repositories"];function n(t){return{getIndexes:function(e,n){if(e)return t.get("rest/similarity",{headers:{"X-GraphDB-Repository":e,"X-GraphDB-Repository-Location":n}});return t.get("rest/similarity")},getSearchQueries:function(){return t.get("".concat("rest/similarity","/config"))},rebuildIndex:function(t){return e("PUT",t.name,t.options,t.selectQuery,t.searchQuery,t.analogicalQuery,t.stopList,t.infer,t.sameAs,t.type)},deleteIndex:function(e){return t.delete("".concat("rest/similarity","?name=").concat(e.name))},createIndex:e,getSamples:function(){return t.get("".concat("rest/similarity","/samples"))},getQuery:function(e){return t.get("rest/similarity/query",{params:{name:e.indexName,options:e.indexOptions,stopList:e.indexStopList,selectQuery:e.query,infer:e.queryInference,sameAs:e.querySameAs,type:e.viewType,analyzer:e.indexAnalyzer}})},saveSearchQuery:function(e){return t({method:"put",url:"rest/similarity/search-query",data:e})}};function e(e,n,o,r,i,a,s,c,u,l,d){return t({method:e,url:"".concat("rest/similarity"),noCancelOnRouteChange:!0,data:{name:n,options:o,selectQuery:r,stopList:s,infer:c,sameAs:u,type:l,analyzer:d,searchQuery:i,analogicalQuery:a}})}}},125:function(t,e,n){"use strict";n.r(e);n(111);var o=n(134),r=n(25);function i(t){var e=function(e,n){return t.getConnectors(e,n).then((function(t){return Object(o.connectorTypesListMapper)(t.data)}))},n=function(e,n,r){return t.hasConnector(encodeURIComponent(e),n,r).then((function(t){return Object(o.connectorsMapper)(t.data)}))};return{getConnectorTypes:e,getConnectorsByType:n,getConnectorPrefixByName:function(t,n,o){return e(n,o).then((function(e){var n=e.getConnectorByName(t);return n?n.prefix:null}))},getConnectorsByTypeAsSelectMenuOptions:function(t,e,o){return n(t,e,o).then((function(t){return t.connectors.map((function(t){return new r.SelectMenuOptionsModel({value:t.name,label:t.name})}))}))}}}angular.module("graphdb.framework.core.services.connectors",["graphdb.framework.rest.connectors.service"]).factory("ConnectorsService",i),i.$inject=["ConnectorsRestService"]},127:function(t,e,n){"use strict";n.r(e);n(123);var o=n(117),r=n(25);function i(t){var e=function(e,n){return t.getIndexes(e,n).then((function(t){return Object(o.mapIndexesResponseToSimilarityIndex)(t.data)}))};return{getIndexes:e,getIndexesAsMenuModel:function(t,n){return e(t,n).then((function(t){return t.map((function(t){return new r.SelectMenuOptionsModel({label:t.name,value:t.name})}))}))}}}angular.module("graphdb.framework.core.services.similarity",["graphdb.framework.rest.similarity.service"]).factory("SimilarityService",i),i.$inject=["SimilarityRestService"]},134:function(t,e,n){"use strict";n.r(e),n.d(e,"connectorTypesListMapper",(function(){return r})),n.d(e,"connectorsMapper",(function(){return i}));var o=n(122),r=function(t){var e=new o.ConnectorTypesListModel;return t?(e.connectors=Object.keys(t).map((function(e){return new o.ConnectorTypeModel({name:e,prefix:t[e]})})),e):e},i=function(t){var e=new o.ConnectorListModel;return t?(e.connectors=t.map((function(t){return new o.ConnectorModel(t)})),e):e}},179:function(t,e,n){"use strict";n.r(e);n(127),n(125),n(140),n(26);function o(t,e,n,o,r){t.agentInstructionsExplain=r.agentInstructionsExplain,t.close=function(){e.dismiss({})},t.onCloseAgentInstructionsExplainModal=function(){e.dismiss({})};var i=[];t.$on("$destroy",(function(){i.forEach((function(t){return t()}))}))}angular.module("graphdb.framework.ttyg.controllers.agent-instructions-explain-modal",[]).controller("AgentInstructionsExplainModalController",o),o.$inject=["$scope","$uibModalInstance","ModalService","$translate","dialogModel"]},245:function(t,e,n){"use strict";n.r(e);var o=n(1),r=n(141),i=(n(127),n(125),n(140),n(26),n(179),n(12)),a=n(102),s=n(128),c=n(37);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e,n,u,d,f,g,p,m,y,E,h,T,S,_,A,v){t.AGENT_OPERATION=s.AGENT_OPERATION,t.operation=h.operation,t.savingAgent=!1,t.agentFormModel=h.agentFormModel,t.activeRepositoryInfo=h.activeRepositoryInfo,t.extractionMethodLoaderFlags=l({},r.ExtractionMethod.SIMILARITY,!1),t.activeRepositoryList=h.activeRepositoryList,t.extractionMethods=r.ExtractionMethod,t.additionalExtractionMethods=r.AdditionalExtractionMethod,t.ExtractionMethodTemplates=_,t.showAdvancedSettings=!1,t.showHighTemperatureWarning=!1,t.showSystemInstructionWarning=!1,t.similarityIndexes=[],t.retrievalConnectors=[],t.ftsEnabled=!1,t.autocompleteSuggestions=[],t.toggleExtractionMethod=function(e){e.expanded=e.selected,t.agentSettingsForm.extractionMethods.$setTouched(),M(),P[e.method](e)},t.onExtractionMethodPanelToggle=function(t){t.toggleCollapse(),P[t.method](t)},t.toggleAdditionalExtractionMethod=function(e){e.expanded=e.selected,t.checkAutocompleteIndexEnabled(),G[e.method](e)},t.onAdditionalExtractionMethodPanelToggle=function(t){t.toggleCollapse(),G[t.method](t)},t.getModelHelpMessage=function(){var t=Object(o.decodeHTML)(E.instant("ttyg.agent.create_agent_modal.form.model.hint"));return p.trustAsHtml(t)},t.getFTSDisabledHelpMessage=function(){var e=Object(o.decodeHTML)(E.instant("ttyg.agent.create_agent_modal.form.fts_search.fts_disabled_message",{repositoryEditPage:"#/repository/edit/"+t.agentFormModel.repositoryId}));return p.trustAsHtml(e)},t.getAutocompleteDisabledHelpMessage=function(){var t=Object(o.decodeHTML)(E.instant("ttyg.agent.create_agent_modal.form.additional_query_methods.autocomplete_disabled_message",{autocompleteIndexPage:"#/autocomplete"}));return p.trustAsHtml(t)},t.goToCreateSimilarityView=function(){T.emit(a.TTYGEventName.GO_TO_CREATE_SIMILARITY_VIEW,{repositoryId:t.agentFormModel.repositoryId})},t.goToConnectorsView=function(){T.emit(a.TTYGEventName.GO_TO_CONNECTORS_VIEW,{repositoryId:t.agentFormModel.repositoryId})},t.ok=function(){var e=t.agentFormModel.toPayload();return C[t.operation](e)},t.cancel=function(){e.dismiss({})},t.close=function(){e.dismiss({})},t.updateSimilaritySearchPanel=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.agentFormModel.assistantExtractionMethods.getSimilarityExtractionMethod();n.selected&&(e&&(n.similarityIndex=null),D(n))},t.updateRetrievalConnectorPanel=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.agentFormModel.assistantExtractionMethods.getRetrievalExtractionMethod();n.selected&&(e&&(n.retrievalConnectorInstance=null),N(n))},t.checkIfFTSEnabled=function(){t.agentFormModel.repositoryId?t.agentFormModel.assistantExtractionMethods.getFTSSearchExtractionMethod().selected?(t.extractionMethodLoaderFlags[r.ExtractionMethod.FTS_SEARCH]=!0,g.getRepositoryModel({id:t.agentFormModel.repositoryId}).then((function(e){t.ftsEnabled=e.getParamValue(i.REPOSITORY_PARAMS.enableFtsIndex)})).catch((function(t){R(t,"ttyg.agent.messages.error_repository_config_loading")})).finally((function(){t.extractionMethodLoaderFlags[r.ExtractionMethod.FTS_SEARCH]=!1,t.agentSettingsForm.$setValidity("FTSDisabled",t.ftsEnabled)}))):t.agentSettingsForm.$setValidity("FTSDisabled",!0):t.agentSettingsForm.$setValidity("FTSDisabled",!1)},t.onRepositoryChange=function(){w(!0,!0)},t.checkAutocompleteIndexEnabled=function(){A.checkAutocompleteStatus().then((function(e){t.autocompleteEnabled=e})).catch((function(t){m.error(getError(t))}))},t.onRestoreDefaultSystemInstructions=function(){t.agentFormModel.instructions.systemInstruction=t.agentFormModel.instructions.systemInstructionCopy},t.onRestoreDefaultUserInstructions=function(){t.agentFormModel.instructions.userInstruction=t.agentFormModel.instructions.userInstructionCopy},t.onTemperatureChange=function(){t.showHighTemperatureWarning=t.agentFormModel.temperature.value>1},t.onSystemInstructionChange=function(){""===t.agentFormModel.instructions.systemInstruction||t.showSystemInstructionWarning||(t.showSystemInstructionWarning=!0,n.openModalAlert({title:E.instant("ttyg.agent.create_agent_modal.form.system_instruction.overriding_system_instruction_warning.title"),message:E.instant("ttyg.agent.create_agent_modal.form.system_instruction.overriding_system_instruction_warning.body")}).result.then((function(){}))),""===t.agentFormModel.instructions.systemInstruction&&(t.showSystemInstructionWarning=!1)},t.onExplainAgentSettings=function(){var e=t.agentFormModel.toPayload();S.explainAgentSettings(e).then((function(t){var e={templateUrl:"js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html",controller:"AgentInstructionsExplainModalController",windowClass:"agent-instructions-explain-modal",backdrop:"static",resolve:{dialogModel:function(){return{agentInstructionsExplain:t}}},size:"lg"};u.open(e).result.then((function(){}))})).catch((function(t){m.error(getError(t,0,s.TTYG_ERROR_MSG_LENGTH))}))},t.getSuggestions=function(e){var n=e.target.value;v.getAutocompleteSuggestions(n).then(c.mapUriAsNtripleAutocompleteResponse).then((function(e){t.autocompleteSuggestions=e.map((function(t){return{text:t.value}}))})).catch((function(t){m.error(getError(t,0,s.TTYG_ERROR_MSG_LENGTH))}))};var C=l(l(l({},s.AGENT_OPERATION.CREATE,(function(t){return I(t)})),s.AGENT_OPERATION.EDIT,(function(t){return x(t)})),s.AGENT_OPERATION.CLONE,(function(t){return b(t)})),I=function(n){return t.savingAgent=!0,S.createAgent(n).then((function(t){e.close(t),m.success(E.instant("ttyg.agent.messages.agent_save_successfully",{agentName:t.name}))})).catch((function(t){m.error(getError(t,0,s.TTYG_ERROR_MSG_LENGTH))})).finally((function(){t.savingAgent=!1}))},x=function(n){return t.savingAgent=!0,S.editAgent(n).then((function(t){e.close(t),m.success(E.instant("ttyg.agent.messages.agent_save_successfully",{agentName:t.name}))})).catch((function(t){m.error(getError(t,0,s.TTYG_ERROR_MSG_LENGTH))})).finally((function(){t.savingAgent=!1}))},b=function(n){return t.savingAgent=!0,S.createAgent(n).then((function(t){e.close(t),m.success(E.instant("ttyg.agent.messages.agent_save_successfully",{agentName:t.name}))})).catch((function(t){m.error(getError(t,0,s.TTYG_ERROR_MSG_LENGTH))})).finally((function(){t.savingAgent=!1}))},R=function(t,e){console.error(t),m.error(E.instant(e))},M=function(){t.agentSettingsForm.extractionMethods.$setValidity("required",t.agentFormModel.hasExtractionMethodSelected())},L=function(){var e=t.activeRepositoryList.find((function(e){return e.value===t.agentFormModel.repositoryId}));return{repositoryId:e?e.data.repository.id:void 0,repositoryLocation:e?e.data.repository.location:void 0}},D=function(e){if(e.selected||t.agentSettingsForm.$setValidity("missingIndex",!0),e.expanded){t.extractionMethodLoaderFlags[e.method]=!0;var n=L();d.getIndexesAsMenuModel(n.repositoryId,n.repositoryLocation).then((function(n){t.similarityIndexes=n,t.agentSettingsForm.$setValidity("missingIndex",!e.selected||!(!n||!n.length)),O(t.similarityIndexes,e)})).catch((function(e){t.agentSettingsForm.$setValidity("missingIndex",!1),R(e,"ttyg.agent.messages.error_similarity_indexes_loading")})).finally((function(){t.extractionMethodLoaderFlags[e.method]=!1}))}},O=function(t,e){if(0!==t.length){var n=t.find((function(t){return t.value===e.similarityIndex}));e.similarityIndex=n?n.value:t[0].value}else e.similarityIndex=null},N=function(e){if(e.selected||t.agentSettingsForm.$setValidity("missingConnector",!0),e.expanded){t.extractionMethodLoaderFlags[e.method]=!0;var n=L();f.getConnectorPrefixByName("ChatGPT Retrieval",n.repositoryId,n.repositoryLocation).then((function(t){return f.getConnectorsByTypeAsSelectMenuOptions(t,n.repositoryId,n.repositoryLocation)})).then((function(n){t.retrievalConnectors=n,t.agentSettingsForm.$setValidity("missingConnector",!e.selected||!(!n||!n.length)),F(t.retrievalConnectors,e)})).catch((function(e){t.agentSettingsForm.$setValidity("missingConnector",!1),R(e,"ttyg.agent.messages.error_retrieval_connectors_loading")})).finally((function(){t.extractionMethodLoaderFlags[e.method]=!1}))}},F=function(t,e){if(0!==t.length){var n=t.find((function(t){return t.value===e.retrievalConnectorInstance}));e.retrievalConnectorInstance=n?n.value:t[0].value}else e.retrievalConnectorInstance=null},P=l(l(l(l({},r.ExtractionMethod.FTS_SEARCH,(function(e){t.checkIfFTSEnabled()})),r.ExtractionMethod.SPARQL,(function(t){})),r.ExtractionMethod.SIMILARITY,(function(t){return D(t)})),r.ExtractionMethod.RETRIEVAL,(function(t){return N(t)})),G=l(l({},r.AdditionalExtractionMethod.AUTOCOMPLETE_IRI_DISCOVERY_SEARCH,(function(t){return U(t)})),r.AdditionalExtractionMethod.IRI_DISCOVERY_SEARCH,(function(){})),U=function(){t.checkAutocompleteIndexEnabled()},w=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.checkIfFTSEnabled(),t.updateSimilaritySearchPanel(e),t.updateRetrievalConnectorPanel(n),t.checkAutocompleteIndexEnabled()},H=function(){document.hidden||w()};document.addEventListener("visibilitychange",H),t.$on("$destroy",(function(){document.removeEventListener("visibilitychange",H)}));setTimeout(M,0)}angular.module("graphdb.framework.ttyg.controllers.agent-settings-modal",["graphdb.framework.core.services.similarity","graphdb.framework.core.services.connectors","graphdb.framework.rest.repositories.service","graphdb.framework.ttyg.controllers.agent-instructions-explain-modal","ngTagsInput"]).constant("ExtractionMethodTemplates",{iri_discovery_search:"iri-discovery-search"}).controller("AgentSettingsModalController",d),d.$inject=["$scope","$uibModalInstance","ModalService","$uibModal","SimilarityService","ConnectorsService","RepositoriesRestService","$sce","toastr","UriUtils","$translate","dialogModel","TTYGContextService","TTYGService","ExtractionMethodTemplates","AutocompleteService","AutocompleteRestService"]}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[35,36,47,73,82,97,121,242,318,319,354,363,383],{102:function(t,e,n){"use strict";n.r(e),n.d(e,"TTYGEventName",(function(){return i}));var o=n(24);function r(t){var e=void 0,n=void 0,r=void 0,a=void 0,s={},c=void 0,u=!1,l=function(){return Object(o.cloneDeep)(e)},d=function(){return Object(o.cloneDeep)(n)},f=function(t){n=Object(o.cloneDeep)(t),h(i.CHAT_LIST_UPDATED,d())},g=function(){return Object(o.cloneDeep)(r)},p=function(){return Object(o.cloneDeep)(a)},m=function(){return Object(o.cloneDeep)(s)},y=function(t){return!!s[t]},E=function(){return u},h=function(e,n){t.emitSync(e,Object(o.cloneDeep)(n))},T=function(e,n){return t.subscribeSync(e,(function(t){return n(t)}))};return{resetContext:function(){e=void 0,n=void 0,r=void 0,a=void 0,s={},c=void 0,u=!1},emit:h,subscribe:T,getChats:d,updateChats:f,addChat:function(t){n.appendChat(t),f(n)},replaceChat:function(t,e){n.replaceChat(t,e),f(n)},onChatsListChanged:function(t){return n&&angular.isFunction(t)&&t(d()),T(i.CHAT_LIST_UPDATED,(function(e){return t(e)}))},getSelectedChat:g,selectChat:function(t){r&&r.id===t.id||(r=Object(o.cloneDeep)(t),h(i.SELECT_CHAT,g()))},deselectChat:function(){r=void 0,h(i.SELECT_CHAT,g())},deleteChat:function(t){n.deleteChat(t),f(n)},onSelectedChatChanged:function(t){return angular.isFunction(t)&&t(g()),T(i.SELECT_CHAT,(function(e){return t(e)}))},updateSelectedChat:function(t){r&&r.id&&t&&r.id!==t.id||(r=Object(o.cloneDeep)(t),h(i.SELECTED_CHAT_UPDATED,g()))},onSelectedChatUpdated:function(t){return r&&angular.isFunction(t)&&t(g()),T(i.SELECTED_CHAT_UPDATED,(function(e){return t(e)}))},onLastMessageReceived:function(t){return r&&angular.isFunction(t)&&t(g()),T(i.LAST_MESSAGE_RECEIVED,(function(e){return t(e)}))},updateAgents:function(t){e=Object(o.cloneDeep)(t),h(i.AGENT_LIST_UPDATED,l())},onAgentsListChanged:function(t){return e&&angular.isFunction(t)&&t(l()),T(i.AGENT_LIST_UPDATED,(function(e){return t(e)}))},getAgents:l,getAgent:function(t){if(e)return Object(o.cloneDeep)(e.getAgent(t))},selectAgent:function(t){a=Object(o.cloneDeep)(t),h(i.AGENT_SELECTED,p())},getSelectedAgent:p,onSelectedAgentChanged:function(t){return a&&angular.isFunction(t)&&t(p()),T(i.AGENT_SELECTED,(function(e){return t(e)}))},getDefaultAgent:function(){return Object(o.cloneDeep)(c)},setDefaultAgent:function(t){c=t},setCanModifyAgent:function(t){u=Object(o.cloneDeep)(t),h(i.CAN_MODIFY_AGENT_UPDATED,E())},getCanModifyAgent:E,onCanUpdateAgentUpdated:function(t){return angular.isFunction(t)&&t(E()),T(i.CAN_MODIFY_AGENT_UPDATED,(function(e){return t(e)}))},hasExplainResponse:y,toggleExplainResponse:function(t){y(t)&&(s[t].expanded=!s[t].expanded,h(i.EXPLAIN_RESPONSE_CACHE_UPDATED,m()))},getExplainResponse:function(t){return Object(o.cloneDeep)(s[t])},addExplainResponseCache:function(t){s[t.answerId]=Object(o.cloneDeep)(t),h(i.EXPLAIN_RESPONSE_CACHE_UPDATED,m())},onExplainResponseCacheUpdated:function(t){return angular.isFunction(t)&&t(m()),T(i.EXPLAIN_RESPONSE_CACHE_UPDATED,(function(e){return t(e)}))}}}angular.module("graphdb.framework.ttyg.services.ttygcontext",[]).factory("TTYGContextService",r),r.$inject=["EventEmitterService","TTYGService"];var i={CREATE_CHAT:"createChat",CREATE_CHAT_SUCCESSFUL:"chatCreated",CREATE_CHAT_FAILURE:"chatCreationFailed",RENAME_CHAT:"renameChat",RENAME_CHAT_SUCCESSFUL:"chatRenamed",RENAME_CHAT_FAILURE:"chatRenamedFailure",SELECT_CHAT:"selectChat",SELECTED_CHAT_UPDATED:"selectChatUpdated",LAST_MESSAGE_RECEIVED:"lastMessageReceived",DELETING_CHAT:"deletingChat",DELETE_CHAT:"deleteChat",DELETE_CHAT_SUCCESSFUL:"chatDeleted",DELETE_CHAT_FAILURE:"chatDeletedFailure",CHAT_EXPORT:"chatExport",CHAT_EXPORT_SUCCESSFUL:"chatExportSuccess",CHAT_EXPORT_FAILURE:"chatExportFailure",CHAT_LIST_UPDATED:"chatListUpdated",ASK_QUESTION:"askQuestion",ASK_QUESTION_FAILURE:"askQuestionFailure",CONTINUE_CHAT_RUN:"continueChatRun",LOAD_CHATS:"loadChats",LOAD_CHAT_SUCCESSFUL:"loadChatSuccess",LOAD_CHAT_FAILURE:"loadChatFailure",AGENT_LIST_UPDATED:"agentListUpdated",OPEN_AGENT_SETTINGS:"openAgentSettings",EDIT_AGENT:"editAgent",CLONE_AGENT:"cloneAgent",DELETE_AGENT:"deleteAgent",AGENT_DELETED:"agentDeleted",DELETING_AGENT:"deletingAgent",AGENT_SELECTED:"agentSelected",GO_TO_CREATE_SIMILARITY_VIEW:"goToCreateSimilarityView",GO_TO_CONNECTORS_VIEW:"goToConnectorsView",EXPLAIN_RESPONSE:"explainResponse",EXPLAIN_RESPONSE_CACHE_UPDATED:"explainResponseCacheUpdated",GO_TO_SPARQL_EDITOR:"openQueryInSparqlEditor",CAN_MODIFY_AGENT_UPDATED:"canModifyAgentUpdated"}},106:function(t,e,n){"use strict";n.r(e),n.d(e,"SimilarityIndexType",(function(){return o}));var o={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:function(t){return o.TEXT===t},isTextLiteralType:function(t){return o.TEXT_LITERAL===t},isPredicationType:function(t){return o.PREDICATION===t}}},107:function(t,e,n){"use strict";n.r(e),n.d(e,"SimilarityIndexStatus",(function(){return o}));var o={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:function(t){return o.CREATING===t},isBuildingStatus:function(t){return o.BUILDING===t},isBuiltStatus:function(t){return o.BUILT===t},isRebuildingStatus:function(t){return o.REBUILDING===t},isOutdatedStatus:function(t){return o.OUTDATED===t},isInterruptedStatus:function(t){return o.INTERRUPTED===t},isObsoleteStatus:function(t){return o.OBSOLETE===t},isFailedStatus:function(t){return o.FAILED===t}}},110:function(t,e,n){"use strict";n.r(e),n.d(e,"SimilarityIndex",(function(){return c}));var o=n(106),r=n(107);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,s(o.key),o)}}function s(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==i(e)?e:e+""}var c=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=o.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""},(e=[{key:"isTextType",value:function(){return o.SimilarityIndexType.isTextType(this.type)}},{key:"isTextLiteralType",value:function(){return o.SimilarityIndexType.isTextLiteralType(this.type)}},{key:"isPredicationType",value:function(){return o.SimilarityIndexType.isPredicationType(this.type)}},{key:"isCreatingStatus",value:function(){return r.SimilarityIndexStatus.isCreatingStatus(this.status)}},{key:"isBuildingStatus",value:function(){return r.SimilarityIndexStatus.isBuildingStatus(this.status)}},{key:"isBuiltStatus",value:function(){return r.SimilarityIndexStatus.isBuiltStatus(this.status)}},{key:"isRebuildingStatus",value:function(){return r.SimilarityIndexStatus.isRebuildingStatus(this.status)}},{key:"isOutdatedStatus",value:function(){return r.SimilarityIndexStatus.isOutdatedStatus(this.status)}},{key:"isInterruptedStatus",value:function(){return r.SimilarityIndexStatus.isInterruptedStatus(this.status)}},{key:"isObsoleteStatus",value:function(){return r.SimilarityIndexStatus.isObsoleteStatus(this.status)}},{key:"isFailedStatus",value:function(){return r.SimilarityIndexStatus.isFailedStatus(this.status)}}])&&a(t.prototype,e),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},111:function(t,e){angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",n),n.$inject=["$http"];function n(t){return{getConnectors:function(e,n){if(e)return t.get("rest/connectors",{headers:{"X-GraphDB-Repository":e,"X-GraphDB-Repository-Location":n}});return t.get("rest/connectors")},initConnector:function(e){return t.get("".concat("rest/connectors","/options?prefix=").concat(e))},hasConnector:function(e,n,o){if(n)return t.get("".concat("rest/connectors","/existing?prefix=").concat(e),{headers:{"X-GraphDB-Repository":n,"X-GraphDB-Repository-Location":o}});return t.get("".concat("rest/connectors","/existing?prefix=").concat(e))},checkConnector:function(e){return t.post("".concat("rest/connectors","/check"),e,{headers:{"Content-Type":"text/plain"}})}}}},117:function(t,e,n){"use strict";n.r(e),n.d(e,"mapIndexesResponseToSimilarityIndex",(function(){return r}));var o=n(110),r=function(t){return t.map((function(t){var e=new o.SimilarityIndex;return e.type=t.type,e.stopList=t.stopList,e.status=t.status,e.selectQuery=t.selectQuery,e.searchQuery=t.searchQuery,e.sameAs=t.sameAs,e.options=t.options,e.name=t.name,e.infer=t.infer,e.analyzer=t.analyzer,e.analogicalQuery=t.analogicalQuery,e}))}},123:function(t,e,n){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,s(o.key),o)}}function a(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function s(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}n.r(e),n.d(e,"ConnectorTypesListModel",(function(){return c})),n.d(e,"ConnectorTypeModel",(function(){return u})),n.d(e,"ConnectorListModel",(function(){return l})),n.d(e,"ConnectorModel",(function(){return d})),n.d(e,"ConnectorSettingsModel",(function(){return f}));var c=function(){return a((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,t),this._connectors=e.connectors||[]}),[{key:"getConnectorByName",value:function(t){return this._connectors.find((function(e){return e.name===t}))}},{key:"connectors",get:function(){return this._connectors},set:function(t){this._connectors=t}}])}(),u=function(){return a((function t(e){r(this,t),this._name=e.name,this._prefix=e.prefix}),[{key:"name",get:function(){return this._name},set:function(t){this._name=t}},{key:"prefix",get:function(){return this._prefix},set:function(t){this._prefix=t}}])}(),l=function(){return a((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];r(this,t),this._connectors=e.connectors}),[{key:"connectors",get:function(){return this._connectors},set:function(t){this._connectors=t}}])}(),d=function(){return a((function t(e){r(this,t),this._name=e.name,this._settings=new f(e)}),[{key:"settings",get:function(){return this._settings},set:function(t){this._settings=t}},{key:"name",get:function(){return this._name},set:function(t){this._name=t}}])}(),f=function(){return a((function t(e){r(this,t),this._settings=e.values||{}}),[{key:"settings",get:function(){return this._settings},set:function(t){this._settings=t}}])}()},124:function(t,e){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",n),n.$inject=["$http","$repositories"];function n(t){return{getIndexes:function(e,n){if(e)return t.get("rest/similarity",{headers:{"X-GraphDB-Repository":e,"X-GraphDB-Repository-Location":n}});return t.get("rest/similarity")},getSearchQueries:function(){return t.get("".concat("rest/similarity","/config"))},rebuildIndex:function(t){return e("PUT",t.name,t.options,t.selectQuery,t.searchQuery,t.analogicalQuery,t.stopList,t.infer,t.sameAs,t.type)},deleteIndex:function(e){return t.delete("".concat("rest/similarity","?name=").concat(e.name))},createIndex:e,getSamples:function(){return t.get("".concat("rest/similarity","/samples"))},getQuery:function(e){return t.get("rest/similarity/query",{params:{name:e.indexName,options:e.indexOptions,stopList:e.indexStopList,selectQuery:e.query,infer:e.queryInference,sameAs:e.querySameAs,type:e.viewType,analyzer:e.indexAnalyzer}})},saveSearchQuery:function(e){return t({method:"put",url:"rest/similarity/search-query",data:e})}};function e(e,n,o,r,i,a,s,c,u,l,d){return t({method:e,url:"".concat("rest/similarity"),noCancelOnRouteChange:!0,data:{name:n,options:o,selectQuery:r,stopList:s,infer:c,sameAs:u,type:l,analyzer:d,searchQuery:i,analogicalQuery:a}})}}},126:function(t,e,n){"use strict";n.r(e);n(111);var o=n(136),r=n(25);function i(t){var e=function(e,n){return t.getConnectors(e,n).then((function(t){return Object(o.connectorTypesListMapper)(t.data)}))},n=function(e,n,r){return t.hasConnector(encodeURIComponent(e),n,r).then((function(t){return Object(o.connectorsMapper)(t.data)}))};return{getConnectorTypes:e,getConnectorsByType:n,getConnectorPrefixByName:function(t,n,o){return e(n,o).then((function(e){var n=e.getConnectorByName(t);return n?n.prefix:null}))},getConnectorsByTypeAsSelectMenuOptions:function(t,e,o){return n(t,e,o).then((function(t){return t.connectors.map((function(t){return new r.SelectMenuOptionsModel({value:t.name,label:t.name})}))}))}}}angular.module("graphdb.framework.core.services.connectors",["graphdb.framework.rest.connectors.service"]).factory("ConnectorsService",i),i.$inject=["ConnectorsRestService"]},128:function(t,e,n){"use strict";n.r(e);n(124);var o=n(117),r=n(25);function i(t){var e=function(e,n){return t.getIndexes(e,n).then((function(t){return Object(o.mapIndexesResponseToSimilarityIndex)(t.data)}))};return{getIndexes:e,getIndexesAsMenuModel:function(t,n){return e(t,n).then((function(t){return t.map((function(t){return new r.SelectMenuOptionsModel({label:t.name,value:t.name})}))}))}}}angular.module("graphdb.framework.core.services.similarity",["graphdb.framework.rest.similarity.service"]).factory("SimilarityService",i),i.$inject=["SimilarityRestService"]},136:function(t,e,n){"use strict";n.r(e),n.d(e,"connectorTypesListMapper",(function(){return r})),n.d(e,"connectorsMapper",(function(){return i}));var o=n(123),r=function(t){var e=new o.ConnectorTypesListModel;return t?(e.connectors=Object.keys(t).map((function(e){return new o.ConnectorTypeModel({name:e,prefix:t[e]})})),e):e},i=function(t){var e=new o.ConnectorListModel;return t?(e.connectors=t.map((function(t){return new o.ConnectorModel(t)})),e):e}},179:function(t,e,n){"use strict";n.r(e);n(128),n(126),n(142),n(26);function o(t,e,n,o,r){t.agentInstructionsExplain=r.agentInstructionsExplain,t.close=function(){e.dismiss({})},t.onCloseAgentInstructionsExplainModal=function(){e.dismiss({})};var i=[];t.$on("$destroy",(function(){i.forEach((function(t){return t()}))}))}angular.module("graphdb.framework.ttyg.controllers.agent-instructions-explain-modal",[]).controller("AgentInstructionsExplainModalController",o),o.$inject=["$scope","$uibModalInstance","ModalService","$translate","dialogModel"]},245:function(t,e,n){"use strict";n.r(e);var o=n(1),r=n(143),i=(n(128),n(126),n(142),n(26),n(179),n(12)),a=n(102),s=n(129),c=n(37);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e,n,u,d,f,g,p,m,y,E,h,T,S,_,A,v){t.AGENT_OPERATION=s.AGENT_OPERATION,t.operation=h.operation,t.savingAgent=!1,t.agentFormModel=h.agentFormModel,t.activeRepositoryInfo=h.activeRepositoryInfo,t.extractionMethodLoaderFlags=l({},r.ExtractionMethod.SIMILARITY,!1),t.activeRepositoryList=h.activeRepositoryList,t.extractionMethods=r.ExtractionMethod,t.additionalExtractionMethods=r.AdditionalExtractionMethod,t.ExtractionMethodTemplates=_,t.showAdvancedSettings=!1,t.showHighTemperatureWarning=!1,t.showSystemInstructionWarning=!1,t.similarityIndexes=[],t.retrievalConnectors=[],t.ftsEnabled=!1,t.autocompleteSuggestions=[],t.toggleExtractionMethod=function(e){e.expanded=e.selected,t.agentSettingsForm.extractionMethods.$setTouched(),M(),P[e.method](e)},t.onExtractionMethodPanelToggle=function(t){t.toggleCollapse(),P[t.method](t)},t.toggleAdditionalExtractionMethod=function(e){e.expanded=e.selected,t.checkAutocompleteIndexEnabled(),G[e.method](e)},t.onAdditionalExtractionMethodPanelToggle=function(t){t.toggleCollapse(),G[t.method](t)},t.getModelHelpMessage=function(){var t=Object(o.decodeHTML)(E.instant("ttyg.agent.create_agent_modal.form.model.hint"));return p.trustAsHtml(t)},t.getFTSDisabledHelpMessage=function(){var e=Object(o.decodeHTML)(E.instant("ttyg.agent.create_agent_modal.form.fts_search.fts_disabled_message",{repositoryEditPage:"#/repository/edit/"+t.agentFormModel.repositoryId}));return p.trustAsHtml(e)},t.getAutocompleteDisabledHelpMessage=function(){var t=Object(o.decodeHTML)(E.instant("ttyg.agent.create_agent_modal.form.additional_query_methods.autocomplete_disabled_message",{autocompleteIndexPage:"#/autocomplete"}));return p.trustAsHtml(t)},t.goToCreateSimilarityView=function(){T.emit(a.TTYGEventName.GO_TO_CREATE_SIMILARITY_VIEW,{repositoryId:t.agentFormModel.repositoryId})},t.goToConnectorsView=function(){T.emit(a.TTYGEventName.GO_TO_CONNECTORS_VIEW,{repositoryId:t.agentFormModel.repositoryId})},t.ok=function(){var e=t.agentFormModel.toPayload();return C[t.operation](e)},t.cancel=function(){e.dismiss({})},t.close=function(){e.dismiss({})},t.updateSimilaritySearchPanel=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.agentFormModel.assistantExtractionMethods.getSimilarityExtractionMethod();n.selected&&(e&&(n.similarityIndex=null),D(n))},t.updateRetrievalConnectorPanel=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=t.agentFormModel.assistantExtractionMethods.getRetrievalExtractionMethod();n.selected&&(e&&(n.retrievalConnectorInstance=null),N(n))},t.checkIfFTSEnabled=function(){t.agentFormModel.repositoryId?t.agentFormModel.assistantExtractionMethods.getFTSSearchExtractionMethod().selected?(t.extractionMethodLoaderFlags[r.ExtractionMethod.FTS_SEARCH]=!0,g.getRepositoryModel({id:t.agentFormModel.repositoryId}).then((function(e){t.ftsEnabled=e.getParamValue(i.REPOSITORY_PARAMS.enableFtsIndex)})).catch((function(t){R(t,"ttyg.agent.messages.error_repository_config_loading")})).finally((function(){t.extractionMethodLoaderFlags[r.ExtractionMethod.FTS_SEARCH]=!1,t.agentSettingsForm.$setValidity("FTSDisabled",t.ftsEnabled)}))):t.agentSettingsForm.$setValidity("FTSDisabled",!0):t.agentSettingsForm.$setValidity("FTSDisabled",!1)},t.onRepositoryChange=function(){w(!0,!0)},t.checkAutocompleteIndexEnabled=function(){A.checkAutocompleteStatus().then((function(e){t.autocompleteEnabled=e})).catch((function(t){m.error(getError(t))}))},t.onRestoreDefaultSystemInstructions=function(){t.agentFormModel.instructions.systemInstruction=t.agentFormModel.instructions.systemInstructionCopy},t.onRestoreDefaultUserInstructions=function(){t.agentFormModel.instructions.userInstruction=t.agentFormModel.instructions.userInstructionCopy},t.onTemperatureChange=function(){t.showHighTemperatureWarning=t.agentFormModel.temperature.value>1},t.onSystemInstructionChange=function(){""===t.agentFormModel.instructions.systemInstruction||t.showSystemInstructionWarning||(t.showSystemInstructionWarning=!0,n.openModalAlert({title:E.instant("ttyg.agent.create_agent_modal.form.system_instruction.overriding_system_instruction_warning.title"),message:E.instant("ttyg.agent.create_agent_modal.form.system_instruction.overriding_system_instruction_warning.body")}).result.then((function(){}))),""===t.agentFormModel.instructions.systemInstruction&&(t.showSystemInstructionWarning=!1)},t.onExplainAgentSettings=function(){var e=t.agentFormModel.toPayload();S.explainAgentSettings(e).then((function(t){var e={templateUrl:"js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html",controller:"AgentInstructionsExplainModalController",windowClass:"agent-instructions-explain-modal",backdrop:"static",resolve:{dialogModel:function(){return{agentInstructionsExplain:t}}},size:"lg"};u.open(e).result.then((function(){}))})).catch((function(t){m.error(getError(t,0,s.TTYG_ERROR_MSG_LENGTH))}))},t.getSuggestions=function(e){var n=e.target.value;v.getAutocompleteSuggestions(n).then(c.mapUriAsNtripleAutocompleteResponse).then((function(e){t.autocompleteSuggestions=e.map((function(t){return{text:t.value}}))})).catch((function(t){m.error(getError(t,0,s.TTYG_ERROR_MSG_LENGTH))}))};var C=l(l(l({},s.AGENT_OPERATION.CREATE,(function(t){return I(t)})),s.AGENT_OPERATION.EDIT,(function(t){return x(t)})),s.AGENT_OPERATION.CLONE,(function(t){return b(t)})),I=function(n){return t.savingAgent=!0,S.createAgent(n).then((function(t){e.close(t),m.success(E.instant("ttyg.agent.messages.agent_save_successfully",{agentName:t.name}))})).catch((function(t){m.error(getError(t,0,s.TTYG_ERROR_MSG_LENGTH))})).finally((function(){t.savingAgent=!1}))},x=function(n){return t.savingAgent=!0,S.editAgent(n).then((function(t){e.close(t),m.success(E.instant("ttyg.agent.messages.agent_save_successfully",{agentName:t.name}))})).catch((function(t){m.error(getError(t,0,s.TTYG_ERROR_MSG_LENGTH))})).finally((function(){t.savingAgent=!1}))},b=function(n){return t.savingAgent=!0,S.createAgent(n).then((function(t){e.close(t),m.success(E.instant("ttyg.agent.messages.agent_save_successfully",{agentName:t.name}))})).catch((function(t){m.error(getError(t,0,s.TTYG_ERROR_MSG_LENGTH))})).finally((function(){t.savingAgent=!1}))},R=function(t,e){console.error(t),m.error(E.instant(e))},M=function(){t.agentSettingsForm.extractionMethods.$setValidity("required",t.agentFormModel.hasExtractionMethodSelected())},L=function(){var e=t.activeRepositoryList.find((function(e){return e.value===t.agentFormModel.repositoryId}));return{repositoryId:e?e.data.repository.id:void 0,repositoryLocation:e?e.data.repository.location:void 0}},D=function(e){if(e.selected||t.agentSettingsForm.$setValidity("missingIndex",!0),e.expanded){t.extractionMethodLoaderFlags[e.method]=!0;var n=L();d.getIndexesAsMenuModel(n.repositoryId,n.repositoryLocation).then((function(n){t.similarityIndexes=n,t.agentSettingsForm.$setValidity("missingIndex",!e.selected||!(!n||!n.length)),O(t.similarityIndexes,e)})).catch((function(e){t.agentSettingsForm.$setValidity("missingIndex",!1),R(e,"ttyg.agent.messages.error_similarity_indexes_loading")})).finally((function(){t.extractionMethodLoaderFlags[e.method]=!1}))}},O=function(t,e){if(0!==t.length){var n=t.find((function(t){return t.value===e.similarityIndex}));e.similarityIndex=n?n.value:t[0].value}else e.similarityIndex=null},N=function(e){if(e.selected||t.agentSettingsForm.$setValidity("missingConnector",!0),e.expanded){t.extractionMethodLoaderFlags[e.method]=!0;var n=L();f.getConnectorPrefixByName("ChatGPT Retrieval",n.repositoryId,n.repositoryLocation).then((function(t){return f.getConnectorsByTypeAsSelectMenuOptions(t,n.repositoryId,n.repositoryLocation)})).then((function(n){t.retrievalConnectors=n,t.agentSettingsForm.$setValidity("missingConnector",!e.selected||!(!n||!n.length)),F(t.retrievalConnectors,e)})).catch((function(e){t.agentSettingsForm.$setValidity("missingConnector",!1),R(e,"ttyg.agent.messages.error_retrieval_connectors_loading")})).finally((function(){t.extractionMethodLoaderFlags[e.method]=!1}))}},F=function(t,e){if(0!==t.length){var n=t.find((function(t){return t.value===e.retrievalConnectorInstance}));e.retrievalConnectorInstance=n?n.value:t[0].value}else e.retrievalConnectorInstance=null},P=l(l(l(l({},r.ExtractionMethod.FTS_SEARCH,(function(e){t.checkIfFTSEnabled()})),r.ExtractionMethod.SPARQL,(function(t){})),r.ExtractionMethod.SIMILARITY,(function(t){return D(t)})),r.ExtractionMethod.RETRIEVAL,(function(t){return N(t)})),G=l(l({},r.AdditionalExtractionMethod.AUTOCOMPLETE_IRI_DISCOVERY_SEARCH,(function(t){return U(t)})),r.AdditionalExtractionMethod.IRI_DISCOVERY_SEARCH,(function(){})),U=function(){t.checkAutocompleteIndexEnabled()},w=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.checkIfFTSEnabled(),t.updateSimilaritySearchPanel(e),t.updateRetrievalConnectorPanel(n),t.checkAutocompleteIndexEnabled()},H=function(){document.hidden||w()};document.addEventListener("visibilitychange",H),t.$on("$destroy",(function(){document.removeEventListener("visibilitychange",H)}));setTimeout(M,0)}angular.module("graphdb.framework.ttyg.controllers.agent-settings-modal",["graphdb.framework.core.services.similarity","graphdb.framework.core.services.connectors","graphdb.framework.rest.repositories.service","graphdb.framework.ttyg.controllers.agent-instructions-explain-modal","ngTagsInput"]).constant("ExtractionMethodTemplates",{iri_discovery_search:"iri-discovery-search"}).controller("AgentSettingsModalController",d),d.$inject=["$scope","$uibModalInstance","ModalService","$uibModal","SimilarityService","ConnectorsService","RepositoriesRestService","$sce","toastr","UriUtils","$translate","dialogModel","TTYGContextService","TTYGService","ExtractionMethodTemplates","AutocompleteService","AutocompleteRestService"]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[353],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[353],{141:function(t,e){angular.module("graphdb.framework.rest.cluster.service",[]).factory("ClusterRestService",n),n.$inject=["$http"];function n(t){return{getClusterConfig:function(){return t.get("".concat("rest/cluster","/config"))},createCluster:function(e){return t.post("".concat("rest/cluster","/httpConfig"),e)},updateClusterConfiguration:function(e){e.nodes&&delete e.nodes;return t.patch("".concat("rest/cluster","/config"),e)},deleteCluster:function(e){var n=$.param({force:e});return t.delete("".concat("rest/cluster","/config?").concat(n))},replaceNodesInCluster:function(e){return t.patch("".concat("rest/cluster","/httpConfig"),e)},getClusterStatus:function(){return t.get("".concat("rest/cluster","/group/status"))},getNodeStatus:function(){return t.get("".concat("rest/cluster","/node/status"))},addCusterTag:function(e){return t.post("".concat("rest/cluster","/config/tag"),e)},deleteClusterTag:function(e){return t({method:"DELETE",url:"".concat("rest/cluster","/config/tag"),data:{tag:e},headers:{"Content-type":"application/json;charset=utf-8"}})},disableSecondaryMode:function(){return t.delete("".concat("rest/cluster","/config/secondary-mode"))},enableSecondaryMode:function(e){return t.post("".concat("rest/cluster","/config/secondary-mode"),e)}}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[36,47,72,81,95,120,242,318,319,354,363],{106:function(t,e,n){"use strict";n.r(e),n.d(e,"SimilarityIndexType",(function(){return r}));var r={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:function(t){return r.TEXT===t},isTextLiteralType:function(t){return r.TEXT_LITERAL===t},isPredicationType:function(t){return r.PREDICATION===t}}},107:function(t,e,n){"use strict";n.r(e),n.d(e,"SimilarityIndexStatus",(function(){return r}));var r={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:function(t){return r.CREATING===t},isBuildingStatus:function(t){return r.BUILDING===t},isBuiltStatus:function(t){return r.BUILT===t},isRebuildingStatus:function(t){return r.REBUILDING===t},isOutdatedStatus:function(t){return r.OUTDATED===t},isInterruptedStatus:function(t){return r.INTERRUPTED===t},isObsoleteStatus:function(t){return r.OBSOLETE===t},isFailedStatus:function(t){return r.FAILED===t}}},110:function(t,e,n){"use strict";n.r(e),n.d(e,"SimilarityIndex",(function(){return a}));var r=n(106),i=n(107);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}var a=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=r.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""},(e=[{key:"isTextType",value:function(){return r.SimilarityIndexType.isTextType(this.type)}},{key:"isTextLiteralType",value:function(){return r.SimilarityIndexType.isTextLiteralType(this.type)}},{key:"isPredicationType",value:function(){return r.SimilarityIndexType.isPredicationType(this.type)}},{key:"isCreatingStatus",value:function(){return i.SimilarityIndexStatus.isCreatingStatus(this.status)}},{key:"isBuildingStatus",value:function(){return i.SimilarityIndexStatus.isBuildingStatus(this.status)}},{key:"isBuiltStatus",value:function(){return i.SimilarityIndexStatus.isBuiltStatus(this.status)}},{key:"isRebuildingStatus",value:function(){return i.SimilarityIndexStatus.isRebuildingStatus(this.status)}},{key:"isOutdatedStatus",value:function(){return i.SimilarityIndexStatus.isOutdatedStatus(this.status)}},{key:"isInterruptedStatus",value:function(){return i.SimilarityIndexStatus.isInterruptedStatus(this.status)}},{key:"isObsoleteStatus",value:function(){return i.SimilarityIndexStatus.isObsoleteStatus(this.status)}},{key:"isFailedStatus",value:function(){return i.SimilarityIndexStatus.isFailedStatus(this.status)}}])&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},111:function(t,e){angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",n),n.$inject=["$http"];function n(t){return{getConnectors:function(e,n){if(e)return t.get("rest/connectors",{headers:{"X-GraphDB-Repository":e,"X-GraphDB-Repository-Location":n}});return t.get("rest/connectors")},initConnector:function(e){return t.get("".concat("rest/connectors","/options?prefix=").concat(e))},hasConnector:function(e,n,r){if(n)return t.get("".concat("rest/connectors","/existing?prefix=").concat(e),{headers:{"X-GraphDB-Repository":n,"X-GraphDB-Repository-Location":r}});return t.get("".concat("rest/connectors","/existing?prefix=").concat(e))},checkConnector:function(e){return t.post("".concat("rest/connectors","/check"),e,{headers:{"Content-Type":"text/plain"}})}}}},117:function(t,e,n){"use strict";n.r(e),n.d(e,"mapIndexesResponseToSimilarityIndex",(function(){return i}));var r=n(110),i=function(t){return t.map((function(t){var e=new r.SimilarityIndex;return e.type=t.type,e.stopList=t.stopList,e.status=t.status,e.selectQuery=t.selectQuery,e.searchQuery=t.searchQuery,e.sameAs=t.sameAs,e.options=t.options,e.name=t.name,e.infer=t.infer,e.analyzer=t.analyzer,e.analogicalQuery=t.analogicalQuery,e}))}},122:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function s(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}n.r(e),n.d(e,"ConnectorTypesListModel",(function(){return a})),n.d(e,"ConnectorTypeModel",(function(){return c})),n.d(e,"ConnectorListModel",(function(){return f})),n.d(e,"ConnectorModel",(function(){return l})),n.d(e,"ConnectorSettingsModel",(function(){return y}));var a=function(){return s((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,t),this._connectors=e.connectors||[]}),[{key:"getConnectorByName",value:function(t){return this._connectors.find((function(e){return e.name===t}))}},{key:"connectors",get:function(){return this._connectors},set:function(t){this._connectors=t}}])}(),c=function(){return s((function t(e){i(this,t),this._name=e.name,this._prefix=e.prefix}),[{key:"name",get:function(){return this._name},set:function(t){this._name=t}},{key:"prefix",get:function(){return this._prefix},set:function(t){this._prefix=t}}])}(),f=function(){return s((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,t),this._connectors=e.connectors}),[{key:"connectors",get:function(){return this._connectors},set:function(t){this._connectors=t}}])}(),l=function(){return s((function t(e){i(this,t),this._name=e.name,this._settings=new y(e)}),[{key:"settings",get:function(){return this._settings},set:function(t){this._settings=t}},{key:"name",get:function(){return this._name},set:function(t){this._name=t}}])}(),y=function(){return s((function t(e){i(this,t),this._settings=e.values||{}}),[{key:"settings",get:function(){return this._settings},set:function(t){this._settings=t}}])}()},123:function(t,e){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",n),n.$inject=["$http","$repositories"];function n(t){return{getIndexes:function(e,n){if(e)return t.get("rest/similarity",{headers:{"X-GraphDB-Repository":e,"X-GraphDB-Repository-Location":n}});return t.get("rest/similarity")},getSearchQueries:function(){return t.get("".concat("rest/similarity","/config"))},rebuildIndex:function(t){return e("PUT",t.name,t.options,t.selectQuery,t.searchQuery,t.analogicalQuery,t.stopList,t.infer,t.sameAs,t.type)},deleteIndex:function(e){return t.delete("".concat("rest/similarity","?name=").concat(e.name))},createIndex:e,getSamples:function(){return t.get("".concat("rest/similarity","/samples"))},getQuery:function(e){return t.get("rest/similarity/query",{params:{name:e.indexName,options:e.indexOptions,stopList:e.indexStopList,selectQuery:e.query,infer:e.queryInference,sameAs:e.querySameAs,type:e.viewType,analyzer:e.indexAnalyzer}})},saveSearchQuery:function(e){return t({method:"put",url:"rest/similarity/search-query",data:e})}};function e(e,n,r,i,o,s,u,a,c,f,l){return t({method:e,url:"".concat("rest/similarity"),noCancelOnRouteChange:!0,data:{name:n,options:r,selectQuery:i,stopList:u,infer:a,sameAs:c,type:f,analyzer:l,searchQuery:o,analogicalQuery:s}})}}},125:function(t,e,n){"use strict";n.r(e);n(111);var r=n(134),i=n(25);function o(t){var e=function(e,n){return t.getConnectors(e,n).then((function(t){return Object(r.connectorTypesListMapper)(t.data)}))},n=function(e,n,i){return t.hasConnector(encodeURIComponent(e),n,i).then((function(t){return Object(r.connectorsMapper)(t.data)}))};return{getConnectorTypes:e,getConnectorsByType:n,getConnectorPrefixByName:function(t,n,r){return e(n,r).then((function(e){var n=e.getConnectorByName(t);return n?n.prefix:null}))},getConnectorsByTypeAsSelectMenuOptions:function(t,e,r){return n(t,e,r).then((function(t){return t.connectors.map((function(t){return new i.SelectMenuOptionsModel({value:t.name,label:t.name})}))}))}}}angular.module("graphdb.framework.core.services.connectors",["graphdb.framework.rest.connectors.service"]).factory("ConnectorsService",o),o.$inject=["ConnectorsRestService"]},127:function(t,e,n){"use strict";n.r(e);n(123);var r=n(117),i=n(25);function o(t){var e=function(e,n){return t.getIndexes(e,n).then((function(t){return Object(r.mapIndexesResponseToSimilarityIndex)(t.data)}))};return{getIndexes:e,getIndexesAsMenuModel:function(t,n){return e(t,n).then((function(t){return t.map((function(t){return new i.SelectMenuOptionsModel({label:t.name,value:t.name})}))}))}}}angular.module("graphdb.framework.core.services.similarity",["graphdb.framework.rest.similarity.service"]).factory("SimilarityService",o),o.$inject=["SimilarityRestService"]},134:function(t,e,n){"use strict";n.r(e),n.d(e,"connectorTypesListMapper",(function(){return i})),n.d(e,"connectorsMapper",(function(){return o}));var r=n(122),i=function(t){var e=new r.ConnectorTypesListModel;return t?(e.connectors=Object.keys(t).map((function(e){return new r.ConnectorTypeModel({name:e,prefix:t[e]})})),e):e},o=function(t){var e=new r.ConnectorListModel;return t?(e.connectors=t.map((function(t){return new r.ConnectorModel(t)})),e):e}},179:function(t,e,n){"use strict";n.r(e);n(127),n(125),n(140),n(26);function r(t,e,n,r,i){t.agentInstructionsExplain=i.agentInstructionsExplain,t.close=function(){e.dismiss({})},t.onCloseAgentInstructionsExplainModal=function(){e.dismiss({})};var o=[];t.$on("$destroy",(function(){o.forEach((function(t){return t()}))}))}angular.module("graphdb.framework.ttyg.controllers.agent-instructions-explain-modal",[]).controller("AgentInstructionsExplainModalController",r),r.$inject=["$scope","$uibModalInstance","ModalService","$translate","dialogModel"]}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[36,47,73,82,97,121,242,318,319,354,363],{106:function(t,e,n){"use strict";n.r(e),n.d(e,"SimilarityIndexType",(function(){return r}));var r={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:function(t){return r.TEXT===t},isTextLiteralType:function(t){return r.TEXT_LITERAL===t},isPredicationType:function(t){return r.PREDICATION===t}}},107:function(t,e,n){"use strict";n.r(e),n.d(e,"SimilarityIndexStatus",(function(){return r}));var r={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:function(t){return r.CREATING===t},isBuildingStatus:function(t){return r.BUILDING===t},isBuiltStatus:function(t){return r.BUILT===t},isRebuildingStatus:function(t){return r.REBUILDING===t},isOutdatedStatus:function(t){return r.OUTDATED===t},isInterruptedStatus:function(t){return r.INTERRUPTED===t},isObsoleteStatus:function(t){return r.OBSOLETE===t},isFailedStatus:function(t){return r.FAILED===t}}},110:function(t,e,n){"use strict";n.r(e),n.d(e,"SimilarityIndex",(function(){return a}));var r=n(106),i=n(107);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function u(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}var a=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=r.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""},(e=[{key:"isTextType",value:function(){return r.SimilarityIndexType.isTextType(this.type)}},{key:"isTextLiteralType",value:function(){return r.SimilarityIndexType.isTextLiteralType(this.type)}},{key:"isPredicationType",value:function(){return r.SimilarityIndexType.isPredicationType(this.type)}},{key:"isCreatingStatus",value:function(){return i.SimilarityIndexStatus.isCreatingStatus(this.status)}},{key:"isBuildingStatus",value:function(){return i.SimilarityIndexStatus.isBuildingStatus(this.status)}},{key:"isBuiltStatus",value:function(){return i.SimilarityIndexStatus.isBuiltStatus(this.status)}},{key:"isRebuildingStatus",value:function(){return i.SimilarityIndexStatus.isRebuildingStatus(this.status)}},{key:"isOutdatedStatus",value:function(){return i.SimilarityIndexStatus.isOutdatedStatus(this.status)}},{key:"isInterruptedStatus",value:function(){return i.SimilarityIndexStatus.isInterruptedStatus(this.status)}},{key:"isObsoleteStatus",value:function(){return i.SimilarityIndexStatus.isObsoleteStatus(this.status)}},{key:"isFailedStatus",value:function(){return i.SimilarityIndexStatus.isFailedStatus(this.status)}}])&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()},111:function(t,e){angular.module("graphdb.framework.rest.connectors.service",[]).factory("ConnectorsRestService",n),n.$inject=["$http"];function n(t){return{getConnectors:function(e,n){if(e)return t.get("rest/connectors",{headers:{"X-GraphDB-Repository":e,"X-GraphDB-Repository-Location":n}});return t.get("rest/connectors")},initConnector:function(e){return t.get("".concat("rest/connectors","/options?prefix=").concat(e))},hasConnector:function(e,n,r){if(n)return t.get("".concat("rest/connectors","/existing?prefix=").concat(e),{headers:{"X-GraphDB-Repository":n,"X-GraphDB-Repository-Location":r}});return t.get("".concat("rest/connectors","/existing?prefix=").concat(e))},checkConnector:function(e){return t.post("".concat("rest/connectors","/check"),e,{headers:{"Content-Type":"text/plain"}})}}}},117:function(t,e,n){"use strict";n.r(e),n.d(e,"mapIndexesResponseToSimilarityIndex",(function(){return i}));var r=n(110),i=function(t){return t.map((function(t){var e=new r.SimilarityIndex;return e.type=t.type,e.stopList=t.stopList,e.status=t.status,e.selectQuery=t.selectQuery,e.searchQuery=t.searchQuery,e.sameAs=t.sameAs,e.options=t.options,e.name=t.name,e.infer=t.infer,e.analyzer=t.analyzer,e.analogicalQuery=t.analogicalQuery,e}))}},123:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,u(r.key),r)}}function s(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}n.r(e),n.d(e,"ConnectorTypesListModel",(function(){return a})),n.d(e,"ConnectorTypeModel",(function(){return c})),n.d(e,"ConnectorListModel",(function(){return f})),n.d(e,"ConnectorModel",(function(){return l})),n.d(e,"ConnectorSettingsModel",(function(){return y}));var a=function(){return s((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,t),this._connectors=e.connectors||[]}),[{key:"getConnectorByName",value:function(t){return this._connectors.find((function(e){return e.name===t}))}},{key:"connectors",get:function(){return this._connectors},set:function(t){this._connectors=t}}])}(),c=function(){return s((function t(e){i(this,t),this._name=e.name,this._prefix=e.prefix}),[{key:"name",get:function(){return this._name},set:function(t){this._name=t}},{key:"prefix",get:function(){return this._prefix},set:function(t){this._prefix=t}}])}(),f=function(){return s((function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];i(this,t),this._connectors=e.connectors}),[{key:"connectors",get:function(){return this._connectors},set:function(t){this._connectors=t}}])}(),l=function(){return s((function t(e){i(this,t),this._name=e.name,this._settings=new y(e)}),[{key:"settings",get:function(){return this._settings},set:function(t){this._settings=t}},{key:"name",get:function(){return this._name},set:function(t){this._name=t}}])}(),y=function(){return s((function t(e){i(this,t),this._settings=e.values||{}}),[{key:"settings",get:function(){return this._settings},set:function(t){this._settings=t}}])}()},124:function(t,e){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",n),n.$inject=["$http","$repositories"];function n(t){return{getIndexes:function(e,n){if(e)return t.get("rest/similarity",{headers:{"X-GraphDB-Repository":e,"X-GraphDB-Repository-Location":n}});return t.get("rest/similarity")},getSearchQueries:function(){return t.get("".concat("rest/similarity","/config"))},rebuildIndex:function(t){return e("PUT",t.name,t.options,t.selectQuery,t.searchQuery,t.analogicalQuery,t.stopList,t.infer,t.sameAs,t.type)},deleteIndex:function(e){return t.delete("".concat("rest/similarity","?name=").concat(e.name))},createIndex:e,getSamples:function(){return t.get("".concat("rest/similarity","/samples"))},getQuery:function(e){return t.get("rest/similarity/query",{params:{name:e.indexName,options:e.indexOptions,stopList:e.indexStopList,selectQuery:e.query,infer:e.queryInference,sameAs:e.querySameAs,type:e.viewType,analyzer:e.indexAnalyzer}})},saveSearchQuery:function(e){return t({method:"put",url:"rest/similarity/search-query",data:e})}};function e(e,n,r,i,o,s,u,a,c,f,l){return t({method:e,url:"".concat("rest/similarity"),noCancelOnRouteChange:!0,data:{name:n,options:r,selectQuery:i,stopList:u,infer:a,sameAs:c,type:f,analyzer:l,searchQuery:o,analogicalQuery:s}})}}},126:function(t,e,n){"use strict";n.r(e);n(111);var r=n(136),i=n(25);function o(t){var e=function(e,n){return t.getConnectors(e,n).then((function(t){return Object(r.connectorTypesListMapper)(t.data)}))},n=function(e,n,i){return t.hasConnector(encodeURIComponent(e),n,i).then((function(t){return Object(r.connectorsMapper)(t.data)}))};return{getConnectorTypes:e,getConnectorsByType:n,getConnectorPrefixByName:function(t,n,r){return e(n,r).then((function(e){var n=e.getConnectorByName(t);return n?n.prefix:null}))},getConnectorsByTypeAsSelectMenuOptions:function(t,e,r){return n(t,e,r).then((function(t){return t.connectors.map((function(t){return new i.SelectMenuOptionsModel({value:t.name,label:t.name})}))}))}}}angular.module("graphdb.framework.core.services.connectors",["graphdb.framework.rest.connectors.service"]).factory("ConnectorsService",o),o.$inject=["ConnectorsRestService"]},128:function(t,e,n){"use strict";n.r(e);n(124);var r=n(117),i=n(25);function o(t){var e=function(e,n){return t.getIndexes(e,n).then((function(t){return Object(r.mapIndexesResponseToSimilarityIndex)(t.data)}))};return{getIndexes:e,getIndexesAsMenuModel:function(t,n){return e(t,n).then((function(t){return t.map((function(t){return new i.SelectMenuOptionsModel({label:t.name,value:t.name})}))}))}}}angular.module("graphdb.framework.core.services.similarity",["graphdb.framework.rest.similarity.service"]).factory("SimilarityService",o),o.$inject=["SimilarityRestService"]},136:function(t,e,n){"use strict";n.r(e),n.d(e,"connectorTypesListMapper",(function(){return i})),n.d(e,"connectorsMapper",(function(){return o}));var r=n(123),i=function(t){var e=new r.ConnectorTypesListModel;return t?(e.connectors=Object.keys(t).map((function(e){return new r.ConnectorTypeModel({name:e,prefix:t[e]})})),e):e},o=function(t){var e=new r.ConnectorListModel;return t?(e.connectors=t.map((function(t){return new r.ConnectorModel(t)})),e):e}},179:function(t,e,n){"use strict";n.r(e);n(128),n(126),n(142),n(26);function r(t,e,n,r,i){t.agentInstructionsExplain=i.agentInstructionsExplain,t.close=function(){e.dismiss({})},t.onCloseAgentInstructionsExplainModal=function(){e.dismiss({})};var o=[];t.$on("$destroy",(function(){o.forEach((function(t){return t()}))}))}angular.module("graphdb.framework.ttyg.controllers.agent-instructions-explain-modal",[]).controller("AgentInstructionsExplainModalController",r),r.$inject=["$scope","$uibModalInstance","ModalService","$translate","dialogModel"]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[363],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[363],{124:function(e,t){angular.module("graphdb.framework.rest.similarity.service",[]).factory("SimilarityRestService",r),r.$inject=["$http","$repositories"];function r(e){return{getIndexes:function(t,r){if(t)return e.get("rest/similarity",{headers:{"X-GraphDB-Repository":t,"X-GraphDB-Repository-Location":r}});return e.get("rest/similarity")},getSearchQueries:function(){return e.get("".concat("rest/similarity","/config"))},rebuildIndex:function(e){return t("PUT",e.name,e.options,e.selectQuery,e.searchQuery,e.analogicalQuery,e.stopList,e.infer,e.sameAs,e.type)},deleteIndex:function(t){return e.delete("".concat("rest/similarity","?name=").concat(t.name))},createIndex:t,getSamples:function(){return e.get("".concat("rest/similarity","/samples"))},getQuery:function(t){return e.get("rest/similarity/query",{params:{name:t.indexName,options:t.indexOptions,stopList:t.indexStopList,selectQuery:t.query,infer:t.queryInference,sameAs:t.querySameAs,type:t.viewType,analyzer:t.indexAnalyzer}})},saveSearchQuery:function(t){return e({method:"put",url:"rest/similarity/search-query",data:t})}};function t(t,r,n,i,a,s,o,u,c,y,l){return e({method:t,url:"".concat("rest/similarity"),noCancelOnRouteChange:!0,data:{name:r,options:n,selectQuery:i,stopList:o,infer:u,sameAs:c,type:y,analyzer:l,searchQuery:a,analogicalQuery:s}})}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[37,284,285,286,287,288,290,293,294,298,299],{155:function(e,t,r){"use strict";r.r(t),r.d(t,"EventDataType",(function(){return n}));var n={DOWNLOAD_AS:"downloadAs",NOTIFICATION_MESSAGE:"notificationMessage",QUERY:"query",COUNT_QUERY:"countQuery",COUNT_QUERY_RESPONSE:"countQueryResponse",REQUEST_ABORTED:"requestAborted",QUERY_EXECUTED:"queryExecuted",SAVE_QUERY_OPENED:"saveQueryOpened"}},200:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"EventData",(function(){return a}));var a=i((function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t,this.payload=r}))},201:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"QueryRequestEvent",(function(){return u}));var u=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.query=t.payload.query,this.queryMode=t.payload.queryMode,this.queryType=t.payload.queryType,this.pageSize=t.payload.pageSize,this.request=t.payload.request},(t=[{key:"setPageSize",value:function(e){this.request._data.pageSize=e}},{key:"getPageSize",value:function(){return this.request._data.pageSize?parseInt(this.request._data.pageSize):void 0}},{key:"setPageNumber",value:function(e){this.request._data.pageNumber=e}},{key:"getPageNumber",value:function(){return this.request._data.pageNumber?parseInt(this.request._data.pageNumber):void 0}},{key:"setOffset",value:function(e){this.request._data.offset=e}},{key:"setLimit",value:function(e){this.request._data.limit=e}}])&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},202:function(e,t,r){"use strict";r.r(t),r.d(t,"CountQueryResponseEvent",(function(){return a}));var n=r(24);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var a=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.response=t.payload.response},(t=[{key:"hasResponse",value:function(){return this.response&&this.response.body}},{key:"getResponseBody",value:function(){if(this.hasResponse())return this.response.body}},{key:"isResponseNumber",value:function(){return!!this.hasResponse()&&Object(n.isNumber)(this.response.body)}},{key:"isResponseArray",value:function(){return!!this.hasResponse()&&Array.isArray(this.response.body)}},{key:"getBindings",value:function(){if(this.hasResponse())return this.response.body.results.bindings}},{key:"hasBindingResponse",value:function(){return!!this.hasResponse()&&this.response.body.results.bindings[0]}},{key:"setTotalElements",value:function(e){this.response.body.totalElements=e}}])&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},203:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"CountQueryRequestEvent",(function(){return u}));var u=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.query=t.payload.query,this.queryMode=t.payload.queryMode,this.queryType=t.payload.queryType,this.pageSize=t.payload.pageSize,this.request=t.payload.request},(t=[{key:"setPageSize",value:function(e){this.request._data.pageSize=e}},{key:"setPageNumber",value:function(e){this.request._data.pageNumber=e}},{key:"setCount",value:function(e){this.request._data.count=e}}])&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},204:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"DownloadAsEvent",(function(){return a}));var a=i((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.contentType=t.payload.value,this.pluginName=t.payload.pluginName,this.query=t.payload.query,this.infer=t.payload.infer,this.sameAs=t.payload.sameAs}))},205:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"NotificationMessageEvent",(function(){return a}));var a=i((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.message=t.payload.message,this.code=t.payload.code,this.messageType=t.payload.messageType}))},206:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"QueryExecutedEvent",(function(){return a}));var a=i((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.duration=t.payload.duration,this.tabId=t.payload.tabId}))},207:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"SaveQueryOpened",(function(){return u}));var u=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tab=t.payload.tab},(t=[{key:"getTab",value:function(){return this.tab}}])&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},208:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"RequestAbortedEvent",(function(){return u}));var u=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.request=t.payload.request,this.queryMode=t.payload.queryMode},(t=[{key:"getQueryTrackAlias",value:function(){if(this.request)return this.request.header["X-GraphDB-Track-Alias"]}},{key:"getRepository",value:function(){if(this.request){var e=this.request.url;return e.substring(e.lastIndexOf("/")+1)}}}])&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},272:function(e,t,r){"use strict";r.r(t),r.d(t,"toEventData",(function(){return p})),r.d(t,"toYasguiOutputModel",(function(){return b}));var n=r(200),o=r(155),i=r(201),u=r(202),a=r(203),s=r(204),y=r(205),f=r(206),c=r(207),l=r(208),p=function(e){return new n.EventData(e.detail.TYPE,e.detail.payload)},b=function(e){var t=p(e);switch(t.TYPE){case o.EventDataType.DOWNLOAD_AS:return new s.DownloadAsEvent(t);case o.EventDataType.NOTIFICATION_MESSAGE:return new y.NotificationMessageEvent(t);case o.EventDataType.COUNT_QUERY:return new a.CountQueryRequestEvent(t);case o.EventDataType.COUNT_QUERY_RESPONSE:return new u.CountQueryResponseEvent(t);case o.EventDataType.QUERY:return new i.QueryRequestEvent(t);case o.EventDataType.QUERY_EXECUTED:return new f.QueryExecutedEvent(t);case o.EventDataType.SAVE_QUERY_OPENED:return new c.SaveQueryOpened(t);case o.EventDataType.REQUEST_ABORTED:return new l.RequestAbortedEvent(t);default:return t}}}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[37,284,285,286,287,288,290,293,294,298,299],{156:function(e,t,r){"use strict";r.r(t),r.d(t,"EventDataType",(function(){return n}));var n={DOWNLOAD_AS:"downloadAs",NOTIFICATION_MESSAGE:"notificationMessage",QUERY:"query",COUNT_QUERY:"countQuery",COUNT_QUERY_RESPONSE:"countQueryResponse",REQUEST_ABORTED:"requestAborted",QUERY_EXECUTED:"queryExecuted",SAVE_QUERY_OPENED:"saveQueryOpened"}},200:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"EventData",(function(){return a}));var a=i((function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t,this.payload=r}))},201:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"QueryRequestEvent",(function(){return u}));var u=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.query=t.payload.query,this.queryMode=t.payload.queryMode,this.queryType=t.payload.queryType,this.pageSize=t.payload.pageSize,this.request=t.payload.request},(t=[{key:"setPageSize",value:function(e){this.request._data.pageSize=e}},{key:"getPageSize",value:function(){return this.request._data.pageSize?parseInt(this.request._data.pageSize):void 0}},{key:"setPageNumber",value:function(e){this.request._data.pageNumber=e}},{key:"getPageNumber",value:function(){return this.request._data.pageNumber?parseInt(this.request._data.pageNumber):void 0}},{key:"setOffset",value:function(e){this.request._data.offset=e}},{key:"setLimit",value:function(e){this.request._data.limit=e}}])&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},202:function(e,t,r){"use strict";r.r(t),r.d(t,"CountQueryResponseEvent",(function(){return a}));var n=r(24);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function u(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}var a=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.response=t.payload.response},(t=[{key:"hasResponse",value:function(){return this.response&&this.response.body}},{key:"getResponseBody",value:function(){if(this.hasResponse())return this.response.body}},{key:"isResponseNumber",value:function(){return!!this.hasResponse()&&Object(n.isNumber)(this.response.body)}},{key:"isResponseArray",value:function(){return!!this.hasResponse()&&Array.isArray(this.response.body)}},{key:"getBindings",value:function(){if(this.hasResponse())return this.response.body.results.bindings}},{key:"hasBindingResponse",value:function(){return!!this.hasResponse()&&this.response.body.results.bindings[0]}},{key:"setTotalElements",value:function(e){this.response.body.totalElements=e}}])&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},203:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"CountQueryRequestEvent",(function(){return u}));var u=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.query=t.payload.query,this.queryMode=t.payload.queryMode,this.queryType=t.payload.queryType,this.pageSize=t.payload.pageSize,this.request=t.payload.request},(t=[{key:"setPageSize",value:function(e){this.request._data.pageSize=e}},{key:"setPageNumber",value:function(e){this.request._data.pageNumber=e}},{key:"setCount",value:function(e){this.request._data.count=e}}])&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},204:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"DownloadAsEvent",(function(){return a}));var a=i((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.contentType=t.payload.value,this.pluginName=t.payload.pluginName,this.query=t.payload.query,this.infer=t.payload.infer,this.sameAs=t.payload.sameAs}))},205:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"NotificationMessageEvent",(function(){return a}));var a=i((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.message=t.payload.message,this.code=t.payload.code,this.messageType=t.payload.messageType}))},206:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function i(e,t,r){return t&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"QueryExecutedEvent",(function(){return a}));var a=i((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.duration=t.payload.duration,this.tabId=t.payload.tabId}))},207:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"SaveQueryOpened",(function(){return u}));var u=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.tab=t.payload.tab},(t=[{key:"getTab",value:function(){return this.tab}}])&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},208:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i(n.key),n)}}function i(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}r.r(t),r.d(t,"RequestAbortedEvent",(function(){return u}));var u=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.TYPE=t.TYPE,this.request=t.payload.request,this.queryMode=t.payload.queryMode},(t=[{key:"getQueryTrackAlias",value:function(){if(this.request)return this.request.header["X-GraphDB-Track-Alias"]}},{key:"getRepository",value:function(){if(this.request){var e=this.request.url;return e.substring(e.lastIndexOf("/")+1)}}}])&&o(e.prototype,t),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}()},272:function(e,t,r){"use strict";r.r(t),r.d(t,"toEventData",(function(){return p})),r.d(t,"toYasguiOutputModel",(function(){return b}));var n=r(200),o=r(156),i=r(201),u=r(202),a=r(203),s=r(204),y=r(205),f=r(206),c=r(207),l=r(208),p=function(e){return new n.EventData(e.detail.TYPE,e.detail.payload)},b=function(e){var t=p(e);switch(t.TYPE){case o.EventDataType.DOWNLOAD_AS:return new s.DownloadAsEvent(t);case o.EventDataType.NOTIFICATION_MESSAGE:return new y.NotificationMessageEvent(t);case o.EventDataType.COUNT_QUERY:return new a.CountQueryRequestEvent(t);case o.EventDataType.COUNT_QUERY_RESPONSE:return new u.CountQueryResponseEvent(t);case o.EventDataType.QUERY:return new i.QueryRequestEvent(t);case o.EventDataType.QUERY_EXECUTED:return new f.QueryExecutedEvent(t);case o.EventDataType.SAVE_QUERY_OPENED:return new c.SaveQueryOpened(t);case o.EventDataType.REQUEST_ABORTED:return new l.RequestAbortedEvent(t);default:return t}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[38,44,268,269,270,297,305,359,388],{104:function(n,t,e){"use strict";e.r(t),e.d(t,"RenderingMode",(function(){return r}));var r={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},115:function(n,t,e){"use strict";e.r(t),e.d(t,"YasqeMode",(function(){return r}));var r={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}},118:function(n,t){function e(n,t){return{showToastMessageWithDelay:function(e){return new Promise((function(r){n.success(t.instant(e)),setTimeout(r,300)}))}}}angular.module("graphdb.framework.utils.notifications",[]).factory("Notifications",e),e.$inject=["toastr","$translate"]},228:function(n,t,e){"use strict";function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function o(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,u(r.key),r)}}function i(n,t,e){return t&&o(n.prototype,t),e&&o(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function u(n){var t=function(n,t){if("object"!=r(n)||!n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var o=e.call(n,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}(n,"string");return"symbol"==r(t)?t:t+""}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}e.r(t),e.d(t,"DEFAULT_SPARQL_QUERY",(function(){return a})),e.d(t,"JdbcConfigurationInfo",(function(){return s}));var a="PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n\n# Selects two variables to use as columns\nSELECT ?id ?label {\n ?id rdfs:label ?label\n # The following placeholder must be present in the query\n #!filter\n}",s=i((function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;c(this,n),this.query=t,this.jdbcConfigurationName=r,this.isNewJdbcConfiguration=e,this.isValidQuery=!0,this.isValidQueryType=!0,this.hasUndefinedColumns=!1,this.isColumnsEmpty=!1,this.columns=[]}))},229:function(n,t,e){"use strict";function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function o(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,i(r.key),r)}}function i(n){var t=function(n,t){if("object"!=r(n)||!n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var o=e.call(n,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}(n,"string");return"symbol"==r(t)?t:t+""}function u(n,t,e){return t=l(t),function(n,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n)}(n,s()?Reflect.construct(t,e||[],l(n).constructor):t.apply(n,e))}function c(n){var t="function"==typeof Map?new Map:void 0;return(c=function(n){if(null===n||!function(n){try{return-1!==Function.toString.call(n).indexOf("[native code]")}catch(t){return"function"==typeof n}}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(n))return t.get(n);t.set(n,e)}function e(){return a(n,arguments,l(this).constructor)}return e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),f(e,n)})(n)}function a(n,t,e){if(s())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(n.bind.apply(n,r));return e&&f(o,e.prototype),o}function s(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(n){}return(s=function(){return!!n})()}function f(n,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n})(n,t)}function l(n){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}e.r(t),e.d(t,"JdbcConfigurationError",(function(){return d}));var d=function(n){function t(n,e){var r;return function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=u(this,t,[n])).jdbcConfigurationInfo=e,r}return function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&f(n,t)}(t,n),e=t,r&&o(e.prototype,r),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,i}(c(Error))},230:function(n,t,e){"use strict";function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function o(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,u(r.key),r)}}function i(n,t,e){return t&&o(n.prototype,t),e&&o(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function u(n){var t=function(n,t){if("object"!=r(n)||!n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var o=e.call(n,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}(n,"string");return"symbol"==r(t)?t:t+""}e.r(t),e.d(t,"JdbcColumn",(function(){return c})),e.d(t,"toJDBCColumns",(function(){return a})),e.d(t,"updateColumn",(function(){return s}));var c=i((function n(){!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.column_name="",this.column_type="",this.sparql_type="",this.nullable=!0})),a=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return n.map((function(n){return{column_name:n,column_type:t[n].column_type,nullable:!0,sparql_type:t[n].sparql_type}}))},s=function(n,t){n.column_type=t[n.column_name].column_type,n.sparql_type=t[n.column_name].sparql_type}},343:function(n,t,e){"use strict";e.r(t);e(53),e(55),e(118),e(10),e(30);var r=e(228),o=e(115),i=e(229),u=e(104),c=e(230),a=e(27),s=e(1);function f(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var r,o,i,u,c=[],a=!0,s=!1;try{if(i=(e=e.call(n)).next,0===t){if(Object(e)!==e)return;a=!1}else for(;!(a=(r=i.call(e)).done)&&(c.push(r.value),c.length!==t);a=!0);}catch(n){s=!0,o=n}finally{try{if(!a&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(s)throw o}}return c}}(n,t)||function(n,t){if(n){if("string"==typeof n)return l(n,t);var e={}.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?l(n,t):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=Array(t);e<t;e++)r[e]=n[e];return r}function d(n,t,e,r,o,i){n.getSqlConfigurations=function(){!t.getActiveRepository()||t.isActiveRepoOntopType()||t.isActiveRepoFedXType()?n.jdbcConfigurations=[]:e.getJdbcConfigurations().success((function(t){n.jdbcConfigurations=t})).error((function(n){var t=getError(n);r.error(t,i.instant("jdbc.not.get.SQL.msg"))}))},n.$watch((function(){return t.getActiveRepository()}),(function(){n.getSqlConfigurations()})),n.deleteConfiguration=function(t){o.openSimpleModal({title:i.instant("common.warning"),message:i.instant("jdbc.delete.sql.table.warning.msg",{name:t}),warning:!0}).result.then((function(){e.deleteJdbcConfiguration(t).success((function(){n.getSqlConfigurations()})).error((function(n){r.error(getError(n),i.instant("jdbc.not.delete.sql.msg"))}))}))}}function g(n,t,e,l,d,g,p,m,b,y,v,h,C,w,j,S){t.emptySparqlResponse='{"head": {"vars": []},"results": {"bindings": []}}',t.getSuggestionSqlType="",t.sqlTypes=[],t.activeTab=1,t.jdbcConfigurationInfo=new r.JdbcConfigurationInfo,t.jdbcConfigurationInfo.jdbcConfigurationName=l.search().name||"",t.saveOrUpdateExecuted=!1,t.jdbcConfigurationInfo.isNewJdbcConfiguration=!t.jdbcConfigurationInfo.jdbcConfigurationName,t.language=j.getLanguage(),t.isDirty=!1,t.prefixes=[],t.loadingControllerResources=!1,t.isQueryRunning=!1,t.canEditActiveRepo=!1;var q=!0;t.saveJdbcConfiguration=function(){if(t.saveOrUpdateExecuted=!0,t.jdbcConfigurationInfo.jdbcConfigurationName)if(t.isDirty){var n=t.jdbcConfigurationInfo.isNewJdbcConfiguration?I:P;J(t.jdbcConfigurationInfo).then(_).then(N).then(M).then(n).catch((function(n){if(!(n instanceof i.JdbcConfigurationError)){var t=getError(n);d.error(t,w.instant("jdbc.not.saved.configuration"))}}))}else W()},t.getPreview=function(){t.activeTab=1,t.isQueryRunning=!0,J(t.jdbcConfigurationInfo).then(_).then(N).then(M).then((function(n){return O({render:u.RenderingMode.YASQE,initialQuery:n.query}),n})).then(E).then((function(n){var t=f(n,2),e=t[0],r=t[1],o=e&&e.results.bindings&&e.results.bindings.length>0,i=u.RenderingMode.YASGUI;o||(i=u.RenderingMode.YASQE,d.info(w.instant("jdbc.table.definition"),w.instant("jdbc.preview.sql"))),O({render:i,sparqlResponse:e,initialQuery:r.query})})).catch((function(n){n instanceof i.JdbcConfigurationError?n.jdbcConfigurationInfo&&(n.jdbcConfigurationInfo.isColumnsEmpty||n.jdbcConfigurationInfo.hasUndefinedColumns)&&($(),t.activeTab=2):d.error(getError(n,0,100),w.instant("jdbc.not.show.preview"))})).finally((function(){t.isQueryRunning=!1}))},t.setActiveTab=function(n){t.activeTab=n;var e=t.jdbcConfigurationInfo.columns;2!==t.activeTab||e&&0!==e.length||J(t.jdbcConfigurationInfo).then(_).then((function(){t.getColumnsSuggestions()}))},t.setDirty=function(){t.isDirty=!0},t.getTypeLabel=function(n){switch(n){case"iri":return"VARCHAR: IRI";case"string":return"VARCHAR: String";default:return n.indexOf(" ")>0?n:n.toUpperCase()}},t.selectColumnType=function(n,e){t.setDirty();var r=t.jdbcConfigurationInfo.columns.find((function(t){return t.column_name===n}));r.column_type===t.getSuggestionSqlType&&M(t.jdbcConfigurationInfo).then((function(t){return y.getColumnsTypeSuggestion(t.query,[n])})).then((function(n){return n.data})).then((function(n){Object(c.updateColumn)(r,n),T(r.column_type,e)})).catch((function(n){d.error(getError(n),w.instant("jdbc.not.suggest.column.type"))}))},t.deleteColumn=function(n,e){C.openSimpleModal({title:w.instant("common.warning"),message:w.instant("jdbc.warning.delete.column.msg",{columnName:n}),warning:!0}).result.then((function(){t.jdbcConfigurationInfo.columns.splice(e,1),t.setDirty()}))},t.getColumnsSuggestions=function(){t.jdbcConfigurationInfo.columns&&t.jdbcConfigurationInfo.columns.length>0?C.openSimpleModal({title:w.instant("common.warning"),message:w.instant("jdbc.warning.column.type.msg"),warning:!0}).result.then((function(){$()})):$()},t.hasPrecision=function(n){return"iri"===n||"string"===n||"decimal"===n},t.containsColumnsWithPrecision=function(n){return n&&n.some((function(n){return t.hasPrecision(n.column_type)}))},t.containsColumnsWithScale=function(n){return n&&n.some((function(n){return x(n.column_type)}))},t.isLiteral=function(n){return"iri"!==n&&"unknown"!==n},t.containsNonLiteralColumnsOnly=function(n){return n&&n.every((function(n){return!t.isLiteral(n.column_type)}))};var E=function(n){if(t.canWriteActiveRepo){var e=JSON.stringify({name:t.jdbcConfigurationInfo.jdbcConfigurationName,query:t.jdbcConfigurationInfo.query,columns:t.jdbcConfigurationInfo.columns||[]});return Promise.all([y.getNewSqlTablePreview(e).then((function(n){return n.data})),Promise.resolve(n)])}return Promise.all([y.getExistingSqlTablePreview(t.jdbcConfigurationInfo.jdbcConfigurationName).then((function(n){return n.data})),Promise.resolve(n)])},T=function(n,t){n===t?d.info(Object(s.decodeHTML)(w.instant("jdbc.same.suggested.sql.type",{type:n})),w.instant("jdbc.suggest.sql.type"),{allowHtml:!0}):d.success(Object(s.decodeHTML)(w.instant("jdbc.suggested.sql.type",{type:n})),w.instant("jdbc.suggest.sql.type"),{allowHtml:!0})},R=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new r.JdbcConfigurationInfo;t.jdbcConfigurationInfo.columns=e.columns,t.jdbcConfigurationInfo.query=e.query,t.jdbcConfigurationInfo.jdbcConfigurationName=l.search().name||"",t.jdbcConfigurationInfo.isNewJdbcConfiguration=!t.jdbcConfigurationInfo.jdbcConfigurationName,t.prefixes=n,O(),Y()},I=function(n){var e={name:n.jdbcConfigurationName,query:n.query,columns:n.columns};return y.createNewJdbcConfiguration(e).then((function(){t.isDirty=!1,t.jdbcConfigurationInfo.isNewConfiguration=!1,d.success(w.instant("jdbc.saved.configuration")),V()}))},P=function(n){var e={name:n.jdbcConfigurationName,query:n.query,columns:n.columns};return y.updateJdbcConfiguration(e).then((function(){t.isDirty=!1,t.jdbcConfigurationInfo.isNewConfiguration=!1,d.success(w.instant("jdbc.configuration.updated")),V()}))},O=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};angular.extend(e,t.yasguiConfig||A(),n),t.yasguiConfig=e},A=function(){return{showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showQueryButton:!1,showResultInfo:!1,downloadAsOn:!1,showYasqeResizer:!1,initialQuery:t.jdbcConfigurationInfo.query,componentId:"jdbc-component",prefixes:t.prefixes,maxPersistentResponseSize:0,render:u.RenderingMode.YASQE,getCellContent:L,sparqlResponse:t.emptySparqlResponse,yasqeActionButtons:a.DISABLE_YASQE_BUTTONS_CONFIGURATION,yasqeMode:t.canEditActiveRepo?o.YasqeMode.WRITE:o.YasqeMode.PROTECTED}},J=function(n){return k().getQueryType().then((function(t){return n.isValidQueryType="SELECT"===t,n.isValidQueryType?n:Promise.reject(new i.JdbcConfigurationError("Query type is not valid."))}))},_=function(n){return k().isQueryValid().then((function(t){return n.isValidQuery=t,n.isValidQuery?n:Promise.reject(new i.JdbcConfigurationError("Invalid query."))}))},N=function(n){return n.columns&&0!==n.columns.length?t.jdbcConfigurationInfo.columns&&t.jdbcConfigurationInfo.columns.find((function(n){return"unknown"===n.column_type}))?(n.hasUndefinedColumns=!0,Promise.reject(new i.JdbcConfigurationError("There are columns without defined type.",n))):Promise.resolve(n):(n.isColumnsEmpty=!0,d.error(w.instant("jdbc.warning.one.column.msg")),Promise.reject(new i.JdbcConfigurationError("There are not defined columns.",n)))},$=function(){J(t.jdbcConfigurationInfo).then(_).then(M).then(D).then(Q).then((function(n){return t.jdbcConfigurationInfo=n})).catch((function(n){console.log(n)}))},D=function(n){return y.getColumnNames(n.query).then((function(t){return[n,t.data]})).catch((function(n){d.error(getError(n),w.instant("jdbc.not.suggest.column.names"))}))},Q=function(n){var e=f(n,2),r=e[0],o=e[1];return y.getColumnsTypeSuggestion(r.query,o).then((function(n){return r.columns=Object(c.toJDBCColumns)(o,n.data),r.isColumnsEmpty=r.columns.length,t.setDirty(),r})).catch((function(n){d.error(getError(n),w.instant("jdbc.not.suggest.column.types"))}))},k=function(){return a.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor")},M=function(n){return k().getQuery().then((function(t){return n.query=t,n}))},x=function(n){return"decimal"===n},L=function(n,t){var e=n.value;return"<div class = 'literal-cell'>"+("<p class='nonUri' style='border: none; background-color: transparent; padding: 0; margin: 0'>"+(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"))+"</p>")+"</div>"},U=function(n,t,e,r){C.openSimpleModal({title:n,message:t,warning:!0}).result.then((function(){angular.isFunction(e)&&e()}),(function(){angular.isFunction(r)&&r()}))},Y=function(){t.getSuggestionSqlType=w.instant("view.jdbc.create.get_suggestion_sql_type"),t.sqlTypes=["string","iri","boolean","byte","short","int","long","float","double","decimal","date","time","timestamp",t.getSuggestionSqlType]},V=function(){setTimeout((function(){W()}),1e3)},W=function(){l.url("/jdbc")},B=function(n){t.isDirty&&(n.returnValue=!0)},F=function(){window.removeEventListener("beforeunload",B),H.forEach((function(n){return n()}))},H=[];H.push(e.$on("$translateChangeSuccess",(function(){t.language=j.getLanguage(),Y()}))),H.push(t.$on("$locationChangeStart",(function(n,e){if(t.isDirty){n.preventDefault();var r=w.instant("common.confirm"),o=w.instant("jdbc.warning.unsaved.changes");U(r,o,(function(){F();var n=l.absUrl().length-l.url().length,t=e.substring(n);l.path(t)}))}else F()}))),H.push(S.subscribe("repositoryWillChangeEvent",(function(n){return new Promise((function(e){if(t.jdbcConfigurationInfo.isNewJdbcConfiguration)e(n);else{var r=function(){t.isDirty=!1,W(),e(n)};if(t.isDirty){var o=w.instant("common.confirm"),i=w.instant("jdbc.warning.unsaved.changes");U(o,i,r,(function(){n.cancel=!0,e(n)}))}else r()}}))}))),H.push(t.$on("$destroy",F)),window.addEventListener("beforeunload",B),H.push(t.$watch(t.getActiveRepositoryObject,(function(n){n&&(t.canEditActiveRepo=t.canWriteActiveRepo(),q?(!function(){t.loadingControllerResources=!0;var n=g.getActiveRepository();t.jdbcConfigurationInfo.jdbcConfigurationName?Promise.all([g.getPrefixes(n),y.getJdbcConfiguration(t.jdbcConfigurationInfo.jdbcConfigurationName)]).then((function(n){var t=f(n,2),e=t[0],r=t[1];R(e,r.data)})).finally((function(){return t.loadingControllerResources=!1})):g.getPrefixes(n).then((function(n){return R(n)})).finally((function(){return t.loadingControllerResources=!1}))}(),q=!1):k().abortQuery().then(W))})))}angular.module("graphdb.framework.jdbc.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.monitoring.service","toastr","graphdb.framework.utils.event-emitter-service"],["graphdb.framework.utils.notifications"]).controller("JdbcListCtrl",d).controller("JdbcCreateCtrl",g),d.$inject=["$scope","$repositories","JdbcRestService","toastr","ModalService","$translate"],g.$inject=["$q","$scope","$rootScope","$location","toastr","$repositories","$window","$timeout","$interval","JdbcRestService","RDF4JRepositoriesRestService","SparqlRestService","ModalService","$translate","$languageService","EventEmitterService"]},344:function(n,t){angular.module("graphdb.framework.rest.jdbc.service",[]).factory("JdbcRestService",e),e.$inject=["$http","$repositories","$translate"];function e(n,t){return{getJdbcConfigurations:function(){return n.get("".concat("rest/sql-views","/tables"))},getJdbcConfiguration:function(t){return n.get("".concat("rest/sql-views","/tables/").concat(t))},createNewJdbcConfiguration:function(n){return e("POST","",n)},updateJdbcConfiguration:function(n){return e("PUT",n.name,n)},deleteJdbcConfiguration:function(t){return n.delete("".concat("rest/sql-views","/tables/").concat(t))},getColumnNames:function(t){return n.post("".concat("rest/sql-views","/columns"),t,{headers:{Accept:"application/json","Content-Type":"text/plain"}})},getColumnsTypeSuggestion:function(e,r){if(!Array.isArray(r))throw new Error(t.instant("jdbc.column.names.constraint"));return n({method:"POST",url:"".concat("rest/sql-views","/types"),data:{query:e,column_names:r}})},getExistingSqlTablePreview:function(t,e){return n({method:"GET",url:"rest/sql-views/preview/".concat(t),params:{limit:e}})},getNewSqlTablePreview:function(t,e){return n({method:"POST",url:"rest/sql-views/preview",contentType:"application/json; charset=utf-8",dataType:"json",data:t,params:{limit:e},headers:{Accept:"application/sparql-results+json"}})}};function e(t,e,r){var o=e?"".concat("rest/sql-views","/tables/").concat(e):"".concat("rest/sql-views","/tables");return n({method:t,url:o,noCancelOnRouteChange:!0,data:{name:r.name,query:r.query,columns:r.columns||[]}})}}},430:function(n,t,e){"use strict";e.r(t);e(10),e(52),e(250),e(53),e(343),e(344),e(167);angular.module("graphdb.framework.jdbc",["toastr","ui.bootstrap","graphdb.framework.jdbc.controllers","graphdb.framework.core.services.repositories","graphdb.framework.core.directives","graphdb.framework.rest.jdbc.service","graphdb.framework.core.directives.yasgui-component"])}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[38,44,268,269,270,297,305,359,388],{104:function(n,t,e){"use strict";e.r(t),e.d(t,"RenderingMode",(function(){return r}));var r={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},115:function(n,t,e){"use strict";e.r(t),e.d(t,"YasqeMode",(function(){return r}));var r={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}},118:function(n,t){function e(n,t){return{showToastMessageWithDelay:function(e){return new Promise((function(r){n.success(t.instant(e)),setTimeout(r,300)}))}}}angular.module("graphdb.framework.utils.notifications",[]).factory("Notifications",e),e.$inject=["toastr","$translate"]},228:function(n,t,e){"use strict";function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function o(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,u(r.key),r)}}function i(n,t,e){return t&&o(n.prototype,t),e&&o(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function u(n){var t=function(n,t){if("object"!=r(n)||!n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var o=e.call(n,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}(n,"string");return"symbol"==r(t)?t:t+""}function c(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}e.r(t),e.d(t,"DEFAULT_SPARQL_QUERY",(function(){return a})),e.d(t,"JdbcConfigurationInfo",(function(){return s}));var a="PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n\n# Selects two variables to use as columns\nSELECT ?id ?label {\n ?id rdfs:label ?label\n # The following placeholder must be present in the query\n #!filter\n}",s=i((function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;c(this,n),this.query=t,this.jdbcConfigurationName=r,this.isNewJdbcConfiguration=e,this.isValidQuery=!0,this.isValidQueryType=!0,this.hasUndefinedColumns=!1,this.isColumnsEmpty=!1,this.columns=[]}))},229:function(n,t,e){"use strict";function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function o(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,i(r.key),r)}}function i(n){var t=function(n,t){if("object"!=r(n)||!n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var o=e.call(n,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}(n,"string");return"symbol"==r(t)?t:t+""}function u(n,t,e){return t=l(t),function(n,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n)}(n,s()?Reflect.construct(t,e||[],l(n).constructor):t.apply(n,e))}function c(n){var t="function"==typeof Map?new Map:void 0;return(c=function(n){if(null===n||!function(n){try{return-1!==Function.toString.call(n).indexOf("[native code]")}catch(t){return"function"==typeof n}}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(n))return t.get(n);t.set(n,e)}function e(){return a(n,arguments,l(this).constructor)}return e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),f(e,n)})(n)}function a(n,t,e){if(s())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(n.bind.apply(n,r));return e&&f(o,e.prototype),o}function s(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(n){}return(s=function(){return!!n})()}function f(n,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n})(n,t)}function l(n){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}e.r(t),e.d(t,"JdbcConfigurationError",(function(){return d}));var d=function(n){function t(n,e){var r;return function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=u(this,t,[n])).jdbcConfigurationInfo=e,r}return function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&f(n,t)}(t,n),e=t,r&&o(e.prototype,r),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,i}(c(Error))},230:function(n,t,e){"use strict";function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function o(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,u(r.key),r)}}function i(n,t,e){return t&&o(n.prototype,t),e&&o(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function u(n){var t=function(n,t){if("object"!=r(n)||!n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var o=e.call(n,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}(n,"string");return"symbol"==r(t)?t:t+""}e.r(t),e.d(t,"JdbcColumn",(function(){return c})),e.d(t,"toJDBCColumns",(function(){return a})),e.d(t,"updateColumn",(function(){return s}));var c=i((function n(){!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.column_name="",this.column_type="",this.sparql_type="",this.nullable=!0})),a=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return n.map((function(n){return{column_name:n,column_type:t[n].column_type,nullable:!0,sparql_type:t[n].sparql_type}}))},s=function(n,t){n.column_type=t[n.column_name].column_type,n.sparql_type=t[n.column_name].sparql_type}},343:function(n,t,e){"use strict";e.r(t);e(53),e(55),e(118),e(10),e(30);var r=e(228),o=e(115),i=e(229),u=e(104),c=e(230),a=e(27),s=e(1);function f(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){var e=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var r,o,i,u,c=[],a=!0,s=!1;try{if(i=(e=e.call(n)).next,0===t){if(Object(e)!==e)return;a=!1}else for(;!(a=(r=i.call(e)).done)&&(c.push(r.value),c.length!==t);a=!0);}catch(n){s=!0,o=n}finally{try{if(!a&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(s)throw o}}return c}}(n,t)||function(n,t){if(n){if("string"==typeof n)return l(n,t);var e={}.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?l(n,t):void 0}}(n,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=Array(t);e<t;e++)r[e]=n[e];return r}function d(n,t,e,r,o,i){n.getSqlConfigurations=function(){!t.getActiveRepository()||t.isActiveRepoOntopType()||t.isActiveRepoFedXType()?n.jdbcConfigurations=[]:e.getJdbcConfigurations().success((function(t){n.jdbcConfigurations=t})).error((function(n){var t=getError(n);r.error(t,i.instant("jdbc.not.get.SQL.msg"))}))},n.$watch((function(){return t.getActiveRepository()}),(function(){n.getSqlConfigurations()})),n.deleteConfiguration=function(t){o.openSimpleModal({title:i.instant("common.warning"),message:i.instant("jdbc.delete.sql.table.warning.msg",{name:t}),warning:!0}).result.then((function(){e.deleteJdbcConfiguration(t).success((function(){n.getSqlConfigurations()})).error((function(n){r.error(getError(n),i.instant("jdbc.not.delete.sql.msg"))}))}))}}function g(n,t,e,l,d,g,p,m,b,y,v,h,C,w,j,S){t.emptySparqlResponse='{"head": {"vars": []},"results": {"bindings": []}}',t.getSuggestionSqlType="",t.sqlTypes=[],t.activeTab=1,t.jdbcConfigurationInfo=new r.JdbcConfigurationInfo,t.jdbcConfigurationInfo.jdbcConfigurationName=l.search().name||"",t.saveOrUpdateExecuted=!1,t.jdbcConfigurationInfo.isNewJdbcConfiguration=!t.jdbcConfigurationInfo.jdbcConfigurationName,t.language=j.getLanguage(),t.isDirty=!1,t.prefixes=[],t.loadingControllerResources=!1,t.isQueryRunning=!1,t.canEditActiveRepo=!1;var q=!0;t.saveJdbcConfiguration=function(){if(t.saveOrUpdateExecuted=!0,t.jdbcConfigurationInfo.jdbcConfigurationName)if(t.isDirty){var n=t.jdbcConfigurationInfo.isNewJdbcConfiguration?I:P;J(t.jdbcConfigurationInfo).then(_).then(N).then(M).then(n).catch((function(n){if(!(n instanceof i.JdbcConfigurationError)){var t=getError(n);d.error(t,w.instant("jdbc.not.saved.configuration"))}}))}else W()},t.getPreview=function(){t.activeTab=1,t.isQueryRunning=!0,J(t.jdbcConfigurationInfo).then(_).then(N).then(M).then((function(n){return O({render:u.RenderingMode.YASQE,initialQuery:n.query}),n})).then(E).then((function(n){var t=f(n,2),e=t[0],r=t[1],o=e&&e.results.bindings&&e.results.bindings.length>0,i=u.RenderingMode.YASGUI;o||(i=u.RenderingMode.YASQE,d.info(w.instant("jdbc.table.definition"),w.instant("jdbc.preview.sql"))),O({render:i,sparqlResponse:e,initialQuery:r.query})})).catch((function(n){n instanceof i.JdbcConfigurationError?n.jdbcConfigurationInfo&&(n.jdbcConfigurationInfo.isColumnsEmpty||n.jdbcConfigurationInfo.hasUndefinedColumns)&&($(),t.activeTab=2):d.error(getError(n,0,100),w.instant("jdbc.not.show.preview"))})).finally((function(){t.isQueryRunning=!1}))},t.setActiveTab=function(n){t.activeTab=n;var e=t.jdbcConfigurationInfo.columns;2!==t.activeTab||e&&0!==e.length||J(t.jdbcConfigurationInfo).then(_).then((function(){t.getColumnsSuggestions()}))},t.setDirty=function(){t.isDirty=!0},t.getTypeLabel=function(n){switch(n){case"iri":return"VARCHAR: IRI";case"string":return"VARCHAR: String";default:return n.indexOf(" ")>0?n:n.toUpperCase()}},t.selectColumnType=function(n,e){t.setDirty();var r=t.jdbcConfigurationInfo.columns.find((function(t){return t.column_name===n}));r.column_type===t.getSuggestionSqlType&&M(t.jdbcConfigurationInfo).then((function(t){return y.getColumnsTypeSuggestion(t.query,[n])})).then((function(n){return n.data})).then((function(n){Object(c.updateColumn)(r,n),T(r.column_type,e)})).catch((function(n){d.error(getError(n),w.instant("jdbc.not.suggest.column.type"))}))},t.deleteColumn=function(n,e){C.openSimpleModal({title:w.instant("common.warning"),message:w.instant("jdbc.warning.delete.column.msg",{columnName:n}),warning:!0}).result.then((function(){t.jdbcConfigurationInfo.columns.splice(e,1),t.setDirty()}))},t.getColumnsSuggestions=function(){t.jdbcConfigurationInfo.columns&&t.jdbcConfigurationInfo.columns.length>0?C.openSimpleModal({title:w.instant("common.warning"),message:w.instant("jdbc.warning.column.type.msg"),warning:!0}).result.then((function(){$()})):$()},t.hasPrecision=function(n){return"iri"===n||"string"===n||"decimal"===n},t.containsColumnsWithPrecision=function(n){return n&&n.some((function(n){return t.hasPrecision(n.column_type)}))},t.containsColumnsWithScale=function(n){return n&&n.some((function(n){return x(n.column_type)}))},t.isLiteral=function(n){return"iri"!==n&&"unknown"!==n},t.containsNonLiteralColumnsOnly=function(n){return n&&n.every((function(n){return!t.isLiteral(n.column_type)}))};var E=function(n){if(t.canWriteActiveRepo){var e=JSON.stringify({name:t.jdbcConfigurationInfo.jdbcConfigurationName,query:t.jdbcConfigurationInfo.query,columns:t.jdbcConfigurationInfo.columns||[]});return Promise.all([y.getNewSqlTablePreview(e).then((function(n){return n.data})),Promise.resolve(n)])}return Promise.all([y.getExistingSqlTablePreview(t.jdbcConfigurationInfo.jdbcConfigurationName).then((function(n){return n.data})),Promise.resolve(n)])},T=function(n,t){n===t?d.info(Object(s.decodeHTML)(w.instant("jdbc.same.suggested.sql.type",{type:n})),w.instant("jdbc.suggest.sql.type"),{allowHtml:!0}):d.success(Object(s.decodeHTML)(w.instant("jdbc.suggested.sql.type",{type:n})),w.instant("jdbc.suggest.sql.type"),{allowHtml:!0})},R=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new r.JdbcConfigurationInfo;t.jdbcConfigurationInfo.columns=e.columns,t.jdbcConfigurationInfo.query=e.query,t.jdbcConfigurationInfo.jdbcConfigurationName=l.search().name||"",t.jdbcConfigurationInfo.isNewJdbcConfiguration=!t.jdbcConfigurationInfo.jdbcConfigurationName,t.prefixes=n,O(),Y()},I=function(n){var e={name:n.jdbcConfigurationName,query:n.query,columns:n.columns};return y.createNewJdbcConfiguration(e).then((function(){t.isDirty=!1,t.jdbcConfigurationInfo.isNewConfiguration=!1,d.success(w.instant("jdbc.saved.configuration")),V()}))},P=function(n){var e={name:n.jdbcConfigurationName,query:n.query,columns:n.columns};return y.updateJdbcConfiguration(e).then((function(){t.isDirty=!1,t.jdbcConfigurationInfo.isNewConfiguration=!1,d.success(w.instant("jdbc.configuration.updated")),V()}))},O=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};angular.extend(e,t.yasguiConfig||A(),n),t.yasguiConfig=e},A=function(){return{showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showQueryButton:!1,showResultInfo:!1,downloadAsOn:!1,showYasqeResizer:!1,initialQuery:t.jdbcConfigurationInfo.query,componentId:"jdbc-component",prefixes:t.prefixes,maxPersistentResponseSize:0,render:u.RenderingMode.YASQE,getCellContent:L,sparqlResponse:t.emptySparqlResponse,yasqeActionButtons:a.DISABLE_YASQE_BUTTONS_CONFIGURATION,yasqeMode:t.canEditActiveRepo?o.YasqeMode.WRITE:o.YasqeMode.READ}},J=function(n){return k().getQueryType().then((function(t){return n.isValidQueryType="SELECT"===t,n.isValidQueryType?n:Promise.reject(new i.JdbcConfigurationError("Query type is not valid."))}))},_=function(n){return k().isQueryValid().then((function(t){return n.isValidQuery=t,n.isValidQuery?n:Promise.reject(new i.JdbcConfigurationError("Invalid query."))}))},N=function(n){return n.columns&&0!==n.columns.length?t.jdbcConfigurationInfo.columns&&t.jdbcConfigurationInfo.columns.find((function(n){return"unknown"===n.column_type}))?(n.hasUndefinedColumns=!0,Promise.reject(new i.JdbcConfigurationError("There are columns without defined type.",n))):Promise.resolve(n):(n.isColumnsEmpty=!0,d.error(w.instant("jdbc.warning.one.column.msg")),Promise.reject(new i.JdbcConfigurationError("There are not defined columns.",n)))},$=function(){J(t.jdbcConfigurationInfo).then(_).then(M).then(D).then(Q).then((function(n){return t.jdbcConfigurationInfo=n})).catch((function(n){console.log(n)}))},D=function(n){return y.getColumnNames(n.query).then((function(t){return[n,t.data]})).catch((function(n){d.error(getError(n),w.instant("jdbc.not.suggest.column.names"))}))},Q=function(n){var e=f(n,2),r=e[0],o=e[1];return y.getColumnsTypeSuggestion(r.query,o).then((function(n){return r.columns=Object(c.toJDBCColumns)(o,n.data),r.isColumnsEmpty=r.columns.length,t.setDirty(),r})).catch((function(n){d.error(getError(n),w.instant("jdbc.not.suggest.column.types"))}))},k=function(){return a.YasguiComponentDirectiveUtil.getOntotextYasguiElement("#query-editor")},M=function(n){return k().getQuery().then((function(t){return n.query=t,n}))},x=function(n){return"decimal"===n},L=function(n,t){var e=n.value;return"<div class = 'literal-cell'>"+("<p class='nonUri' style='border: none; background-color: transparent; padding: 0; margin: 0'>"+(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"))+"</p>")+"</div>"},U=function(n,t,e,r){C.openSimpleModal({title:n,message:t,warning:!0}).result.then((function(){angular.isFunction(e)&&e()}),(function(){angular.isFunction(r)&&r()}))},Y=function(){t.getSuggestionSqlType=w.instant("view.jdbc.create.get_suggestion_sql_type"),t.sqlTypes=["string","iri","boolean","byte","short","int","long","float","double","decimal","date","time","timestamp",t.getSuggestionSqlType]},V=function(){setTimeout((function(){W()}),1e3)},W=function(){l.url("/jdbc")},B=function(n){t.isDirty&&(n.returnValue=!0)},F=function(){window.removeEventListener("beforeunload",B),H.forEach((function(n){return n()}))},H=[];H.push(e.$on("$translateChangeSuccess",(function(){t.language=j.getLanguage(),Y()}))),H.push(t.$on("$locationChangeStart",(function(n,e){if(t.isDirty){n.preventDefault();var r=w.instant("common.confirm"),o=w.instant("jdbc.warning.unsaved.changes");U(r,o,(function(){F();var n=l.absUrl().length-l.url().length,t=e.substring(n);l.path(t)}))}else F()}))),H.push(S.subscribe("repositoryWillChangeEvent",(function(n){return new Promise((function(e){if(t.jdbcConfigurationInfo.isNewJdbcConfiguration)e(n);else{var r=function(){t.isDirty=!1,W(),e(n)};if(t.isDirty){var o=w.instant("common.confirm"),i=w.instant("jdbc.warning.unsaved.changes");U(o,i,r,(function(){n.cancel=!0,e(n)}))}else r()}}))}))),H.push(t.$on("$destroy",F)),window.addEventListener("beforeunload",B),H.push(t.$watch(t.getActiveRepositoryObject,(function(n){n&&(t.canEditActiveRepo=t.canWriteActiveRepo(),q?(!function(){t.loadingControllerResources=!0;var n=g.getActiveRepository();t.jdbcConfigurationInfo.jdbcConfigurationName?Promise.all([g.getPrefixes(n),y.getJdbcConfiguration(t.jdbcConfigurationInfo.jdbcConfigurationName)]).then((function(n){var t=f(n,2),e=t[0],r=t[1];R(e,r.data)})).finally((function(){return t.loadingControllerResources=!1})):g.getPrefixes(n).then((function(n){return R(n)})).finally((function(){return t.loadingControllerResources=!1}))}(),q=!1):k().abortQuery().then(W))})))}angular.module("graphdb.framework.jdbc.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.monitoring.service","toastr","graphdb.framework.utils.event-emitter-service"],["graphdb.framework.utils.notifications"]).controller("JdbcListCtrl",d).controller("JdbcCreateCtrl",g),d.$inject=["$scope","$repositories","JdbcRestService","toastr","ModalService","$translate"],g.$inject=["$q","$scope","$rootScope","$location","toastr","$repositories","$window","$timeout","$interval","JdbcRestService","RDF4JRepositoriesRestService","SparqlRestService","ModalService","$translate","$languageService","EventEmitterService"]},344:function(n,t){angular.module("graphdb.framework.rest.jdbc.service",[]).factory("JdbcRestService",e),e.$inject=["$http","$repositories","$translate"];function e(n,t){return{getJdbcConfigurations:function(){return n.get("".concat("rest/sql-views","/tables"))},getJdbcConfiguration:function(t){return n.get("".concat("rest/sql-views","/tables/").concat(t))},createNewJdbcConfiguration:function(n){return e("POST","",n)},updateJdbcConfiguration:function(n){return e("PUT",n.name,n)},deleteJdbcConfiguration:function(t){return n.delete("".concat("rest/sql-views","/tables/").concat(t))},getColumnNames:function(t){return n.post("".concat("rest/sql-views","/columns"),t,{headers:{Accept:"application/json","Content-Type":"text/plain"}})},getColumnsTypeSuggestion:function(e,r){if(!Array.isArray(r))throw new Error(t.instant("jdbc.column.names.constraint"));return n({method:"POST",url:"".concat("rest/sql-views","/types"),data:{query:e,column_names:r}})},getExistingSqlTablePreview:function(t,e){return n({method:"GET",url:"rest/sql-views/preview/".concat(t),params:{limit:e}})},getNewSqlTablePreview:function(t,e){return n({method:"POST",url:"rest/sql-views/preview",contentType:"application/json; charset=utf-8",dataType:"json",data:t,params:{limit:e},headers:{Accept:"application/sparql-results+json"}})}};function e(t,e,r){var o=e?"".concat("rest/sql-views","/tables/").concat(e):"".concat("rest/sql-views","/tables");return n({method:t,url:o,noCancelOnRouteChange:!0,data:{name:r.name,query:r.query,columns:r.columns||[]}})}}},430:function(n,t,e){"use strict";e.r(t);e(10),e(52),e(250),e(53),e(343),e(344),e(167);angular.module("graphdb.framework.jdbc",["toastr","ui.bootstrap","graphdb.framework.jdbc.controllers","graphdb.framework.core.services.repositories","graphdb.framework.core.directives","graphdb.framework.rest.jdbc.service","graphdb.framework.core.directives.yasgui-component"])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[381],{214:function(e,t,r){"use strict";r.r(t),r.d(t,"agentFormModelMapper",(function(){return u})),r.d(t,"agentListMapper",(function(){return h})),r.d(t,"agentModelMapper",(function(){return p}));var n=r(
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[381],{214:function(e,t,r){"use strict";r.r(t),r.d(t,"agentFormModelMapper",(function(){return u})),r.d(t,"agentListMapper",(function(){return h})),r.d(t,"agentModelMapper",(function(){return p}));var n=r(143),o=r(287),i=r(25),a=r(28),s=r(129);function d(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var u=function(e,t,r){if(e){var i=new o.AgentFormModel;return i.id=e.id||t.id,i.name=e.name||t.name,i.repositoryId=e.repositoryId||t.repositoryId,i.model=e.model||t.model,i.temperature.value=void 0!==e.temperature?e.temperature:t.temperature,i.topP.value=void 0!==e.topP?e.topP:t.topP,i.seed=e.seed||t.seed,i.instructions=c(e.instructions,t.instructions),m(i,r,t.assistantExtractionMethods,e.assistantExtractionMethods),function(e,t,r){if(!e)return;var i=e.map((function(r){var i={method:r.method||t.method,expanded:r.expanded||t.expanded};return r.method!==n.AdditionalExtractionMethod.IRI_DISCOVERY_SEARCH&&r.method!==n.AdditionalExtractionMethod.AUTOCOMPLETE_IRI_DISCOVERY_SEARCH||(i.selected=e.some((function(e){return e.method===r.method}))),r.method===n.AdditionalExtractionMethod.AUTOCOMPLETE_IRI_DISCOVERY_SEARCH&&(i.maxNumberOfResultsPerCall=r._maxNumberOfResultsPerCall||t.maxNumberOfResultsPerCall,i._searchLabelPredicates=r.searchLabelPredicates||t._searchLabelPredicates),new o.AdditionalExtractionMethodFormModel(i)}));r.additionalExtractionMethods.setAdditionalExtractionMethod(i)}(e.additionalExtractionMethods,t.additionalExtractionMethods,i),i}},c=function(e,t){if(e||t){var r=e&&e.systemInstruction||t.systemInstruction,n=e&&e.userInstruction||t.userInstruction;return new o.AgentInstructionsFormModel({systemInstruction:r,userInstruction:n,defaultSystemInstruction:t.systemInstruction,defaultUserInstruction:t.userInstruction})}},m=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=r.filter((function(e){return!n.some((function(t){return t.method===e.method}))})),l=r.find((function(e){return"sparql_search"===e.method})),u=[].concat(d(n),d(a));u.forEach((function(r){var a=n.some((function(e){return e.method===r.method})),d="";a&&"sparql_search"===r.method&&(s.AGENT_OPERATION.CREATE===t?d="":r.sparqlQuery?d="sparqlQuery":r.ontologyGraph&&(d="ontologyGraph"));var u=t===s.AGENT_OPERATION.EDIT||t===s.AGENT_OPERATION.CLONE,c=new o.ExtractionMethodFormModel({selected:u&&a,method:r.method,sparqlOption:d,ontologyGraph:r.ontologyGraph||l.ontologyGraph,addMissingNamespaces:r.addMissingNamespaces,sparqlQuery:new i.TextFieldModel({value:r.sparqlQuery||l.sparqlQuery,minLength:1,maxLength:2380}),similarityIndex:r.similarityIndex,similarityIndexThreshold:r.similarityIndexThreshold&&new i.NumericRangeModel({value:r.similarityIndexThreshold,minValue:0,maxValue:1,step:.1}),maxNumberOfTriplesPerCall:0===r.maxNumberOfTriplesPerCall?null:r.maxNumberOfTriplesPerCall,queryTemplate:r.queryTemplate&&new i.TextFieldModel({value:r.queryTemplate,minLength:1,maxLength:2380}),retrievalConnectorInstance:r.retrievalConnectorInstance});e.assistantExtractionMethods.setExtractionMethod(c)}))};var h=function(e,t){if(!e)return new n.AgentListModel;var r=e.map((function(e){return p(e,t)}));return new n.AgentListModel(r)},p=function(e,t){if(e){var r=Object(a.md5HashGenerator)();return new n.AgentModel({id:e.id,name:e.name,repositoryId:e.repositoryId,isRepositoryDeleted:!t.includes(e.repositoryId),model:e.model,temperature:e.temperature,topP:e.topP,seed:e.seed,instructions:M(e.instructions),assistantExtractionMethods:f(e.assistantExtractionMethods),additionalExtractionMethods:y(e.additionalExtractionMethods)},r)}},f=function(e){if(e)return e.map((function(e){return I(e)}))},I=function(e){if(e)return new n.ExtractionMethodModel({method:e.method,ontologyGraph:e.ontologyGraph,addMissingNamespaces:e.addMissingNamespaces,sparqlQuery:e.sparqlQuery,similarityIndex:e.similarityIndex,similarityIndexThreshold:e.similarityIndexThreshold,maxNumberOfTriplesPerCall:e.maxNumberOfTriplesPerCall,queryTemplate:e.queryTemplate,retrievalConnectorInstance:e.retrievalConnectorInstance})},y=function(e){if(e)return e.map((function(e){return E(e)}))},E=function(e){if(e)return e.method===n.AdditionalExtractionMethod.AUTOCOMPLETE_IRI_DISCOVERY_SEARCH?new n.AdditionalExtractionMethodModel({method:e.method,maxNumberOfResultsPerCall:e.limit||0,searchLabelPredicates:e.searchLabelPredicates||[]}):e.method===n.AdditionalExtractionMethod.IRI_DISCOVERY_SEARCH?new n.AdditionalExtractionMethodModel({method:e.method}):void 0},M=function(e){if(e)return new n.AgentInstructionsModel({systemInstruction:e.systemInstruction,userInstruction:e.userInstruction})}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[382],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[382],{129:function(n,t,E){"use strict";E.r(t),E.d(t,"TTYG_ERROR_MSG_LENGTH",(function(){return e})),E.d(t,"AGENTS_FILTER_ALL_KEY",(function(){return r})),E.d(t,"AGENT_OPERATION",(function(){return c}));var e=100,r="ALL",c={CREATE:"create",EDIT:"edit",CLONE:"clone"}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[385],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[385],{140:function(e,t,a){"use strict";a.r(t),a.d(t,"getHumanReadableTimestamp",(function(){return n}));var n=function(e,t,a){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!a)return"";var r=new Date(a),i=new Date,o=new Date(i.getFullYear(),i.getMonth(),i.getDate()),m=new Date(o);m.setDate(o.getDate()-1);var d=new Date(r.getFullYear(),r.getMonth(),r.getDate()),g=n.timeFormat?t("date")(r,n.timeFormat):"";if(d.getTime()===o.getTime())return e.instant("common.dates.today")+g;if(d.getTime()===m.getTime())return e.instant("common.dates.yesterday")+g;var u=n.dateFormat||"yyyy-MM-dd";return t("date")(r,u)+g}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[39,81,95,127,297,318,319,321,322],{104:function(e,t,i){"use strict";i.r(t),i.d(t,"RenderingMode",(function(){return r}));var r={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},106:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityIndexType",(function(){return r}));var r={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:function(e){return r.TEXT===e},isTextLiteralType:function(e){return r.TEXT_LITERAL===e},isPredicationType:function(e){return r.PREDICATION===e}}},107:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityIndexStatus",(function(){return r}));var r={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:function(e){return r.CREATING===e},isBuildingStatus:function(e){return r.BUILDING===e},isBuiltStatus:function(e){return r.BUILT===e},isRebuildingStatus:function(e){return r.REBUILDING===e},isOutdatedStatus:function(e){return r.OUTDATED===e},isInterruptedStatus:function(e){return r.INTERRUPTED===e},isObsoleteStatus:function(e){return r.OBSOLETE===e},isFailedStatus:function(e){return r.FAILED===e}}},110:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityIndex",(function(){return o}));var r=i(106),n=i(107);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var o=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=r.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""},(t=[{key:"isTextType",value:function(){return r.SimilarityIndexType.isTextType(this.type)}},{key:"isTextLiteralType",value:function(){return r.SimilarityIndexType.isTextLiteralType(this.type)}},{key:"isPredicationType",value:function(){return r.SimilarityIndexType.isPredicationType(this.type)}},{key:"isCreatingStatus",value:function(){return n.SimilarityIndexStatus.isCreatingStatus(this.status)}},{key:"isBuildingStatus",value:function(){return n.SimilarityIndexStatus.isBuildingStatus(this.status)}},{key:"isBuiltStatus",value:function(){return n.SimilarityIndexStatus.isBuiltStatus(this.status)}},{key:"isRebuildingStatus",value:function(){return n.SimilarityIndexStatus.isRebuildingStatus(this.status)}},{key:"isOutdatedStatus",value:function(){return n.SimilarityIndexStatus.isOutdatedStatus(this.status)}},{key:"isInterruptedStatus",value:function(){return n.SimilarityIndexStatus.isInterruptedStatus(this.status)}},{key:"isObsoleteStatus",value:function(){return n.SimilarityIndexStatus.isObsoleteStatus(this.status)}},{key:"isFailedStatus",value:function(){return n.SimilarityIndexStatus.isFailedStatus(this.status)}}])&&s(e.prototype,t),i&&s(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}()},117:function(e,t,i){"use strict";i.r(t),i.d(t,"mapIndexesResponseToSimilarityIndex",(function(){return n}));var r=i(110),n=function(e){return e.map((function(e){var t=new r.SimilarityIndex;return t.type=e.type,t.stopList=e.stopList,t.status=e.status,t.selectQuery=e.selectQuery,t.searchQuery=e.searchQuery,t.sameAs=e.sameAs,t.options=e.options,t.name=e.name,t.infer=e.infer,t.analyzer=e.analyzer,t.analogicalQuery=e.analogicalQuery,t}))}},152:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilaritySearchType",(function(){return r}));var r={SEARCH_TERM:"searchTerm",SEARCH_ANALOGICAL:"searchAnalogical",SEARCH_ENTITY:"searchEntity",SEARCH_ENTITY_PREDICATE:"searchEntityPredicate",SEARCH_DOCUMENT:"searchDocumentID",isSearchTermType:function(e){return r.SEARCH_TERM===e},isSearchAnalogicalType:function(e){return r.SEARCH_ANALOGICAL===e},isSearchEntityType:function(e){return r.SEARCH_ENTITY===e},isSearchEntityPredicateType:function(e){return r.SEARCH_ENTITY_PREDICATE===e},isSearchDocumentType:function(e){return r.SEARCH_DOCUMENT===e}}},234:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityResultType",(function(){return r}));var r={TERM_RESULT:"termResult",DOCUMENT_RESULT:"documentResult",ENTITY_RESULT:"entityResult",isResultDocumentType:function(e){return r.DOCUMENT_RESULT===e},isResultTermType:function(e){return r.TERM_RESULT===e}}},235:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilaritySearch",(function(){return c}));var r=i(152);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}var c=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=r.SimilaritySearchType.SEARCH_TERM,this.predicate="",this.termOrSubject=""},(t=[{key:"isSearchAnalogicalType",value:function(){return r.SimilaritySearchType.isSearchAnalogicalType(this.type)}},{key:"isSearchTermType",value:function(){return r.SimilaritySearchType.isSearchTermType(this.type)}},{key:"isSearchEntityType",value:function(){return r.SimilaritySearchType.isSearchEntityType(this.type)}},{key:"isSearchEntityPredicateType",value:function(){return r.SimilaritySearchType.isSearchEntityPredicateType(this.type)}},{key:"isSearchDocumentType",value:function(){return r.SimilaritySearchType.isSearchDocumentType(this.type)}}])&&a(e.prototype,t),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}()},369:function(e,t,i){"use strict";i.r(t);i(29),i(60);var r=i(1),n=i(152),a=i(234),s=i(107),c=i(106),o=i(117),u=i(235),l=i(104),y=i(11);function p(e,t,i,p,S,d,m,T,h,f,I,E,v,R,g,x){var b="http://www.ontotext.com/graphdb/similarity/",A="http://www.ontotext.com/graphdb/similarity/psi/",w=A+"any";e.pluginName="similarity",e.pluginIsActive=!0,e.isLoading=!1,e.selectedSimilarityIndex=void 0,e.similarityIndexStatus=s.SimilarityIndexStatus,e.similarityIndexType=c.SimilarityIndexType,e.similaritySearchType=n.SimilaritySearchType,e.searchType=n.SimilaritySearchType.SEARCH_TERM,e.similarityResultType=a.SimilarityResultType,e.resultType=a.SimilarityResultType.TERM_RESULT,e.info=I,e.isGraphDBRepository=void 0,e.canEditRepo=e.canWriteActiveRepo(),e.loadSimilarityIndexesTimer=void 0,e.loadSimilarityIndexes=function(){e.isGraphDBRepository&&e.pluginIsActive&&h.getIndexes().success((function(t){return e.similarityIndexes=Object(o.mapIndexesResponseToSimilarityIndex)(t)})).error((function(e){return i.error(getError(e),v.instant("similarity.could.not.get.indexes.error"))}))},e.reloadSimilarityIndexes=function(){e.loadSimilarityIndexes(),e.loadSimilarityIndexesTimer||(e.loadSimilarityIndexesTimer=t((function(){e.$broadcast("checkIsActive"),"false"!==$("#indexes-table").attr("aria-expanded")&&e.loadSimilarityIndexes()}),5e3))},e.goToSimilarityIndex=function(t){(t.isBuiltStatus()||t.isOutdatedStatus()||t.isRebuildingStatus())&&(e.empty=!0,e.selectedSimilarityIndex!==t&&(e.lastSearch=void 0,e.selectedSimilarityIndex=t),t.isTextType()?e.searchType=n.SimilaritySearchType.SEARCH_TERM:t.isPredicationType()&&(e.searchType=n.SimilaritySearchType.SEARCH_ENTITY),(t.isTextType()||t.isPredicationType())&&$("#indexes-table").collapse("hide"))},e.performSearch=function(t,r,n,a,s){e.isLoading=!0,B(n,r);var c=k(t,r,n,a,s);R.getQueryResult(p.getActiveRepository(),c,"application/x-sparqlstar-results+json, application/sparql-results+json;q=0.9, */*;q=0.8").then((function(e){return H(e)})).catch((function(e){return i.error(getError(e.data),v.instant("similarity.get.resource.error"))})).finally((function(){return e.isLoading=!1}))},e.viewSearchQuery=function(){var t,i,r=[];i=null==(r=(t=e.lastSearch.isSearchAnalogicalType()?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type]).match(/[a-zA-Z0-9-]+:<http:\/\/www.ontotext.com\/graphdb\/similarity\/instance\/>/))?"similarity-index":r[0].substring(0,r[0].indexOf(":"));var a=t.replace("?index",i+":"+e.selectedSimilarityIndex.name).replace("?query",e.lastSearch.termOrSubject).replace("?searchType",(e.selectedSimilarityIndex.isTextType()?":":"psi:")+(e.lastSearch.isSearchEntityPredicateType()?n.SimilaritySearchType.SEARCH_ENTITY:e.lastSearch.type)).replace("?resultType",e.selectedSimilarityIndex.isTextType()?":"+e.resultType:"psi:entityResult").replace("?parameters",O(e.searchParameters?e.searchParameters:"")).replace("?psiPredicate",e.lastSearch.predicate?D(e.lastSearch.predicate):D(w)).replace("?givenSubject",D(e.analogicalSubject)).replace("?givenObject",D(e.analogicalObject)).replace("?searchSubject",D(e.searchSubject));T.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return a}}})},e.deleteSimilarityIndex=function(t){m.openSimpleModal({title:v.instant("common.confirm"),message:v.instant("similarity.delete.index.warning",{name:t.name}),warning:!0}).result.then((function(){h.deleteIndex(t).then((function(){return e.loadSimilarityIndexes()})).catch((function(e){return i.error(getError(e))}))}))},e.viewCreateQuery=function(e){h.getQuery({indexName:e.name,indexOptions:e.options,query:e.selectQuery,indexStopList:e.stopList,queryInference:e.infer,querySameAs:e.sameAs,viewType:e.type,indexAnalyzer:e.analyzer}).success((function(e){T.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return e}}})}))},e.rebuildIndex=function(t){t.searchQuery||(t.searchQuery=t.type?e.searchQueries[t.type]:e.searchQueries.text),m.openSimpleModal({title:v.instant("common.confirm"),message:Object(r.decodeHTML)(v.instant("similarity.rebuild.index.warning",{name:t.name})),warning:!0}).result.then((function(){t.status=s.SimilarityIndexStatus.REBUILDING,h.rebuildIndex(t).catch((function(e){return i.error(getError(e))}))}))},e.setPluginIsActive=function(t){e.pluginIsActive=t},e.encodeURIComponent=function(e){return encodeURIComponent(e)},e.copyToClipboardResult=function(e){m.openCopyToClipboardModal(e)},e.trimIRI=function(e){return _.trim(e,"<>")},e.updateSearchType=function(t){e.searchType=t},e.updateResultType=function(t){e.resultType=t},e.editSimilarityIndex=function(e){L(e)},e.cloneSimilataryIndex=function(e){L(e,!0)},e.setPsiSubject=function(t){e.psiSubject=t},e.setAnalogicalSubject=function(t){e.analogicalSubject=t},e.setAnalogicalObject=function(t){e.analogicalObject=t};var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={selectQuery:e.selectQuery,options:e.options,name:e.name,editSearchQuery:!t,infer:e.infer,sameAs:e.sameAs,stopList:e.stopList,type:e.type,analyzer:e.analyzer,searchQuery:e.searchQuery?e.searchQuery:"",analogicalQuery:e.analogicalQuery?e.analogicalQuery:""};d.path("similarity/index/create").search(i)},Q=function(){var t=e.getActiveRepository();t&&e.activeRepository!==t&&(e.canEditRepo=e.canWriteActiveRepo(),e.activeRepository=t,e.isGraphDBRepository=j(),e.isGraphDBRepository&&(S.isLicenseValid()&&e.reloadSimilarityIndexes(),C()))},C=function(){h.getSearchQueries().success((function(t){return e.searchQueries=t})).error((function(e){return i.error(getError(e),v.instant("similarity.could.not.get.search.queries.error"))}))},O=function(e){return'"'+e+'"'},D=function(e){return void 0===e||e.startsWith("<<")&&e.endsWith(">>")?e:"<"+e+">"},j=function(){return e.getActiveRepository()&&!e.isActiveRepoOntopType()&&!e.isActiveRepoFedXType()},N=[];N.push(e.$on("repositoryIsSet",Q));e.$on("$destroy",(function(){P(),e.loadSimilarityIndexesTimer&&t.cancel(e.loadSimilarityIndexesTimer)}));var P=function(){N.forEach((function(e){return e()}))};N.push(g.onAutocompleteEnabledUpdated((function(t){e.isAutocompleteEnabled=t}))),N.push(g.onSelectedRepositoryIdUpdated((function(t){t?x.getNamespaces(t).then((function(t){e.repositoryNamespaces=t})).catch((function(e){var t=getError(e);i.error(t,v.instant("error.getting.namespaces.for.repo"))})):e.repositoryNamespaces=new y.NamespacesListModel})));N.push(e.$watch("searchType",(function(){e.empty=!0})));var U=e.$watch(e.getActiveRepositoryObject,(function(e){e&&(Q(),U())})),k=function(t,i,r,s,c){var o={query:M(e.lastSearch.type),$index:D("http://www.ontotext.com/graphdb/similarity/instance/"+t.name),$query:e.lastSearch.termOrSubject,$searchType:D((e.selectedSimilarityIndex.isTextType()?b:A)+(n.SimilaritySearchType.isSearchEntityPredicateType(r)?n.SimilaritySearchType.SEARCH_ENTITY:r)),$resultType:D(e.selectedSimilarityIndex.isTextType()?b+s:A+a.SimilarityResultType.ENTITY_RESULT),$parameters:O(c)};return n.SimilaritySearchType.isSearchEntityPredicateType(r)&&(o.$psiPredicate=e.lastSearch.predicate?D(e.lastSearch.predicate):D(w)),n.SimilaritySearchType.isSearchAnalogicalType(r)&&(e.searchSubject=i,o.$givenSubject=D(e.analogicalSubject),o.$givenObject=D(e.analogicalObject),o.$searchSubject=D(i)),o},B=function(t,i){e.lastSearch=new u.SimilaritySearch,e.lastSearch.type=t,n.SimilaritySearchType.isSearchEntityPredicateType(t)&&(e.lastSearch.predicate=i),e.lastSearch.termOrSubject=G(e.lastSearch.type,i,e.psiSubject)},M=function(t){return n.SimilaritySearchType.isSearchAnalogicalType(t)?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type]},G=function(e,t,i){var r=t;return n.SimilaritySearchType.isSearchEntityPredicateType(e)&&(r=i),r=n.SimilaritySearchType.isSearchTermType(e)?O(r):D(r)},H=function(t){e.yasguiConfig={showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showQueryButton:!1,downloadAsOn:!1,showResultInfo:!1,componentId:"similarity-list-component",maxPersistentResponseSize:0,render:l.RenderingMode.YASR,sparqlResponse:t.data}}}angular.module("graphdb.framework.similarity.controllers.list",["graphdb.core.services.workbench-context","graphdb.framework.core.services.rdf4j.repositories"]).controller("SimilarityCtrl",p),p.$inject=["$scope","$interval","toastr","$repositories","$licenseService","$location","ModalService","$uibModal","SimilarityRestService","AutocompleteRestService","productInfo","RDF4JRepositoriesRestService","$translate","SparqlRestService","WorkbenchContextService","RDF4JRepositoriesService"]}}]);
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[39,82,97,128,297,318,319,321,322],{104:function(e,t,i){"use strict";i.r(t),i.d(t,"RenderingMode",(function(){return r}));var r={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},106:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityIndexType",(function(){return r}));var r={TEXT:"text",TEXT_LITERAL:"textLiteral",PREDICATION:"predication",isTextType:function(e){return r.TEXT===e},isTextLiteralType:function(e){return r.TEXT_LITERAL===e},isPredicationType:function(e){return r.PREDICATION===e}}},107:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityIndexStatus",(function(){return r}));var r={CREATING:"CREATING",BUILDING:"BUILDING",BUILT:"BUILT",REBUILDING:"REBUILDING",OUTDATED:"OUTDATED",INTERRUPTED:"INTERRUPTED",OBSOLETE:"OBSOLETE",FAILED:"FAILED",isCreatingStatus:function(e){return r.CREATING===e},isBuildingStatus:function(e){return r.BUILDING===e},isBuiltStatus:function(e){return r.BUILT===e},isRebuildingStatus:function(e){return r.REBUILDING===e},isOutdatedStatus:function(e){return r.OUTDATED===e},isInterruptedStatus:function(e){return r.INTERRUPTED===e},isObsoleteStatus:function(e){return r.OBSOLETE===e},isFailedStatus:function(e){return r.FAILED===e}}},110:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityIndex",(function(){return o}));var r=i(106),n=i(107);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var o=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.analyzer="",this.infer=!0,this.options="",this.sameAs=!0,this.searchQuery="",this.selectQuery="",this.stopList=void 0,this.name="",this.type=r.SimilarityIndexType.TEXT,this.status=void 0,this.analogicalQuery=void 0,this.inputIndex=void 0,this.isLiteralIndex=""},(t=[{key:"isTextType",value:function(){return r.SimilarityIndexType.isTextType(this.type)}},{key:"isTextLiteralType",value:function(){return r.SimilarityIndexType.isTextLiteralType(this.type)}},{key:"isPredicationType",value:function(){return r.SimilarityIndexType.isPredicationType(this.type)}},{key:"isCreatingStatus",value:function(){return n.SimilarityIndexStatus.isCreatingStatus(this.status)}},{key:"isBuildingStatus",value:function(){return n.SimilarityIndexStatus.isBuildingStatus(this.status)}},{key:"isBuiltStatus",value:function(){return n.SimilarityIndexStatus.isBuiltStatus(this.status)}},{key:"isRebuildingStatus",value:function(){return n.SimilarityIndexStatus.isRebuildingStatus(this.status)}},{key:"isOutdatedStatus",value:function(){return n.SimilarityIndexStatus.isOutdatedStatus(this.status)}},{key:"isInterruptedStatus",value:function(){return n.SimilarityIndexStatus.isInterruptedStatus(this.status)}},{key:"isObsoleteStatus",value:function(){return n.SimilarityIndexStatus.isObsoleteStatus(this.status)}},{key:"isFailedStatus",value:function(){return n.SimilarityIndexStatus.isFailedStatus(this.status)}}])&&s(e.prototype,t),i&&s(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}()},117:function(e,t,i){"use strict";i.r(t),i.d(t,"mapIndexesResponseToSimilarityIndex",(function(){return n}));var r=i(110),n=function(e){return e.map((function(e){var t=new r.SimilarityIndex;return t.type=e.type,t.stopList=e.stopList,t.status=e.status,t.selectQuery=e.selectQuery,t.searchQuery=e.searchQuery,t.sameAs=e.sameAs,t.options=e.options,t.name=e.name,t.infer=e.infer,t.analyzer=e.analyzer,t.analogicalQuery=e.analogicalQuery,t}))}},153:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilaritySearchType",(function(){return r}));var r={SEARCH_TERM:"searchTerm",SEARCH_ANALOGICAL:"searchAnalogical",SEARCH_ENTITY:"searchEntity",SEARCH_ENTITY_PREDICATE:"searchEntityPredicate",SEARCH_DOCUMENT:"searchDocumentID",isSearchTermType:function(e){return r.SEARCH_TERM===e},isSearchAnalogicalType:function(e){return r.SEARCH_ANALOGICAL===e},isSearchEntityType:function(e){return r.SEARCH_ENTITY===e},isSearchEntityPredicateType:function(e){return r.SEARCH_ENTITY_PREDICATE===e},isSearchDocumentType:function(e){return r.SEARCH_DOCUMENT===e}}},234:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilarityResultType",(function(){return r}));var r={TERM_RESULT:"termResult",DOCUMENT_RESULT:"documentResult",ENTITY_RESULT:"entityResult",isResultDocumentType:function(e){return r.DOCUMENT_RESULT===e},isResultTermType:function(e){return r.TERM_RESULT===e}}},235:function(e,t,i){"use strict";i.r(t),i.d(t,"SimilaritySearch",(function(){return c}));var r=i(153);function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==n(t)?t:t+""}var c=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=r.SimilaritySearchType.SEARCH_TERM,this.predicate="",this.termOrSubject=""},(t=[{key:"isSearchAnalogicalType",value:function(){return r.SimilaritySearchType.isSearchAnalogicalType(this.type)}},{key:"isSearchTermType",value:function(){return r.SimilaritySearchType.isSearchTermType(this.type)}},{key:"isSearchEntityType",value:function(){return r.SimilaritySearchType.isSearchEntityType(this.type)}},{key:"isSearchEntityPredicateType",value:function(){return r.SimilaritySearchType.isSearchEntityPredicateType(this.type)}},{key:"isSearchDocumentType",value:function(){return r.SimilaritySearchType.isSearchDocumentType(this.type)}}])&&a(e.prototype,t),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}()},369:function(e,t,i){"use strict";i.r(t);i(29),i(60);var r=i(1),n=i(153),a=i(234),s=i(107),c=i(106),o=i(117),u=i(235),l=i(104),y=i(11);function p(e,t,i,p,S,d,m,T,h,f,I,E,v,R,g,x){var b="http://www.ontotext.com/graphdb/similarity/",A="http://www.ontotext.com/graphdb/similarity/psi/",w=A+"any";e.pluginName="similarity",e.pluginIsActive=!0,e.isLoading=!1,e.selectedSimilarityIndex=void 0,e.similarityIndexStatus=s.SimilarityIndexStatus,e.similarityIndexType=c.SimilarityIndexType,e.similaritySearchType=n.SimilaritySearchType,e.searchType=n.SimilaritySearchType.SEARCH_TERM,e.similarityResultType=a.SimilarityResultType,e.resultType=a.SimilarityResultType.TERM_RESULT,e.info=I,e.isGraphDBRepository=void 0,e.canEditRepo=e.canWriteActiveRepo(),e.loadSimilarityIndexesTimer=void 0,e.loadSimilarityIndexes=function(){e.isGraphDBRepository&&e.pluginIsActive&&h.getIndexes().success((function(t){return e.similarityIndexes=Object(o.mapIndexesResponseToSimilarityIndex)(t)})).error((function(e){return i.error(getError(e),v.instant("similarity.could.not.get.indexes.error"))}))},e.reloadSimilarityIndexes=function(){e.loadSimilarityIndexes(),e.loadSimilarityIndexesTimer||(e.loadSimilarityIndexesTimer=t((function(){e.$broadcast("checkIsActive"),"false"!==$("#indexes-table").attr("aria-expanded")&&e.loadSimilarityIndexes()}),5e3))},e.goToSimilarityIndex=function(t){(t.isBuiltStatus()||t.isOutdatedStatus()||t.isRebuildingStatus())&&(e.empty=!0,e.selectedSimilarityIndex!==t&&(e.lastSearch=void 0,e.selectedSimilarityIndex=t),t.isTextType()?e.searchType=n.SimilaritySearchType.SEARCH_TERM:t.isPredicationType()&&(e.searchType=n.SimilaritySearchType.SEARCH_ENTITY),(t.isTextType()||t.isPredicationType())&&$("#indexes-table").collapse("hide"))},e.performSearch=function(t,r,n,a,s){e.isLoading=!0,B(n,r);var c=k(t,r,n,a,s);R.getQueryResult(p.getActiveRepository(),c,"application/x-sparqlstar-results+json, application/sparql-results+json;q=0.9, */*;q=0.8").then((function(e){return H(e)})).catch((function(e){return i.error(getError(e.data),v.instant("similarity.get.resource.error"))})).finally((function(){return e.isLoading=!1}))},e.viewSearchQuery=function(){var t,i,r=[];i=null==(r=(t=e.lastSearch.isSearchAnalogicalType()?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type]).match(/[a-zA-Z0-9-]+:<http:\/\/www.ontotext.com\/graphdb\/similarity\/instance\/>/))?"similarity-index":r[0].substring(0,r[0].indexOf(":"));var a=t.replace("?index",i+":"+e.selectedSimilarityIndex.name).replace("?query",e.lastSearch.termOrSubject).replace("?searchType",(e.selectedSimilarityIndex.isTextType()?":":"psi:")+(e.lastSearch.isSearchEntityPredicateType()?n.SimilaritySearchType.SEARCH_ENTITY:e.lastSearch.type)).replace("?resultType",e.selectedSimilarityIndex.isTextType()?":"+e.resultType:"psi:entityResult").replace("?parameters",O(e.searchParameters?e.searchParameters:"")).replace("?psiPredicate",e.lastSearch.predicate?D(e.lastSearch.predicate):D(w)).replace("?givenSubject",D(e.analogicalSubject)).replace("?givenObject",D(e.analogicalObject)).replace("?searchSubject",D(e.searchSubject));T.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return a}}})},e.deleteSimilarityIndex=function(t){m.openSimpleModal({title:v.instant("common.confirm"),message:v.instant("similarity.delete.index.warning",{name:t.name}),warning:!0}).result.then((function(){h.deleteIndex(t).then((function(){return e.loadSimilarityIndexes()})).catch((function(e){return i.error(getError(e))}))}))},e.viewCreateQuery=function(e){h.getQuery({indexName:e.name,indexOptions:e.options,query:e.selectQuery,indexStopList:e.stopList,queryInference:e.infer,querySameAs:e.sameAs,viewType:e.type,indexAnalyzer:e.analyzer}).success((function(e){T.open({templateUrl:"pages/viewQuery.html",controller:"ViewQueryCtrl",resolve:{query:function(){return e}}})}))},e.rebuildIndex=function(t){t.searchQuery||(t.searchQuery=t.type?e.searchQueries[t.type]:e.searchQueries.text),m.openSimpleModal({title:v.instant("common.confirm"),message:Object(r.decodeHTML)(v.instant("similarity.rebuild.index.warning",{name:t.name})),warning:!0}).result.then((function(){t.status=s.SimilarityIndexStatus.REBUILDING,h.rebuildIndex(t).catch((function(e){return i.error(getError(e))}))}))},e.setPluginIsActive=function(t){e.pluginIsActive=t},e.encodeURIComponent=function(e){return encodeURIComponent(e)},e.copyToClipboardResult=function(e){m.openCopyToClipboardModal(e)},e.trimIRI=function(e){return _.trim(e,"<>")},e.updateSearchType=function(t){e.searchType=t},e.updateResultType=function(t){e.resultType=t},e.editSimilarityIndex=function(e){L(e)},e.cloneSimilataryIndex=function(e){L(e,!0)},e.setPsiSubject=function(t){e.psiSubject=t},e.setAnalogicalSubject=function(t){e.analogicalSubject=t},e.setAnalogicalObject=function(t){e.analogicalObject=t};var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={selectQuery:e.selectQuery,options:e.options,name:e.name,editSearchQuery:!t,infer:e.infer,sameAs:e.sameAs,stopList:e.stopList,type:e.type,analyzer:e.analyzer,searchQuery:e.searchQuery?e.searchQuery:"",analogicalQuery:e.analogicalQuery?e.analogicalQuery:""};d.path("similarity/index/create").search(i)},Q=function(){var t=e.getActiveRepository();t&&e.activeRepository!==t&&(e.canEditRepo=e.canWriteActiveRepo(),e.activeRepository=t,e.isGraphDBRepository=j(),e.isGraphDBRepository&&(S.isLicenseValid()&&e.reloadSimilarityIndexes(),C()))},C=function(){h.getSearchQueries().success((function(t){return e.searchQueries=t})).error((function(e){return i.error(getError(e),v.instant("similarity.could.not.get.search.queries.error"))}))},O=function(e){return'"'+e+'"'},D=function(e){return void 0===e||e.startsWith("<<")&&e.endsWith(">>")?e:"<"+e+">"},j=function(){return e.getActiveRepository()&&!e.isActiveRepoOntopType()&&!e.isActiveRepoFedXType()},N=[];N.push(e.$on("repositoryIsSet",Q));e.$on("$destroy",(function(){P(),e.loadSimilarityIndexesTimer&&t.cancel(e.loadSimilarityIndexesTimer)}));var P=function(){N.forEach((function(e){return e()}))};N.push(g.onAutocompleteEnabledUpdated((function(t){e.isAutocompleteEnabled=t}))),N.push(g.onSelectedRepositoryIdUpdated((function(t){t?x.getNamespaces(t).then((function(t){e.repositoryNamespaces=t})).catch((function(e){var t=getError(e);i.error(t,v.instant("error.getting.namespaces.for.repo"))})):e.repositoryNamespaces=new y.NamespacesListModel})));N.push(e.$watch("searchType",(function(){e.empty=!0})));var U=e.$watch(e.getActiveRepositoryObject,(function(e){e&&(Q(),U())})),k=function(t,i,r,s,c){var o={query:M(e.lastSearch.type),$index:D("http://www.ontotext.com/graphdb/similarity/instance/"+t.name),$query:e.lastSearch.termOrSubject,$searchType:D((e.selectedSimilarityIndex.isTextType()?b:A)+(n.SimilaritySearchType.isSearchEntityPredicateType(r)?n.SimilaritySearchType.SEARCH_ENTITY:r)),$resultType:D(e.selectedSimilarityIndex.isTextType()?b+s:A+a.SimilarityResultType.ENTITY_RESULT),$parameters:O(c)};return n.SimilaritySearchType.isSearchEntityPredicateType(r)&&(o.$psiPredicate=e.lastSearch.predicate?D(e.lastSearch.predicate):D(w)),n.SimilaritySearchType.isSearchAnalogicalType(r)&&(e.searchSubject=i,o.$givenSubject=D(e.analogicalSubject),o.$givenObject=D(e.analogicalObject),o.$searchSubject=D(i)),o},B=function(t,i){e.lastSearch=new u.SimilaritySearch,e.lastSearch.type=t,n.SimilaritySearchType.isSearchEntityPredicateType(t)&&(e.lastSearch.predicate=i),e.lastSearch.termOrSubject=G(e.lastSearch.type,i,e.psiSubject)},M=function(t){return n.SimilaritySearchType.isSearchAnalogicalType(t)?e.selectedSimilarityIndex.analogicalQuery?e.selectedSimilarityIndex.analogicalQuery:e.searchQueries.analogical:e.selectedSimilarityIndex.searchQuery?e.selectedSimilarityIndex.searchQuery:e.searchQueries[e.selectedSimilarityIndex.type]},G=function(e,t,i){var r=t;return n.SimilaritySearchType.isSearchEntityPredicateType(e)&&(r=i),r=n.SimilaritySearchType.isSearchTermType(e)?O(r):D(r)},H=function(t){e.yasguiConfig={showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showQueryButton:!1,downloadAsOn:!1,showResultInfo:!1,componentId:"similarity-list-component",maxPersistentResponseSize:0,render:l.RenderingMode.YASR,sparqlResponse:t.data}}}angular.module("graphdb.framework.similarity.controllers.list",["graphdb.core.services.workbench-context","graphdb.framework.core.services.rdf4j.repositories"]).controller("SimilarityCtrl",p),p.$inject=["$scope","$interval","toastr","$repositories","$licenseService","$location","ModalService","$uibModal","SimilarityRestService","AutocompleteRestService","productInfo","RDF4JRepositoriesRestService","$translate","SparqlRestService","WorkbenchContextService","RDF4JRepositoriesService"]}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[392],{
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[392],{121:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,i(r.key),r)}}function i(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}n.r(e),n.d(e,"UrlUtils",(function(){return p}));var u=/^(h|ht|htt|http|https|http:|https:|http:\/|https:\/|http:\/\/|https:\/\/|https?:\/\/[\S]*)$/i,f=/^(f|ft|ftp|ftps|ftp:|ftps:|ftp:\/|ftps:\/|ftp:\/\/|ftps:\/\/[\S]*)$/i,p=function(){return t=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)},n=[{key:"isValidUrl",value:function(t){return u.test(t)||f.test(t)}},{key:"doesNotContain",value:function(t,e){return!new RegExp(e).test(t)}},{key:"doesNotUseProtocol",value:function(t,e){return!new RegExp("^("+e.join("|")+")://","i").test(t)}}],(e=null)&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}()}}]);
|