graphdb-workbench 2.6.0-TR2 → 10.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/dist/{0.4ddeb8379f96458f632e.bundle.js → 0.f8448f998a59db17e94e.bundle.js} +1 -1
  2. package/dist/{9.abf23c64b5f041197641.bundle.js → 10.a26ae97905866618b14e.bundle.js} +1 -1
  3. package/dist/{100.30b22eaf2bc647082625.bundle.js → 100.aef098a33fbb925e0d2d.bundle.js} +1 -1
  4. package/dist/{101.4093fce7d4115fcf21dc.bundle.js → 101.42eacc63e0fb5834b78a.bundle.js} +1 -1
  5. package/dist/{102.a98125e7cbe44cf536e2.bundle.js → 102.4f78eeab62aac245879e.bundle.js} +1 -1
  6. package/dist/{103.4d162f7df14c8d81157b.bundle.js → 103.f38f3cd69ff610955aaf.bundle.js} +1 -1
  7. package/dist/{104.f0696d49ede65b342317.bundle.js → 104.2e21f1462021dca17db1.bundle.js} +1 -1
  8. package/dist/{105.097830cf884ff7d82859.bundle.js → 105.76381cb7984bcbc9ba9a.bundle.js} +1 -1
  9. package/dist/{106.2e488f1a9b4b22ad4026.bundle.js → 106.23e14c6b280756d04533.bundle.js} +1 -1
  10. package/dist/{107.0495c9673045f1f68bdf.bundle.js → 107.75e40619cb45972dc39f.bundle.js} +1 -1
  11. package/dist/{108.20ec9347815ab00c4f28.bundle.js → 108.f09444e990531d27e0be.bundle.js} +1 -1
  12. package/dist/{109.9699fc25bc788fe01bb3.bundle.js → 109.ef97393181ee534042d8.bundle.js} +1 -1
  13. package/dist/{110.f101a1762899931179a6.bundle.js → 110.d59b8565d2255a282669.bundle.js} +1 -1
  14. package/dist/{111.782fffba201a2ef304d0.bundle.js → 111.fff9f089f65f01013923.bundle.js} +1 -1
  15. package/dist/{112.529d6e279b6d0bbaff2e.bundle.js → 112.5bd3fcd7c37f1024fe26.bundle.js} +1 -1
  16. package/dist/{113.94c8128e0dc2ff349d42.bundle.js → 113.2fa29eca15d32deb3320.bundle.js} +1 -1
  17. package/dist/{114.2fa7a38692c626887bfe.bundle.js → 114.d78615087abe68db7b2f.bundle.js} +1 -1
  18. package/dist/{115.8f90e89fb972eacc5c33.bundle.js → 115.558ce3da00d3be87d18a.bundle.js} +1 -1
  19. package/dist/{116.dd7d9db80081251674c2.bundle.js → 116.577aab1d9bafd0053623.bundle.js} +1 -1
  20. package/dist/{117.4d04f878d3c445436ca8.bundle.js → 117.c20f037799328c931eba.bundle.js} +1 -1
  21. package/dist/118.39c8b47405ab93c40847.bundle.js +1 -0
  22. package/dist/12.7877dd6008df9acf44e1.bundle.js +1 -0
  23. package/dist/{125.abd9c932b04bf1918f0a.bundle.js → 125.9e925ae0dd1217d81d89.bundle.js} +1 -1
  24. package/dist/{126.3beb08441d05b3056596.bundle.js → 126.a32b57d6108545746ed3.bundle.js} +1 -1
  25. package/dist/{13.def661d2d5c02515c46c.bundle.js → 13.fe78f15334507bcc08ae.bundle.js} +1 -1
  26. package/dist/{130.50cab19d9a05679b290f.bundle.js → 130.f8e68ac86e17b3622d40.bundle.js} +1 -1
  27. package/dist/{132.7eda30b601ebb4631b38.bundle.js → 132.7815ab1168a254cb0d47.bundle.js} +1 -1
  28. package/dist/{135.5efd7db8f7bf674d66d4.bundle.js → 135.c07268699f76ef7a02ff.bundle.js} +1 -1
  29. package/dist/{136.2b898a27e978ab15bc3e.bundle.js → 136.908f1f6fe3054f99b560.bundle.js} +1 -1
  30. package/dist/{14.1dfee181edb0d04c106b.bundle.js → 14.0bb211bcdc29c6d8b3b5.bundle.js} +2 -2
  31. package/dist/{140.f76f2bc779661b218a98.bundle.js → 140.6b3c57ffec700081328b.bundle.js} +1 -1
  32. package/dist/{144.eb8b50eebf16a7196b12.bundle.js → 144.3f85f8eacae521d52355.bundle.js} +1 -1
  33. package/dist/{146.29a91af34c64ed2fe1e3.bundle.js → 146.51d2987de4defe7df7c7.bundle.js} +1 -1
  34. package/dist/{148.9042ca5db63f1ab3fb40.bundle.js → 148.ad95b30f508a0bd02970.bundle.js} +1 -1
  35. package/dist/149.8dd1281617389f8c189b.bundle.js +1 -0
  36. package/dist/{15.9e572627540e9ccd1274.bundle.js → 15.6a74adbd30b4d2930e10.bundle.js} +1 -1
  37. package/dist/{150.4db7163e83efe461fc24.bundle.js → 150.5e0ee4350f8edd0e7b9a.bundle.js} +1 -1
  38. package/dist/{151.a3d78e05b8802fb4db40.bundle.js → 151.6b81c99a1ec1b184b82d.bundle.js} +1 -1
  39. package/dist/{155.691eea60dddb31013b32.bundle.js → 155.a4511849c1001c5f2ba6.bundle.js} +1 -1
  40. package/dist/{16.942efd726d9ff25c0ed7.bundle.js → 16.2f60fbeaccd97aefaae2.bundle.js} +1 -1
  41. package/dist/{17.a5217a46072ac762cb3b.bundle.js → 17.2bff7856b13fd72e2db4.bundle.js} +1 -1
  42. package/dist/178.e10370553beb5c6bb839.bundle.js +1 -1
  43. package/dist/{18.8351ac2380235200c997.bundle.js → 18.d6be3e6583bf3dacd54f.bundle.js} +2 -2
  44. package/dist/180.d37db50f3ce1b3a04a65.bundle.js +1 -1
  45. package/dist/183.a086e00d4dc3c7855611.bundle.js +1 -1
  46. package/dist/{20.a767f3f92d8510e602d4.bundle.js → 20.8fd969e3860ddffedcc3.bundle.js} +1 -1
  47. package/dist/{201.ec71ced13a1fefb48ac2.bundle.js → 201.a1b147e78f43a3bc99c3.bundle.js} +1 -1
  48. package/dist/21.c981976c6528073c0a2f.bundle.js +1 -0
  49. package/dist/210.1ac38e393ca959703d4b.bundle.js +1 -1
  50. package/dist/{23.e3de3e200d80d72afe02.bundle.js → 23.87ca8226d464e3699b8e.bundle.js} +2 -2
  51. package/dist/24.9076b75f45ce0579f7be.bundle.js +1 -0
  52. package/dist/{25.9299f9388d96ed4b97be.bundle.js → 25.073791b8dd02c5b31183.bundle.js} +1 -1
  53. package/dist/{26.7ddc010c3aa4c7a3f0eb.bundle.js → 26.6e06be7172a866ad45f9.bundle.js} +1 -1
  54. package/dist/{28.833c206dedf826927b2e.bundle.js → 28.90b784e728e3d5e4c6aa.bundle.js} +1 -1
  55. package/dist/{29.bea28befc9ef8e1f184d.bundle.js → 29.e2309b858706718f1732.bundle.js} +1 -1
  56. package/dist/{30.030d90c9357b6a09a423.bundle.js → 30.32fb84930c42bae43a74.bundle.js} +1 -1
  57. package/dist/31.31b7b4bd073b82c09fda.bundle.js +1 -0
  58. package/dist/{33.4946380f783ad92bf587.bundle.js → 33.fa9f0e662060f2e97267.bundle.js} +1 -1
  59. package/dist/{35.c6277b1733bb56ebb77f.bundle.js → 35.e601e19e63c6ddaf2484.bundle.js} +1 -1
  60. package/dist/{36.72e6e6001da4167c42fc.bundle.js → 36.df47a70d8efbf1cd033b.bundle.js} +1 -1
  61. package/dist/{37.15eb38b5e7c67604d2df.bundle.js → 37.085cdb373f74d55eee07.bundle.js} +1 -1
  62. package/dist/{4.17e90cc8791b3078f7f2.bundle.js → 4.851f9ade6202116ecfb9.bundle.js} +1 -1
  63. package/dist/{41.aba092368b9345fe062a.bundle.js → 41.3870740f1d24570cb415.bundle.js} +1 -1
  64. package/dist/{42.3d78a3aa611c675962fb.bundle.js → 42.b926c2c8620df5c7ed6d.bundle.js} +1 -1
  65. package/dist/{43.144a809e888a9f3e6035.bundle.js → 43.d4551e1f6cac0a1a77e5.bundle.js} +1 -1
  66. package/dist/{47.19d84d51353da324399f.bundle.js → 47.4fbfdaa63628c501a30c.bundle.js} +1 -1
  67. package/dist/{48.5334aa76217b85ac729a.bundle.js → 48.3fbd50adcb0c7dd7ec60.bundle.js} +1 -1
  68. package/dist/{50.d8c0fe9c4a8bbf8cbf58.bundle.js → 50.8f6cc698b42c96f2b41f.bundle.js} +1 -1
  69. package/dist/{51.4f3e41ab41b59f359e84.bundle.js → 51.514a339efd6cd11db0f8.bundle.js} +1 -1
  70. package/dist/{52.ed08d9de32fbb03170a1.bundle.js → 52.410a7d8b4cb433fb24ca.bundle.js} +1 -1
  71. package/dist/{53.0e96b9739e67da831aeb.bundle.js → 53.174d18435f7bf3bf05a0.bundle.js} +1 -1
  72. package/dist/{54.220668833b7f4732d146.bundle.js → 54.7cb3bd3ae8055e350629.bundle.js} +1 -1
  73. package/dist/{55.917f9fc02948849b1185.bundle.js → 55.f0762e755ba58cbaac26.bundle.js} +1 -1
  74. package/dist/{56.d0fe2e2f05bb3e45c0b7.bundle.js → 56.3b0312e77f8607a4d957.bundle.js} +1 -1
  75. package/dist/{57.f3097d895908a5c14d56.bundle.js → 57.dfb7a710da8ca09c725b.bundle.js} +1 -1
  76. package/dist/{58.ff2b52ebb6d6bb67b9f6.bundle.js → 58.ac0fa95bbbe4b2dfb0fc.bundle.js} +1 -1
  77. package/dist/{59.11001f666650393fdaf8.bundle.js → 59.273ffcd48e856d2752ff.bundle.js} +1 -1
  78. package/dist/{60.7e65a6c5670a1ac562e2.bundle.js → 60.00a29320ea162becd718.bundle.js} +1 -1
  79. package/dist/{61.3ba84cc3819eb17de234.bundle.js → 61.3794de8b6d022738bafa.bundle.js} +1 -1
  80. package/dist/{62.2d331d4634959f64f7ce.bundle.js → 62.cf39ad55adb1616560ec.bundle.js} +1 -1
  81. package/dist/{63.96b16e7916f446e1a74d.bundle.js → 63.8880f667c958d12b338b.bundle.js} +1 -1
  82. package/dist/{65.385dff0daed228cead67.bundle.js → 65.cdc961a8042c385c49c6.bundle.js} +1 -1
  83. package/dist/{66.49324c26c968bb61453b.bundle.js → 66.c3b906de2fcf69089b7b.bundle.js} +1 -1
  84. package/dist/{67.cd23d15626be33cc84c7.bundle.js → 67.9c851e5930459a5f5903.bundle.js} +1 -1
  85. package/dist/{69.1255e8072e739c4b3486.bundle.js → 69.c5561c83fe410ea9a908.bundle.js} +1 -1
  86. package/dist/{70.fe6fbd7331d2373c8a24.bundle.js → 70.f2557c225be5923bab24.bundle.js} +1 -1
  87. package/dist/{72.6e8d51e0d240af360ab5.bundle.js → 72.0780a8424293909f94a4.bundle.js} +1 -1
  88. package/dist/{74.042e0bb0fcc0661d32b0.bundle.js → 74.48e90caf0b5ecd351f1d.bundle.js} +1 -1
  89. package/dist/{78.569dd71e4cc7ac3a4383.bundle.js → 78.66f3e9630550f20287ff.bundle.js} +1 -1
  90. package/dist/{8.1893fcb7fc2f0fc7c83e.bundle.js → 8.b5e29f80f8a5766d70d5.bundle.js} +1 -1
  91. package/dist/{81.c378171b96d12cdf8bcc.bundle.js → 81.2ff1f5047ab4e0591585.bundle.js} +1 -1
  92. package/dist/{86.62f32aad4394438158a1.bundle.js → 86.637667a4555ae621aff0.bundle.js} +1 -1
  93. package/dist/{87.7efe382329921dae6a63.bundle.js → 87.b76338a62297ad83960b.bundle.js} +1 -1
  94. package/dist/{88.f442fbeb61fe955ce244.bundle.js → 88.532e7295b49b1071d45c.bundle.js} +1 -1
  95. package/dist/{89.560e5a053d8dcbaca38a.bundle.js → 89.90bb1cf65f183ecce47c.bundle.js} +1 -1
  96. package/dist/9.610b595b60a0fc51466a.bundle.js +1 -0
  97. package/dist/{90.3fedce156ebc83022f47.bundle.js → 90.683c4d5b142356f274ef.bundle.js} +1 -1
  98. package/dist/{91.08b1de35f973e0283974.bundle.js → 91.2437dfc2ea1bc89f53f3.bundle.js} +1 -1
  99. package/dist/{92.fcea4fdca795fa33f2fb.bundle.js → 92.a12cfd3b602e98b344de.bundle.js} +1 -1
  100. package/dist/{93.420c7a3794d642e35e63.bundle.js → 93.a5cb6192d32cb016bb60.bundle.js} +1 -1
  101. package/dist/{94.cf5b0e70e34e60663eb5.bundle.js → 94.f6a3e7628449796419b6.bundle.js} +1 -1
  102. package/dist/{95.a6ad56ceb5d5a63c2b8d.bundle.js → 95.15f0e472c49c81a68c3a.bundle.js} +1 -1
  103. package/dist/{96.524be695eddce9b9905c.bundle.js → 96.2bf3b75fb0efb6b9e7e8.bundle.js} +1 -1
  104. package/dist/{97.7173fb835cc5b1ac4cda.bundle.js → 97.bd1988af419f7373b569.bundle.js} +1 -1
  105. package/dist/{98.18b00fa95b6f5b1cf072.bundle.js → 98.060c6842b3a8ed94dd20.bundle.js} +1 -1
  106. package/dist/{99.a89c13f7abc4e0374809.bundle.js → 99.6360b70da56083cd76fe.bundle.js} +1 -1
  107. package/dist/{bundle.3b4bcf1d306742531790.bundle.js → bundle.39b836d40f0926aeec16.bundle.js} +6 -6
  108. package/dist/i18n/locale-en.json +0 -2
  109. package/dist/i18n/locale-fr.json +0 -2
  110. package/dist/index.html +3 -3
  111. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  112. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  113. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  114. package/dist/js/angular/import/templates/settingsModal.html +1 -17
  115. package/dist/js/angular/security/templates/user.html +1 -1
  116. package/dist/license-checker.json +2 -2
  117. package/dist/pages/aclmanagement.html +1 -1
  118. package/dist/pages/autocomplete.html +1 -1
  119. package/dist/pages/choose-repository-type.html +1 -1
  120. package/dist/pages/cluster-management/clusterInfo.html +9 -8
  121. package/dist/pages/create-index.html +4 -4
  122. package/dist/pages/dependencies.html +1 -1
  123. package/dist/pages/domainRangeInfo.html +2 -2
  124. package/dist/pages/edit.html +1 -1
  125. package/dist/pages/explore.html +1 -1
  126. package/dist/pages/export.html +1 -1
  127. package/dist/pages/find.html +1 -1
  128. package/dist/pages/graph-config/saveGraphConfig.html +11 -11
  129. package/dist/pages/graphs-visualizations.html +7 -7
  130. package/dist/pages/guides.html +1 -1
  131. package/dist/pages/import.html +1 -1
  132. package/dist/pages/jdbc-create.html +5 -5
  133. package/dist/pages/monitor/backup-and-restore.html +1 -1
  134. package/dist/pages/monitor/queries.html +1 -1
  135. package/dist/pages/monitor/resources.html +1 -1
  136. package/dist/pages/namespaces.html +2 -2
  137. package/dist/pages/plugins.html +1 -1
  138. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  139. package/dist/pages/rdfrank.html +2 -2
  140. package/dist/pages/repositories.html +1 -1
  141. package/dist/pages/repository.html +1 -1
  142. package/dist/pages/similarity-indexes.html +1 -1
  143. package/dist/pages/sparql-template-create.html +5 -5
  144. package/dist/pages/sparql.html +3 -3
  145. package/dist/pages/webapi.html +2 -2
  146. package/dist/res/swagger/index.html +27 -27
  147. package/package.json +1 -1
  148. package/dist/10.9b05de3fe8a117488185.bundle.js +0 -1
  149. package/dist/118.617f073c1c06392bd6c0.bundle.js +0 -1
  150. package/dist/12.398d835e04b0488b2ed8.bundle.js +0 -1
  151. package/dist/149.3880824512c5fa745836.bundle.js +0 -1
  152. package/dist/21.8209c5bb8d6226be6ea6.bundle.js +0 -1
  153. package/dist/24.057349cb66120daf4c4e.bundle.js +0 -1
  154. package/dist/31.ce2be87bd69611496fdf.bundle.js +0 -1
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[136],{139:function(e,t,r){"use strict";r.r(t);var o=r(75);const a={OBDA:"obdaFile",OWL:"owlFile",CONSTRAINT:"constraintFile",LENSES:"lensesFile",DB_METADATA:"dbMetadataFile"};class n{constructor(e="generic"){this.driverType=e,this.hostName="",this.port=void 0,this.databaseName="",this.username="",this.password="",this.driverClass="",this.url="",this.urlUserInput=""}}class i{constructor(e,t=!1){this.type=e,this.fileName="",this.loading=!1,this.required=t}}class s extends Error{}const l="generic",p="dremio",c="databricks",d="snowflake";class m{constructor(){this.classAvailable=!1,this.downloadDriverUrl="",this.driverClass="",this.driverName="",this.driverType="",this.portRequired=!1,this.urlTemplate=""}static isGenericDriver(e){return e===l}static isSnowflakeDriver(e){return e===d}}function f(e,t,r,f,u){return{restrict:"E",scope:!1,templateUrl:"js/angular/repositories/templates/ontop-repo.html",link:function(v){v.isGenericDriver=!0,v.defaultUrlTemplate="jdbc:database://localhost:port/database_name",v.ontopProperiesLink="https://ontop-vkg.org/guide/advanced/configuration.html",v.ontopFileType=a,v.selectedDriver=new m,v.supportedDriversData=[],v.formData={connectionInformation:new n,settings:{additionalProperties:"",ontopFiles:[]}},v.selectDriver=e=>{v.selectedDriver=v.supportedDriversData.find(t=>t.driverType===e),v.isGenericDriver=m.isGenericDriver(v.selectedDriver.driverType),v.editRepoPage&&v.currentOntopRepoInfo&&v.currentOntopRepoInfo.connectionInformation.driverType===e?v.formData=_.cloneDeep(v.currentOntopRepoInfo):(k(),v.formData.connectionInformation.driverType=v.selectedDriver.driverType),v.formData.connectionInformation.driverClass=v.selectedDriver.driverClass,v.updateUrl()},v.getOntopFileInfo=e=>v.formData.settings.ontopFiles.find(t=>e===t.type),v.getHostNameLabel=()=>{const e=m.isSnowflakeDriver(v.selectedDriver.driverType)?"ontop.repo.database.snowflake.host_name":"ontop.repo.database.host_name";return u.instant(e)+"*"},v.getDatabaseNameLabel=()=>{let e="";switch(v.selectedDriver.driverType){case d:e="ontop.repo.database.warehouse.database_name";break;case c:e="ontop.repo.database.http_path.database_name";break;case p:e="ontop.repo.database.schema.database_name";break;default:e="ontop.repo.database.database_name"}return u.instant(e)},v.updateUrl=()=>{const e=h()||"";v.formData.connectionInformation.url=e+v.formData.connectionInformation.urlUserInput},v.isTestConnectionDisabled=()=>{const e=v.formData.connectionInformation,t=v.selectedDriver;return!(e.driverClass&&e.url&&(!t.portRequired||e.port))||!(m.isGenericDriver(t.driverType)||e.hostName&&e.databaseName)},v.testConnection=()=>{w().then(R).then(T).then(P).then(F).then(b).then(()=>t.validateOntopPropertiesConnection(v.repositoryInfo)).then(()=>r.success(u.instant("ontop.repo.successful.connection.msg"))).catch(e=>{e instanceof s?r.error(e.message):N(u.instant("ontop.repo.failed.to.connect"),e)})},v.editFile=r=>{const a=v.repositoryInfo.params[r.type].label,n=u.instant("update.file.edit.content.header",{fileName:a});e.open({templateUrl:"js/angular/templates/modal/editRepoFile.html",controller:"EditRepositoryFileCtrl",windowClass:"update-ontop-repo-dialog",resolve:{file:()=>{const e=v.repositoryInfo.params[r.type];return e?e.value:""},dialogTitle:()=>n}}).result.then(e=>{t.updateRepositoryFileContent(e.fileLocation,e.content,v.repositoryInfo.location).success(e=>{r.fileName=Object(o.getFileName)(e.fileLocation),v.repositoryInfo.params[r.type].value=e.fileLocation}).error(e=>{N(u.instant("common.error"),e)})})},v.uploadOntopFile=(e,t)=>{if(e&&e.length){const o=e[0];t.loading=!0;const a={url:"rest/repositories/file/upload",data:{file:o,location:v.repositoryInfo.location}};f.upload(a).success(e=>{e.success?(t.fileName=o.name,v.repositoryInfo.params[t.type].value=e.fileLocation):r.error(e.errorMessage)}).error(e=>{N(u.instant("common.error"),e),v.uploadFile=""}).finally(()=>{t.loading=!1})}},v.updateOntopRepo=()=>{const e=v.editRepoPage?v.editRepository:v.createRepo;O().then(w).then(R).then(T).then(P).then(F).then(C).then(b).then(e).catch(e=>{e instanceof s?r.error(e.message):console.log(e)})},v.onKeyDownInUrlInput=e=>{const t=e.keyCode;if(37===t||39===t||36===t||35===t)return;const r=h();if(!r)return;const o=e.ctrlKey||e.metaKey;if(o&&65===t||o&&67===t)return;const a=e.target.selectionStart;8===t&&a-1<r.length&&(e.preventDefault(),e.stopPropagation()),a<r.length&&(e.preventDefault(),e.stopPropagation())},v.onKeyUpInUrlInput=()=>{D()};const D=()=>{const e=h();e&&v.formData.connectionInformation.url.startsWith(e)?v.formData.connectionInformation.urlUserInput=v.formData.connectionInformation.url.substring(e.length):v.formData.connectionInformation.urlUserInput=v.formData.connectionInformation.url},h=()=>m.isSnowflakeDriver(v.selectedDriver.driverType)?I():g(),I=()=>{let e=v.selectedDriver.urlTemplate;const t=v.formData.connectionInformation;return t.hostName&&(e=e.replace("{identifier}",t.hostName)),t.port&&(e=e.replace(".snowflakecomputing.com/?",`.snowflakecomputing.com:${t.port}/?`)),t.databaseName&&(e=e.replace("{database}",t.databaseName)),e},g=()=>{let e=v.selectedDriver.urlTemplate;const t=v.formData.connectionInformation;return t.hostName&&(e=t.port?e.replace("{hostport}",`${t.hostName}:${t.port}`):e.replace("{hostport}",""+t.hostName)),t.databaseName&&(e=e.replace("{database}",t.databaseName)),e},y=e=>{v.formData.settings.ontopFiles.forEach(t=>{t.loading=e})},b=()=>{y(!0);const e=v.formData.connectionInformation,r={hostName:e.hostName,port:e.port,databaseName:e.databaseName,userName:e.username,password:e.password,driverClass:e.driverClass,url:e.url,additionalProperties:v.formData.settings.additionalProperties};return t.updatePropertiesFile(v.repositoryInfo.params.propertiesFile.value,r,v.repositoryInfo.location,v.selectedDriver.driverType).success(e=>{v.repositoryInfo.params.propertiesFile.value=e.fileLocation}).error(e=>{N(u.instant("common.error"),e)}).finally(()=>y(!1))},N=(e,t)=>{const o=getError(t);r.error(o,e)},w=()=>m.isGenericDriver(v.selectedDriver.driverType)||v.formData.connectionInformation.hostName?Promise.resolve():Promise.reject(new s(u.instant("missing.required.field",{fieldName:u.instant("ontop.repo.database.host_name")}))),T=()=>m.isGenericDriver(v.selectedDriver.driverType)||v.formData.connectionInformation.databaseName?Promise.resolve():Promise.reject(new s(u.instant("missing.required.field",{fieldName:u.instant("ontop.repo.database.database_name")}))),P=()=>v.formData.connectionInformation.driverClass?Promise.resolve():Promise.reject(new s(u.instant("missing.required.field",{fieldName:u.instant("ontop.repo.database.driver_class")}))),F=()=>v.formData.connectionInformation.url?Promise.resolve():Promise.reject(new s(u.instant("missing.required.field",{fieldName:u.instant("ontop.repo.database.url")}))),O=()=>v.repositoryInfo.id?Promise.resolve():Promise.reject(new s(u.instant("empty.repoid.warning"))),C=()=>v.getOntopFileInfo(a.OBDA).fileName?Promise.resolve():Promise.reject(new s(u.instant("ontop.repo.missing.required.file",{fileName:v.repositoryInfo.params[a.OBDA].label}))),R=()=>v.selectedDriver.portRequired&&!v.formData.connectionInformation.port?Promise.reject(new s(u.instant("missing.required.field",{fieldName:u.instant("ontop.repo.database.port")}))):Promise.resolve(),k=()=>{v.formData={connectionInformation:new n,settings:{additionalProperties:"",ontopFiles:[]}},Object.values(a).forEach(e=>{const t=new i(e);v.formData.settings.ontopFiles.push(t)}),v.getOntopFileInfo(a.OBDA).required=!0};t.getSupportedDriversData(v.repositoryInfo).success(e=>{v.supportedDriversData=e}).error(e=>{N(u.instant("common.error"),e)}).then(()=>{v.editRepoPage?(y(!0),t.loadPropertiesFile(v.repositoryInfo.params.propertiesFile.value,v.repositoryInfo.location,v.selectedDriver.driverType).success(e=>{let t=v.supportedDriversData.find(t=>t.driverClass===e.driverClass);t&&e.hostName||(t=v.supportedDriversData.find(e=>m.isGenericDriver(e.driverType))),v.selectDriver(t.driverType),v.formData.connectionInformation.driverType=t.driverType,v.formData.connectionInformation.driverClass=e.driverClass,v.formData.connectionInformation.password=e.password,v.formData.connectionInformation.username=e.userName,v.formData.connectionInformation.url=e.url,v.formData.settings.additionalProperties=e.additionalProperties,m.isGenericDriver(t.driverType)||(v.formData.connectionInformation.hostName=e.hostName,v.formData.connectionInformation.databaseName=e.databaseName,v.formData.connectionInformation.port=e.port?parseInt(e.port,10):void 0),D(),v.updateUrl(),Object.values(a).forEach(e=>{const t=v.repositoryInfo.params[e],r=v.getOntopFileInfo(e);t&&(r.fileName=Object(o.getFileName)(t.value))}),v.currentOntopRepoInfo=_.cloneDeep(v.formData)}).error(e=>{N(u.instant("common.error"),e)}).finally(()=>{y(!1)})):v.selectDriver(l)})}}}angular.module("graphdb.framework.repositories.ontop-repo.directive",[]).directive("ontopRepo",f),f.$inject=["$uibModal","RepositoriesRestService","toastr","Upload","$translate"]}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[136],{140:function(e,t,r){"use strict";r.r(t);var o=r(75);const a={OBDA:"obdaFile",OWL:"owlFile",CONSTRAINT:"constraintFile",LENSES:"lensesFile",DB_METADATA:"dbMetadataFile"};class n{constructor(e="generic"){this.driverType=e,this.hostName="",this.port=void 0,this.databaseName="",this.username="",this.password="",this.driverClass="",this.url="",this.urlUserInput=""}}class i{constructor(e,t=!1){this.type=e,this.fileName="",this.loading=!1,this.required=t}}class s extends Error{}const l="generic",p="dremio",c="databricks",d="snowflake";class m{constructor(){this.classAvailable=!1,this.downloadDriverUrl="",this.driverClass="",this.driverName="",this.driverType="",this.portRequired=!1,this.urlTemplate=""}static isGenericDriver(e){return e===l}static isSnowflakeDriver(e){return e===d}}function f(e,t,r,f,u){return{restrict:"E",scope:!1,templateUrl:"js/angular/repositories/templates/ontop-repo.html",link:function(v){v.isGenericDriver=!0,v.defaultUrlTemplate="jdbc:database://localhost:port/database_name",v.ontopProperiesLink="https://ontop-vkg.org/guide/advanced/configuration.html",v.ontopFileType=a,v.selectedDriver=new m,v.supportedDriversData=[],v.formData={connectionInformation:new n,settings:{additionalProperties:"",ontopFiles:[]}},v.selectDriver=e=>{v.selectedDriver=v.supportedDriversData.find(t=>t.driverType===e),v.isGenericDriver=m.isGenericDriver(v.selectedDriver.driverType),v.editRepoPage&&v.currentOntopRepoInfo&&v.currentOntopRepoInfo.connectionInformation.driverType===e?v.formData=_.cloneDeep(v.currentOntopRepoInfo):(k(),v.formData.connectionInformation.driverType=v.selectedDriver.driverType),v.formData.connectionInformation.driverClass=v.selectedDriver.driverClass,v.updateUrl()},v.getOntopFileInfo=e=>v.formData.settings.ontopFiles.find(t=>e===t.type),v.getHostNameLabel=()=>{const e=m.isSnowflakeDriver(v.selectedDriver.driverType)?"ontop.repo.database.snowflake.host_name":"ontop.repo.database.host_name";return u.instant(e)+"*"},v.getDatabaseNameLabel=()=>{let e="";switch(v.selectedDriver.driverType){case d:e="ontop.repo.database.warehouse.database_name";break;case c:e="ontop.repo.database.http_path.database_name";break;case p:e="ontop.repo.database.schema.database_name";break;default:e="ontop.repo.database.database_name"}return u.instant(e)},v.updateUrl=()=>{const e=h()||"";v.formData.connectionInformation.url=e+v.formData.connectionInformation.urlUserInput},v.isTestConnectionDisabled=()=>{const e=v.formData.connectionInformation,t=v.selectedDriver;return!(e.driverClass&&e.url&&(!t.portRequired||e.port))||!(m.isGenericDriver(t.driverType)||e.hostName&&e.databaseName)},v.testConnection=()=>{w().then(R).then(T).then(P).then(F).then(b).then(()=>t.validateOntopPropertiesConnection(v.repositoryInfo)).then(()=>r.success(u.instant("ontop.repo.successful.connection.msg"))).catch(e=>{e instanceof s?r.error(e.message):N(u.instant("ontop.repo.failed.to.connect"),e)})},v.editFile=r=>{const a=v.repositoryInfo.params[r.type].label,n=u.instant("update.file.edit.content.header",{fileName:a});e.open({templateUrl:"js/angular/templates/modal/editRepoFile.html",controller:"EditRepositoryFileCtrl",windowClass:"update-ontop-repo-dialog",resolve:{file:()=>{const e=v.repositoryInfo.params[r.type];return e?e.value:""},dialogTitle:()=>n}}).result.then(e=>{t.updateRepositoryFileContent(e.fileLocation,e.content,v.repositoryInfo.location).success(e=>{r.fileName=Object(o.getFileName)(e.fileLocation),v.repositoryInfo.params[r.type].value=e.fileLocation}).error(e=>{N(u.instant("common.error"),e)})})},v.uploadOntopFile=(e,t)=>{if(e&&e.length){const o=e[0];t.loading=!0;const a={url:"rest/repositories/file/upload",data:{file:o,location:v.repositoryInfo.location}};f.upload(a).success(e=>{e.success?(t.fileName=o.name,v.repositoryInfo.params[t.type].value=e.fileLocation):r.error(e.errorMessage)}).error(e=>{N(u.instant("common.error"),e),v.uploadFile=""}).finally(()=>{t.loading=!1})}},v.updateOntopRepo=()=>{const e=v.editRepoPage?v.editRepository:v.createRepo;O().then(w).then(R).then(T).then(P).then(F).then(C).then(b).then(e).catch(e=>{e instanceof s?r.error(e.message):console.log(e)})},v.onKeyDownInUrlInput=e=>{const t=e.keyCode;if(37===t||39===t||36===t||35===t)return;const r=h();if(!r)return;const o=e.ctrlKey||e.metaKey;if(o&&65===t||o&&67===t)return;const a=e.target.selectionStart;8===t&&a-1<r.length&&(e.preventDefault(),e.stopPropagation()),a<r.length&&(e.preventDefault(),e.stopPropagation())},v.onKeyUpInUrlInput=()=>{D()};const D=()=>{const e=h();e&&v.formData.connectionInformation.url.startsWith(e)?v.formData.connectionInformation.urlUserInput=v.formData.connectionInformation.url.substring(e.length):v.formData.connectionInformation.urlUserInput=v.formData.connectionInformation.url},h=()=>m.isSnowflakeDriver(v.selectedDriver.driverType)?I():g(),I=()=>{let e=v.selectedDriver.urlTemplate;const t=v.formData.connectionInformation;return t.hostName&&(e=e.replace("{identifier}",t.hostName)),t.port&&(e=e.replace(".snowflakecomputing.com/?",`.snowflakecomputing.com:${t.port}/?`)),t.databaseName&&(e=e.replace("{database}",t.databaseName)),e},g=()=>{let e=v.selectedDriver.urlTemplate;const t=v.formData.connectionInformation;return t.hostName&&(e=t.port?e.replace("{hostport}",`${t.hostName}:${t.port}`):e.replace("{hostport}",""+t.hostName)),t.databaseName&&(e=e.replace("{database}",t.databaseName)),e},y=e=>{v.formData.settings.ontopFiles.forEach(t=>{t.loading=e})},b=()=>{y(!0);const e=v.formData.connectionInformation,r={hostName:e.hostName,port:e.port,databaseName:e.databaseName,userName:e.username,password:e.password,driverClass:e.driverClass,url:e.url,additionalProperties:v.formData.settings.additionalProperties};return t.updatePropertiesFile(v.repositoryInfo.params.propertiesFile.value,r,v.repositoryInfo.location,v.selectedDriver.driverType).success(e=>{v.repositoryInfo.params.propertiesFile.value=e.fileLocation}).error(e=>{N(u.instant("common.error"),e)}).finally(()=>y(!1))},N=(e,t)=>{const o=getError(t);r.error(o,e)},w=()=>m.isGenericDriver(v.selectedDriver.driverType)||v.formData.connectionInformation.hostName?Promise.resolve():Promise.reject(new s(u.instant("missing.required.field",{fieldName:u.instant("ontop.repo.database.host_name")}))),T=()=>m.isGenericDriver(v.selectedDriver.driverType)||v.formData.connectionInformation.databaseName?Promise.resolve():Promise.reject(new s(u.instant("missing.required.field",{fieldName:u.instant("ontop.repo.database.database_name")}))),P=()=>v.formData.connectionInformation.driverClass?Promise.resolve():Promise.reject(new s(u.instant("missing.required.field",{fieldName:u.instant("ontop.repo.database.driver_class")}))),F=()=>v.formData.connectionInformation.url?Promise.resolve():Promise.reject(new s(u.instant("missing.required.field",{fieldName:u.instant("ontop.repo.database.url")}))),O=()=>v.repositoryInfo.id?Promise.resolve():Promise.reject(new s(u.instant("empty.repoid.warning"))),C=()=>v.getOntopFileInfo(a.OBDA).fileName?Promise.resolve():Promise.reject(new s(u.instant("ontop.repo.missing.required.file",{fileName:v.repositoryInfo.params[a.OBDA].label}))),R=()=>v.selectedDriver.portRequired&&!v.formData.connectionInformation.port?Promise.reject(new s(u.instant("missing.required.field",{fieldName:u.instant("ontop.repo.database.port")}))):Promise.resolve(),k=()=>{v.formData={connectionInformation:new n,settings:{additionalProperties:"",ontopFiles:[]}},Object.values(a).forEach(e=>{const t=new i(e);v.formData.settings.ontopFiles.push(t)}),v.getOntopFileInfo(a.OBDA).required=!0};t.getSupportedDriversData(v.repositoryInfo).success(e=>{v.supportedDriversData=e}).error(e=>{N(u.instant("common.error"),e)}).then(()=>{v.editRepoPage?(y(!0),t.loadPropertiesFile(v.repositoryInfo.params.propertiesFile.value,v.repositoryInfo.location,v.selectedDriver.driverType).success(e=>{let t=v.supportedDriversData.find(t=>t.driverClass===e.driverClass);t&&e.hostName||(t=v.supportedDriversData.find(e=>m.isGenericDriver(e.driverType))),v.selectDriver(t.driverType),v.formData.connectionInformation.driverType=t.driverType,v.formData.connectionInformation.driverClass=e.driverClass,v.formData.connectionInformation.password=e.password,v.formData.connectionInformation.username=e.userName,v.formData.connectionInformation.url=e.url,v.formData.settings.additionalProperties=e.additionalProperties,m.isGenericDriver(t.driverType)||(v.formData.connectionInformation.hostName=e.hostName,v.formData.connectionInformation.databaseName=e.databaseName,v.formData.connectionInformation.port=e.port?parseInt(e.port,10):void 0),D(),v.updateUrl(),Object.values(a).forEach(e=>{const t=v.repositoryInfo.params[e],r=v.getOntopFileInfo(e);t&&(r.fileName=Object(o.getFileName)(t.value))}),v.currentOntopRepoInfo=_.cloneDeep(v.formData)}).error(e=>{N(u.instant("common.error"),e)}).finally(()=>{y(!1)})):v.selectDriver(l)})}}}angular.module("graphdb.framework.repositories.ontop-repo.directive",[]).directive("ontopRepo",f),f.$inject=["$uibModal","RepositoriesRestService","toastr","Upload","$translate"]}}]);