graphdb-workbench 2.0.0-TR5 → 2.0.0-TR9
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/README.md +6 -1
- package/dist/{0.21974a2453b9a92dec33.bundle.js → 0.965871b861f4dddbba56.bundle.js} +3 -3
- package/dist/0.965871b861f4dddbba56.bundle.js.map +1 -0
- package/dist/{112.b871480dd961ac3c18b6.bundle.js → 112.0c1bdd906ac321ffbf5f.bundle.js} +2 -2
- package/dist/{112.b871480dd961ac3c18b6.bundle.js.map → 112.0c1bdd906ac321ffbf5f.bundle.js.map} +1 -1
- package/dist/114.282a327015f8ae87918b.bundle.js +1 -1
- package/dist/114.282a327015f8ae87918b.bundle.js.map +1 -1
- package/dist/{12.449fb5148a68a44ba324.bundle.js → 12.5d4da897bdd91e8808fa.bundle.js} +2 -2
- package/dist/12.5d4da897bdd91e8808fa.bundle.js.map +1 -0
- package/dist/13.f62fa8acc6e68826e07a.bundle.js +4 -0
- package/dist/13.f62fa8acc6e68826e07a.bundle.js.map +1 -0
- package/dist/14.349458c1675f763995a5.bundle.js +2 -0
- package/dist/14.349458c1675f763995a5.bundle.js.map +1 -0
- package/dist/15.ebce70c05fd90026747b.bundle.js +2 -0
- package/dist/15.ebce70c05fd90026747b.bundle.js.map +1 -0
- package/dist/{17.4b048ae019a8d2fd5b46.bundle.js → 17.f01afdf3b3892d73a3fe.bundle.js} +2 -2
- package/dist/17.f01afdf3b3892d73a3fe.bundle.js.map +1 -0
- package/dist/{18.5514f95535bdd2a71d6e.bundle.js → 18.10f65755b64a6534289e.bundle.js} +2 -2
- package/dist/{18.5514f95535bdd2a71d6e.bundle.js.map → 18.10f65755b64a6534289e.bundle.js.map} +1 -1
- package/dist/{21.e75213686a349ae7df89.bundle.js → 21.b6bf0d54a846411501c7.bundle.js} +2 -2
- package/dist/{21.e75213686a349ae7df89.bundle.js.map → 21.b6bf0d54a846411501c7.bundle.js.map} +1 -1
- package/dist/22.e8167eba683605211409.bundle.js +2 -0
- package/dist/22.e8167eba683605211409.bundle.js.map +1 -0
- package/dist/{23.32f2701680565c5d107b.bundle.js → 23.e3ca5b7bb2cee4f9467f.bundle.js} +3 -3
- package/dist/{23.32f2701680565c5d107b.bundle.js.map → 23.e3ca5b7bb2cee4f9467f.bundle.js.map} +1 -1
- package/dist/{24.8dd957168a8be963b393.bundle.js → 24.d5ea0f435b896dc12709.bundle.js} +2 -2
- package/dist/{24.8dd957168a8be963b393.bundle.js.map → 24.d5ea0f435b896dc12709.bundle.js.map} +1 -1
- package/dist/25.5b3feb79a7be0ca1f4ad.bundle.js +2 -0
- package/dist/25.5b3feb79a7be0ca1f4ad.bundle.js.map +1 -0
- package/dist/26.c4983d9f3009f41beb11.bundle.js +2 -0
- package/dist/26.c4983d9f3009f41beb11.bundle.js.map +1 -0
- package/dist/27.04085d1d15db39ca4a36.bundle.js +2 -0
- package/dist/27.04085d1d15db39ca4a36.bundle.js.map +1 -0
- package/dist/{28.b1c15ce7633c501836c5.bundle.js → 28.57b84065ebe40bb45f72.bundle.js} +2 -2
- package/dist/{28.b1c15ce7633c501836c5.bundle.js.map → 28.57b84065ebe40bb45f72.bundle.js.map} +1 -1
- package/dist/{29.66259b8a21bbb5431a06.bundle.js → 29.959ae6b366d15d0ddea9.bundle.js} +2 -2
- package/dist/{29.66259b8a21bbb5431a06.bundle.js.map → 29.959ae6b366d15d0ddea9.bundle.js.map} +1 -1
- package/dist/{3.9eb2c7cced9d8b971c99.bundle.js → 3.26d967229917c7c5cdfb.bundle.js} +2 -2
- package/dist/{3.9eb2c7cced9d8b971c99.bundle.js.map → 3.26d967229917c7c5cdfb.bundle.js.map} +1 -1
- package/dist/{30.4d469715c2f2d1028b4b.bundle.js → 30.3592aaa1063719853218.bundle.js} +2 -2
- package/dist/30.3592aaa1063719853218.bundle.js.map +1 -0
- package/dist/{31.d810abed46d7c73ade7f.bundle.js → 31.c808da656c9ee6b7e84e.bundle.js} +2 -2
- package/dist/{31.d810abed46d7c73ade7f.bundle.js.map → 31.c808da656c9ee6b7e84e.bundle.js.map} +1 -1
- package/dist/{32.4f4c8e24d97a9d315335.bundle.js → 32.92b02260015995b4f777.bundle.js} +2 -2
- package/dist/{32.4f4c8e24d97a9d315335.bundle.js.map → 32.92b02260015995b4f777.bundle.js.map} +1 -1
- package/dist/{33.ea3b66016bbeff928fc3.bundle.js → 33.479162c943ca9a1982aa.bundle.js} +2 -2
- package/dist/33.479162c943ca9a1982aa.bundle.js.map +1 -0
- package/dist/34.22a096bd891109c927f5.bundle.js +2 -0
- package/dist/34.22a096bd891109c927f5.bundle.js.map +1 -0
- package/dist/{35.b9183a8ffba2bbd8daa1.bundle.js → 35.9c81c96cc1621f9468aa.bundle.js} +2 -2
- package/dist/{35.b9183a8ffba2bbd8daa1.bundle.js.map → 35.9c81c96cc1621f9468aa.bundle.js.map} +1 -1
- package/dist/{36.d444f7ad7724d126da1c.bundle.js → 36.cee947247d32cdcec00e.bundle.js} +2 -2
- package/dist/{36.d444f7ad7724d126da1c.bundle.js.map → 36.cee947247d32cdcec00e.bundle.js.map} +1 -1
- package/dist/{37.e82ed70c9f1ccac1fa36.bundle.js → 37.42e443af5752a63a28fe.bundle.js} +2 -2
- package/dist/{37.e82ed70c9f1ccac1fa36.bundle.js.map → 37.42e443af5752a63a28fe.bundle.js.map} +1 -1
- package/dist/{38.93c5a81548a3294efd9d.bundle.js → 38.5fff5c171cdd2563aad1.bundle.js} +2 -2
- package/dist/{38.93c5a81548a3294efd9d.bundle.js.map → 38.5fff5c171cdd2563aad1.bundle.js.map} +1 -1
- package/dist/{39.30dddbc6461137994eb4.bundle.js → 39.91c49550b6e2d11104fa.bundle.js} +2 -2
- package/dist/{39.30dddbc6461137994eb4.bundle.js.map → 39.91c49550b6e2d11104fa.bundle.js.map} +1 -1
- package/dist/4.786e6f1de67e5c6289a3.bundle.js +2 -0
- package/dist/4.786e6f1de67e5c6289a3.bundle.js.map +1 -0
- package/dist/{40.ae6db480b8323937451c.bundle.js → 40.a7e0220eb0c8a125abde.bundle.js} +2 -2
- package/dist/{40.ae6db480b8323937451c.bundle.js.map → 40.a7e0220eb0c8a125abde.bundle.js.map} +1 -1
- package/dist/41.1258b9502ba9383894d7.bundle.js +2 -0
- package/dist/{41.ba8cb2fb7f46ccb2ab28.bundle.js.map → 41.1258b9502ba9383894d7.bundle.js.map} +1 -1
- package/dist/{43.8d096939ee87946076e0.bundle.js → 43.86f9220f4f79feec5b27.bundle.js} +2 -2
- package/dist/{43.8d096939ee87946076e0.bundle.js.map → 43.86f9220f4f79feec5b27.bundle.js.map} +1 -1
- package/dist/{47.92a64d48c14c1ae82934.bundle.js → 47.fca0edd51becf34c06b7.bundle.js} +2 -2
- package/dist/{47.92a64d48c14c1ae82934.bundle.js.map → 47.fca0edd51becf34c06b7.bundle.js.map} +1 -1
- package/dist/{48.4b57a948edab2d3b9c55.bundle.js → 48.e495edf3c48e1b2fc052.bundle.js} +2 -2
- package/dist/{48.4b57a948edab2d3b9c55.bundle.js.map → 48.e495edf3c48e1b2fc052.bundle.js.map} +1 -1
- package/dist/49.80591a5efda019de6e4a.bundle.js +2 -0
- package/dist/49.80591a5efda019de6e4a.bundle.js.map +1 -0
- package/dist/{53.4b8ed1b79c1c20cdadd4.bundle.js → 53.c29678970b0cb8aa4b47.bundle.js} +2 -2
- package/dist/{53.4b8ed1b79c1c20cdadd4.bundle.js.map → 53.c29678970b0cb8aa4b47.bundle.js.map} +1 -1
- package/dist/{55.751acc0e54255fa3ace7.bundle.js → 55.427172af3ba7612f747a.bundle.js} +2 -2
- package/dist/{55.751acc0e54255fa3ace7.bundle.js.map → 55.427172af3ba7612f747a.bundle.js.map} +1 -1
- package/dist/{57.677c1eebf6a003639fff.bundle.js → 57.41b09f5fa3ee623aab83.bundle.js} +2 -2
- package/dist/{57.677c1eebf6a003639fff.bundle.js.map → 57.41b09f5fa3ee623aab83.bundle.js.map} +1 -1
- package/dist/{58.2c460e480eefb1a02aea.bundle.js → 58.ce5a29dded68f58c53b4.bundle.js} +2 -2
- package/dist/{58.2c460e480eefb1a02aea.bundle.js.map → 58.ce5a29dded68f58c53b4.bundle.js.map} +1 -1
- package/dist/{59.b8e9155530acba27a6fa.bundle.js → 59.10efdeff3a8ef9e5733d.bundle.js} +2 -2
- package/dist/{59.b8e9155530acba27a6fa.bundle.js.map → 59.10efdeff3a8ef9e5733d.bundle.js.map} +1 -1
- package/dist/{60.27e731a670680751538c.bundle.js → 60.97fb695857f6241ae612.bundle.js} +2 -2
- package/dist/{60.27e731a670680751538c.bundle.js.map → 60.97fb695857f6241ae612.bundle.js.map} +1 -1
- package/dist/{61.fce8a2436742c2e20032.bundle.js → 61.5d71ec3fe0cda230482b.bundle.js} +2 -2
- package/dist/{61.fce8a2436742c2e20032.bundle.js.map → 61.5d71ec3fe0cda230482b.bundle.js.map} +1 -1
- package/dist/{62.9e101a1894ee0f9a48be.bundle.js → 62.d53d104f74f9fbdacb35.bundle.js} +2 -2
- package/dist/{62.9e101a1894ee0f9a48be.bundle.js.map → 62.d53d104f74f9fbdacb35.bundle.js.map} +1 -1
- package/dist/{63.3ffdfd6f35fe62ea729c.bundle.js → 63.46514dd9cf756bd0e831.bundle.js} +2 -2
- package/dist/{63.3ffdfd6f35fe62ea729c.bundle.js.map → 63.46514dd9cf756bd0e831.bundle.js.map} +1 -1
- package/dist/{65.96a1f2f3c83a29e2c6c3.bundle.js → 65.401f44aaddb8aec6be1e.bundle.js} +2 -2
- package/dist/{65.96a1f2f3c83a29e2c6c3.bundle.js.map → 65.401f44aaddb8aec6be1e.bundle.js.map} +1 -1
- package/dist/{66.cf37216fb6f8e53cef2b.bundle.js → 66.7a1e4093247d23b65387.bundle.js} +2 -2
- package/dist/{66.cf37216fb6f8e53cef2b.bundle.js.map → 66.7a1e4093247d23b65387.bundle.js.map} +1 -1
- package/dist/{69.60ff11762016829be80d.bundle.js → 69.1944a1afebe9115c9262.bundle.js} +2 -2
- package/dist/{69.60ff11762016829be80d.bundle.js.map → 69.1944a1afebe9115c9262.bundle.js.map} +1 -1
- package/dist/7.0d2811d01a379d8b75fb.bundle.js +3 -0
- package/dist/7.0d2811d01a379d8b75fb.bundle.js.map +1 -0
- package/dist/{70.f86421bf02a9bfda5b95.bundle.js → 70.84500509fe2b0d19ab93.bundle.js} +2 -2
- package/dist/{70.f86421bf02a9bfda5b95.bundle.js.map → 70.84500509fe2b0d19ab93.bundle.js.map} +1 -1
- package/dist/{76.fa9e5d02f7e1367b9b29.bundle.js → 76.2fa18e115678c4e24682.bundle.js} +2 -2
- package/dist/{76.fa9e5d02f7e1367b9b29.bundle.js.map → 76.2fa18e115678c4e24682.bundle.js.map} +1 -1
- package/dist/8.7209929899c18f8a4580.bundle.js +2 -0
- package/dist/8.7209929899c18f8a4580.bundle.js.map +1 -0
- package/dist/{80.37504cf0c1e5ad897478.bundle.js → 80.83e56da7d7a69fc34eed.bundle.js} +2 -2
- package/dist/{80.37504cf0c1e5ad897478.bundle.js.map → 80.83e56da7d7a69fc34eed.bundle.js.map} +1 -1
- package/dist/{82.9b4d4dc326055aa47e04.bundle.js → 82.74d50036c210cb10b7f5.bundle.js} +2 -2
- package/dist/{82.9b4d4dc326055aa47e04.bundle.js.map → 82.74d50036c210cb10b7f5.bundle.js.map} +1 -1
- package/dist/{84.fab513b88806deb0981a.bundle.js → 84.7f42dd9d7dc01baaf465.bundle.js} +2 -2
- package/dist/{84.fab513b88806deb0981a.bundle.js.map → 84.7f42dd9d7dc01baaf465.bundle.js.map} +1 -1
- package/dist/{86.b319a8b9fcabecd7a6c7.bundle.js → 86.581cbc54b6c6b6ea9f19.bundle.js} +2 -2
- package/dist/{86.b319a8b9fcabecd7a6c7.bundle.js.map → 86.581cbc54b6c6b6ea9f19.bundle.js.map} +1 -1
- package/dist/{87.765567c0cbe89cbdb03c.bundle.js → 87.3606797303ead8dc2879.bundle.js} +2 -2
- package/dist/{87.765567c0cbe89cbdb03c.bundle.js.map → 87.3606797303ead8dc2879.bundle.js.map} +1 -1
- package/dist/{88.50c46652774325bffad3.bundle.js → 88.f5b8f83e57c9bea3c137.bundle.js} +2 -2
- package/dist/{88.50c46652774325bffad3.bundle.js.map → 88.f5b8f83e57c9bea3c137.bundle.js.map} +1 -1
- package/dist/{89.91c58e1902b0f444b068.bundle.js → 89.f9b4c4ddff2c0b5b70f7.bundle.js} +2 -2
- package/dist/{89.91c58e1902b0f444b068.bundle.js.map → 89.f9b4c4ddff2c0b5b70f7.bundle.js.map} +1 -1
- package/dist/{9.16a945b967e9a52bf535.bundle.js → 9.6a95a5c1eec963050422.bundle.js} +2 -2
- package/dist/{9.16a945b967e9a52bf535.bundle.js.map → 9.6a95a5c1eec963050422.bundle.js.map} +1 -1
- package/dist/{90.e12e77898d6341e59d8f.bundle.js → 90.4d42ba583fbc1d63d3d2.bundle.js} +2 -2
- package/dist/{90.e12e77898d6341e59d8f.bundle.js.map → 90.4d42ba583fbc1d63d3d2.bundle.js.map} +1 -1
- package/dist/95.1f83b03f48326a6cec45.bundle.js +2 -0
- package/dist/{95.decfcd3477dee353025b.bundle.js.map → 95.1f83b03f48326a6cec45.bundle.js.map} +1 -1
- package/dist/{bundle.6ce2d745fe23f2a6d129.bundle.js → bundle.1a982e7b3e2d9d06a802.bundle.js} +5 -5
- package/dist/bundle.1a982e7b3e2d9d06a802.bundle.js.map +1 -0
- package/dist/css/graphs-vizualizations.css +9 -1
- package/dist/css/lib/yasr.css +1 -0
- package/dist/css/yasr.custom.css +9 -0
- package/dist/index.html +4 -4
- package/dist/js/angular/core/directives/queryeditor/templates/query-editor.html +1 -0
- package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
- package/dist/{main.ea86ac1b6d636ab25dc7.css → main.db108895fbac32ad7e7b.css} +1 -1
- package/dist/pages/autocomplete.html +1 -1
- package/dist/pages/choose-repository-type.html +1 -1
- package/dist/pages/clusterInfo.html +1 -1
- 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 +20 -10
- package/dist/pages/import.html +1 -1
- package/dist/pages/jdbc-create.html +5 -5
- 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/rdfClassHierarchyInfo.html +7 -7
- package/dist/pages/rdfrank.html +2 -2
- package/dist/pages/repositories.html +2 -2
- package/dist/pages/repository.html +2 -2
- 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 +25 -25
- package/package.json +1 -1
- package/dist/0.21974a2453b9a92dec33.bundle.js.map +0 -1
- package/dist/12.449fb5148a68a44ba324.bundle.js.map +0 -1
- package/dist/13.77a8eae45bc4cda5fae7.bundle.js +0 -4
- package/dist/13.77a8eae45bc4cda5fae7.bundle.js.map +0 -1
- package/dist/14.a1d84445382b665e13e0.bundle.js +0 -2
- package/dist/14.a1d84445382b665e13e0.bundle.js.map +0 -1
- package/dist/15.73ffeb044255abbac7bf.bundle.js +0 -2
- package/dist/15.73ffeb044255abbac7bf.bundle.js.map +0 -1
- package/dist/17.4b048ae019a8d2fd5b46.bundle.js.map +0 -1
- package/dist/22.a3b52347055f1adac9ce.bundle.js +0 -2
- package/dist/22.a3b52347055f1adac9ce.bundle.js.map +0 -1
- package/dist/25.34da4f496fc62f2dae9b.bundle.js +0 -2
- package/dist/25.34da4f496fc62f2dae9b.bundle.js.map +0 -1
- package/dist/26.02814d2ed726f5a71d4e.bundle.js +0 -2
- package/dist/26.02814d2ed726f5a71d4e.bundle.js.map +0 -1
- package/dist/27.827ef7f030a5501be29a.bundle.js +0 -2
- package/dist/27.827ef7f030a5501be29a.bundle.js.map +0 -1
- package/dist/30.4d469715c2f2d1028b4b.bundle.js.map +0 -1
- package/dist/33.ea3b66016bbeff928fc3.bundle.js.map +0 -1
- package/dist/34.620159c2b04af0a88d1b.bundle.js +0 -2
- package/dist/34.620159c2b04af0a88d1b.bundle.js.map +0 -1
- package/dist/4.6a8bdb4c9048dd910bfd.bundle.js +0 -2
- package/dist/4.6a8bdb4c9048dd910bfd.bundle.js.map +0 -1
- package/dist/41.ba8cb2fb7f46ccb2ab28.bundle.js +0 -2
- package/dist/49.71f6e0f6f3284bf63cab.bundle.js +0 -2
- package/dist/49.71f6e0f6f3284bf63cab.bundle.js.map +0 -1
- package/dist/7.036cd4322fa473fb187a.bundle.js +0 -3
- package/dist/7.036cd4322fa473fb187a.bundle.js.map +0 -1
- package/dist/8.46db359ed59a04d3799b.bundle.js +0 -2
- package/dist/8.46db359ed59a04d3799b.bundle.js.map +0 -1
- package/dist/95.decfcd3477dee353025b.bundle.js +0 -2
- package/dist/bundle.6ce2d745fe23f2a6d129.bundle.js.map +0 -1
package/dist/{80.37504cf0c1e5ad897478.bundle.js.map → 80.83e56da7d7a69fc34eed.bundle.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///./src/js/angular/repositories/ontop-repo.directive.js"],"names":["ontopRepoDirective","$modal","RepositoriesRestService","toastr","Upload","restrict","scope","templateUrl","link","$scope","selectedDriver","driverType","driverName","jdbc","hostName","port","databaseName","userName","password","driverClass","url","urlTemplate","downloadDriverUrl","ontopRepoFileNames","supportedDriversData","ontopRepoFileLabels","propertiesFile","obdaFile","owlFile","constraintFile","ontopRepoFiles","Object","keys","forEach","key","repositoryInfo","params","value","supportedDriverLabels","propertiesFileParams","classAvailable","genericDriverType","REQUIRED_ONTOP_REPO_PARAMS","REQUIRED_PROPERTIES_FIELD_PARAMS","updateProperties","filter","requiredField","length","error","Promise","reject","uploadFileLoader","updatePropertiesFile","success","data","fileLocation","showErrorMsg","resolve","title","msg","getError","loadDriverByClass","foundDriver","find","driver","copyDriverProperties","selectDriverByType","concatURL","portRequired","isReadOnly","labelName","editFile","file","open","controller","result","then","updateRepositoryFileContent","content","uploadOntopRepoFile","files","param","uploadFile","upload","name","errorMessage","replace","getInputType","checkForRequiredOntopFiles","requiredFile","validateOntopPropertiesConnection","isOntopRepoFileUploaded","isRequiredOntopRepoFile","indexOf","isRequiredField","field","getFieldTooltip","repoTooltips","ontop","editOntopRepo","editRepository","catch","err","createOntopRepo","id","createRepo","goBackToPrevious","goBackToPreviousLocation","getSupportedDriversData","response","editRepoPage","loadPropertiesFile","driverData","parseInt","angular","module","directive","$inject"],"mappings":"0FAAA,mBAQA,SAASA,EAAmBC,EAAQC,EAAyBC,EAAQC,GACjE,MAAO,CACHC,SAAU,IACVC,OAAO,EACPC,YAAa,oDAEbC,KAGJ,SAAkBC,GAEdA,EAAOC,eAAiB,CACpBC,WAAY,UACZC,WAAY,sBACZC,KAAM,CACFC,SAAU,GACVC,KAAM,GACNC,aAAc,GACdC,SAAU,GACVC,SAAU,GACVC,YAAa,GACbC,IAAK,IAETC,YAAa,GACbC,kBAAmB,IAEvBb,EAAOc,mBAAqB,GAC5Bd,EAAOe,qBAAuB,GAC9Bf,EAAOgB,oBACH,CAACC,eAAgB,kBAAmBC,SAAU,gBAAiBC,QAAS,gBAAiBC,eAAgB,mBAC7GpB,EAAOqB,eAAiBC,OAAOC,KAAKvB,EAAOgB,qBAC3ChB,EAAOqB,eAAeG,SAAQ,SAASC,GAC/BzB,EAAO0B,eAAeC,OAAOF,KAC7BzB,EAAOc,mBAAmBW,GAAO,sBAAYzB,EAAO0B,eAAeC,OAAOF,GAAKG,WAGvF5B,EAAO6B,sBAAwB,CAACxB,SAAU,WAAYC,KAAM,OAAQC,aAAc,gBAClDC,SAAU,WAAYC,SAAU,WAAYC,YAAa,eAAgBC,IAAK,OAC9GX,EAAO8B,qBAAuBR,OAAOC,KAAKvB,EAAO6B,uBACjD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GrD3D,EAAOuF,gBAAkB,SAAUD,GAI/B,MAHc,SAAVA,GAAoBtF,EAAOC,eAAe0D,eAC1C2B,EAAQ,kBAELtF,EAAOwF,aAAaC,MAAMH,IAGrCtF,EAAO0F,cAAgB,WACnB1F,EAAO+E,6BACFZ,MAAK,WACFnE,EAAO2F,oBACRC,OAAM,SAAUC,QAK3B7F,EAAO8F,gBAAkB,WAChB9F,EAAO0B,eAAeqE,GAK3B/F,EAAO+E,6BACFZ,MAAK,WACFnE,EAAOgG,gBACRJ,OAAM,SAAUC,OAPnBnG,EAAO6C,MAAM,kCAYrBvC,EAAOiG,iBAAmB,WACtBjG,EAAOkG,4BAnPAzG,EAAwB0G,0BAC1BvD,SAAQ,SAAUwD,GACfpG,EAAOe,qBAAuBqF,KAC/B7D,OAAM,SAAU6D,GACfrD,EAAa,QAASqD,MAwP7BjC,MAAK,WACEnE,EAAOqG,cAzHf5G,EAAwB6G,mBAAmBtG,EAAO0B,eAAeC,OAAO3B,EAAOiB,gBAAgBW,OAC1FgB,SAAQ,SAAU2D,GACAvG,EAAOoD,kBAAkBmD,EAAW7F,eAG/CV,EAAOC,eAAeG,KAAKC,SAAWkG,EAAWlG,SACjDL,EAAOC,eAAeG,KAAKE,KAAOkG,SAASD,EAAWjG,MACtDN,EAAOC,eAAeG,KAAKG,aAAegG,EAAWhG,aACrDP,EAAOC,eAAeG,KAAKI,SAAW+F,EAAW/F,SACjDR,EAAOC,eAAeG,KAAKK,SAAW8F,EAAW9F,SACjDT,EAAOC,eAAeG,KAAKO,IAAM4F,EAAW5F,QAEjD4B,OAAM,SAAUM,GACnBE,EAAa,QAASF,GACtB7C,EAAO0C,kBAAmB,UAvM1C+D,QACKC,OAAO,sDAAuD,IAC9DC,UAAU,YAAapH,GAE5BA,EAAmBqH,QAAU,CAAC,SAAU,0BAA2B,SAAU","file":"80.37504cf0c1e5ad897478.bundle.js","sourcesContent":["import {getFileName} from \"./controllers\";\n\nangular\n .module('graphdb.framework.repositories.ontop-repo.directive', [])\n .directive('ontopRepo', ontopRepoDirective);\n\nontopRepoDirective.$inject = ['$modal', 'RepositoriesRestService', 'toastr', 'Upload'];\n\nfunction ontopRepoDirective($modal, RepositoriesRestService, toastr, Upload) {\n return {\n restrict: 'E',\n scope: false,\n templateUrl: 'js/angular/repositories/templates/ontop-repo.html',\n\n link: linkFunc\n };\n\n function linkFunc($scope) {\n\n $scope.selectedDriver = {\n driverType: \"generic\",\n driverName: \"Generic JDBC Driver\",\n jdbc: {\n hostName: \"\",\n port: \"\",\n databaseName: \"\",\n userName: \"\",\n password: \"\",\n driverClass: \"\",\n url: \"\"\n },\n urlTemplate: \"\",\n downloadDriverUrl: \"\"\n };\n $scope.ontopRepoFileNames = {};\n $scope.supportedDriversData = [];\n $scope.ontopRepoFileLabels =\n {propertiesFile: 'JDBC properties', obdaFile: 'OBDA or R2RML', owlFile: 'ontology file', constraintFile: 'constraint file'};\n $scope.ontopRepoFiles = Object.keys($scope.ontopRepoFileLabels);\n $scope.ontopRepoFiles.forEach(function(key) {\n if ($scope.repositoryInfo.params[key]) {\n $scope.ontopRepoFileNames[key] = getFileName($scope.repositoryInfo.params[key].value);\n }\n });\n $scope.supportedDriverLabels = {hostName: 'Hostname', port: \"Port\", databaseName: 'Database name',\n userName: 'Username', password: 'Password', driverClass: 'Driver class', url: 'URL'};\n $scope.propertiesFileParams = Object.keys($scope.supportedDriverLabels);\n $scope.classAvailable = false;\n $scope.genericDriverType = 'generic';\n $scope.propertiesFile = 'propertiesFile';\n\n const REQUIRED_ONTOP_REPO_PARAMS = [$scope.propertiesFile, 'obdaFile'];\n const REQUIRED_PROPERTIES_FIELD_PARAMS = ['hostName', 'databaseName', 'userName'];\n\n function getSupportedDriversData() {\n return RepositoriesRestService.getSupportedDriversData()\n .success(function (response) {\n $scope.supportedDriversData = response;\n }).error(function (response) {\n showErrorMsg('Error', response);\n });\n }\n\n $scope.loadDriverByClass = function (driverClass) {\n const foundDriver = $scope.supportedDriversData\n .find((driver) => driver.driverClass === driverClass);\n if (foundDriver) {\n $scope.copyDriverProperties(foundDriver);\n }\n return foundDriver;\n };\n\n $scope.selectDriverByType = function (driverType) {\n $scope.copyDriverProperties($scope.supportedDriversData\n .find((driver) => driver.driverType === driverType));\n // Call concatURL with proper labelName to apply changes to url field\n $scope.concatURL('hostName', $scope);\n };\n\n $scope.copyDriverProperties = function (driver) {\n $scope.selectedDriver.driverType = driver.driverType;\n $scope.selectedDriver.jdbc.driverClass = driver.driverClass;\n $scope.selectedDriver.jdbc.url = driver.urlTemplate;\n $scope.selectedDriver.urlTemplate = driver.urlTemplate;\n $scope.selectedDriver.downloadDriverUrl = driver.downloadDriverUrl;\n $scope.selectedDriver.portRequired = driver.portRequired;\n $scope.classAvailable = driver.classAvailable;\n };\n\n $scope.isReadOnly = function (labelName) {\n return labelName === 'driverClass' || labelName === 'url';\n }\n\n $scope.editFile = function(file) {\n const modalInstance = $modal.open({\n templateUrl: 'js/angular/templates/modal/editRepoFile.html',\n controller: 'EditRepositoryFileCtrl',\n resolve: {\n file: function () {\n return $scope.repositoryInfo.params[file] ? $scope.repositoryInfo.params[file].value : '';\n }\n }\n });\n\n modalInstance.result.then(function (data) {\n // send data to backend\n RepositoriesRestService.updateRepositoryFileContent(data.fileLocation, data.content).success(function(result) {\n $scope.ontopRepoFileNames[file] = getFileName(result.fileLocation);\n $scope.repositoryInfo.params[file].value = result.fileLocation;\n }).error(function (error) {\n showErrorMsg('Error', error);\n })\n });\n }\n\n $scope.uploadOntopRepoFile = function(files, param) {\n if (files && files.length) {\n $scope.uploadFile = files[0];\n $scope.uploadFileLoader = true;\n Upload.upload({\n url: 'rest/repositories/uploadFile',\n data: {uploadFile: $scope.uploadFile}\n })\n .success(function (data) {\n if (!data.success) {\n toastr.error(data.errorMessage);\n } else {\n $scope.ontopRepoFileNames[param] = $scope.uploadFile.name;\n $scope.repositoryInfo.params[param].value = data.fileLocation;\n }\n $scope.uploadFileLoader = false;\n }).error(function (data) {\n showErrorMsg('Error', data);\n $scope.uploadFile = '';\n $scope.uploadFileLoader = false;\n });\n }\n }\n\n $scope.concatURL = function(labelName) {\n if (labelName === 'hostName' || labelName === 'port' || labelName === 'databaseName') {\n let result = $scope.selectedDriver.urlTemplate;\n if ($scope.selectedDriver.jdbc.hostName) {\n if ($scope.selectedDriver.jdbc.port) {\n result = result.replace('{hostport}',\n `${$scope.selectedDriver.jdbc.hostName}:${$scope.selectedDriver.jdbc.port}`);\n } else {\n result = result.replace('{hostport}', $scope.selectedDriver.jdbc.hostName);\n }\n }\n\n if ($scope.selectedDriver.jdbc.databaseName) {\n result = result.replace('{database}', $scope.selectedDriver.jdbc.databaseName);\n }\n\n $scope.selectedDriver.jdbc.url = result;\n }\n }\n\n $scope.getInputType = function (labelName) {\n switch (labelName) {\n case 'password':\n return 'password';\n case 'port':\n return 'number';\n default:\n return 'text';\n }\n }\n\n $scope.checkForRequiredOntopFiles = function () {\n // Should guarantee that code will be executed in sequential manner,\n // because properties file is not created yet\n return updateProperties()\n .then(function () {\n const missingRequired = REQUIRED_ONTOP_REPO_PARAMS.filter(function (requiredFile) {\n return !$scope.repositoryInfo.params[requiredFile].value;\n });\n if (missingRequired.length > 0) {\n toastr.error('Missing required ontop repo file');\n return Promise.reject('Missing required ontop repo file');\n }\n return Promise.resolve();\n });\n }\n\n function loadPropertiesFile() {\n RepositoriesRestService.loadPropertiesFile($scope.repositoryInfo.params[$scope.propertiesFile].value)\n .success(function (driverData) {\n const driver = $scope.loadDriverByClass(driverData.driverClass);\n // If driver class is not found means that the selected driver is a GENERIC ONE\n if (driver) {\n $scope.selectedDriver.jdbc.hostName = driverData.hostName;\n $scope.selectedDriver.jdbc.port = parseInt(driverData.port);\n $scope.selectedDriver.jdbc.databaseName = driverData.databaseName;\n $scope.selectedDriver.jdbc.userName = driverData.userName;\n $scope.selectedDriver.jdbc.password = driverData.password;\n $scope.selectedDriver.jdbc.url = driverData.url;\n }\n }).error(function (data) {\n showErrorMsg('Error', data);\n $scope.uploadFileLoader = false;\n });\n }\n\n $scope.validateOntopPropertiesConnection = function () {\n updateProperties()\n .then(function () {\n RepositoriesRestService.validateOntopPropertiesConnection($scope.repositoryInfo.params.propertiesFile)\n .success(function () {\n toastr.success('Connection is successful');\n }).error(function (data) {\n showErrorMsg('Failed to connect', data);\n });\n });\n }\n\n $scope.isOntopRepoFileUploaded = function() {\n return $scope.repositoryInfo.params.propertiesFile &&\n $scope.repositoryInfo.params.propertiesFile.value.length > 0\n };\n\n function missingRequiredField() {\n const missing = REQUIRED_PROPERTIES_FIELD_PARAMS\n .filter(function (requiredField) {\n return !$scope.selectedDriver.jdbc[requiredField]\n });\n if (missing.length > 0) {\n toastr.error('Missing required field');\n return true;\n }\n return false;\n }\n\n function updateProperties() {\n if ($scope.selectedDriver.driverType !== $scope.genericDriverType) {\n if (missingRequiredField()) {\n return Promise.reject('Missing required field');\n }\n return updatePropertiesFile();\n }\n return Promise.resolve();\n }\n\n function updatePropertiesFile() {\n $scope.uploadFileLoader = true;\n return RepositoriesRestService\n .updatePropertiesFile($scope.repositoryInfo.params[$scope.propertiesFile].value, $scope.selectedDriver.jdbc)\n .success(function (data) {\n $scope.ontopRepoFileNames[$scope.propertiesFile] = getFileName(data.fileLocation);\n $scope.repositoryInfo.params[$scope.propertiesFile].value = data.fileLocation;\n $scope.uploadFileLoader = false;\n }).error(function (data) {\n showErrorMsg('Error', data);\n $scope.uploadFileLoader = false;\n });\n }\n\n $scope.isRequiredOntopRepoFile = function(file) {\n return REQUIRED_ONTOP_REPO_PARAMS.indexOf(file) > -1;\n };\n\n $scope.isRequiredField = function (field) {\n return REQUIRED_PROPERTIES_FIELD_PARAMS.indexOf(field) > -1\n || field === 'port' && $scope.selectedDriver.portRequired;\n };\n\n $scope.getFieldTooltip = function (field) {\n if (field === 'port' && $scope.selectedDriver.portRequired) {\n field = 'portIfRequired';\n }\n return $scope.repoTooltips.ontop[field];\n };\n\n $scope.editOntopRepo = function () {\n $scope.checkForRequiredOntopFiles()\n .then(function () {\n $scope.editRepository();\n }).catch(function (err) {\n // The catch block is empty, because error is handled in promise\n });\n }\n\n $scope.createOntopRepo = function () {\n if (!$scope.repositoryInfo.id) {\n toastr.error('Repository ID cannot be empty');\n return;\n }\n\n $scope.checkForRequiredOntopFiles()\n .then(function () {\n $scope.createRepo();\n }).catch(function (err) {\n // The catch block is empty, because error is handled in promise\n });\n };\n\n $scope.goBackToPrevious = function () {\n $scope.goBackToPreviousLocation();\n }\n\n function showErrorMsg (title, data) {\n const msg = getError(data);\n toastr.error(msg, title);\n }\n\n getSupportedDriversData()\n .then(function () {\n if ($scope.editRepoPage) {\n loadPropertiesFile();\n }\n });\n }\n}\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack:///./src/js/angular/repositories/ontop-repo.directive.js"],"names":["ontopRepoDirective","$modal","RepositoriesRestService","toastr","Upload","restrict","scope","templateUrl","link","$scope","selectedDriver","driverType","driverName","jdbc","hostName","port","databaseName","userName","password","driverClass","url","urlTemplate","downloadDriverUrl","ontopRepoFileNames","supportedDriversData","ontopRepoFileLabels","propertiesFile","obdaFile","owlFile","constraintFile","ontopRepoFiles","Object","keys","forEach","key","repositoryInfo","params","value","supportedDriverLabels","propertiesFileParams","classAvailable","genericDriverType","REQUIRED_ONTOP_REPO_PARAMS","REQUIRED_PROPERTIES_FIELD_PARAMS","updateProperties","filter","requiredField","length","error","Promise","reject","uploadFileLoader","updatePropertiesFile","success","data","fileLocation","showErrorMsg","resolve","title","msg","getError","loadDriverByClass","foundDriver","find","driver","copyDriverProperties","selectDriverByType","concatURL","portRequired","isReadOnly","labelName","editFile","file","open","controller","result","then","updateRepositoryFileContent","content","uploadOntopRepoFile","files","param","uploadFile","upload","name","errorMessage","replace","getInputType","checkForRequiredOntopFiles","requiredFile","validateOntopPropertiesConnection","isOntopRepoFileUploaded","isRequiredOntopRepoFile","indexOf","isRequiredField","field","getFieldTooltip","repoTooltips","ontop","editOntopRepo","editRepository","catch","err","createOntopRepo","id","createRepo","goBackToPrevious","goBackToPreviousLocation","getSupportedDriversData","response","editRepoPage","loadPropertiesFile","driverData","parseInt","angular","module","directive","$inject"],"mappings":"0FAAA,mBAQA,SAASA,EAAmBC,EAAQC,EAAyBC,EAAQC,GACjE,MAAO,CACHC,SAAU,IACVC,OAAO,EACPC,YAAa,oDAEbC,KAGJ,SAAkBC,GAEdA,EAAOC,eAAiB,CACpBC,WAAY,UACZC,WAAY,sBACZC,KAAM,CACFC,SAAU,GACVC,KAAM,GACNC,aAAc,GACdC,SAAU,GACVC,SAAU,GACVC,YAAa,GACbC,IAAK,IAETC,YAAa,GACbC,kBAAmB,IAEvBb,EAAOc,mBAAqB,GAC5Bd,EAAOe,qBAAuB,GAC9Bf,EAAOgB,oBACH,CAACC,eAAgB,kBAAmBC,SAAU,gBAAiBC,QAAS,gBAAiBC,eAAgB,mBAC7GpB,EAAOqB,eAAiBC,OAAOC,KAAKvB,EAAOgB,qBAC3ChB,EAAOqB,eAAeG,SAAQ,SAASC,GAC/BzB,EAAO0B,eAAeC,OAAOF,KAC7BzB,EAAOc,mBAAmBW,GAAO,sBAAYzB,EAAO0B,eAAeC,OAAOF,GAAKG,WAGvF5B,EAAO6B,sBAAwB,CAACxB,SAAU,WAAYC,KAAM,OAAQC,aAAc,gBAClDC,SAAU,WAAYC,SAAU,WAAYC,YAAa,eAAgBC,IAAK,OAC9GX,EAAO8B,qBAAuBR,OAAOC,KAAKvB,EAAO6B,uBACjD7B,EAAO+B,gBAAiB,EACxB/B,EAAOgC,kBAAoB,UAC3BhC,EAAOiB,eAAiB,iBAExB,MAAMgB,EAA6B,CAACjC,EAAOiB,eAAgB,YACrDiB,EAAmC,CAAC,WAAY,eAAgB,YAsLtE,SAASC,IACL,OAAInC,EAAOC,eAAeC,aAAeF,EAAOgC,kBAZhCE,EACXE,QAAO,SAAUC,GACd,OAAQrC,EAAOC,eAAeG,KAAKiC,MAE/BC,OAAS,IACjB5C,EAAO6C,MAAM,0BACN,GAQIC,QAAQC,OAA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AUC,OAPnBnG,EAAO6C,MAAM,kCAYrBvC,EAAOiG,iBAAmB,WACtBjG,EAAOkG,4BAnPAzG,EAAwB0G,0BAC1BvD,SAAQ,SAAUwD,GACfpG,EAAOe,qBAAuBqF,KAC/B7D,OAAM,SAAU6D,GACfrD,EAAa,QAASqD,MAwP7BjC,MAAK,WACEnE,EAAOqG,cAzHf5G,EAAwB6G,mBAAmBtG,EAAO0B,eAAeC,OAAO3B,EAAOiB,gBAAgBW,OAC1FgB,SAAQ,SAAU2D,GACAvG,EAAOoD,kBAAkBmD,EAAW7F,eAG/CV,EAAOC,eAAeG,KAAKC,SAAWkG,EAAWlG,SACjDL,EAAOC,eAAeG,KAAKE,KAAOkG,SAASD,EAAWjG,MACtDN,EAAOC,eAAeG,KAAKG,aAAegG,EAAWhG,aACrDP,EAAOC,eAAeG,KAAKI,SAAW+F,EAAW/F,SACjDR,EAAOC,eAAeG,KAAKK,SAAW8F,EAAW9F,SACjDT,EAAOC,eAAeG,KAAKO,IAAM4F,EAAW5F,QAEjD4B,OAAM,SAAUM,GACnBE,EAAa,QAASF,GACtB7C,EAAO0C,kBAAmB,UAvM1C+D,QACKC,OAAO,sDAAuD,IAC9DC,UAAU,YAAapH,GAE5BA,EAAmBqH,QAAU,CAAC,SAAU,0BAA2B,SAAU","file":"80.83e56da7d7a69fc34eed.bundle.js","sourcesContent":["import {getFileName} from \"./controllers\";\n\nangular\n .module('graphdb.framework.repositories.ontop-repo.directive', [])\n .directive('ontopRepo', ontopRepoDirective);\n\nontopRepoDirective.$inject = ['$modal', 'RepositoriesRestService', 'toastr', 'Upload'];\n\nfunction ontopRepoDirective($modal, RepositoriesRestService, toastr, Upload) {\n return {\n restrict: 'E',\n scope: false,\n templateUrl: 'js/angular/repositories/templates/ontop-repo.html',\n\n link: linkFunc\n };\n\n function linkFunc($scope) {\n\n $scope.selectedDriver = {\n driverType: \"generic\",\n driverName: \"Generic JDBC Driver\",\n jdbc: {\n hostName: \"\",\n port: \"\",\n databaseName: \"\",\n userName: \"\",\n password: \"\",\n driverClass: \"\",\n url: \"\"\n },\n urlTemplate: \"\",\n downloadDriverUrl: \"\"\n };\n $scope.ontopRepoFileNames = {};\n $scope.supportedDriversData = [];\n $scope.ontopRepoFileLabels =\n {propertiesFile: 'JDBC properties', obdaFile: 'OBDA or R2RML', owlFile: 'ontology file', constraintFile: 'constraint file'};\n $scope.ontopRepoFiles = Object.keys($scope.ontopRepoFileLabels);\n $scope.ontopRepoFiles.forEach(function(key) {\n if ($scope.repositoryInfo.params[key]) {\n $scope.ontopRepoFileNames[key] = getFileName($scope.repositoryInfo.params[key].value);\n }\n });\n $scope.supportedDriverLabels = {hostName: 'Hostname', port: \"Port\", databaseName: 'Database name',\n userName: 'Username', password: 'Password', driverClass: 'Driver class', url: 'URL'};\n $scope.propertiesFileParams = Object.keys($scope.supportedDriverLabels);\n $scope.classAvailable = false;\n $scope.genericDriverType = 'generic';\n $scope.propertiesFile = 'propertiesFile';\n\n const REQUIRED_ONTOP_REPO_PARAMS = [$scope.propertiesFile, 'obdaFile'];\n const REQUIRED_PROPERTIES_FIELD_PARAMS = ['hostName', 'databaseName', 'userName'];\n\n function getSupportedDriversData() {\n return RepositoriesRestService.getSupportedDriversData()\n .success(function (response) {\n $scope.supportedDriversData = response;\n }).error(function (response) {\n showErrorMsg('Error', response);\n });\n }\n\n $scope.loadDriverByClass = function (driverClass) {\n const foundDriver = $scope.supportedDriversData\n .find((driver) => driver.driverClass === driverClass);\n if (foundDriver) {\n $scope.copyDriverProperties(foundDriver);\n }\n return foundDriver;\n };\n\n $scope.selectDriverByType = function (driverType) {\n $scope.copyDriverProperties($scope.supportedDriversData\n .find((driver) => driver.driverType === driverType));\n // Call concatURL with proper labelName to apply changes to url field\n $scope.concatURL('hostName', $scope);\n };\n\n $scope.copyDriverProperties = function (driver) {\n $scope.selectedDriver.driverType = driver.driverType;\n $scope.selectedDriver.jdbc.driverClass = driver.driverClass;\n $scope.selectedDriver.jdbc.url = driver.urlTemplate;\n $scope.selectedDriver.urlTemplate = driver.urlTemplate;\n $scope.selectedDriver.downloadDriverUrl = driver.downloadDriverUrl;\n $scope.selectedDriver.portRequired = driver.portRequired;\n $scope.classAvailable = driver.classAvailable;\n };\n\n $scope.isReadOnly = function (labelName) {\n return labelName === 'driverClass' || labelName === 'url';\n }\n\n $scope.editFile = function(file) {\n const modalInstance = $modal.open({\n templateUrl: 'js/angular/templates/modal/editRepoFile.html',\n controller: 'EditRepositoryFileCtrl',\n resolve: {\n file: function () {\n return $scope.repositoryInfo.params[file] ? $scope.repositoryInfo.params[file].value : '';\n }\n }\n });\n\n modalInstance.result.then(function (data) {\n // send data to backend\n RepositoriesRestService.updateRepositoryFileContent(data.fileLocation, data.content).success(function(result) {\n $scope.ontopRepoFileNames[file] = getFileName(result.fileLocation);\n $scope.repositoryInfo.params[file].value = result.fileLocation;\n }).error(function (error) {\n showErrorMsg('Error', error);\n })\n });\n }\n\n $scope.uploadOntopRepoFile = function(files, param) {\n if (files && files.length) {\n $scope.uploadFile = files[0];\n $scope.uploadFileLoader = true;\n Upload.upload({\n url: 'rest/repositories/uploadFile',\n data: {uploadFile: $scope.uploadFile}\n })\n .success(function (data) {\n if (!data.success) {\n toastr.error(data.errorMessage);\n } else {\n $scope.ontopRepoFileNames[param] = $scope.uploadFile.name;\n $scope.repositoryInfo.params[param].value = data.fileLocation;\n }\n $scope.uploadFileLoader = false;\n }).error(function (data) {\n showErrorMsg('Error', data);\n $scope.uploadFile = '';\n $scope.uploadFileLoader = false;\n });\n }\n }\n\n $scope.concatURL = function(labelName) {\n if (labelName === 'hostName' || labelName === 'port' || labelName === 'databaseName') {\n let result = $scope.selectedDriver.urlTemplate;\n if ($scope.selectedDriver.jdbc.hostName) {\n if ($scope.selectedDriver.jdbc.port) {\n result = result.replace('{hostport}',\n `${$scope.selectedDriver.jdbc.hostName}:${$scope.selectedDriver.jdbc.port}`);\n } else {\n result = result.replace('{hostport}', $scope.selectedDriver.jdbc.hostName);\n }\n }\n\n if ($scope.selectedDriver.jdbc.databaseName) {\n result = result.replace('{database}', $scope.selectedDriver.jdbc.databaseName);\n }\n\n $scope.selectedDriver.jdbc.url = result;\n }\n }\n\n $scope.getInputType = function (labelName) {\n switch (labelName) {\n case 'password':\n return 'password';\n case 'port':\n return 'number';\n default:\n return 'text';\n }\n }\n\n $scope.checkForRequiredOntopFiles = function () {\n // Should guarantee that code will be executed in sequential manner,\n // because properties file is not created yet\n return updateProperties()\n .then(function () {\n const missingRequired = REQUIRED_ONTOP_REPO_PARAMS.filter(function (requiredFile) {\n return !$scope.repositoryInfo.params[requiredFile].value;\n });\n if (missingRequired.length > 0) {\n toastr.error('Missing required ontop repo file');\n return Promise.reject('Missing required ontop repo file');\n }\n return Promise.resolve();\n });\n }\n\n function loadPropertiesFile() {\n RepositoriesRestService.loadPropertiesFile($scope.repositoryInfo.params[$scope.propertiesFile].value)\n .success(function (driverData) {\n const driver = $scope.loadDriverByClass(driverData.driverClass);\n // If driver class is not found means that the selected driver is a GENERIC ONE\n if (driver) {\n $scope.selectedDriver.jdbc.hostName = driverData.hostName;\n $scope.selectedDriver.jdbc.port = parseInt(driverData.port);\n $scope.selectedDriver.jdbc.databaseName = driverData.databaseName;\n $scope.selectedDriver.jdbc.userName = driverData.userName;\n $scope.selectedDriver.jdbc.password = driverData.password;\n $scope.selectedDriver.jdbc.url = driverData.url;\n }\n }).error(function (data) {\n showErrorMsg('Error', data);\n $scope.uploadFileLoader = false;\n });\n }\n\n $scope.validateOntopPropertiesConnection = function () {\n updateProperties()\n .then(function () {\n RepositoriesRestService.validateOntopPropertiesConnection($scope.repositoryInfo.params.propertiesFile)\n .success(function () {\n toastr.success('Connection is successful');\n }).error(function (data) {\n showErrorMsg('Failed to connect', data);\n });\n });\n }\n\n $scope.isOntopRepoFileUploaded = function() {\n return $scope.repositoryInfo.params.propertiesFile &&\n $scope.repositoryInfo.params.propertiesFile.value.length > 0\n };\n\n function missingRequiredField() {\n const missing = REQUIRED_PROPERTIES_FIELD_PARAMS\n .filter(function (requiredField) {\n return !$scope.selectedDriver.jdbc[requiredField]\n });\n if (missing.length > 0) {\n toastr.error('Missing required field');\n return true;\n }\n return false;\n }\n\n function updateProperties() {\n if ($scope.selectedDriver.driverType !== $scope.genericDriverType) {\n if (missingRequiredField()) {\n return Promise.reject('Missing required field');\n }\n return updatePropertiesFile();\n }\n return Promise.resolve();\n }\n\n function updatePropertiesFile() {\n $scope.uploadFileLoader = true;\n return RepositoriesRestService\n .updatePropertiesFile($scope.repositoryInfo.params[$scope.propertiesFile].value, $scope.selectedDriver.jdbc)\n .success(function (data) {\n $scope.ontopRepoFileNames[$scope.propertiesFile] = getFileName(data.fileLocation);\n $scope.repositoryInfo.params[$scope.propertiesFile].value = data.fileLocation;\n $scope.uploadFileLoader = false;\n }).error(function (data) {\n showErrorMsg('Error', data);\n $scope.uploadFileLoader = false;\n });\n }\n\n $scope.isRequiredOntopRepoFile = function(file) {\n return REQUIRED_ONTOP_REPO_PARAMS.indexOf(file) > -1;\n };\n\n $scope.isRequiredField = function (field) {\n return REQUIRED_PROPERTIES_FIELD_PARAMS.indexOf(field) > -1\n || field === 'port' && $scope.selectedDriver.portRequired;\n };\n\n $scope.getFieldTooltip = function (field) {\n if (field === 'port' && $scope.selectedDriver.portRequired) {\n field = 'portIfRequired';\n }\n return $scope.repoTooltips.ontop[field];\n };\n\n $scope.editOntopRepo = function () {\n $scope.checkForRequiredOntopFiles()\n .then(function () {\n $scope.editRepository();\n }).catch(function (err) {\n // The catch block is empty, because error is handled in promise\n });\n }\n\n $scope.createOntopRepo = function () {\n if (!$scope.repositoryInfo.id) {\n toastr.error('Repository ID cannot be empty');\n return;\n }\n\n $scope.checkForRequiredOntopFiles()\n .then(function () {\n $scope.createRepo();\n }).catch(function (err) {\n // The catch block is empty, because error is handled in promise\n });\n };\n\n $scope.goBackToPrevious = function () {\n $scope.goBackToPreviousLocation();\n }\n\n function showErrorMsg (title, data) {\n const msg = getError(data);\n toastr.error(msg, title);\n }\n\n getSupportedDriversData()\n .then(function () {\n if ($scope.editRepoPage) {\n loadPropertiesFile();\n }\n });\n }\n}\n"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[82],{
|
|
2
|
-
//# sourceMappingURL=82.
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[82],{37:function(e,t,i){"use strict";i.r(t),i.d(t,"STATIC_RULESETS",(function(){return o})),i.d(t,"REPOSITORY_TYPES",(function(){return a})),i.d(t,"FILENAME_PATTERN",(function(){return n})),i.d(t,"NUMBER_PATTERN",(function(){return s})),i.d(t,"REPO_TOOLTIPS",(function(){return r}));const o=[{id:"empty",name:"No inference"},{id:"rdfs-optimized",name:"RDFS (Optimized)"},{id:"rdfs",name:"RDFS"},{id:"rdfsplus-optimized",name:"RDFS-Plus (Optimized)"},{id:"owl-horst-optimized",name:"OWL-Horst (Optimized)"},{id:"owl-horst",name:"OWL-Horst"},{id:"owl2-ql-optimized",name:"OWL2-QL (Optimized)"},{id:"owl2-ql",name:"OWL2-QL"},{id:"owl-max-optimized",name:"OWL-Max (Optimized)"},{id:"owl-max",name:"OWL-Max"},{id:"owl2-rl-optimized",name:"OWL2-RL (Optimized)"},{id:"owl2-rl",name:"OWL2-RL"}],a={graphdbRepo:"graphdb",free:"free",eeWorker:"worker",eeMaster:"master",ontop:"ontop",se:"se",fedx:"fedx"},n=new RegExp("^[a-zA-Z0-9-_]+$"),s=new RegExp("[0-9]"),r={id:"Unique identifier for the repository. The ID must contain only letters (a-z, A-Z), numbers (0-9), '-' and '_'.",title:"Human readable description of the repository.",readOnly:"Protects the repository against any changes.",ruleset:"Sets of axiomatic triples, consistency checks and entailment rules, which determine the applied semantics with a PIE file.",rulesetWarnings:{needsSameAs:"Disabling owl:sameAs for this ruleset may cause incomplete inference with owl:sameAs statements.",doesntNeedSameAs:"This ruleset does not need owl:sameAs, consider disabling it.",customRuleset:"If the custom ruleset does not use owl:sameAs, consider disabling it. <br>If the ruleset uses owl:sameAs, disabling it may cause incomplete inference with owl:sameAs statements."},disableSameAs:"GraphDB uses a non-rule implementation of owl:sameAs, which can be enabled or disabled independently of the ruleset.",checkForInconsistencies:"Enables the consistency checks from the ruleset.",isShacl:"Enables support for SHACL validation.",shaclOptions:{cacheSelectNodes:"The SHACL implementation retrieves a lot of its relevant data through running SPARQL Select queries against the repository and against the changes in the transaction. This is usually good for performance, but while validating large amounts of data disabling this cache will use less memory.",undefinedTargetValidatesAllSubjects:"If no target is defined for a NodeShape, that NodeShape will be ignored. Enabling this will make such NodeShapes wildcard shapes and validate all subjects. Equivalent to setting sh:targetClass to owl:Thing or rdfs:Resource in an environment with a reasoner.",logValidationPlans:"Log (INFO) the executed validation plans as GraphViz DOT. It is recommended to disable parallel validation when this is enabled.",logValidationViolations:"Log (INFO) a list of violations and the triples that caused the violations. It is recommended to disable parallel validation when this is enabled.",parallelValidation:"Run SHACL validation in parallel.",globalLogValidationExecution:"Log (INFO) every execution step of the SHACL validation. This is fairly costly and should not be used in production. It is recommended to disable parallel validation when this is enabled.",performanceLogging:"Log (INFO) the execution time per shape. It is recommended to disable parallel validation and caching of select nodes when this is enabled.",eclipseRdf4jShaclExtensions:"Activates RDF4J's SHACL extensions that provide additional functionality (experimental).",dashDataShapes:"Activates DASH Data Shapes extensions that provide additional functionality (experimental)."},entityIdSize:"Defines the bit size of internal IDs used to index entities (URIs, blank nodes, literals, and RDF* embedded triples).<br>Use 40 bit ID only if you expect more than 2 billion unique RDF values.",enableContextIndex:"Builds an additional Context-Predicate-Subject-Object index to boost the SPARQL query performance of queries with GRAPH/FROM/FROM NAMED clauses.",enablePredicateList:"Enables the mappings from an entity (subject or object) to its predicates; enabling it can significantly speed up queries that use wildcard predicate patterns.",queryTimeout:"Sets the number of seconds after which the evaluation of a query will be terminated; values less than or equal to zero mean no limit.",throwQueryEvaluationExceptionOnTimeout:"Repository throws QueryEvaluationException when the duration of a query execution exceeds the timeout parameter.",queryLimitResults:"Sets the maximum number of results returned from a query after which the evaluation of a query will be terminated; values less than or equal to zero mean no limit.",nonInterpretablePredicates:"Semicolon-delimited list of predicates (full URIs) that GraphDB will not try to process with the registered GraphDB plugins.",ontop:{driverType:"Determines the type of SQL database to connect to.",propertiesFile:"Describes the JDBC configuration such as hostname and database name to connect to.",hostName:"The JDBC hostname to connect to.",port:"The JDBC port to connect to if different from the default for the chosen JDBC driver.",portIfRequired:"The JDBC port to connect to.",databaseName:"The database name to connect to.",userName:"The username to use for the JDBC connection.",password:"The password to use for the JDBC connection.",driverClass:"Classname of the chosen JDBC driver. It must be on the classpath (in the lib directory).",driverClassWarning:"JDBC driver not found in the classpath, please save it in the lib directory and restart GraphDB",url:"The JDBC URL that will be used. It is constructed using the supplied hostname, port and database name.",obdaFile:"Describes the mapping from SQL to RDF in either the OBDA or the R2RML format.",owlFile:"Specifies relations between the classes and properties in the cosntructed RDF graph. It can be in any supported RDF format.",constraintFile:"Specifies override of SQL primary and foreign keys.",testConn:"Attempts to establish a connection to the SQL database to test if the supplied configuration is correct."},fedx:{repositoryNotExistWarning:"The repository member has been removed from the local repositories",localReposInstructions:"Click on a repo to add a local repository as a member",withLogQueries:"Set whether to log queries",withDebugQueryPlan:"Whether to print the optimized query execution plan to stdout",enforceMaxQueryTime:"Max query time in seconds, 0 to disable",withIncludeInferredDefault:"Set whether to include inferred statements or not",withBoundJoinBlockSize:"Set the block size for bound joins",withJoinWorkerThreads:"Set the number of join worker threads for parallelization",withLeftJoinWorkerThreads:"Set the number of left join worker threads",unionWorkerThreads:"Set the number of union worker threads for parallelization",withLogQueryPlan:"Whether to log the query plan",withEnableServiceAsBoundJoin:"Whether external SERVICE clauses are evaluated using bound join",withSourceSelectionCacheSpec:"The cache specification for the SourceSelectionMemoryCache",removeMember:"Remove repository as a FedX member",editRepository:"Edit repository",setAsWritable:"Set repository as writable"}}}}]);
|
|
2
|
+
//# sourceMappingURL=82.74d50036c210cb10b7f5.bundle.js.map
|
package/dist/{82.9b4d4dc326055aa47e04.bundle.js.map → 82.74d50036c210cb10b7f5.bundle.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///./src/js/angular/repositories/repository.constants.js"],"names":["STATIC_RULESETS","id","name","REPOSITORY_TYPES","graphdbRepo","free","eeWorker","eeMaster","ontop","se","fedx","FILENAME_PATTERN","RegExp","NUMBER_PATTERN","REPO_TOOLTIPS","title","readOnly","ruleset","rulesetWarnings","needsSameAs","doesntNeedSameAs","customRuleset","disableSameAs","checkForInconsistencies","isShacl","shaclOptions","cacheSelectNodes","undefinedTargetValidatesAllSubjects","logValidationPlans","logValidationViolations","parallelValidation","globalLogValidationExecution","performanceLogging","eclipseRdf4jShaclExtensions","dashDataShapes","entityIdSize","enableContextIndex","enablePredicateList","queryTimeout","throwQueryEvaluationExceptionOnTimeout","queryLimitResults","nonInterpretablePredicates","driverType","propertiesFile","hostName","port","portIfRequired","databaseName","userName","password","driverClass","driverClassWarning","url","obdaFile","owlFile","constraintFile","testConn","repositoryNotExistWarning","localReposInstructions","withLogQueries","withDebugQueryPlan","enforceMaxQueryTime","withIncludeInferredDefault","withBoundJoinBlockSize","withJoinWorkerThreads","withLeftJoinWorkerThreads","unionWorkerThreads","withLogQueryPlan","withEnableServiceAsBoundJoin","withSourceSelectionCacheSpec","removeMember","editRepository","setAsWritable"],"mappings":"0FAAA,sPAAO,MAAMA,EAAkB,CAC3B,CAACC,GAAI,QAASC,KAAM,gBACpB,CAACD,GAAI,iBAAkBC,KAAM,oBAC7B,CAACD,GAAI,OAAQC,KAAM,QACnB,CAACD,GAAI,qBAAsBC,KAAM,yBACjC,CAACD,GAAI,sBAAuBC,KAAM,yBAClC,CAACD,GAAI,YAAaC,KAAM,aACxB,CAACD,GAAI,oBAAqBC,KAAM,uBAChC,CAACD,GAAI,UAAWC,KAAM,WACtB,CAACD,GAAI,oBAAqBC,KAAM,uBAChC,CAACD,GAAI,UAAWC,KAAM,WACtB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const STATIC_RULESETS = [\n {id: 'empty', name: 'No inference'},\n {id: 'rdfs-optimized', name: 'RDFS (Optimized)'},\n {id: 'rdfs', name: 'RDFS'},\n {id: 'rdfsplus-optimized', name: 'RDFS-Plus (Optimized)'},\n {id: 'owl-horst-optimized', name: 'OWL-Horst (Optimized)'},\n {id: 'owl-horst', name: 'OWL-Horst'},\n {id: 'owl2-ql-optimized', name: 'OWL2-QL (Optimized)'},\n {id: 'owl2-ql', name: 'OWL2-QL'},\n {id: 'owl-max-optimized', name: 'OWL-Max (Optimized)'},\n {id: 'owl-max', name: 'OWL-Max'},\n {id: 'owl2-rl-optimized', name: 'OWL2-RL (Optimized)'},\n {id: 'owl2-rl', name: 'OWL2-RL'},\n\n];\n\nexport const REPOSITORY_TYPES = {graphdbRepo: 'graphdb', free: 'free', eeWorker: 'worker', eeMaster: 'master', ontop: 'ontop', se: 'se', fedx: 'fedx'};\nexport const FILENAME_PATTERN = new RegExp('^[a-zA-Z0-9-_]+$');\nexport const NUMBER_PATTERN = new RegExp('[0-9]');\n\nexport const REPO_TOOLTIPS = {\n id: \"Unique identifier for the repository. The ID must contain only letters (a-z, A-Z), numbers (0-9), '-' and '_'.\",\n title: \"Human readable description of the repository.\",\n readOnly: \"Protects the repository against any changes.\",\n ruleset: \"Sets of axiomatic triples, consistency checks and entailment rules, \" +\n \"which determine the applied semantics with a PIE file.\",\n rulesetWarnings: {\n needsSameAs: \"Disabling owl:sameAs for this ruleset may cause incomplete inference with owl:sameAs statements.\",\n doesntNeedSameAs: \"This ruleset does not need owl:sameAs, consider disabling it.\",\n customRuleset: \"If the custom ruleset does not use owl:sameAs, consider disabling it. <br>\" +\n \"If the ruleset uses owl:sameAs, disabling it may cause incomplete inference with owl:sameAs statements.\"\n },\n disableSameAs: \"GraphDB uses a non-rule implementation of owl:sameAs, \" +\n \"which can be enabled or disabled independently of the ruleset.\",\n checkForInconsistencies: \"Enables the consistency checks from the ruleset.\",\n isShacl: \"Enables support for SHACL validation.\",\n shaclOptions: {\n cacheSelectNodes: \"The SHACL implementation retrieves a lot of its relevant data through running \" +\n \"SPARQL Select queries against the repository and against the changes in the transaction. \" +\n \"This is usually good for performance, but while validating large amounts of data disabling this cache will use less memory.\",\n undefinedTargetValidatesAllSubjects: \"If no target is defined for a NodeShape, that NodeShape will be ignored. \" +\n \"Enabling this will make such NodeShapes wildcard shapes and validate all subjects. \" +\n \"Equivalent to setting sh:targetClass to owl:Thing or rdfs:Resource in an environment with a reasoner.\",\n logValidationPlans: \"Log (INFO) the executed validation plans as GraphViz DOT. \" +\n \"It is recommended to disable parallel validation when this is enabled.\",\n logValidationViolations: \"Log (INFO) a list of violations and the triples that caused the violations. \" +\n \"It is recommended to disable parallel validation when this is enabled.\",\n parallelValidation: \"Run SHACL validation in parallel.\",\n globalLogValidationExecution: \"Log (INFO) every execution step of the SHACL validation. \" +\n \"This is fairly costly and should not be used in production. \" +\n \"It is recommended to disable parallel validation when this is enabled.\",\n performanceLogging: \"Log (INFO) the execution time per shape. \" +\n \"It is recommended to disable parallel validation and caching of select nodes when this is enabled.\",\n eclipseRdf4jShaclExtensions: \"Activates RDF4J's SHACL extensions that provide additional functionality (experimental).\",\n dashDataShapes: \"Activates DASH Data Shapes extensions that provide additional functionality (experimental).\"\n },\n entityIdSize: \"Defines the bit size of internal IDs used to index entities (URIs, blank nodes, literals, and RDF* embedded triples).\" +\n \"<br>Use 40 bit ID only if you expect more than 2 billion unique RDF values.\",\n enableContextIndex: \"Builds an additional Context-Predicate-Subject-Object index to boost the \" +\n \"SPARQL query performance of queries with GRAPH/FROM/FROM NAMED clauses.\",\n enablePredicateList: \"Enables the mappings from an entity (subject or object) to its predicates; \" +\n \"enabling it can significantly speed up queries that use wildcard predicate patterns.\",\n queryTimeout: \"Sets the number of seconds after which the evaluation of a query will be terminated; \" +\n \"values less than or equal to zero mean no limit.\",\n throwQueryEvaluationExceptionOnTimeout: \"Repository throws QueryEvaluationException when the duration of a query execution \" +\n \"exceeds the timeout parameter.\",\n queryLimitResults: \"Sets the maximum number of results returned from a query after which the evaluation of \" +\n \"a query will be terminated; values less than or equal to zero mean no limit.\",\n nonInterpretablePredicates: \"Semicolon-delimited list of predicates (full URIs) that GraphDB will not try to process \" +\n \"with the registered GraphDB plugins.\",\n ontop: {\n driverType: \"Determines the type of SQL database to connect to.\",\n propertiesFile: \"Describes the JDBC configuration such as hostname and database name to connect to.\",\n hostName: 'The JDBC hostname to connect to.',\n port: \"The JDBC port to connect to if different from the default for the chosen JDBC driver.\",\n portIfRequired: \"The JDBC port to connect to.\",\n databaseName: 'The database name to connect to.',\n userName: 'The username to use for the JDBC connection.',\n password: 'The password to use for the JDBC connection.',\n driverClass: 'Classname of the chosen JDBC driver. It must be on the classpath (in the lib directory).',\n driverClassWarning: \"JDBC driver not found in the classpath, please save it in the lib directory and restart GraphDB\",\n url: 'The JDBC URL that will be used. It is constructed using the supplied hostname, port and database name.',\n obdaFile: \"Describes the mapping from SQL to RDF in either the OBDA or the R2RML format.\",\n owlFile: \"Specifies relations between the classes and properties in the cosntructed RDF graph. \" +\n \"It can be in any supported RDF format.\",\n constraintFile: \"Specifies override of SQL primary and foreign keys.\",\n testConn: \"Attempts to establish a connection to the SQL database to test if the supplied configuration is correct.\"\n },\n fedx: {\n repositoryNotExistWarning: 'The repository member has been removed from the local repositories',\n localReposInstructions: 'Click on a repo to add a local repository as a member',\n withLogQueries: 'Set whether to log queries',\n withDebugQueryPlan: 'Whether to print the optimized query execution plan to stdout',\n enforceMaxQueryTime: 'Max query time in seconds, 0 to disable',\n withIncludeInferredDefault: 'Set whether to include inferred statements or not',\n withBoundJoinBlockSize: 'Set the block size for bound joins',\n withJoinWorkerThreads: 'Set the number of join worker threads for parallelization',\n withLeftJoinWorkerThreads: 'Set the number of left join worker threads',\n unionWorkerThreads: 'Set the number of union worker threads for parallelization',\n withLogQueryPlan: 'Whether to log the query plan',\n withEnableServiceAsBoundJoin: 'Whether external SERVICE clauses are evaluated using bound join',\n withSourceSelectionCacheSpec: 'The cache specification for the SourceSelectionMemoryCache',\n removeMember: 'Remove repository as a FedX member',\n editRepository: 'Edit repository',\n setAsWritable: 'Set repository as writable'\n }\n};\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack:///./src/js/angular/repositories/repository.constants.js"],"names":["STATIC_RULESETS","id","name","REPOSITORY_TYPES","graphdbRepo","free","eeWorker","eeMaster","ontop","se","fedx","FILENAME_PATTERN","RegExp","NUMBER_PATTERN","REPO_TOOLTIPS","title","readOnly","ruleset","rulesetWarnings","needsSameAs","doesntNeedSameAs","customRuleset","disableSameAs","checkForInconsistencies","isShacl","shaclOptions","cacheSelectNodes","undefinedTargetValidatesAllSubjects","logValidationPlans","logValidationViolations","parallelValidation","globalLogValidationExecution","performanceLogging","eclipseRdf4jShaclExtensions","dashDataShapes","entityIdSize","enableContextIndex","enablePredicateList","queryTimeout","throwQueryEvaluationExceptionOnTimeout","queryLimitResults","nonInterpretablePredicates","driverType","propertiesFile","hostName","port","portIfRequired","databaseName","userName","password","driverClass","driverClassWarning","url","obdaFile","owlFile","constraintFile","testConn","repositoryNotExistWarning","localReposInstructions","withLogQueries","withDebugQueryPlan","enforceMaxQueryTime","withIncludeInferredDefault","withBoundJoinBlockSize","withJoinWorkerThreads","withLeftJoinWorkerThreads","unionWorkerThreads","withLogQueryPlan","withEnableServiceAsBoundJoin","withSourceSelectionCacheSpec","removeMember","editRepository","setAsWritable"],"mappings":"0FAAA,sPAAO,MAAMA,EAAkB,CAC3B,CAACC,GAAI,QAASC,KAAM,gBACpB,CAACD,GAAI,iBAAkBC,KAAM,oBAC7B,CAACD,GAAI,OAAQC,KAAM,QACnB,CAACD,GAAI,qBAAsBC,KAAM,yBACjC,CAACD,GAAI,sBAAuBC,KAAM,yBAClC,CAACD,GAAI,YAAaC,KAAM,aACxB,CAACD,GAAI,oBAAqBC,KAAM,uBAChC,CAACD,GAAI,UAAWC,KAAM,WACtB,CAACD,GAAI,oBAAqBC,KAAM,uBAChC,CAACD,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7f5.bundle.js","sourcesContent":["export const STATIC_RULESETS = [\n {id: 'empty', name: 'No inference'},\n {id: 'rdfs-optimized', name: 'RDFS (Optimized)'},\n {id: 'rdfs', name: 'RDFS'},\n {id: 'rdfsplus-optimized', name: 'RDFS-Plus (Optimized)'},\n {id: 'owl-horst-optimized', name: 'OWL-Horst (Optimized)'},\n {id: 'owl-horst', name: 'OWL-Horst'},\n {id: 'owl2-ql-optimized', name: 'OWL2-QL (Optimized)'},\n {id: 'owl2-ql', name: 'OWL2-QL'},\n {id: 'owl-max-optimized', name: 'OWL-Max (Optimized)'},\n {id: 'owl-max', name: 'OWL-Max'},\n {id: 'owl2-rl-optimized', name: 'OWL2-RL (Optimized)'},\n {id: 'owl2-rl', name: 'OWL2-RL'},\n\n];\n\nexport const REPOSITORY_TYPES = {graphdbRepo: 'graphdb', free: 'free', eeWorker: 'worker', eeMaster: 'master', ontop: 'ontop', se: 'se', fedx: 'fedx'};\nexport const FILENAME_PATTERN = new RegExp('^[a-zA-Z0-9-_]+$');\nexport const NUMBER_PATTERN = new RegExp('[0-9]');\n\nexport const REPO_TOOLTIPS = {\n id: \"Unique identifier for the repository. The ID must contain only letters (a-z, A-Z), numbers (0-9), '-' and '_'.\",\n title: \"Human readable description of the repository.\",\n readOnly: \"Protects the repository against any changes.\",\n ruleset: \"Sets of axiomatic triples, consistency checks and entailment rules, \" +\n \"which determine the applied semantics with a PIE file.\",\n rulesetWarnings: {\n needsSameAs: \"Disabling owl:sameAs for this ruleset may cause incomplete inference with owl:sameAs statements.\",\n doesntNeedSameAs: \"This ruleset does not need owl:sameAs, consider disabling it.\",\n customRuleset: \"If the custom ruleset does not use owl:sameAs, consider disabling it. <br>\" +\n \"If the ruleset uses owl:sameAs, disabling it may cause incomplete inference with owl:sameAs statements.\"\n },\n disableSameAs: \"GraphDB uses a non-rule implementation of owl:sameAs, \" +\n \"which can be enabled or disabled independently of the ruleset.\",\n checkForInconsistencies: \"Enables the consistency checks from the ruleset.\",\n isShacl: \"Enables support for SHACL validation.\",\n shaclOptions: {\n cacheSelectNodes: \"The SHACL implementation retrieves a lot of its relevant data through running \" +\n \"SPARQL Select queries against the repository and against the changes in the transaction. \" +\n \"This is usually good for performance, but while validating large amounts of data disabling this cache will use less memory.\",\n undefinedTargetValidatesAllSubjects: \"If no target is defined for a NodeShape, that NodeShape will be ignored. \" +\n \"Enabling this will make such NodeShapes wildcard shapes and validate all subjects. \" +\n \"Equivalent to setting sh:targetClass to owl:Thing or rdfs:Resource in an environment with a reasoner.\",\n logValidationPlans: \"Log (INFO) the executed validation plans as GraphViz DOT. \" +\n \"It is recommended to disable parallel validation when this is enabled.\",\n logValidationViolations: \"Log (INFO) a list of violations and the triples that caused the violations. \" +\n \"It is recommended to disable parallel validation when this is enabled.\",\n parallelValidation: \"Run SHACL validation in parallel.\",\n globalLogValidationExecution: \"Log (INFO) every execution step of the SHACL validation. \" +\n \"This is fairly costly and should not be used in production. \" +\n \"It is recommended to disable parallel validation when this is enabled.\",\n performanceLogging: \"Log (INFO) the execution time per shape. \" +\n \"It is recommended to disable parallel validation and caching of select nodes when this is enabled.\",\n eclipseRdf4jShaclExtensions: \"Activates RDF4J's SHACL extensions that provide additional functionality (experimental).\",\n dashDataShapes: \"Activates DASH Data Shapes extensions that provide additional functionality (experimental).\"\n },\n entityIdSize: \"Defines the bit size of internal IDs used to index entities (URIs, blank nodes, literals, and RDF* embedded triples).\" +\n \"<br>Use 40 bit ID only if you expect more than 2 billion unique RDF values.\",\n enableContextIndex: \"Builds an additional Context-Predicate-Subject-Object index to boost the \" +\n \"SPARQL query performance of queries with GRAPH/FROM/FROM NAMED clauses.\",\n enablePredicateList: \"Enables the mappings from an entity (subject or object) to its predicates; \" +\n \"enabling it can significantly speed up queries that use wildcard predicate patterns.\",\n queryTimeout: \"Sets the number of seconds after which the evaluation of a query will be terminated; \" +\n \"values less than or equal to zero mean no limit.\",\n throwQueryEvaluationExceptionOnTimeout: \"Repository throws QueryEvaluationException when the duration of a query execution \" +\n \"exceeds the timeout parameter.\",\n queryLimitResults: \"Sets the maximum number of results returned from a query after which the evaluation of \" +\n \"a query will be terminated; values less than or equal to zero mean no limit.\",\n nonInterpretablePredicates: \"Semicolon-delimited list of predicates (full URIs) that GraphDB will not try to process \" +\n \"with the registered GraphDB plugins.\",\n ontop: {\n driverType: \"Determines the type of SQL database to connect to.\",\n propertiesFile: \"Describes the JDBC configuration such as hostname and database name to connect to.\",\n hostName: 'The JDBC hostname to connect to.',\n port: \"The JDBC port to connect to if different from the default for the chosen JDBC driver.\",\n portIfRequired: \"The JDBC port to connect to.\",\n databaseName: 'The database name to connect to.',\n userName: 'The username to use for the JDBC connection.',\n password: 'The password to use for the JDBC connection.',\n driverClass: 'Classname of the chosen JDBC driver. It must be on the classpath (in the lib directory).',\n driverClassWarning: \"JDBC driver not found in the classpath, please save it in the lib directory and restart GraphDB\",\n url: 'The JDBC URL that will be used. It is constructed using the supplied hostname, port and database name.',\n obdaFile: \"Describes the mapping from SQL to RDF in either the OBDA or the R2RML format.\",\n owlFile: \"Specifies relations between the classes and properties in the cosntructed RDF graph. \" +\n \"It can be in any supported RDF format.\",\n constraintFile: \"Specifies override of SQL primary and foreign keys.\",\n testConn: \"Attempts to establish a connection to the SQL database to test if the supplied configuration is correct.\"\n },\n fedx: {\n repositoryNotExistWarning: 'The repository member has been removed from the local repositories',\n localReposInstructions: 'Click on a repo to add a local repository as a member',\n withLogQueries: 'Set whether to log queries',\n withDebugQueryPlan: 'Whether to print the optimized query execution plan to stdout',\n enforceMaxQueryTime: 'Max query time in seconds, 0 to disable',\n withIncludeInferredDefault: 'Set whether to include inferred statements or not',\n withBoundJoinBlockSize: 'Set the block size for bound joins',\n withJoinWorkerThreads: 'Set the number of join worker threads for parallelization',\n withLeftJoinWorkerThreads: 'Set the number of left join worker threads',\n unionWorkerThreads: 'Set the number of union worker threads for parallelization',\n withLogQueryPlan: 'Whether to log the query plan',\n withEnableServiceAsBoundJoin: 'Whether external SERVICE clauses are evaluated using bound join',\n withSourceSelectionCacheSpec: 'The cache specification for the SourceSelectionMemoryCache',\n removeMember: 'Remove repository as a FedX member',\n editRepository: 'Edit repository',\n setAsWritable: 'Set repository as writable'\n }\n};\n"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[84],{
|
|
2
|
-
//# sourceMappingURL=84.
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[84],{44:function(e,o){angular.module("graphdb.framework.rest.cluster.service",[]).factory("ClusterRestService",r),r.$inject=["$http"];const t="rest/cluster/masters";function r(e){return{getMaster:function(o,r={}){return e.get(`${t}/${o}`,r)},configureMaster:function(o,r,n){return e({url:`${t}/${o}?masterLocation=${encodeURIComponent(r)}`,method:"POST",data:n})},cloneRepository:function(o){return e.post("rest/cluster/nodes/clone",{cloningNodeLocation:o.currentNodeLocation,cloningNodeRepositoryID:o.selectedNodeName,newNodeRepositoryID:o.repositoryID,newNodeLocation:o.locationUri,newNodeTitle:o.repositoryTitle})},connectWorker:function(o,r,n){return e({url:`${t}/${o}/workers/`,method:"POST",data:{workerURL:n,masterLocation:r}})},disconnectWorker:function(o,r){return e({url:`${t}/${o}/workers?${r}`,method:"DELETE",dataType:"text"})},disconnectNodes:function(o,r){return e({url:`${t}/${o}/peers?${r}`,method:"DELETE",dataType:"text"})},connectNodes:function(o,r){return e({url:`${t}/${o}/peers`,method:"POST",data:r})}}}}}]);
|
|
2
|
+
//# sourceMappingURL=84.7f42dd9d7dc01baaf465.bundle.js.map
|
package/dist/{84.fab513b88806deb0981a.bundle.js.map → 84.7f42dd9d7dc01baaf465.bundle.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///./src/js/angular/rest/cluster.rest.service.js"],"names":["angular","module","factory","ClusterRestService","$inject","CLUSTER_MASTERS_ENDPOINT","$http","getMaster","masterRepositoryID","data","get","configureMaster","master","location","url","encodeURIComponent","method","cloneRepository","post","cloningNodeLocation","currentNodeLocation","cloningNodeRepositoryID","selectedNodeName","newNodeRepositoryID","repositoryID","newNodeLocation","locationUri","newNodeTitle","repositoryTitle","connectWorker","masterLocation","workerLocation","workerURL","disconnectWorker","params","dataType","disconnectNodes","connectNodes"],"mappings":"2EAAAA,QACKC,OAAO,yCAA0C,IACjDC,QAAQ,qBAAsBC,GAEnCA,EAAmBC,QAAU,CAAC,SAE9B,MAAMC,EAA2B,uBAEjC,SAASF,EAAmBG,GACxB,MAAO,CACHC,UASJ,SAAmBC,EAAoBC,EAAO,IAC1C,OAAOH,EAAMI,IAAI,GAAGL,KAA4BG,IAAsBC,IATtEE,gBAYJ,SAAyBC,EAAQC,EAAUJ,GACvC,OAAOH,EAAM,CACTQ,IAAK,GAAGT,KAA4BO,oBAAyBG,mBAAmBF,KAChFG,OAAQ,OACRP,UAfJQ,gBAmBJ,SAAyBR,GACrB,OAAOH,EAAMY,KAAK,2BAA4B,CAC1CC,oBAAqBV,EAAKW,oBAC1BC,wBAAyBZ,EAAKa,iBAC9BC,oBAAqBd,EAAKe,aAC1BC,gBAAiBhB,EAAKiB,YACtBC,aAAclB,EAAKmB,mBAxBvBC,cA4BJ,SAAuBjB,EAAQkB,EAAgBC,GAC3C,OAAOzB,EAAM,CACTQ,IAAK,GAAGT,KAA4BO,aACpCI,OAAQ,OACRP,KAAM,CACFuB,UAAWD,EACXD,eAAgBA,MAjCxBG,iBAsCJ,SAA0BrB,EAAQsB,GAC9B,OAAO5B,EAAM,CACTQ,IAAK,GAAGT,KAA4BO,aAAkBsB,IACtDlB,OAAQ,SACRmB,SAAU,UAzCdC,gBA6CJ,SAAyBxB,EAAQsB,GAC7B,OAAO5B,EAAM,CACTQ,IAAK,GAAGT,KAA4BO,WAAgBsB,IACpDlB,OAAQ,SACRmB,SAAU,UAhDdE,aAoDJ,SAAsBzB,EAAQH,GAC1B,OAAOH,EAAM,CACTQ,IAAK,GAAGT,KAA4BO,UACpCI,OAAQ,OACRP","file":"84.
|
|
1
|
+
{"version":3,"sources":["webpack:///./src/js/angular/rest/cluster.rest.service.js"],"names":["angular","module","factory","ClusterRestService","$inject","CLUSTER_MASTERS_ENDPOINT","$http","getMaster","masterRepositoryID","data","get","configureMaster","master","location","url","encodeURIComponent","method","cloneRepository","post","cloningNodeLocation","currentNodeLocation","cloningNodeRepositoryID","selectedNodeName","newNodeRepositoryID","repositoryID","newNodeLocation","locationUri","newNodeTitle","repositoryTitle","connectWorker","masterLocation","workerLocation","workerURL","disconnectWorker","params","dataType","disconnectNodes","connectNodes"],"mappings":"2EAAAA,QACKC,OAAO,yCAA0C,IACjDC,QAAQ,qBAAsBC,GAEnCA,EAAmBC,QAAU,CAAC,SAE9B,MAAMC,EAA2B,uBAEjC,SAASF,EAAmBG,GACxB,MAAO,CACHC,UASJ,SAAmBC,EAAoBC,EAAO,IAC1C,OAAOH,EAAMI,IAAI,GAAGL,KAA4BG,IAAsBC,IATtEE,gBAYJ,SAAyBC,EAAQC,EAAUJ,GACvC,OAAOH,EAAM,CACTQ,IAAK,GAAGT,KAA4BO,oBAAyBG,mBAAmBF,KAChFG,OAAQ,OACRP,UAfJQ,gBAmBJ,SAAyBR,GACrB,OAAOH,EAAMY,KAAK,2BAA4B,CAC1CC,oBAAqBV,EAAKW,oBAC1BC,wBAAyBZ,EAAKa,iBAC9BC,oBAAqBd,EAAKe,aAC1BC,gBAAiBhB,EAAKiB,YACtBC,aAAclB,EAAKmB,mBAxBvBC,cA4BJ,SAAuBjB,EAAQkB,EAAgBC,GAC3C,OAAOzB,EAAM,CACTQ,IAAK,GAAGT,KAA4BO,aACpCI,OAAQ,OACRP,KAAM,CACFuB,UAAWD,EACXD,eAAgBA,MAjCxBG,iBAsCJ,SAA0BrB,EAAQsB,GAC9B,OAAO5B,EAAM,CACTQ,IAAK,GAAGT,KAA4BO,aAAkBsB,IACtDlB,OAAQ,SACRmB,SAAU,UAzCdC,gBA6CJ,SAAyBxB,EAAQsB,GAC7B,OAAO5B,EAAM,CACTQ,IAAK,GAAGT,KAA4BO,WAAgBsB,IACpDlB,OAAQ,SACRmB,SAAU,UAhDdE,aAoDJ,SAAsBzB,EAAQH,GAC1B,OAAOH,EAAM,CACTQ,IAAK,GAAGT,KAA4BO,UACpCI,OAAQ,OACRP","file":"84.7f42dd9d7dc01baaf465.bundle.js","sourcesContent":["angular\n .module('graphdb.framework.rest.cluster.service', [])\n .factory('ClusterRestService', ClusterRestService);\n\nClusterRestService.$inject = ['$http'];\n\nconst CLUSTER_MASTERS_ENDPOINT = 'rest/cluster/masters';\n\nfunction ClusterRestService($http) {\n return {\n getMaster,\n configureMaster,\n cloneRepository,\n connectWorker,\n disconnectWorker,\n disconnectNodes,\n connectNodes\n };\n\n function getMaster(masterRepositoryID, data = {}) {\n return $http.get(`${CLUSTER_MASTERS_ENDPOINT}/${masterRepositoryID}`, data);\n }\n\n function configureMaster(master, location, data) {\n return $http({\n url: `${CLUSTER_MASTERS_ENDPOINT}/${master}?masterLocation=${encodeURIComponent(location)}`,\n method: 'POST',\n data\n });\n }\n\n function cloneRepository(data) {\n return $http.post('rest/cluster/nodes/clone', {\n cloningNodeLocation: data.currentNodeLocation,\n cloningNodeRepositoryID: data.selectedNodeName,\n newNodeRepositoryID: data.repositoryID,\n newNodeLocation: data.locationUri,\n newNodeTitle: data.repositoryTitle\n })\n }\n\n function connectWorker(master, masterLocation, workerLocation) {\n return $http({\n url: `${CLUSTER_MASTERS_ENDPOINT}/${master}/workers/`,\n method: 'POST',\n data: {\n workerURL: workerLocation,\n masterLocation: masterLocation\n }\n })\n }\n\n function disconnectWorker(master, params) {\n return $http({\n url: `${CLUSTER_MASTERS_ENDPOINT}/${master}/workers?${params}`,\n method: 'DELETE',\n dataType: 'text'\n });\n }\n\n function disconnectNodes(master, params) {\n return $http({\n url: `${CLUSTER_MASTERS_ENDPOINT}/${master}/peers?${params}`,\n method: 'DELETE',\n dataType: 'text'\n });\n }\n\n function connectNodes(master, data) {\n return $http({\n url: `${CLUSTER_MASTERS_ENDPOINT}/${master}/peers`,\n method: 'POST',\n data\n });\n }\n}\n"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[86],{
|
|
2
|
-
//# sourceMappingURL=86.
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[86],{53:function(e,n){angular.module("graphdb.framework.rest.graphconfig.service",[]).factory("GraphConfigRestService",o);const t="rest/explore-graph/",r=`${t}config`;function o(e){return{getGraphConfigs:function(){return e.get(r)},getGraphConfigSamples:function(){return e.get(`${t}samples`)},loadGraphForConfig:function(n,t,o,i){return e.get(`${r}/graph/${encodeURIComponent(n.id)}?includeInferred=${t}&linksLimit=${o}&sameAsState=${i}`)},getConfig:function(n){return e.get(`${r}/${encodeURIComponent(n)}`)},createGraphConfig:function(n){return e.post(r,n)},updateGraphConfig:function(n){return e.put(`${r}/${encodeURIComponent(n.id)}`,n)},deleteGraphConfig:function(n){return e.delete(`${r}/${encodeURIComponent(n.id)}`)},validateQuery:function(n,r,o,i,a){return e({method:"POST",url:`${t}validate`,data:{query:n,queryType:r,params:o,all:i,oneOf:a}})}}}o.$inject=["$http"]}}]);
|
|
2
|
+
//# sourceMappingURL=86.581cbc54b6c6b6ea9f19.bundle.js.map
|
package/dist/{86.b319a8b9fcabecd7a6c7.bundle.js.map → 86.581cbc54b6c6b6ea9f19.bundle.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///./src/js/angular/rest/graph-config.rest.service.js"],"names":["angular","module","factory","GraphConfigRestService","EXPLORE_GRAPH_ENDPOINT","EXPLORE_GRAPH_CONFIG_ENDPOINT","$http","getGraphConfigs","get","getGraphConfigSamples","loadGraphForConfig","config","includeInferred","linksLimit","startQuerySameAs","encodeURIComponent","id","getConfig","createGraphConfig","post","updateGraphConfig","put","deleteGraphConfig","delete","validateQuery","query","queryType","params","all","oneOf","method","url","data","$inject"],"mappings":"2EAAAA,QACKC,OAAO,6CAA8C,IACrDC,QAAQ,yBAA0BC,GAEvC,MAAMC,EAAyB,sBACzBC,EAAgC,GAAGD,UAIzC,SAASD,EAAuBG,GAC5B,MAAO,CACHC,gBAUJ,WACI,OAAOD,EAAME,IAAIH,IAVjBI,sBAaJ,WACI,OAAOH,EAAME,IAAI,GAAGJ,aAbpBM,mBAgBJ,SAA4BC,EAAQC,EAAiBC,EAAYC,GAC7D,OAAOR,EAAME,IAAI,GAAGH,WAAuCU,mBAAmBJ,EAAOK,uBAAuBJ,gBAA8BC,iBAA0BC,MAhBpKG,UAmBJ,SAAmBD,GACf,OAAOV,EAAME,IAAI,GAAGH,KAAiCU,mBAAmBC,OAnBxEE,kBAsBJ,SAA2BP,GACvB,OAAOL,EAAMa,KAAKd,EAA+BM,IAtBjDS,kBAyBJ,SAA2BT,GACvB,OAAOL,EAAMe,IAAI,GAAGhB,KAAiCU,mBAAmBJ,EAAOK,MAAOL,IAzBtFW,kBA4BJ,SAA2BX,GACvB,OAAOL,EAAMiB,OAAO,GAAGlB,KAAiCU,mBAAmBJ,EAAOK,QA5BlFQ,cA+BJ,SAAuBC,EAAOC,EAAWC,EAAQC,EAAKC,GAClD,OAAOvB,EAAM,CACTwB,OAAQ,OACRC,IAAK,GAAG3B,YACR4B,KAAM,CACFP,QACAC,YACAC,SACAC,MACAC,aAnDhB1B,EAAuB8B,QAAU,CAAC","file":"86.
|
|
1
|
+
{"version":3,"sources":["webpack:///./src/js/angular/rest/graph-config.rest.service.js"],"names":["angular","module","factory","GraphConfigRestService","EXPLORE_GRAPH_ENDPOINT","EXPLORE_GRAPH_CONFIG_ENDPOINT","$http","getGraphConfigs","get","getGraphConfigSamples","loadGraphForConfig","config","includeInferred","linksLimit","startQuerySameAs","encodeURIComponent","id","getConfig","createGraphConfig","post","updateGraphConfig","put","deleteGraphConfig","delete","validateQuery","query","queryType","params","all","oneOf","method","url","data","$inject"],"mappings":"2EAAAA,QACKC,OAAO,6CAA8C,IACrDC,QAAQ,yBAA0BC,GAEvC,MAAMC,EAAyB,sBACzBC,EAAgC,GAAGD,UAIzC,SAASD,EAAuBG,GAC5B,MAAO,CACHC,gBAUJ,WACI,OAAOD,EAAME,IAAIH,IAVjBI,sBAaJ,WACI,OAAOH,EAAME,IAAI,GAAGJ,aAbpBM,mBAgBJ,SAA4BC,EAAQC,EAAiBC,EAAYC,GAC7D,OAAOR,EAAME,IAAI,GAAGH,WAAuCU,mBAAmBJ,EAAOK,uBAAuBJ,gBAA8BC,iBAA0BC,MAhBpKG,UAmBJ,SAAmBD,GACf,OAAOV,EAAME,IAAI,GAAGH,KAAiCU,mBAAmBC,OAnBxEE,kBAsBJ,SAA2BP,GACvB,OAAOL,EAAMa,KAAKd,EAA+BM,IAtBjDS,kBAyBJ,SAA2BT,GACvB,OAAOL,EAAMe,IAAI,GAAGhB,KAAiCU,mBAAmBJ,EAAOK,MAAOL,IAzBtFW,kBA4BJ,SAA2BX,GACvB,OAAOL,EAAMiB,OAAO,GAAGlB,KAAiCU,mBAAmBJ,EAAOK,QA5BlFQ,cA+BJ,SAAuBC,EAAOC,EAAWC,EAAQC,EAAKC,GAClD,OAAOvB,EAAM,CACTwB,OAAQ,OACRC,IAAK,GAAG3B,YACR4B,KAAM,CACFP,QACAC,YACAC,SACAC,MACAC,aAnDhB1B,EAAuB8B,QAAU,CAAC","file":"86.581cbc54b6c6b6ea9f19.bundle.js","sourcesContent":["angular\n .module('graphdb.framework.rest.graphconfig.service', [])\n .factory('GraphConfigRestService', GraphConfigRestService);\n\nconst EXPLORE_GRAPH_ENDPOINT = 'rest/explore-graph/';\nconst EXPLORE_GRAPH_CONFIG_ENDPOINT = `${EXPLORE_GRAPH_ENDPOINT}config`;\n\nGraphConfigRestService.$inject = ['$http'];\n\nfunction GraphConfigRestService($http) {\n return {\n getGraphConfigs,\n getGraphConfigSamples,\n loadGraphForConfig,\n getConfig,\n createGraphConfig,\n updateGraphConfig,\n deleteGraphConfig,\n validateQuery\n };\n\n function getGraphConfigs() {\n return $http.get(EXPLORE_GRAPH_CONFIG_ENDPOINT);\n }\n\n function getGraphConfigSamples() {\n return $http.get(`${EXPLORE_GRAPH_ENDPOINT}samples`);\n }\n\n function loadGraphForConfig(config, includeInferred, linksLimit, startQuerySameAs) {\n return $http.get(`${EXPLORE_GRAPH_CONFIG_ENDPOINT}/graph/${encodeURIComponent(config.id)}?includeInferred=${includeInferred}&linksLimit=${linksLimit}&sameAsState=${startQuerySameAs}`);\n }\n\n function getConfig(id) {\n return $http.get(`${EXPLORE_GRAPH_CONFIG_ENDPOINT}/${encodeURIComponent(id)}`);\n }\n\n function createGraphConfig(config) {\n return $http.post(EXPLORE_GRAPH_CONFIG_ENDPOINT, config);\n }\n\n function updateGraphConfig(config) {\n return $http.put(`${EXPLORE_GRAPH_CONFIG_ENDPOINT}/${encodeURIComponent(config.id)}`, config);\n }\n\n function deleteGraphConfig(config) {\n return $http.delete(`${EXPLORE_GRAPH_CONFIG_ENDPOINT}/${encodeURIComponent(config.id)}`);\n }\n\n function validateQuery(query, queryType, params, all, oneOf) {\n return $http({\n method: 'POST',\n url: `${EXPLORE_GRAPH_ENDPOINT}validate`,\n data: {\n query,\n queryType,\n params,\n all,\n oneOf\n }\n });\n }\n}\n"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[87],{
|
|
2
|
-
//# sourceMappingURL=87.
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[87],{38:function(e,a){angular.module("graphdb.framework.rest.graphexplore.data.service",[]).factory("GraphDataRestService",i),i.$inject=["$http"];const t="rest/class-hierarchy",r="rest/domain-range",n="rest/dependencies/",s="rest/explore-graph/";function i(e){return{getClassHierarchyData:function(a){return e.get(t,{params:{graphURI:a}})},reloadClassHierarchy:function(a){return e.get(t,{params:{doReload:!0,graphURI:a}})},getClassInstances:function(a){return e.get(`${t}/class-instances`,{params:{targetUri:a}})},getDomainRangeData:function(a,t){return e.get(r,{params:{targetUri:a,collapsed:t}})},checkDomainRangeData:function(a){return e.head(r,{params:{targetUri:a}})},getRelationshipsData:function(a,t,r){return e.get(`${n}matrix`,{params:{mode:t,classes:_.map(a,(function(e){return e.name})),graphURI:r}})},getRelationshipsClasses:function(a,t){return e.get(`${n}classes`,{params:{mode:a,graphURI:t}})},getRelationshipsStatus:function(a){return e.get(`${n}status`,{params:{graphURI:a}})},calculateRelationships:function(a){return e.get(`${n}update`,{params:{graphURI:a}})},getPredicates:function(a,t,r){return e.get(`${n}predicates`,{params:{from:a,to:t,mode:"all",graphURI:r}})},getInstanceNode:function(a){return e.get(`${s}node`,{params:{iri:a}})},getInstanceNodeLinks:function(a){return e.get(`${s}links`,{params:{iri:a}})},getRdfsLabelAndComment:function(a,t,r){const n=r||{};return e({url:"rest/explore/details",method:"GET",params:_.extend(n,{uri:a,languages:t}),headers:{Accept:"application/json"}})}}}}}]);
|
|
2
|
+
//# sourceMappingURL=87.3606797303ead8dc2879.bundle.js.map
|
package/dist/{87.765567c0cbe89cbdb03c.bundle.js.map → 87.3606797303ead8dc2879.bundle.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///./src/js/angular/rest/graph-data.rest.service.js"],"names":["angular","module","factory","GraphDataRestService","$inject","CLASS_HIERARCHY_ENDPOINT","DOMAIN_RANGE_ENDPOINT","DEPENDENCIES_ENDPOINT","EXPORE_GRAPH_ENDPOINT","$http","getClassHierarchyData","graphURI","get","params","reloadClassHierarchy","doReload","getClassInstances","targetUri","getDomainRangeData","collapsed","checkDomainRangeData","head","getRelationshipsData","selectedClasses","direction","_","map","c","name","getRelationshipsClasses","getRelationshipsStatus","calculateRelationships","getPredicates","sourceClass","destinationClass","getInstanceNode","iri","getInstanceNodeLinks","getRdfsLabelAndComment","languages","extraParams","requestParams","url","method","extend","uri","headers"],"mappings":"2EAAAA,QACKC,OAAO,mDAAoD,IAC3DC,QAAQ,uBAAwBC,G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,EACN,KAAQ,MACRvB,SAAUA,MA5FlBwB,gBAiGJ,SAAyBC,GACrB,OAAO3B,EAAMG,IAAI,GAAGJ,QAA6B,CAC7CK,OAAQ,CACJuB,UAnGRC,qBAwGJ,SAA8BD,GAC1B,OAAO3B,EAAMG,IAAI,GAAGJ,SAA8B,CAC9CK,OAAQ,CACJuB,UAxGRE,uBA6GJ,SAAgCrB,EAAWsB,EAAWC,GAClD,MAAMC,EAAgBD,GAAe,GACrC,OAAO/B,EAAM,CACTiC,IAAK,uBACLC,OAAQ,MACR9B,OAAQY,EAAEmB,OAAOH,EAAe,CAACI,IAAK5B,EAAWsB,cACjDO,QAAS,CACL,OAAU","file":"87.
|
|
1
|
+
{"version":3,"sources":["webpack:///./src/js/angular/rest/graph-data.rest.service.js"],"names":["angular","module","factory","GraphDataRestService","$inject","CLASS_HIERARCHY_ENDPOINT","DOMAIN_RANGE_ENDPOINT","DEPENDENCIES_ENDPOINT","EXPORE_GRAPH_ENDPOINT","$http","getClassHierarchyData","graphURI","get","params","reloadClassHierarchy","doReload","getClassInstances","targetUri","getDomainRangeData","collapsed","checkDomainRangeData","head","getRelationshipsData","selectedClasses","direction","_","map","c","name","getRelationshipsClasses","getRelationshipsStatus","calculateRelationships","getPredicates","sourceClass","destinationClass","getInstanceNode","iri","getInstanceNodeLinks","getRdfsLabelAndComment","languages","extraParams","requestParams","url","method","extend","uri","headers"],"mappings":"2EAAAA,QACKC,OAAO,mDAAoD,IAC3DC,QAAQ,uBAAwBC,GAErCA,EAAqBC,QAAU,CAAC,SAEhC,MAAMC,EAA2B,uBAC3BC,EAAwB,oBACxBC,EAAwB,qBACxBC,EAAwB,sBAE9B,SAASL,EAAqBM,GAC1B,MAAO,CAEHC,sBAuBJ,SAA+BC,GAC3B,OAAOF,EAAMG,IAAIP,EAA0B,CACvCQ,OAAQ,CACJF,SAAUA,MAzBlBG,qBA8BJ,SAA8BH,GAC1B,OAAOF,EAAMG,IAAIP,EAA0B,CACvCQ,OAAQ,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EAAM,CACTiC,IAAK,uBACLC,OAAQ,MACR9B,OAAQY,EAAEmB,OAAOH,EAAe,CAACI,IAAK5B,EAAWsB,cACjDO,QAAS,CACL,OAAU","file":"87.3606797303ead8dc2879.bundle.js","sourcesContent":["angular\n .module('graphdb.framework.rest.graphexplore.data.service', [])\n .factory('GraphDataRestService', GraphDataRestService);\n\nGraphDataRestService.$inject = ['$http'];\n\nconst CLASS_HIERARCHY_ENDPOINT = 'rest/class-hierarchy';\nconst DOMAIN_RANGE_ENDPOINT = 'rest/domain-range';\nconst DEPENDENCIES_ENDPOINT = 'rest/dependencies/';\nconst EXPORE_GRAPH_ENDPOINT = 'rest/explore-graph/';\n\nfunction GraphDataRestService($http) {\n return {\n // class hierarchy\n getClassHierarchyData,\n reloadClassHierarchy,\n getClassInstances,\n\n // domain-range graph\n getDomainRangeData,\n checkDomainRangeData,\n\n // class relationships\n getRelationshipsData,\n getRelationshipsClasses,\n getRelationshipsStatus,\n calculateRelationships,\n getPredicates,\n\n // instances graph\n getInstanceNode,\n getInstanceNodeLinks,\n\n // common\n getRdfsLabelAndComment\n };\n\n function getClassHierarchyData(graphURI) {\n return $http.get(CLASS_HIERARCHY_ENDPOINT, {\n params: {\n graphURI: graphURI\n }\n });\n }\n\n function reloadClassHierarchy(graphURI) {\n return $http.get(CLASS_HIERARCHY_ENDPOINT, {\n params: {\n doReload: true,\n graphURI: graphURI\n }\n });\n }\n\n function getClassInstances(targetUri) {\n return $http.get(`${CLASS_HIERARCHY_ENDPOINT}/class-instances`, {\n params: {\n targetUri\n }\n });\n }\n\n function checkDomainRangeData(targetUri) {\n return $http.head(DOMAIN_RANGE_ENDPOINT, {\n params: {\n targetUri\n }\n });\n }\n\n function getDomainRangeData(targetUri, collapsed) {\n return $http.get(DOMAIN_RANGE_ENDPOINT, {\n params: {\n targetUri,\n collapsed\n }\n });\n }\n\n function getRelationshipsData(selectedClasses, direction, graphURI) {\n return $http.get(`${DEPENDENCIES_ENDPOINT}matrix`, {\n params: {\n 'mode': direction,\n 'classes': _.map(selectedClasses, function (c) {\n return c.name;\n }),\n 'graphURI': graphURI\n }\n });\n }\n\n function getRelationshipsClasses(direction, graphURI) {\n return $http.get(`${DEPENDENCIES_ENDPOINT}classes`, {\n params: {\n 'mode': direction,\n 'graphURI': graphURI\n }\n });\n }\n\n function getRelationshipsStatus(graphURI) {\n return $http.get(`${DEPENDENCIES_ENDPOINT}status`, {\n params: {\n graphURI: graphURI\n }\n });\n }\n\n function calculateRelationships(graphURI) {\n return $http.get(`${DEPENDENCIES_ENDPOINT}update`, {\n params: {\n graphURI: graphURI\n }\n });\n }\n\n function getPredicates(sourceClass, destinationClass, graphURI) {\n return $http.get(`${DEPENDENCIES_ENDPOINT}predicates`, {\n params: {\n 'from': sourceClass,\n 'to': destinationClass,\n 'mode': 'all',\n graphURI: graphURI\n }\n });\n }\n\n function getInstanceNode(iri) {\n return $http.get(`${EXPORE_GRAPH_ENDPOINT}node`, {\n params: {\n iri\n }\n });\n }\n\n function getInstanceNodeLinks(iri) {\n return $http.get(`${EXPORE_GRAPH_ENDPOINT}links`, {\n params: {\n iri\n }\n });\n }\n\n function getRdfsLabelAndComment(targetUri, languages, extraParams) {\n const requestParams = extraParams || {};\n return $http({\n url: 'rest/explore/details',\n method: 'GET',\n params: _.extend(requestParams, {uri: targetUri, languages}),\n headers: {\n 'Accept': 'application/json'\n }\n });\n }\n}\n"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[88],{
|
|
2
|
-
//# sourceMappingURL=88.
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[88],{68:function(e,t){angular.module("graphdb.framework.rest.jdbc.service",[]).factory("JdbcRestService",r),r.$inject=["$http","$repositories"];const n="rest/sql-views";function r(e){return{getJdbcConfigurations:function(){return e.get(`${n}/tables`)},getJdbcConfiguration:function(t){return e.get(`${n}/tables/${t}`)},createNewJdbcConfiguration:function(e){return t("POST","",e)},updateJdbcConfiguration:function(e){return t("PUT",e.name,e)},deleteJdbcConfiguration:function(t){return e.delete(`${n}/tables/${t}`)},getColumnNames:function(t){return e.post(`${n}/columns`,t,{headers:{Accept:"application/json","Content-Type":"text/plain"}})},getColumnsTypeSuggestion:function(t,r){if(!Array.isArray(r))throw"Column names must be placed in array.";return e({method:"POST",url:`${n}/types`,data:{query:t,column_names:r}})},getExistingSqlTablePreview:function(e,t){return $.ajax({method:"GET",url:`rest/sql-views/preview/${e}`,params:{limit:t}})},getNewSqlTablePreview:function(e,t){return $.ajax({method:"POST",url:"rest/sql-views/preview",contentType:"application/json; charset=utf-8",dataType:"json",data:e,params:{limit:t},headers:{Accept:"application/sparql-results+json"}})}};function t(t,r,a){return e({method:t,url:`${n}/tables/${r}`,noCancelOnRouteChange:!0,data:{name:a.name,query:a.query,columns:a.columns||[]}})}}}}]);
|
|
2
|
+
//# sourceMappingURL=88.f5b8f83e57c9bea3c137.bundle.js.map
|
package/dist/{88.50c46652774325bffad3.bundle.js.map → 88.f5b8f83e57c9bea3c137.bundle.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///./src/js/angular/rest/jdbc.rest.service.js"],"names":["angular","module","factory","JdbcRestService","$inject","JDBC_ENDPOINT","$http","getJdbcConfigurations","get","getJdbcConfiguration","configuration","createNewJdbcConfiguration","createConfiguration","updateJdbcConfiguration","name","deleteJdbcConfiguration","delete","getColumnNames","query","post","headers","getColumnsTypeSuggestion","columns","Array","isArray","method","url","data","column_names","getExistingSqlTablePreview","limit","$","ajax","params","getNewSqlTablePreview","sqlView","contentType","dataType","Accept","table","noCancelOnRouteChange"],"mappings":"2EAAAA,QACKC,OAAO,sCAAuC,IAC9CC,QAAQ,kBAAmBC,GAEhCA,EAAgBC,QAAU,CAAC,QAAS,iBAEpC,MAAMC,EAAgB,iBAEtB,SAASF,EAAgBG,GAErB,MAAO,CACHC,sBAWJ,WACI,OAAOD,EAAME,IAAI,GAAGH,aAXpBI,qBAcJ,SAA8BC,GAC1B,OAAOJ,EAAME,IAAI,GAAGH,YAAwBK,MAd5CC,2BA+BJ,SAAoCD,GAChC,OAAOE,EAAoB,OAAQ,GAAIF,IA/BvCG,wBAkCJ,SAAiCH,GAC7B,OAAOE,EAAoB,MAAOF,EAAcI,KAAMJ,IAlCtDK,wBAqCJ,SAAiCD,GAC7B,OAAOR,EAAMU,OAAO,GAAGX,YAAwBS,MArC/CG,eAwCJ,SAAwBC,GAQpB,OAAOZ,EAAMa,KAAK,GAAGd,YAAyBa,EAP9B,CACZE,QAAS,CACL,OAAU,mBACV,eAAgB,iBA3CxBC,yBAkDJ,SAAkCH,EAAOI,GACrC,IAAKC,MAAMC,QAAQF,GACf,KAAM,wCAGV,OAAOhB,EAAM,CACLmB,OAAQ,OACRC,IAAK,GAAGrB,UACRsB,KAAM,CACFT,MAAOA,EACPU,aAAcN,MA3D1BO,2BAgEJ,SAAoCf,EAAMgB,GAEtC,OAAOC,EAAEC,KAAK,CACVP,OAAQ,MACRC,IAAK,0BAA0BZ,IAC/BmB,OAAQ,CACJH,YArERI,sBA0EJ,SAA+BC,EAASL,GAEpC,OAAOC,EAAEC,KAAK,CACVP,OAAQ,OACRC,IAAK,yBACLU,YAAa,kCACbC,SAAU,OACVV,KAAMQ,EACNF,OAAQ,CACJH,SAEJV,QAAS,CAACkB,OAAQ,uCA1E1B,SAAS1B,EAAoBa,EAAQc,EAAO7B,GACxC,OAAOJ,EAAM,CACLmB,SACAC,IAAK,GAAGrB,YAAwBkC,IAChCC,uBAAuB,EACvBb,KAAM,CACFb,KAAMJ,EAAcI,KACpBI,MAAOR,EAAcQ,MACrBI,QAASZ,EAAcY,SAAW","file":"88.
|
|
1
|
+
{"version":3,"sources":["webpack:///./src/js/angular/rest/jdbc.rest.service.js"],"names":["angular","module","factory","JdbcRestService","$inject","JDBC_ENDPOINT","$http","getJdbcConfigurations","get","getJdbcConfiguration","configuration","createNewJdbcConfiguration","createConfiguration","updateJdbcConfiguration","name","deleteJdbcConfiguration","delete","getColumnNames","query","post","headers","getColumnsTypeSuggestion","columns","Array","isArray","method","url","data","column_names","getExistingSqlTablePreview","limit","$","ajax","params","getNewSqlTablePreview","sqlView","contentType","dataType","Accept","table","noCancelOnRouteChange"],"mappings":"2EAAAA,QACKC,OAAO,sCAAuC,IAC9CC,QAAQ,kBAAmBC,GAEhCA,EAAgBC,QAAU,CAAC,QAAS,iBAEpC,MAAMC,EAAgB,iBAEtB,SAASF,EAAgBG,GAErB,MAAO,CACHC,sBAWJ,WACI,OAAOD,EAAME,IAAI,GAAGH,aAXpBI,qBAcJ,SAA8BC,GAC1B,OAAOJ,EAAME,IAAI,GAAGH,YAAwBK,MAd5CC,2BA+BJ,SAAoCD,GAChC,OAAOE,EAAoB,OAAQ,GAAIF,IA/BvCG,wBAkCJ,SAAiCH,GAC7B,OAAOE,EAAoB,MAAOF,EAAcI,KAAMJ,IAlCtDK,wBAqCJ,SAAiCD,GAC7B,OAAOR,EAAMU,OAAO,GAAGX,YAAwBS,MArC/CG,eAwCJ,SAAwBC,GAQpB,OAAOZ,EAAMa,KAAK,GAAGd,YAAyBa,EAP9B,CACZE,QAAS,CACL,OAAU,mBACV,eAAgB,iBA3CxBC,yBAkDJ,SAAkCH,EAAOI,GACrC,IAAKC,MAAMC,QAAQF,GACf,KAAM,wCAGV,OAAOhB,EAAM,CACLmB,OAAQ,OACRC,IAAK,GAAGrB,UACRsB,KAAM,CACFT,MAAOA,EACPU,aAAcN,MA3D1BO,2BAgEJ,SAAoCf,EAAMgB,GAEtC,OAAOC,EAAEC,KAAK,CACVP,OAAQ,MACRC,IAAK,0BAA0BZ,IAC/BmB,OAAQ,CACJH,YArERI,sBA0EJ,SAA+BC,EAASL,GAEpC,OAAOC,EAAEC,KAAK,CACVP,OAAQ,OACRC,IAAK,yBACLU,YAAa,kCACbC,SAAU,OACVV,KAAMQ,EACNF,OAAQ,CACJH,SAEJV,QAAS,CAACkB,OAAQ,uCA1E1B,SAAS1B,EAAoBa,EAAQc,EAAO7B,GACxC,OAAOJ,EAAM,CACLmB,SACAC,IAAK,GAAGrB,YAAwBkC,IAChCC,uBAAuB,EACvBb,KAAM,CACFb,KAAMJ,EAAcI,KACpBI,MAAOR,EAAcQ,MACrBI,QAASZ,EAAcY,SAAW","file":"88.f5b8f83e57c9bea3c137.bundle.js","sourcesContent":["angular\n .module('graphdb.framework.rest.jdbc.service', [])\n .factory('JdbcRestService', JdbcRestService);\n\nJdbcRestService.$inject = ['$http', '$repositories'];\n\nconst JDBC_ENDPOINT = 'rest/sql-views';\n\nfunction JdbcRestService($http) {\n\n return {\n getJdbcConfigurations,\n getJdbcConfiguration,\n createNewJdbcConfiguration,\n updateJdbcConfiguration,\n deleteJdbcConfiguration,\n getColumnNames,\n getColumnsTypeSuggestion,\n getExistingSqlTablePreview,\n getNewSqlTablePreview\n };\n\n function getJdbcConfigurations() {\n return $http.get(`${JDBC_ENDPOINT}/tables`);\n }\n\n function getJdbcConfiguration(configuration) {\n return $http.get(`${JDBC_ENDPOINT}/tables/${configuration}`);\n }\n\n function createConfiguration(method, table, configuration) {\n return $http({\n method,\n url: `${JDBC_ENDPOINT}/tables/${table}`,\n noCancelOnRouteChange: true,\n data: {\n name: configuration.name,\n query: configuration.query,\n columns: configuration.columns || []\n }\n }\n );\n }\n\n function createNewJdbcConfiguration(configuration) {\n return createConfiguration('POST', '', configuration);\n }\n\n function updateJdbcConfiguration(configuration) {\n return createConfiguration('PUT', configuration.name, configuration);\n }\n\n function deleteJdbcConfiguration(name) {\n return $http.delete(`${JDBC_ENDPOINT}/tables/${name}`);\n }\n\n function getColumnNames(query) {\n const headers = {\n headers: {\n 'Accept': 'application/json',\n 'Content-Type': 'text/plain'\n }\n };\n\n return $http.post(`${JDBC_ENDPOINT}/columns`, query, headers);\n }\n\n function getColumnsTypeSuggestion(query, columns) {\n if (!Array.isArray(columns)) {\n throw 'Column names must be placed in array.'\n }\n\n return $http({\n method: 'POST',\n url: `${JDBC_ENDPOINT}/types`,\n data: {\n query: query,\n column_names: columns\n }\n }\n );\n }\n function getExistingSqlTablePreview(name, limit) {\n // Limit in preview is optional. On backend default value is set to 100\n return $.ajax({\n method: 'GET',\n url: `rest/sql-views/preview/${name}`,\n params: {\n limit\n }\n })\n }\n\n function getNewSqlTablePreview(sqlView, limit) {\n // Limit in preview is optional. On backend default value is set to 100\n return $.ajax({\n method: 'POST',\n url: \"rest/sql-views/preview\",\n contentType: \"application/json; charset=utf-8\",\n dataType: 'json',\n data: sqlView,\n params: {\n limit\n },\n headers: {Accept: 'application/sparql-results+json'}\n })\n }\n}\n"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[89],{
|
|
2
|
-
//# sourceMappingURL=89.
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[89],{72:function(t,n){angular.module("graphdb.framework.rest.rdfrank.service",[]).factory("RdfRankRestService",r);const e="rest/rdfrank",i=`${e}/filtering`;function r(t){return{getStatus:function(){return t.get(`${e}/status`)},checkRdfRankPluginEnabled:function(){return t.get(`${e}/pluginFound`)},checkFilteringEnabled:function(){return t.get(i)},toggleFiltering:function(n){return t.post(`${i}?enabled=${n}`)},filter:function(n){return t.get(`${i}/${n}`)},updateFilter:function(n,e){return t.put(`${i}/${n}`,e)},deleteFilter:function(n,e){return t.delete(`${i}/${n}`,{data:e,headers:{"Content-Type":"application/json;charset=utf-8"}})},includeExplicit:function(){return t.get(`${e}/includeExplicit`)},toggleIncludeExplicit:function(n){return t.post(`${e}/includeExplicit?enabled=`+n)},includeImplicit:function(){return t.get(`${e}/includeImplicit`)},toggleIncludeImplicit:function(n){return t.post(`${e}/includeImplicit?enabled=`+n)},compute:function(){return t.post(`${e}/compute`)},computeIncremental:function(){return t.post(`${e}/computeIncremental`)},interrupt:function(){return t.post(`${e}/interrupt`)}}}r.$inject=["$http"]}}]);
|
|
2
|
+
//# sourceMappingURL=89.f9b4c4ddff2c0b5b70f7.bundle.js.map
|
package/dist/{89.91c58e1902b0f444b068.bundle.js.map → 89.f9b4c4ddff2c0b5b70f7.bundle.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///./src/js/angular/rest/rdfrank.rest.service.js"],"names":["angular","module","factory","RdfRankRestService","RDFRANK_ENDPOINT","RDFRANK_FILTERING_ENDPOINT","$http","getStatus","get","checkRdfRankPluginEnabled","checkFilteringEnabled","toggleFiltering","enable","post","filter","predicate","updateFilter","data","put","deleteFilter","delete","headers","includeExplicit","toggleIncludeExplicit","includeImplicit","toggleIncludeImplicit","compute","computeIncremental","interrupt","$inject"],"mappings":"2EAAAA,QACKC,OAAO,yCAA0C,IACjDC,QAAQ,qBAAsBC,GAEnC,MAAMC,EAAmB,eACnBC,EAA6B,GAAGD,cAItC,SAASD,EAAmBG,GACxB,MAAO,CACHC,UAgBJ,WACI,OAAOD,EAAME,IAAI,GAAGJ,aAhBpBK,0BAmBJ,WACI,OAAOH,EAAME,IAAI,GAAGJ,kBAnBpBM,sBAsBJ,WACI,OAAOJ,EAAME,IAAIH,IAtBjBM,gBAyBJ,SAAyBC,GACrB,OAAON,EAAMO,KAAK,GAAGR,aAAsCO,MAzB3DE,OA4BJ,SAAgBC,GACZ,OAAOT,EAAME,IAAI,GAAGH,KAA8BU,MA5BlDC,aA+BJ,SAAsBD,EAAWE,GAC7B,OAAOX,EAAMY,IAAI,GAAGb,KAA8BU,IAAaE,IA/B/DE,aAkCJ,SAAsBJ,EAAWE,GAC7B,OAAOX,EAAMc,OAAO,GAAGf,KAA8BU,IAAa,CAC9DE,OACAI,QAAS,CAAC,eAAgB,qCApC9BC,gBAwCJ,WACI,OAAOhB,EAAME,IAAI,GAAGJ,sBAxCpBmB,sBA2CJ,SAA+BX,GAC3B,OAAON,EAAMO,KAAK,GAAGT,6BAA8CQ,IA3CnEY,gBA8CJ,WACI,OAAOlB,EAAME,IAAI,GAAGJ,sBA9CpBqB,sBAiDJ,SAA+Bb,GAC3B,OAAON,EAAMO,KAAK,GAAGT,6BAA8CQ,IAjDnEc,QAoDJ,WACI,OAAOpB,EAAMO,KAAK,GAAGT,cApDrBuB,mBAuDJ,WACI,OAAOrB,EAAMO,KAAK,GAAGT,yBAvDrBwB,UA0DJ,WACI,OAAOtB,EAAMO,KAAK,GAAGT,iBA5E7BD,EAAmB0B,QAAU,CAAC","file":"89.
|
|
1
|
+
{"version":3,"sources":["webpack:///./src/js/angular/rest/rdfrank.rest.service.js"],"names":["angular","module","factory","RdfRankRestService","RDFRANK_ENDPOINT","RDFRANK_FILTERING_ENDPOINT","$http","getStatus","get","checkRdfRankPluginEnabled","checkFilteringEnabled","toggleFiltering","enable","post","filter","predicate","updateFilter","data","put","deleteFilter","delete","headers","includeExplicit","toggleIncludeExplicit","includeImplicit","toggleIncludeImplicit","compute","computeIncremental","interrupt","$inject"],"mappings":"2EAAAA,QACKC,OAAO,yCAA0C,IACjDC,QAAQ,qBAAsBC,GAEnC,MAAMC,EAAmB,eACnBC,EAA6B,GAAGD,cAItC,SAASD,EAAmBG,GACxB,MAAO,CACHC,UAgBJ,WACI,OAAOD,EAAME,IAAI,GAAGJ,aAhBpBK,0BAmBJ,WACI,OAAOH,EAAME,IAAI,GAAGJ,kBAnBpBM,sBAsBJ,WACI,OAAOJ,EAAME,IAAIH,IAtBjBM,gBAyBJ,SAAyBC,GACrB,OAAON,EAAMO,KAAK,GAAGR,aAAsCO,MAzB3DE,OA4BJ,SAAgBC,GACZ,OAAOT,EAAME,IAAI,GAAGH,KAA8BU,MA5BlDC,aA+BJ,SAAsBD,EAAWE,GAC7B,OAAOX,EAAMY,IAAI,GAAGb,KAA8BU,IAAaE,IA/B/DE,aAkCJ,SAAsBJ,EAAWE,GAC7B,OAAOX,EAAMc,OAAO,GAAGf,KAA8BU,IAAa,CAC9DE,OACAI,QAAS,CAAC,eAAgB,qCApC9BC,gBAwCJ,WACI,OAAOhB,EAAME,IAAI,GAAGJ,sBAxCpBmB,sBA2CJ,SAA+BX,GAC3B,OAAON,EAAMO,KAAK,GAAGT,6BAA8CQ,IA3CnEY,gBA8CJ,WACI,OAAOlB,EAAME,IAAI,GAAGJ,sBA9CpBqB,sBAiDJ,SAA+Bb,GAC3B,OAAON,EAAMO,KAAK,GAAGT,6BAA8CQ,IAjDnEc,QAoDJ,WACI,OAAOpB,EAAMO,KAAK,GAAGT,cApDrBuB,mBAuDJ,WACI,OAAOrB,EAAMO,KAAK,GAAGT,yBAvDrBwB,UA0DJ,WACI,OAAOtB,EAAMO,KAAK,GAAGT,iBA5E7BD,EAAmB0B,QAAU,CAAC","file":"89.f9b4c4ddff2c0b5b70f7.bundle.js","sourcesContent":["angular\n .module('graphdb.framework.rest.rdfrank.service', [])\n .factory('RdfRankRestService', RdfRankRestService);\n\nconst RDFRANK_ENDPOINT = 'rest/rdfrank';\nconst RDFRANK_FILTERING_ENDPOINT = `${RDFRANK_ENDPOINT}/filtering`;\n\nRdfRankRestService.$inject = ['$http'];\n\nfunction RdfRankRestService($http) {\n return {\n getStatus,\n checkRdfRankPluginEnabled,\n checkFilteringEnabled,\n toggleFiltering,\n filter,\n updateFilter,\n deleteFilter,\n includeExplicit,\n toggleIncludeExplicit,\n includeImplicit,\n toggleIncludeImplicit,\n compute,\n computeIncremental,\n interrupt\n };\n\n function getStatus() {\n return $http.get(`${RDFRANK_ENDPOINT}/status`);\n }\n\n function checkRdfRankPluginEnabled() {\n return $http.get(`${RDFRANK_ENDPOINT}/pluginFound`);\n }\n\n function checkFilteringEnabled() {\n return $http.get(RDFRANK_FILTERING_ENDPOINT);\n }\n\n function toggleFiltering(enable) {\n return $http.post(`${RDFRANK_FILTERING_ENDPOINT}?enabled=${enable}`);\n }\n\n function filter(predicate) {\n return $http.get(`${RDFRANK_FILTERING_ENDPOINT}/${predicate}`);\n }\n\n function updateFilter(predicate, data) {\n return $http.put(`${RDFRANK_FILTERING_ENDPOINT}/${predicate}`, data);\n }\n\n function deleteFilter(predicate, data) {\n return $http.delete(`${RDFRANK_FILTERING_ENDPOINT}/${predicate}`, {\n data,\n headers: {'Content-Type': 'application/json;charset=utf-8'}\n });\n }\n\n function includeExplicit() {\n return $http.get(`${RDFRANK_ENDPOINT}/includeExplicit`);\n }\n\n function toggleIncludeExplicit(enable) {\n return $http.post(`${RDFRANK_ENDPOINT}/includeExplicit?enabled=` + enable);\n }\n\n function includeImplicit() {\n return $http.get(`${RDFRANK_ENDPOINT}/includeImplicit`);\n }\n\n function toggleIncludeImplicit(enable) {\n return $http.post(`${RDFRANK_ENDPOINT}/includeImplicit?enabled=` + enable);\n }\n\n function compute() {\n return $http.post(`${RDFRANK_ENDPOINT}/compute`);\n }\n\n function computeIncremental() {\n return $http.post(`${RDFRANK_ENDPOINT}/computeIncremental`);\n }\n\n function interrupt() {\n return $http.post(`${RDFRANK_ENDPOINT}/interrupt`);\n }\n}\n"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[9,84],{43:function(e,o){angular.module("graphdb.framework.rest.cluster.service",[]).factory("ClusterRestService",r),r.$inject=["$http"];const t="rest/cluster/masters";function r(e){return{getMaster:function(o,r={}){return e.get(`${t}/${o}`,r)},configureMaster:function(o,r,n){return e({url:`${t}/${o}?masterLocation=${encodeURIComponent(r)}`,method:"POST",data:n})},cloneRepository:function(o){return e.post("rest/cluster/nodes/clone",{cloningNodeLocation:o.currentNodeLocation,cloningNodeRepositoryID:o.selectedNodeName,newNodeRepositoryID:o.repositoryID,newNodeLocation:o.locationUri,newNodeTitle:o.repositoryTitle})},connectWorker:function(o,r,n){return e({url:`${t}/${o}/workers/`,method:"POST",data:{workerURL:n,masterLocation:r}})},disconnectWorker:function(o,r){return e({url:`${t}/${o}/workers?${r}`,method:"DELETE",dataType:"text"})},disconnectNodes:function(o,r){return e({url:`${t}/${o}/peers?${r}`,method:"DELETE",dataType:"text"})},connectNodes:function(o,r){return e({url:`${t}/${o}/peers`,method:"POST",data:r})}}}},81:function(e,o,t){"use strict";t.r(o);t(2),t(43);function r(e){return e.local?"local":e.location.split("/repositories/")[0]}function n(e,o,t,n,s,i,a,c,l,d,u,p,f){e.setLoader=function(o,t){u.cancel(e.loaderTimeout),o?e.loaderTimeout=u((function(){e.loader=o,e.loaderMessage=t}),300):e.loader=!1},e.getLoaderMessage=function(){return e.loaderMessage||"Loading..."},e.getMaster=function(o){p.getMaster(o).success((function(o){e.masterInformation=o}))},e.setMasterAttribute=function(o,t,s){const i={};i[t]=s,e.setLoader(!0,"Setting attribute..."),p.configureMaster(e.getLabel(o.location),r(o),i).success((function(){return e.attributeChange=!1,n.success("Set "+t+" to "+s+".",""),e.refreshMastersIcons(),!0})).error((function(o){return e.attributeChange=!1,n.error(getError(o),"Error setting attribute "+t),!0})).finally((function(){e.setLoader(!1)}))},e.hasInfo=function(o){return null==o||(e.isWorker(o)?"fingerprint"in o:"failedReads"in o)},e.locations=function(){return s.getLocations()},e.showCloneModal=function(){e.clone.locations=e.locations(),e.clone.repositoryID=e.selectedNode.name,i.open({templateUrl:"js/angular/clustermanagement/templates/modal/clone-modal.html",controller:"CloneRepositoryCtrl",resolve:{clone:function(){return e.clone}}}).result.then((function(o){e.clone=o,e.cloneCurrentRepository()}),(function(){e.selectedNode=null}))},e.cloneCurrentRepository=function(){const o=r(e.selectedNode);e.setLoader(!0,"Cloning worker..."),p.cloneRepository({currentNodeLocation:o,selectedNodeName:e.selectedNode.name,repositoryID:e.clone.repositoryID,locationUri:e.clone.location.uri,repositoryTitle:e.clone.repositoryTitle}).success((function(){n.success("Cloned node into "+e.clone.location),e.getNodes()})).error((function(e){n.error(getError(e),"Error cloning node")})).finally((function(){e.setLoader(!1)}))},e.getLabel=function(e){return 0!==e.indexOf("http")?name:e.substring(e.indexOf("/repositories")+14)},e.connectNodes=function(o,t,s){let i,a;if("disabledReason"in o)n.error(o.disabledReason,"Error");else if("disabledReason"in t)n.error(t.disabledReason,"Error");else if("master"!==o.repositoryType||"master"!==t.repositoryType){if("master"===o.repositoryType)i=o,a=t;else{if("master"!==t.repositoryType)return void n.error("You cannot connect two workers","Error");i=t,a=o}a.location in i.workers?n.error("Worker already connected to that master","Error"):(e.setLoader(!0,"Connecting nodes..."),p.connectWorker(e.getLabel(i.location),r(i),a.location).success((function(){const o=Date.now();a.cluster=a.cluster||[],a.cluster.push(i.cluster),e.addOrUpdateLink(i,a,"",o),i.workers[a.location]=1,s(),n.success("Connected worker to master.","")})).error((function(e){n.error(getError(e),"Error connecting worker")})).finally((function(){e.setLoader(!1)})))}else o.location in t.peers&&t.location in o.peers?n.error("Masters already connected","Error"):o.location in t.peers?e.connectMasters(o,t,!1,s):t.location in o.peers?e.connectMasters(t,o,!1,s):e.connectMasters(o,t,!0,s)},e.disconnectLinkConfirm=function(o,t){d.openSimpleModal({title:"Confirm disconnect",message:"Are you sure you want to disconnect the nodes?",warning:!0}).result.then((function(){e.disconnectLink(o,t)}))},e.disconnectLink=function(o,t,s){let i={},a={};"master"===o.source.repositoryType?(i=o.source,a=o.target):"master"===o.target.repositoryType&&(i=o.target,a=o.source),s||!("disabledReason"in i||"master"===a.repositoryType&&"disabledReason"in a)?(e.setLoader(!0,"Disconnecting nodes..."),"worker"===a.repositoryType?function(o,t,s,i){p.disconnectWorker(e.getLabel(t.location),$.param({workerURL:s.location,masterLocation:r(t)})).success((function(){e.deleteLink(o),s.cluster=s.cluster.filter((function(e){return e!==t.cluster})),delete t.workers[s.location],i(),n.success("Disconnected worker from master.","")})).error((function(e){n.error(getError(e),"Error disconnecting worker")})).finally((function(){e.setLoader(!1)}))}(o,i,a,t):function(o,t,s,i){p.disconnectNodes(e.getLabel(t.location),$.param({masterLocation:r(t),masterNodeID:t.nodeID,peerLocation:r(s),peerRepositoryID:e.getLabel(s.location),peerNodeID:s.nodeID})).success((function(r){e.deleteLink(o,!0),delete s.peers[t.location],delete t.peers[s.location],i(),n.success(r,"")})).error((function(e){n.error(getError(e),"Error disconnecting masters")})).finally((function(){e.setLoader(!1)}))}(o,i,a,t)):d.openSimpleModal({title:"Confirm disconnect",message:"One of the masters is currently unreachable and will be disconnected only at the reachable master.<br><br>Proceed only if you know what you are doing.",warning:!0}).result.then((function(){e.disconnectLink(o,t,!0)}))},e.selectNode=function(o){e.selectedNode!==o?e.selectedNode=o:e.selectedNode=null,e.$apply()},e.isWorker=function(e){return null!=e&&"worker"===e.repositoryType},e.connectMasters=function(o,t,r,s){const i=o.location.split("/repositories/"),a=t.location.split("/repositories/");e.setLoader(!0,"Connecting nodes..."),p.connectNodes(i[1],{masterLocation:o.local?"local":i[0],masterNodeID:o.nodeID,peerLocation:t.local?"local":a[0],peerRepositoryID:a[1],peerNodeID:t.nodeID,bidirectional:r}).success((function(i){const a=Date.now();e.addOrUpdateLink(o,t,"ON",a),o.peers[t.location]=1,r&&(t.peers[o.location]=1,e.addOrUpdateLink(t,o,"ON",a)),s(),n.success(i,"")})).error((function(e){n.error(getError(e),"Error connecting masters")})).finally((function(){e.setLoader(!1)}))},e.addOrUpdateLink=function(o,t,r,n){const s=o.location+"|"+t.location;let i=e.linksHash[s];const a=t.location+"|"+o.location,c=e.linksHash[a];return i||(i={},e.linksHash[s]=i,e.links.push(i),i.source=o,i.target=t,e.needsToRestart=!0),i.status=r,i.timestamp=n,i.reversePeerMissing="master"===o.repositoryType&&"master"===t.repositoryType&&!c,c&&c.reversePeerMissing&&(c.reversePeerMissing=!1),e.linksHash[s]=i,e.updateWarnings&&e.updateWarnings(),i},e.deleteLink=function(o,t){e.links.splice(e.links.indexOf(o),1);const r=o.source.location+"|"+o.target.location;if(delete e.linksHash[r],(o.source.disabledReason||o.target.disabledReason)&&(console.log("link to funky node removed, refresh"),e.needsToRefresh=!0),t){const t=o.target.location+"|"+o.source.location,r=e.linksHash[t];r&&e.deleteLink(r,!1)}},e.updateMasterNode=function(o,t,s,i){return p.getMaster(o.name,{params:{masterLocation:r(o)}}).error((function(e){return"The location is unreachable."!==o.disabledReason&&(n.error(getError(e),"Error accessing master "+o.name),o.disabledReason="The location is unreachable.",o.peers={},o.workers={},o.hasWorkers=!1),o.timestamp=t,!0})).success((function(r){o.averageReadTime=r.averageReadTime,o.completedReads=r.completedReads,o.completedWrites=r.completedWrites,o.failedReads=r.failedReads,o.failedWrites=r.failedWrites,o.pendingWrites=r.pendingWrites,o.runningReads=r.runningReads,o.runningWrites=r.runningWrites,o.readonly=r.readonly,o.mode=r.mode,o.nodeID=r.nodeID,o.peers={},o.workers={},o.timestamp=t,o.hasWorkers=r.workers.length>0,r.peers.forEach((function(r){o.peers[r.location]=1,r.location in e.urlToNode||(s?(console.log("master disappeared, refreshing"),e.needsToRefresh=!0):e.urlToNode[r.location]={name:e.getLabel(r.location),disabledReason:"You are not connected to this master's location or the master was deleted",location:r.location,nodeID:r.nodeID,repositoryType:"master",artificiallyAdded:!0}),e.addOrUpdateLink(o,e.urlToNode[r.location],"ON",t)})),r.workers.forEach((function(r){o.workers[r.location]=1;let n={};if(r.location in e.urlToNode)n=e.urlToNode[r.location];else{if(s)return console.log("worker disappeared, refreshing"),void(e.needsToRefresh=!0);n=e.urlToNode[r.location]={name:e.getLabel(r.location),location:r.location,repositoryType:"worker",artificiallyAdded:!0}}n.fingerprint=r.fingerprint,n.averageTaskTime=r.averageTaskTime,n.failedTasks=r.failedTasks,n.completedTasks=r.completedTasks,n.runningTasks=r.runningTasks,n.timestamp=t,n.artificiallyAdded?(n.disabledReason="You are not connected to this worker's location.",r.lastError&&(n.disabledReason+="<br>"+r.lastError)):r.lastError?n.disabledReason=r.lastError:delete n.disabledReason,n.disabledReason&&(n.disabledReason=a.trustAsHtml(n.disabledReason)),n.cluster=n.cluster||[],-1===n.cluster.indexOf(o.cluster)&&n.cluster.push(o.cluster);let c=r.status;i&&(c=["UNINITIALIZED","ON","OFF","REPLICATION_SERVER","REPLICATION_CLIENT","OUT_OF_SYNC","OUT_OF_SYNC_FORCED","WAITING_WRITE","WRITING"][Math.floor(9*Math.random())]),e.addOrUpdateLink(o,e.urlToNode[r.location],c,t)}))})).catch((function(){return!0}))},e.getNodes=function(){return e.nodes=[],e.links=[],e.linksHash={},e.clone={},e.selectedNode=null,e.clusters=[],e.setLoader(!0),f.getCluster().success((function(o){e.hasNodes=o.length>0,e.links=[],e.linksHash={},e.clusters=[];const r=Date.now();e.urlToNode=o.reduce((function(o,t){return"master"!==t.type&&"worker"!==t.type||(o[t.uri]={name:e.getLabel(t.uri),local:t.local,location:t.uri,repositoryType:t.type,timestamp:r}),o}),{});let n=0;const s=Object.keys(e.urlToNode).filter((function(o){return"master"===e.urlToNode[o].repositoryType})).sort((function(e,o){return e<o?-1:e>o?1:0})).map((function(o){const t=e.urlToNode[o];return t.cluster=n,e.clusters.push(t),n++,e.updateMasterNode(t,r)}));return t.all(s).finally((function(){e.nodes=_.sortBy(Object.keys(e.urlToNode).map((function(o){return e.urlToNode[o]})),["name"]),e.render(),e.setLoader(!1)}))})).error((function(o){e.hasNodes=!1,n.error(getError(o),"Error getting nodes"),e.setLoader(!1)})).finally((function(){e.needsToRefresh=!1}))},e.trackAddedOrRemovedNodes=function(o){return f.getCluster().success((function(t){const r=t.reduce((function(e,o){return"master"!==o.type&&"worker"!==o.type||(e[o.uri]={location:o.uri,repositoryType:o.type}),e}),{});for(let t=0;t<e.nodes.length;t++){const n=e.nodes[t];if(n.location in r)n.artificiallyAdded||(n.timestamp=o,delete r[n.location]);else if(!n.artificiallyAdded)return console.log("old node disappeared, refresh"),e.needsToRefresh=!0,!0}Object.keys(r).length>0&&(console.log("new nodes appeared, refresh"),e.needsToRefresh=!0)})).error((function(e){n.error(getError(e),"Error getting nodes")}))},e.updateClusterIfNeeded=function(o){e.updating=!0;const r=Date.now(),n=function(){if(!e.needsToRefresh)for(let o=0;o<e.links.length;o++){const t=e.links[o];t.timestamp!==r&&(console.log("nodes disconnected, removing link"),e.deleteLink(t,!1))}e.needsToRefresh?(console.log("refresh requested"),e.getNodes()):e.needsToRestart?(console.log("only links changed, restarting"),e.restart()):(e.updateStatuses(),e.updateColors(),e.updateWarnings(),e.updating=!1)};if(o)e.trackAddedOrRemovedNodes(r).then((function(){if(e.needsToRefresh)n();else{const o=[];for(let t=0;t<e.nodes.length;t++){const n=e.nodes[t];"master"===n.repositoryType&&o.push(e.updateMasterNode(n,r,!0))}t.all(o).finally(n)}}));else{const o=[];for(let t=0;t<e.nodes.length;t++){const n=e.nodes[t];"master"===n.repositoryType&&o.push(e.updateMasterNode(n,r,!0))}t.all(o).finally(n)}},e.getNodes(),e.setMode=function(o){e.attributeChange=!0,e.setMasterAttribute(e.selectedNode,"Mode",o)},e.setReadonly=function(o){e.attributeChange=!0,e.selectedNode.readonly=o,e.setMasterAttribute(e.selectedNode,"ReadOnly",o)};let g=0;const m=l((function(){e.attributeChange||e.updating||(g++,e.updateClusterIfNeeded(g%3==0))}),2e3);e.$on("$destroy",(function(){l.cancel(m)})),e.attributeChange=!1,e.updating=!1;const y=angular.element(c),k=function(){e.resize()};y.bind("resize",k),e.$on("$destroy",(function(){y.unbind("resize",k)})),e.$on("onToggleNavWidth",(function(){e.resize()}))}function s(e,o,t){e.clone=angular.copy(t),e.ok=function(){const t=new RegExp("^[a-zA-Z0-9-_]+$");e.isInvalidRepoName=!t.test(e.clone.repositoryID),e.isInvalidRepoName||o.close(e.clone)},e.cancel=function(){o.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.repositories.service","graphdb.framework.rest.cluster.service","toastr"]).controller("ClusterManagementCtrl",n).controller("CloneRepositoryCtrl",s),n.$inject=["$scope","$http","$q","toastr","$repositories","$modal","$sce","$window","$interval","ModalService","$timeout","ClusterRestService","RepositoriesRestService"],s.$inject=["$scope","$modalInstance","clone"]}}]);
|
|
2
|
-
//# sourceMappingURL=9.
|
|
1
|
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[9,84],{44:function(e,o){angular.module("graphdb.framework.rest.cluster.service",[]).factory("ClusterRestService",r),r.$inject=["$http"];const t="rest/cluster/masters";function r(e){return{getMaster:function(o,r={}){return e.get(`${t}/${o}`,r)},configureMaster:function(o,r,n){return e({url:`${t}/${o}?masterLocation=${encodeURIComponent(r)}`,method:"POST",data:n})},cloneRepository:function(o){return e.post("rest/cluster/nodes/clone",{cloningNodeLocation:o.currentNodeLocation,cloningNodeRepositoryID:o.selectedNodeName,newNodeRepositoryID:o.repositoryID,newNodeLocation:o.locationUri,newNodeTitle:o.repositoryTitle})},connectWorker:function(o,r,n){return e({url:`${t}/${o}/workers/`,method:"POST",data:{workerURL:n,masterLocation:r}})},disconnectWorker:function(o,r){return e({url:`${t}/${o}/workers?${r}`,method:"DELETE",dataType:"text"})},disconnectNodes:function(o,r){return e({url:`${t}/${o}/peers?${r}`,method:"DELETE",dataType:"text"})},connectNodes:function(o,r){return e({url:`${t}/${o}/peers`,method:"POST",data:r})}}}},81:function(e,o,t){"use strict";t.r(o);t(2),t(44);function r(e){return e.local?"local":e.location.split("/repositories/")[0]}function n(e,o,t,n,s,i,a,c,l,d,u,p,f){e.setLoader=function(o,t){u.cancel(e.loaderTimeout),o?e.loaderTimeout=u((function(){e.loader=o,e.loaderMessage=t}),300):e.loader=!1},e.getLoaderMessage=function(){return e.loaderMessage||"Loading..."},e.getMaster=function(o){p.getMaster(o).success((function(o){e.masterInformation=o}))},e.setMasterAttribute=function(o,t,s){const i={};i[t]=s,e.setLoader(!0,"Setting attribute..."),p.configureMaster(e.getLabel(o.location),r(o),i).success((function(){return e.attributeChange=!1,n.success("Set "+t+" to "+s+".",""),e.refreshMastersIcons(),!0})).error((function(o){return e.attributeChange=!1,n.error(getError(o),"Error setting attribute "+t),!0})).finally((function(){e.setLoader(!1)}))},e.hasInfo=function(o){return null==o||(e.isWorker(o)?"fingerprint"in o:"failedReads"in o)},e.locations=function(){return s.getLocations()},e.showCloneModal=function(){e.clone.locations=e.locations(),e.clone.repositoryID=e.selectedNode.name,i.open({templateUrl:"js/angular/clustermanagement/templates/modal/clone-modal.html",controller:"CloneRepositoryCtrl",resolve:{clone:function(){return e.clone}}}).result.then((function(o){e.clone=o,e.cloneCurrentRepository()}),(function(){e.selectedNode=null}))},e.cloneCurrentRepository=function(){const o=r(e.selectedNode);e.setLoader(!0,"Cloning worker..."),p.cloneRepository({currentNodeLocation:o,selectedNodeName:e.selectedNode.name,repositoryID:e.clone.repositoryID,locationUri:e.clone.location.uri,repositoryTitle:e.clone.repositoryTitle}).success((function(){n.success("Cloned node into "+e.clone.location),e.getNodes()})).error((function(e){n.error(getError(e),"Error cloning node")})).finally((function(){e.setLoader(!1)}))},e.getLabel=function(e){return 0!==e.indexOf("http")?name:e.substring(e.indexOf("/repositories")+14)},e.connectNodes=function(o,t,s){let i,a;if("disabledReason"in o)n.error(o.disabledReason,"Error");else if("disabledReason"in t)n.error(t.disabledReason,"Error");else if("master"!==o.repositoryType||"master"!==t.repositoryType){if("master"===o.repositoryType)i=o,a=t;else{if("master"!==t.repositoryType)return void n.error("You cannot connect two workers","Error");i=t,a=o}a.location in i.workers?n.error("Worker already connected to that master","Error"):(e.setLoader(!0,"Connecting nodes..."),p.connectWorker(e.getLabel(i.location),r(i),a.location).success((function(){const o=Date.now();a.cluster=a.cluster||[],a.cluster.push(i.cluster),e.addOrUpdateLink(i,a,"",o),i.workers[a.location]=1,s(),n.success("Connected worker to master.","")})).error((function(e){n.error(getError(e),"Error connecting worker")})).finally((function(){e.setLoader(!1)})))}else o.location in t.peers&&t.location in o.peers?n.error("Masters already connected","Error"):o.location in t.peers?e.connectMasters(o,t,!1,s):t.location in o.peers?e.connectMasters(t,o,!1,s):e.connectMasters(o,t,!0,s)},e.disconnectLinkConfirm=function(o,t){d.openSimpleModal({title:"Confirm disconnect",message:"Are you sure you want to disconnect the nodes?",warning:!0}).result.then((function(){e.disconnectLink(o,t)}))},e.disconnectLink=function(o,t,s){let i={},a={};"master"===o.source.repositoryType?(i=o.source,a=o.target):"master"===o.target.repositoryType&&(i=o.target,a=o.source),s||!("disabledReason"in i||"master"===a.repositoryType&&"disabledReason"in a)?(e.setLoader(!0,"Disconnecting nodes..."),"worker"===a.repositoryType?function(o,t,s,i){p.disconnectWorker(e.getLabel(t.location),$.param({workerURL:s.location,masterLocation:r(t)})).success((function(){e.deleteLink(o),s.cluster=s.cluster.filter((function(e){return e!==t.cluster})),delete t.workers[s.location],i(),n.success("Disconnected worker from master.","")})).error((function(e){n.error(getError(e),"Error disconnecting worker")})).finally((function(){e.setLoader(!1)}))}(o,i,a,t):function(o,t,s,i){p.disconnectNodes(e.getLabel(t.location),$.param({masterLocation:r(t),masterNodeID:t.nodeID,peerLocation:r(s),peerRepositoryID:e.getLabel(s.location),peerNodeID:s.nodeID})).success((function(r){e.deleteLink(o,!0),delete s.peers[t.location],delete t.peers[s.location],i(),n.success(r,"")})).error((function(e){n.error(getError(e),"Error disconnecting masters")})).finally((function(){e.setLoader(!1)}))}(o,i,a,t)):d.openSimpleModal({title:"Confirm disconnect",message:"One of the masters is currently unreachable and will be disconnected only at the reachable master.<br><br>Proceed only if you know what you are doing.",warning:!0}).result.then((function(){e.disconnectLink(o,t,!0)}))},e.selectNode=function(o){e.selectedNode!==o?e.selectedNode=o:e.selectedNode=null,e.$apply()},e.isWorker=function(e){return null!=e&&"worker"===e.repositoryType},e.connectMasters=function(o,t,r,s){const i=o.location.split("/repositories/"),a=t.location.split("/repositories/");e.setLoader(!0,"Connecting nodes..."),p.connectNodes(i[1],{masterLocation:o.local?"local":i[0],masterNodeID:o.nodeID,peerLocation:t.local?"local":a[0],peerRepositoryID:a[1],peerNodeID:t.nodeID,bidirectional:r}).success((function(i){const a=Date.now();e.addOrUpdateLink(o,t,"ON",a),o.peers[t.location]=1,r&&(t.peers[o.location]=1,e.addOrUpdateLink(t,o,"ON",a)),s(),n.success(i,"")})).error((function(e){n.error(getError(e),"Error connecting masters")})).finally((function(){e.setLoader(!1)}))},e.addOrUpdateLink=function(o,t,r,n){const s=o.location+"|"+t.location;let i=e.linksHash[s];const a=t.location+"|"+o.location,c=e.linksHash[a];return i||(i={},e.linksHash[s]=i,e.links.push(i),i.source=o,i.target=t,e.needsToRestart=!0),i.status=r,i.timestamp=n,i.reversePeerMissing="master"===o.repositoryType&&"master"===t.repositoryType&&!c,c&&c.reversePeerMissing&&(c.reversePeerMissing=!1),e.linksHash[s]=i,e.updateWarnings&&e.updateWarnings(),i},e.deleteLink=function(o,t){e.links.splice(e.links.indexOf(o),1);const r=o.source.location+"|"+o.target.location;if(delete e.linksHash[r],(o.source.disabledReason||o.target.disabledReason)&&(console.log("link to funky node removed, refresh"),e.needsToRefresh=!0),t){const t=o.target.location+"|"+o.source.location,r=e.linksHash[t];r&&e.deleteLink(r,!1)}},e.updateMasterNode=function(o,t,s,i){return p.getMaster(o.name,{params:{masterLocation:r(o)}}).error((function(e){return"The location is unreachable."!==o.disabledReason&&(n.error(getError(e),"Error accessing master "+o.name),o.disabledReason="The location is unreachable.",o.peers={},o.workers={},o.hasWorkers=!1),o.timestamp=t,!0})).success((function(r){o.averageReadTime=r.averageReadTime,o.completedReads=r.completedReads,o.completedWrites=r.completedWrites,o.failedReads=r.failedReads,o.failedWrites=r.failedWrites,o.pendingWrites=r.pendingWrites,o.runningReads=r.runningReads,o.runningWrites=r.runningWrites,o.readonly=r.readonly,o.mode=r.mode,o.nodeID=r.nodeID,o.peers={},o.workers={},o.timestamp=t,o.hasWorkers=r.workers.length>0,r.peers.forEach((function(r){o.peers[r.location]=1,r.location in e.urlToNode||(s?(console.log("master disappeared, refreshing"),e.needsToRefresh=!0):e.urlToNode[r.location]={name:e.getLabel(r.location),disabledReason:"You are not connected to this master's location or the master was deleted",location:r.location,nodeID:r.nodeID,repositoryType:"master",artificiallyAdded:!0}),e.addOrUpdateLink(o,e.urlToNode[r.location],"ON",t)})),r.workers.forEach((function(r){o.workers[r.location]=1;let n={};if(r.location in e.urlToNode)n=e.urlToNode[r.location];else{if(s)return console.log("worker disappeared, refreshing"),void(e.needsToRefresh=!0);n=e.urlToNode[r.location]={name:e.getLabel(r.location),location:r.location,repositoryType:"worker",artificiallyAdded:!0}}n.fingerprint=r.fingerprint,n.averageTaskTime=r.averageTaskTime,n.failedTasks=r.failedTasks,n.completedTasks=r.completedTasks,n.runningTasks=r.runningTasks,n.timestamp=t,n.artificiallyAdded?(n.disabledReason="You are not connected to this worker's location.",r.lastError&&(n.disabledReason+="<br>"+r.lastError)):r.lastError?n.disabledReason=r.lastError:delete n.disabledReason,n.disabledReason&&(n.disabledReason=a.trustAsHtml(n.disabledReason)),n.cluster=n.cluster||[],-1===n.cluster.indexOf(o.cluster)&&n.cluster.push(o.cluster);let c=r.status;i&&(c=["UNINITIALIZED","ON","OFF","REPLICATION_SERVER","REPLICATION_CLIENT","OUT_OF_SYNC","OUT_OF_SYNC_FORCED","WAITING_WRITE","WRITING"][Math.floor(9*Math.random())]),e.addOrUpdateLink(o,e.urlToNode[r.location],c,t)}))})).catch((function(){return!0}))},e.getNodes=function(){return e.nodes=[],e.links=[],e.linksHash={},e.clone={},e.selectedNode=null,e.clusters=[],e.setLoader(!0),f.getCluster().success((function(o){e.hasNodes=o.length>0,e.links=[],e.linksHash={},e.clusters=[];const r=Date.now();e.urlToNode=o.reduce((function(o,t){return"master"!==t.type&&"worker"!==t.type||(o[t.uri]={name:e.getLabel(t.uri),local:t.local,location:t.uri,repositoryType:t.type,timestamp:r}),o}),{});let n=0;const s=Object.keys(e.urlToNode).filter((function(o){return"master"===e.urlToNode[o].repositoryType})).sort((function(e,o){return e<o?-1:e>o?1:0})).map((function(o){const t=e.urlToNode[o];return t.cluster=n,e.clusters.push(t),n++,e.updateMasterNode(t,r)}));return t.all(s).finally((function(){e.nodes=_.sortBy(Object.keys(e.urlToNode).map((function(o){return e.urlToNode[o]})),["name"]),e.render(),e.setLoader(!1)}))})).error((function(o){e.hasNodes=!1,n.error(getError(o),"Error getting nodes"),e.setLoader(!1)})).finally((function(){e.needsToRefresh=!1}))},e.trackAddedOrRemovedNodes=function(o){return f.getCluster().success((function(t){const r=t.reduce((function(e,o){return"master"!==o.type&&"worker"!==o.type||(e[o.uri]={location:o.uri,repositoryType:o.type}),e}),{});for(let t=0;t<e.nodes.length;t++){const n=e.nodes[t];if(n.location in r)n.artificiallyAdded||(n.timestamp=o,delete r[n.location]);else if(!n.artificiallyAdded)return console.log("old node disappeared, refresh"),e.needsToRefresh=!0,!0}Object.keys(r).length>0&&(console.log("new nodes appeared, refresh"),e.needsToRefresh=!0)})).error((function(e){n.error(getError(e),"Error getting nodes")}))},e.updateClusterIfNeeded=function(o){e.updating=!0;const r=Date.now(),n=function(){if(!e.needsToRefresh)for(let o=0;o<e.links.length;o++){const t=e.links[o];t.timestamp!==r&&(console.log("nodes disconnected, removing link"),e.deleteLink(t,!1))}e.needsToRefresh?(console.log("refresh requested"),e.getNodes()):e.needsToRestart?(console.log("only links changed, restarting"),e.restart()):(e.updateStatuses(),e.updateColors(),e.updateWarnings(),e.updating=!1)};if(o)e.trackAddedOrRemovedNodes(r).then((function(){if(e.needsToRefresh)n();else{const o=[];for(let t=0;t<e.nodes.length;t++){const n=e.nodes[t];"master"===n.repositoryType&&o.push(e.updateMasterNode(n,r,!0))}t.all(o).finally(n)}}));else{const o=[];for(let t=0;t<e.nodes.length;t++){const n=e.nodes[t];"master"===n.repositoryType&&o.push(e.updateMasterNode(n,r,!0))}t.all(o).finally(n)}},e.getNodes(),e.setMode=function(o){e.attributeChange=!0,e.setMasterAttribute(e.selectedNode,"Mode",o)},e.setReadonly=function(o){e.attributeChange=!0,e.selectedNode.readonly=o,e.setMasterAttribute(e.selectedNode,"ReadOnly",o)};let g=0;const m=l((function(){e.attributeChange||e.updating||(g++,e.updateClusterIfNeeded(g%3==0))}),2e3);e.$on("$destroy",(function(){l.cancel(m)})),e.attributeChange=!1,e.updating=!1;const y=angular.element(c),k=function(){e.resize()};y.bind("resize",k),e.$on("$destroy",(function(){y.unbind("resize",k)})),e.$on("onToggleNavWidth",(function(){e.resize()}))}function s(e,o,t){e.clone=angular.copy(t),e.ok=function(){const t=new RegExp("^[a-zA-Z0-9-_]+$");e.isInvalidRepoName=!t.test(e.clone.repositoryID),e.isInvalidRepoName||o.close(e.clone)},e.cancel=function(){o.dismiss("cancel")}}angular.module("graphdb.framework.clustermanagement.controllers",["ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.rest.repositories.service","graphdb.framework.rest.cluster.service","toastr"]).controller("ClusterManagementCtrl",n).controller("CloneRepositoryCtrl",s),n.$inject=["$scope","$http","$q","toastr","$repositories","$modal","$sce","$window","$interval","ModalService","$timeout","ClusterRestService","RepositoriesRestService"],s.$inject=["$scope","$modalInstance","clone"]}}]);
|
|
2
|
+
//# sourceMappingURL=9.6a95a5c1eec963050422.bundle.js.map
|