graphdb-workbench 2.4.1 → 2.4.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.
Files changed (141) hide show
  1. package/dist/{0.7daec4382561aa8681d5.bundle.js → 0.c6e0a1afafc7ffdfaccc.bundle.js} +1 -1
  2. package/dist/{10.25c3009270232c3ad844.bundle.js → 10.2fd5d150b0f308c19b16.bundle.js} +1 -1
  3. package/dist/108.99fadee1ed0c7110af9a.bundle.js +1 -0
  4. package/dist/{11.08c502782a3bd04cb48b.bundle.js → 11.d13b4e6a939fc0b5a125.bundle.js} +1 -1
  5. package/dist/{114.3a6135cc10951d23cb56.bundle.js → 114.2f1bbfe1abb21122d2e1.bundle.js} +1 -1
  6. package/dist/{117.45f91d2cf367836dadae.bundle.js → 117.23e75248d8a499cef320.bundle.js} +1 -1
  7. package/dist/{12.0ca290ed18d2524f66e7.bundle.js → 12.dd3a24172cf3cdec30f0.bundle.js} +2 -2
  8. package/dist/{124.7ce2385e2ce2ac41a255.bundle.js → 124.8e3d5ba12c298ea9a439.bundle.js} +1 -1
  9. package/dist/{128.4eb95500c74ddcbc0ec1.bundle.js → 128.280921c83837d6b5ed1e.bundle.js} +1 -1
  10. package/dist/{13.6a3e4e38a9efa1adf29e.bundle.js → 13.3eb06b80cef486be700e.bundle.js} +1 -1
  11. package/dist/{130.8d0c570a8363e55b4892.bundle.js → 130.9aea5c200bad449041e5.bundle.js} +1 -1
  12. package/dist/{133.c9432441d39dbdf45a46.bundle.js → 133.7ff3260122aed5f9da82.bundle.js} +1 -1
  13. package/dist/{134.64ab677e16aa2b0c78b1.bundle.js → 134.937aed94c3cba12e70de.bundle.js} +1 -1
  14. package/dist/{136.22f6c4a19299925123a0.bundle.js → 136.50ad256ff91ae8bd138c.bundle.js} +1 -1
  15. package/dist/{138.1eae7a838df0b1e52ff4.bundle.js → 138.3d79db7fc7908d986c2d.bundle.js} +1 -1
  16. package/dist/14.82b9ba9a0a77131aa582.bundle.js +1 -0
  17. package/dist/{144.d2120bcd066b96e7ee58.bundle.js → 144.24d2001adcd0546ce679.bundle.js} +1 -1
  18. package/dist/{146.a2f5b077f3eec4961a4b.bundle.js → 146.0bf605fa5b7cc102937f.bundle.js} +1 -1
  19. package/dist/{15.54781c280e23072b66c5.bundle.js → 15.b27c1c98f320b78e704c.bundle.js} +1 -1
  20. package/dist/{150.f3a633da2c7c2b9cd7c4.bundle.js → 150.7224dc087612aa0ff0c1.bundle.js} +1 -1
  21. package/dist/{153.f710bf5c73f7d736a4b1.bundle.js → 153.8fbeed8e7e94213c6df1.bundle.js} +1 -1
  22. package/dist/{155.46f2a94df187ed492591.bundle.js → 155.68e389692623c7b68878.bundle.js} +1 -1
  23. package/dist/{16.24206eca9306f6f153d6.bundle.js → 16.9f43f2a2cb3de6b50964.bundle.js} +1 -1
  24. package/dist/168.34a1790ea589d9926a97.bundle.js +1 -1
  25. package/dist/{17.f3d91ad6fab1a190a416.bundle.js → 17.7a20974aaea2122ed42f.bundle.js} +1 -1
  26. package/dist/170.e24cfa80d3f51df2b1b5.bundle.js +1 -0
  27. package/dist/171.49aabfdb3574cef3d14b.bundle.js +1 -0
  28. package/dist/173.5e3fea538a2a2d5b5c0c.bundle.js +1 -1
  29. package/dist/{18.119e4e696a9b2da67a3f.bundle.js → 18.db18b987a6ea55fddc4a.bundle.js} +2 -2
  30. package/dist/{19.f461a770949b2e409d05.bundle.js → 19.9a73670b7772d8bf1969.bundle.js} +1 -1
  31. package/dist/{2.308618aec7201e8045bd.bundle.js → 2.888ee146d785447620e1.bundle.js} +2 -2
  32. package/dist/{20.635488a03f910fa4518b.bundle.js → 20.918905a6efc81c27dcf6.bundle.js} +1 -1
  33. package/dist/200.76fd30afe28687f92b15.bundle.js +1 -1
  34. package/dist/{21.9bbe46c05fe4a34a9cf8.bundle.js → 21.fa61daf65c6bc29e06a2.bundle.js} +1 -1
  35. package/dist/{22.0ae31e473d0af170b177.bundle.js → 22.3850ed5528218c3beb66.bundle.js} +2 -2
  36. package/dist/23.dc3e430b47f766cc2366.bundle.js +1 -1
  37. package/dist/{24.8d3f4b05a5101a6a685b.bundle.js → 24.4c9b73b3909403e82055.bundle.js} +1 -1
  38. package/dist/{31.9a07cc30c05a1a698b98.bundle.js → 25.a5373b84a4b761ac765f.bundle.js} +2 -2
  39. package/dist/{25.2a489b131bab984243fa.bundle.js → 26.60c61d8ca245bad6597d.bundle.js} +1 -1
  40. package/dist/{26.377d1bc26079a8159e3c.bundle.js → 27.56996601ec3795c65c3d.bundle.js} +1 -1
  41. package/dist/{27.60396d05fddda4894ce3.bundle.js → 28.79f65106f49c5036504b.bundle.js} +1 -1
  42. package/dist/{28.aebd82e778f3fcd55219.bundle.js → 29.3f41e0d8e9f58188a02b.bundle.js} +1 -1
  43. package/dist/30.4712f3e92b6469d3d8dd.bundle.js +1 -0
  44. package/dist/{30.acdf84b0bcd3f178c2fd.bundle.js → 31.a05a0072057c061cd0dc.bundle.js} +1 -1
  45. package/dist/{32.f88a50038df0d43ccfc4.bundle.js → 32.27c9ee63125cca89f908.bundle.js} +1 -1
  46. package/dist/33.c659ec3148f68ca30b34.bundle.js +1 -0
  47. package/dist/{33.d4463e934ae20163667d.bundle.js → 34.e5150a1b66426d5f5af7.bundle.js} +1 -1
  48. package/dist/{34.3046d2d28129a67d4483.bundle.js → 35.0766d50ada31ef79b4b0.bundle.js} +1 -1
  49. package/dist/{35.69758da395b815346a2f.bundle.js → 36.25471fd55c32f7f02568.bundle.js} +1 -1
  50. package/dist/37.356f6302c079cea446b6.bundle.js +1 -0
  51. package/dist/{37.ac5b9eaa607c43ec69df.bundle.js → 38.94b303a3b944480a495a.bundle.js} +1 -1
  52. package/dist/{38.b776c45fe26516ca8160.bundle.js → 39.a5409bc3fec719768f37.bundle.js} +1 -1
  53. package/dist/{4.870de73e2e763f35280a.bundle.js → 4.83e133ed3a567a27c699.bundle.js} +1 -1
  54. package/dist/{39.c74b936329bf2477fbdb.bundle.js → 40.61f5dedc12beb42c1f44.bundle.js} +1 -1
  55. package/dist/{40.2c1f1cc8c521b8209885.bundle.js → 41.62789a75dd9dddbc1297.bundle.js} +1 -1
  56. package/dist/42.0df0808308a3829462fb.bundle.js +1 -0
  57. package/dist/{42.b6c558e4b660bdb0be4d.bundle.js → 43.3876fb2ec9b5b6b646df.bundle.js} +1 -1
  58. package/dist/{43.42c27c3277a302252fc5.bundle.js → 44.e63112a4f3ee65c29a0a.bundle.js} +1 -1
  59. package/dist/{44.96d4cf9f701897a90fce.bundle.js → 45.2b1cf89f777bb5fda383.bundle.js} +1 -1
  60. package/dist/{45.2c4bc26cf5fbe9b84cb6.bundle.js → 46.f07b159fc6cc07492e2b.bundle.js} +1 -1
  61. package/dist/{46.d63a366dbcb649ed1fbb.bundle.js → 47.1bacc6e38fde37677380.bundle.js} +1 -1
  62. package/dist/{47.0ecc5620f91346c3e7d4.bundle.js → 48.345db2f50dae9ec7d11a.bundle.js} +1 -1
  63. package/dist/49.b0d0df9a0bd2458a38f7.bundle.js +1 -0
  64. package/dist/{5.adea5d522be945b9d8d3.bundle.js → 5.93d75276b7a283deddc8.bundle.js} +1 -1
  65. package/dist/{49.3da99bdb2271cf2adc7b.bundle.js → 50.f453781f031f1511a294.bundle.js} +1 -1
  66. package/dist/{50.6695e410303c03ad694c.bundle.js → 51.9a911ea64d2bbe27a6b8.bundle.js} +1 -1
  67. package/dist/{51.95f30e28e67312c9df42.bundle.js → 52.0673b651acdd40122168.bundle.js} +1 -1
  68. package/dist/{52.b0f496f823a213178075.bundle.js → 53.9b5d43c58aa368765457.bundle.js} +1 -1
  69. package/dist/{53.716d3c94c3d0959a26a8.bundle.js → 54.028884d762d361c54c23.bundle.js} +1 -1
  70. package/dist/{54.44b8cf059fe5ba4bf144.bundle.js → 55.4966f01604a6c84d301e.bundle.js} +1 -1
  71. package/dist/{55.891486b3fa68d44f3a52.bundle.js → 56.da176c234be30906ed18.bundle.js} +1 -1
  72. package/dist/{56.3548e08f4add9390e771.bundle.js → 57.413a1beccae08b5eb787.bundle.js} +1 -1
  73. package/dist/{57.9f0dbb2e3b44c19c8dcd.bundle.js → 58.8ba78ec049c5c97e4391.bundle.js} +1 -1
  74. package/dist/{58.a76e6e35994e2cb1a7f6.bundle.js → 59.25436d0038d7be337d24.bundle.js} +1 -1
  75. package/dist/{59.6dfdee0f9651ff9aa2f6.bundle.js → 60.571f2c6fcdec505acb5a.bundle.js} +1 -1
  76. package/dist/{60.2b410d552e467b555529.bundle.js → 61.8dca89c50677ace894ee.bundle.js} +1 -1
  77. package/dist/{61.03a75a3d8faf4c165a0c.bundle.js → 62.3a5f8d2165a2f6058360.bundle.js} +1 -1
  78. package/dist/{62.86ba4d7804758d2e3f48.bundle.js → 63.2ea3fe6eb8be5ab57564.bundle.js} +1 -1
  79. package/dist/{63.5e2ca7ce2ea95b397fe7.bundle.js → 64.4e84a027a9f1d66a69db.bundle.js} +1 -1
  80. package/dist/{64.6a8854031771d4d4ef74.bundle.js → 65.da0571f9102cc340a6b9.bundle.js} +1 -1
  81. package/dist/{65.9e598abd11534c42a0c1.bundle.js → 66.104f9f5e48af12f94fbe.bundle.js} +1 -1
  82. package/dist/{7.0af6bb74bf88aa8f14ca.bundle.js → 7.39ff1f0ec65d7d7b73f5.bundle.js} +2 -2
  83. package/dist/{72.c82f209992278009e1a3.bundle.js → 72.25f264649b4e7f9dd670.bundle.js} +1 -1
  84. package/dist/{75.13e0f311c6c98067c4f8.bundle.js → 75.89f4b3371fc1c8679763.bundle.js} +1 -1
  85. package/dist/76.7d3ef13875f7533cc029.bundle.js +1 -0
  86. package/dist/{77.0373cd7f1c2851df3908.bundle.js → 77.122517ab9f81c08963fd.bundle.js} +1 -1
  87. package/dist/81.e4cdfbb440c07a0f9d1e.bundle.js +1 -0
  88. package/dist/{83.a6c2ad332de0ee224136.bundle.js → 83.0837870d0e1682a6487c.bundle.js} +1 -1
  89. package/dist/9.0e4d38f2390c619f5b26.bundle.js +1 -0
  90. package/dist/{bundle.c7f3e729665657fc72ff.bundle.js → bundle.a9867344f97149ebf778.bundle.js} +12 -12
  91. package/dist/css/new-sparql.css +31 -1
  92. package/dist/index.html +3 -3
  93. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
  94. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +14 -13
  95. package/dist/js/angular/core/directives/queryeditor/templates/query-editor.html +4 -23
  96. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  97. package/dist/js/angular/security/templates/user.html +1 -1
  98. package/dist/license-checker.json +2 -2
  99. package/dist/pages/aclmanagement.html +1 -1
  100. package/dist/pages/autocomplete.html +1 -1
  101. package/dist/pages/choose-repository-type.html +1 -1
  102. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  103. package/dist/pages/create-index.html +4 -4
  104. package/dist/pages/dependencies.html +1 -1
  105. package/dist/pages/domainRangeInfo.html +2 -2
  106. package/dist/pages/edit.html +1 -1
  107. package/dist/pages/explore.html +1 -1
  108. package/dist/pages/export.html +1 -1
  109. package/dist/pages/find.html +1 -1
  110. package/dist/pages/graph-config/saveGraphConfig.html +11 -11
  111. package/dist/pages/graphs-visualizations.html +7 -7
  112. package/dist/pages/guides.html +1 -1
  113. package/dist/pages/import.html +1 -1
  114. package/dist/pages/jdbc-create.html +5 -5
  115. package/dist/pages/monitor/backup-and-restore.html +1 -1
  116. package/dist/pages/monitor/queries.html +1 -1
  117. package/dist/pages/monitor/resources.html +2 -2
  118. package/dist/pages/namespaces.html +2 -2
  119. package/dist/pages/plugins.html +1 -1
  120. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  121. package/dist/pages/rdfrank.html +2 -2
  122. package/dist/pages/repositories.html +2 -2
  123. package/dist/pages/repository.html +2 -2
  124. package/dist/pages/similarity-indexes.html +1 -1
  125. package/dist/pages/sparql-template-create.html +5 -5
  126. package/dist/pages/sparql.html +3 -3
  127. package/dist/pages/webapi.html +2 -2
  128. package/dist/res/swagger/index.html +27 -27
  129. package/package.json +1 -1
  130. package/dist/108.83bb7ce803f462882200.bundle.js +0 -1
  131. package/dist/14.8343a1e9afdb39f1c2dc.bundle.js +0 -1
  132. package/dist/170.d5527024ac9107b542c3.bundle.js +0 -1
  133. package/dist/171.c0e7ce3fd59ef1bfc4f5.bundle.js +0 -1
  134. package/dist/29.9a6f92841eb0a4870045.bundle.js +0 -1
  135. package/dist/36.8f7908db8f70bbd3318c.bundle.js +0 -1
  136. package/dist/41.ca5e37c70938b397f260.bundle.js +0 -1
  137. package/dist/48.f8b0ea5f9306e24ac2d0.bundle.js +0 -1
  138. package/dist/66.7b18071c05eb5efb213b.bundle.js +0 -1
  139. package/dist/76.44bdcc2130c6a744bc55.bundle.js +0 -1
  140. package/dist/81.c14757a485d616ca95ba.bundle.js +0 -1
  141. package/dist/9.1e2a1467755135bb1717.bundle.js +0 -1
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[124],{123:function(e,t,n){"use strict";n.r(t);n(6),n(25);const o=angular.module("graphdb.framework.jmx.queries.controllers",["ui.bootstrap","toastr","graphdb.framework.rest.monitoring.service"]);o.controller("QueriesCtrl",["$scope","$uibModal","toastr","$interval","$repositories","$jwtAuth","ModalService","MonitoringRestService","$translate","AuthTokenService",function(e,t,n,o,r,i,s,u,c,a){e.loader=!0,e.stringLimit=500,e.expanded={},e.error="",e.paused=!1;const l=document.createElement("a");e.parseNode=function(e){if(null==e)return null;let t="local";if(e.indexOf("://localhost:")<0&&e.indexOf("://localhost/")<0){l.href=e;let n=l.hostname;(function(e){const t=e.split(".");for(let e=0,n=0;e<t.length;e++)if(parseInt(t[e],10)>=0&&parseInt(t[e],10)<=255?n++:n=0,4===n)return!0;return!1})(l.hostname)||(n=l.hostname.split(".")[0]),t=n+":"+l.port}const n=e.match(/\/repositories\/([^\/]+)#(\d+)/);return[n[2],t,n[1]]},e.togglePause=function(){e.paused=!e.paused},e.getQueries=function(){e.getQueriesRunning||e.paused||e.error||!r.getActiveRepository()||(e.getQueriesRunning=!0,u.monitorQuery(r.getActiveRepository()).success((function(t){const n=t;e.noQueries=0===n.length,e.queries={};for(let t=0;t<n.length;t++)n[t].parsedNode=e.parseNode(n[t].node),e.queries[n[t].trackId]=n[t];e.noActiveRepository=!1,e.loader=!1,e.getQueriesRunning=!1})).error((function(t){e.error=getError(t),e.loader=!1,e.getQueriesRunning=!1})))};const d=o((function(){r.isActiveRepoOntopType()||e.getQueries()}),1e3);e.$on("$destroy",(function(){o.cancel(d)})),e.deleteQueryHttp=function(t){e.loader=!0,u.deleteQuery(t,r.getActiveRepository()).success((function(){n.success(c.instant("abort.request.sent.msg")),e.loader=!1})).error((function(t){const o=getError(t);n.error(o,c.instant("common.error")),e.loader=!1}))},e.abortQuery=function(t){s.openSimpleModal({title:c.instant("confirm.abort"),message:c.instant("confirm.abort.warning.msg"),warning:!0}).result.then((function(){e.deleteQueryHttp(t)}))},e.downloadQuery=function(e){const t="query_"+e+".rq";let n="/rest/monitor/repository/"+r.getActiveRepository()+"/query/download?query="+encodeURIComponent(e)+"&filename="+encodeURIComponent(t);i.isAuthenticated()&&(n=n+"&authToken="+encodeURIComponent(a.getAuthToken())),window.open(n,"_blank")},e.toggleQueryExpanded=function(t){e.expanded[t]=!e.expanded[t]}}]),o.controller("DeleteQueryCtrl",["$scope","$uibModalInstance",function(e,t){e.ok=function(){t.close()},e.cancel=function(){t.dismiss("cancel")}}])}}]);
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[124],{123:function(e,t,n){"use strict";n.r(t);n(7),n(25);const o=angular.module("graphdb.framework.jmx.queries.controllers",["ui.bootstrap","toastr","graphdb.framework.rest.monitoring.service"]);o.controller("QueriesCtrl",["$scope","$uibModal","toastr","$interval","$repositories","$jwtAuth","ModalService","MonitoringRestService","$translate","AuthTokenService",function(e,t,n,o,r,i,s,u,c,a){e.loader=!0,e.stringLimit=500,e.expanded={},e.error="",e.paused=!1;const l=document.createElement("a");e.parseNode=function(e){if(null==e)return null;let t="local";if(e.indexOf("://localhost:")<0&&e.indexOf("://localhost/")<0){l.href=e;let n=l.hostname;(function(e){const t=e.split(".");for(let e=0,n=0;e<t.length;e++)if(parseInt(t[e],10)>=0&&parseInt(t[e],10)<=255?n++:n=0,4===n)return!0;return!1})(l.hostname)||(n=l.hostname.split(".")[0]),t=n+":"+l.port}const n=e.match(/\/repositories\/([^\/]+)#(\d+)/);return[n[2],t,n[1]]},e.togglePause=function(){e.paused=!e.paused},e.getQueries=function(){e.getQueriesRunning||e.paused||e.error||!r.getActiveRepository()||(e.getQueriesRunning=!0,u.monitorQuery(r.getActiveRepository()).success((function(t){const n=t;e.noQueries=0===n.length,e.queries={};for(let t=0;t<n.length;t++)n[t].parsedNode=e.parseNode(n[t].node),e.queries[n[t].trackId]=n[t];e.noActiveRepository=!1,e.loader=!1,e.getQueriesRunning=!1})).error((function(t){e.error=getError(t),e.loader=!1,e.getQueriesRunning=!1})))};const d=o((function(){r.isActiveRepoOntopType()||e.getQueries()}),1e3);e.$on("$destroy",(function(){o.cancel(d)})),e.deleteQueryHttp=function(t){e.loader=!0,u.deleteQuery(t,r.getActiveRepository()).success((function(){n.success(c.instant("abort.request.sent.msg")),e.loader=!1})).error((function(t){const o=getError(t);n.error(o,c.instant("common.error")),e.loader=!1}))},e.abortQuery=function(t){s.openSimpleModal({title:c.instant("confirm.abort"),message:c.instant("confirm.abort.warning.msg"),warning:!0}).result.then((function(){e.deleteQueryHttp(t)}))},e.downloadQuery=function(e){const t="query_"+e+".rq";let n="/rest/monitor/repository/"+r.getActiveRepository()+"/query/download?query="+encodeURIComponent(e)+"&filename="+encodeURIComponent(t);i.isAuthenticated()&&(n=n+"&authToken="+encodeURIComponent(a.getAuthToken())),window.open(n,"_blank")},e.toggleQueryExpanded=function(t){e.expanded[t]=!e.expanded[t]}}]),o.controller("DeleteQueryCtrl",["$scope","$uibModalInstance",function(e,t){e.ok=function(){t.close()},e.cancel=function(){t.dismiss("cancel")}}])}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[128],{132:function(e,t,r){"use strict";r.r(t);var o=r(85);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=angular.copy(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=angular.copy(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([[128],{132:function(e,t,r){"use strict";r.r(t);var o=r(86);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=angular.copy(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=angular.copy(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"]}}]);