graphdb-workbench 2.5.0-TR1 → 2.5.0-TR3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{0.8a2ce9646b78087ee8d5.bundle.js → 0.5cf9732a04e93f12731e.bundle.js} +1 -1
- package/dist/{10.87d69dcbb678eb017d9f.bundle.js → 10.eaecca674349ae64405b.bundle.js} +1 -1
- package/dist/108.7e527e2daa85d33a37e8.bundle.js +1 -0
- package/dist/{11.6eed30e27d3e87797f46.bundle.js → 11.00f9d1d1c4f991bc1ce4.bundle.js} +1 -1
- package/dist/{114.d577fb9878db595454b9.bundle.js → 114.2b3a6bb6ee773061303b.bundle.js} +1 -1
- package/dist/{117.467e62548d2cfc97dc4e.bundle.js → 117.7f5d816abf5b77ef3fbd.bundle.js} +1 -1
- package/dist/{12.684e3924524ec083514c.bundle.js → 12.d798f640c06bc7f0988a.bundle.js} +2 -2
- package/dist/{124.4eba62fcc75057b1c2cd.bundle.js → 124.97257036d8794229c8fe.bundle.js} +1 -1
- package/dist/{128.e30b33b7db3e9d4c0807.bundle.js → 128.1f57f66c0e4398a2c115.bundle.js} +1 -1
- package/dist/{13.1914ded040724e7084a3.bundle.js → 13.6373e7b002eecfe54c18.bundle.js} +1 -1
- package/dist/{130.03898700075c053f1da0.bundle.js → 130.8d0c570a8363e55b4892.bundle.js} +1 -1
- package/dist/{133.5c94ce3b0d29e2b6bf81.bundle.js → 133.c9432441d39dbdf45a46.bundle.js} +1 -1
- package/dist/{134.b6e0a5b639bd74a9bf33.bundle.js → 134.64ab677e16aa2b0c78b1.bundle.js} +1 -1
- package/dist/{136.1dae14fd2886c20f7c26.bundle.js → 136.22f6c4a19299925123a0.bundle.js} +1 -1
- package/dist/{138.dab019c29bc5eba28cd0.bundle.js → 138.6dccf89299df5ba81af2.bundle.js} +1 -1
- package/dist/14.46ccbf2fbfa7022c424b.bundle.js +1 -0
- package/dist/{144.abdb4b7d99aa88e11e4c.bundle.js → 144.d72be2c687a7d0249625.bundle.js} +1 -1
- package/dist/{146.87958778020f11da609e.bundle.js → 146.49a2b40691494c6a5486.bundle.js} +1 -1
- package/dist/{15.7f44e2d9c5fa8ddec358.bundle.js → 15.4c321cabb25d09b7c7d2.bundle.js} +1 -1
- package/dist/{150.22e2b067f545e64dd485.bundle.js → 150.2ce51c5750848ed010dc.bundle.js} +1 -1
- package/dist/{153.e797ad0c7e150c84f0d8.bundle.js → 153.f710bf5c73f7d736a4b1.bundle.js} +1 -1
- package/dist/{155.20fa01821db5148427f2.bundle.js → 155.46f2a94df187ed492591.bundle.js} +1 -1
- package/dist/{16.cc9d3a90ac69d93da51a.bundle.js → 16.6204732b58f59043436f.bundle.js} +1 -1
- package/dist/168.604316ed153524b052f3.bundle.js +1 -1
- package/dist/{17.8ad0f827f24eaa9b9235.bundle.js → 17.aedb44984ef305e0c70f.bundle.js} +1 -1
- package/dist/170.e191fb225ddb65024473.bundle.js +1 -0
- package/dist/171.c6400a0f2b4da7206e71.bundle.js +1 -0
- package/dist/173.ae711cba7e2c97fc73b5.bundle.js +1 -1
- package/dist/{18.3848b0ae0c5a64b97244.bundle.js → 18.488e471db34855b418d6.bundle.js} +2 -2
- package/dist/{19.6852479fbabf869e8a34.bundle.js → 19.21c59626445a9385699a.bundle.js} +1 -1
- package/dist/{2.d513e38bb30bcc94b0b8.bundle.js → 2.9a37e6579bbd99faa7df.bundle.js} +2 -2
- package/dist/{20.ea7a9e37933784499808.bundle.js → 20.7b83550ae0524adafae2.bundle.js} +1 -1
- package/dist/200.95c99f2cbcc8567cfafb.bundle.js +1 -1
- package/dist/{21.28e4367a15081fa5509e.bundle.js → 21.17e9bf36c5712302e4d3.bundle.js} +1 -1
- package/dist/{22.95bde4da51ed9cc67c2c.bundle.js → 22.cdc2663b96debbc6a65b.bundle.js} +2 -2
- package/dist/23.e54645da219284390374.bundle.js +1 -1
- package/dist/{24.ff95d974197c38fdf6de.bundle.js → 24.8ad805c765b343209036.bundle.js} +1 -1
- package/dist/{31.20b44039f4a26f4b8b8f.bundle.js → 25.cb4829f2e92fd9424a68.bundle.js} +2 -2
- package/dist/{25.075024f4d2dbb1ffc2d8.bundle.js → 26.d7177f34f8098990bcb3.bundle.js} +1 -1
- package/dist/{26.a0254b14fd5b89382ecd.bundle.js → 27.259ab6929d861a838a12.bundle.js} +1 -1
- package/dist/{27.7aab590febc0b18c99ea.bundle.js → 28.c1f0f131faa88af53758.bundle.js} +1 -1
- package/dist/{28.26b027df1246476fb97e.bundle.js → 29.4443dad5ba9aad14b478.bundle.js} +1 -1
- package/dist/{29.830ad0e2c46541581ec9.bundle.js → 30.bf3e693ce3351bce27eb.bundle.js} +1 -1
- package/dist/{30.94037e5f764e24e2e414.bundle.js → 31.163ee32806665a6dddc2.bundle.js} +1 -1
- package/dist/{32.40e988f74c315a0e8ac5.bundle.js → 32.299ae5cd6e71391a700b.bundle.js} +1 -1
- package/dist/33.789f368928904e24f6d2.bundle.js +1 -0
- package/dist/{33.ef84d171e89aae3fda11.bundle.js → 34.38770b233efed1f35272.bundle.js} +1 -1
- package/dist/{34.04e9922baabd006f0b6a.bundle.js → 35.258b98e04cadda4357be.bundle.js} +1 -1
- package/dist/{35.a875748384ad3c8a44ef.bundle.js → 36.a8e153e08c2b12d049f0.bundle.js} +1 -1
- package/dist/{36.3c55e8a9c2160b6885c8.bundle.js → 37.1119f4daa657494b2dee.bundle.js} +1 -1
- package/dist/{37.96039a4ad1c088b016d0.bundle.js → 38.d15791426b51ee288dc5.bundle.js} +1 -1
- package/dist/{38.c69f9d8967f405c3bd43.bundle.js → 39.9efb9b21bd341c60d1e4.bundle.js} +1 -1
- package/dist/{4.e786ee254f00109e6e92.bundle.js → 4.bd56ee8cbc353164d400.bundle.js} +1 -1
- package/dist/{39.ea9f894be518351c03cc.bundle.js → 40.dd1047127a761d6c693c.bundle.js} +1 -1
- package/dist/{40.1fe72814f99ffeb51fd0.bundle.js → 41.c04dc34ce71145c5235b.bundle.js} +1 -1
- package/dist/42.31ab866dd6d45388ed89.bundle.js +1 -0
- package/dist/{42.5eb5c97ec7533b587e5b.bundle.js → 43.7fe7063c77cece5cf59e.bundle.js} +1 -1
- package/dist/{43.0837b1e9a428e4dde8a2.bundle.js → 44.73e88426aa1d3cc58091.bundle.js} +1 -1
- package/dist/{44.726c8daab9870e19a9a4.bundle.js → 45.2c7f65e05059e34ab746.bundle.js} +1 -1
- package/dist/{45.c748eed08dd120f34e7a.bundle.js → 46.95ac85b4987df292517e.bundle.js} +1 -1
- package/dist/{46.7394224fd7bde0e83c59.bundle.js → 47.801c3fb2b25e4e6dbbf5.bundle.js} +1 -1
- package/dist/{47.d4a63c708fcc3aa5f9e7.bundle.js → 48.ae955aa8fea59fb24b79.bundle.js} +1 -1
- package/dist/49.c0bffcf362b3538f7f42.bundle.js +1 -0
- package/dist/{5.1f97ab7c93d1d6bbbaaf.bundle.js → 5.adea5d522be945b9d8d3.bundle.js} +1 -1
- package/dist/{49.f7c442dec730bf71188a.bundle.js → 50.f82d79aa8e75c28b2c75.bundle.js} +1 -1
- package/dist/{50.1a859f31c02968721863.bundle.js → 51.14acfebcc61778b5045a.bundle.js} +1 -1
- package/dist/{51.b2417e306086dd6f9c58.bundle.js → 52.89e5fcc6a82e2e2d11cb.bundle.js} +1 -1
- package/dist/{52.09d4428375d1538b883d.bundle.js → 53.15d83110f5d1b6e0f021.bundle.js} +1 -1
- package/dist/{53.71ed9791d3fd7019334b.bundle.js → 54.058f9938d40042f017c0.bundle.js} +1 -1
- package/dist/{54.aaaa5baf70c0b701938c.bundle.js → 55.cdfe9e9734ec244dccf2.bundle.js} +1 -1
- package/dist/{55.32cdab6677fb19b90cce.bundle.js → 56.914a47bab6bf9c7e4d61.bundle.js} +1 -1
- package/dist/{56.254bfcb8d814d3e3759b.bundle.js → 57.de9b6f6789d80f1ee398.bundle.js} +1 -1
- package/dist/{57.0b4eaa43acf093de9ec5.bundle.js → 58.96b61554d69abf431857.bundle.js} +1 -1
- package/dist/{58.f85af8f862e02471553a.bundle.js → 59.7c3f6c5c030f93b69c00.bundle.js} +1 -1
- package/dist/{59.95cd5c267f4b6d4dcaed.bundle.js → 60.f848378894d660806d43.bundle.js} +1 -1
- package/dist/{60.6164ef0489a252a415a4.bundle.js → 61.0e2fc08f48e7a83de619.bundle.js} +1 -1
- package/dist/{61.f46e0fcc52884ef5be07.bundle.js → 62.31d980d635d5aa6cc42a.bundle.js} +1 -1
- package/dist/{62.189767fdd1fb0395b009.bundle.js → 63.95216588581bb1f62328.bundle.js} +1 -1
- package/dist/{63.ecc6c0f67c579d13ee67.bundle.js → 64.2d3b8812de9eb6d3bae7.bundle.js} +1 -1
- package/dist/{64.eb6e6040937f208bdb43.bundle.js → 65.bf364041da1c850b076d.bundle.js} +1 -1
- package/dist/{65.7554f0d43835dc6ea555.bundle.js → 66.69e4ab8673cdd0336061.bundle.js} +1 -1
- package/dist/{7.1c0bde1ff36bec0cab62.bundle.js → 7.8bf1a2c5b84a141e21a7.bundle.js} +2 -2
- package/dist/{72.4a57d178044fe2c11b72.bundle.js → 72.20d6c82cb7230ef10a0f.bundle.js} +1 -1
- package/dist/{75.27b46b06d2be61863ef3.bundle.js → 75.13e0f311c6c98067c4f8.bundle.js} +1 -1
- package/dist/76.654cc125658db4900b93.bundle.js +1 -0
- package/dist/{77.55c0024f4f2e60b87e30.bundle.js → 77.0373cd7f1c2851df3908.bundle.js} +1 -1
- package/dist/81.c350699b7e38b228dca3.bundle.js +1 -0
- package/dist/{83.5838bc112ddd23c54bdf.bundle.js → 83.ac30096c59d105a3d52a.bundle.js} +1 -1
- package/dist/9.6d791573009a6a0fb7f3.bundle.js +1 -0
- package/dist/{bundle.986982107cd13ca86335.bundle.js → bundle.8bfb804e2c5ed829c005.bundle.js} +12 -12
- package/dist/css/bootstrap-graphdb-theme.css +0 -4
- package/dist/css/new-sparql.css +31 -1
- package/dist/index.html +4 -4
- package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
- package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +14 -13
- package/dist/js/angular/core/directives/queryeditor/templates/query-editor.html +4 -23
- package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
- package/dist/js/angular/security/templates/user.html +1 -1
- package/dist/license-checker.json +2 -2
- package/dist/{main.ef1675ae9664feabc0d4.css → main.964fb6ea8405dc7f47ca.css} +1 -1
- package/dist/pages/aclmanagement.html +1 -1
- package/dist/pages/autocomplete.html +1 -1
- package/dist/pages/choose-repository-type.html +1 -1
- package/dist/pages/cluster-management/clusterInfo.html +3 -3
- package/dist/pages/create-index.html +4 -4
- package/dist/pages/dependencies.html +1 -1
- package/dist/pages/domainRangeInfo.html +2 -2
- package/dist/pages/edit.html +1 -1
- package/dist/pages/explore.html +1 -1
- package/dist/pages/export.html +1 -1
- package/dist/pages/find.html +1 -1
- package/dist/pages/graph-config/saveGraphConfig.html +11 -11
- package/dist/pages/graphs-visualizations.html +7 -7
- package/dist/pages/guides.html +1 -1
- package/dist/pages/import.html +1 -1
- package/dist/pages/jdbc-create.html +5 -5
- package/dist/pages/monitor/backup-and-restore.html +1 -1
- package/dist/pages/monitor/queries.html +1 -1
- package/dist/pages/monitor/resources.html +2 -2
- package/dist/pages/namespaces.html +2 -2
- package/dist/pages/plugins.html +1 -1
- package/dist/pages/rdfClassHierarchyInfo.html +7 -7
- package/dist/pages/rdfrank.html +2 -2
- package/dist/pages/repositories.html +1 -1
- package/dist/pages/repository.html +1 -1
- package/dist/pages/similarity-indexes.html +1 -1
- package/dist/pages/sparql-template-create.html +5 -5
- package/dist/pages/sparql.html +3 -3
- package/dist/pages/webapi.html +2 -2
- package/dist/res/swagger/index.html +27 -27
- package/package.json +1 -1
- package/dist/108.d94d772e6dd0625999b4.bundle.js +0 -1
- package/dist/14.1d5ac7dcef27b9afa3b1.bundle.js +0 -1
- package/dist/170.d3353f96b0bfc33175f4.bundle.js +0 -1
- package/dist/171.d4e42adb13537e847ff0.bundle.js +0 -1
- package/dist/41.33bd300e0214b2e9d86f.bundle.js +0 -1
- package/dist/48.1e7be0e4fe6693a64811.bundle.js +0 -1
- package/dist/66.b7aa9c231089ed35bd28.bundle.js +0 -1
- package/dist/76.f8a3ef565854da38ea9e.bundle.js +0 -1
- package/dist/81.6f01e116a287be03e0c8.bundle.js +0 -1
- package/dist/9.fb1b2ce8103077876f1a.bundle.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[124],{122:function(e,t,n){"use strict";n.r(t);n(
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[124],{122: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],{131:function(e,t,r){"use strict";r.r(t);var o=r(
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[128],{131: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"]}}]);
|