graphdb-workbench 4.0.0-TR24 → 4.0.0-TR25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/10804.62d23036c15bd05ab8f4.bundle.js +2 -0
- package/dist/10804.62d23036c15bd05ab8f4.bundle.js.map +1 -0
- package/dist/29733.55b41709d810fa99e672.bundle.js +2 -0
- package/dist/29733.55b41709d810fa99e672.bundle.js.map +1 -0
- package/dist/38046.d5fcf560e9573afe0793.bundle.js +2 -0
- package/dist/38046.d5fcf560e9573afe0793.bundle.js.map +1 -0
- package/dist/43239.c76fc77febaf50657b13.bundle.js +2 -0
- package/dist/43239.c76fc77febaf50657b13.bundle.js.map +1 -0
- package/dist/54231.86549d1df408d58c8d9c.bundle.js +2 -0
- package/dist/54231.86549d1df408d58c8d9c.bundle.js.map +1 -0
- package/dist/6345.4c432e9c50769f9fed92.bundle.js +2 -0
- package/dist/6345.4c432e9c50769f9fed92.bundle.js.map +1 -0
- package/dist/{64709.692234bce97b3d7c3f08.bundle.js → 64709.62285597fe955d9a4e6f.bundle.js} +2 -2
- package/dist/{64709.692234bce97b3d7c3f08.bundle.js.map → 64709.62285597fe955d9a4e6f.bundle.js.map} +1 -1
- package/dist/{65677.f973a5e87a056639df3d.bundle.js → 65677.5b3c1615bec7865c3bb9.bundle.js} +2 -2
- package/dist/{65677.f973a5e87a056639df3d.bundle.js.map → 65677.5b3c1615bec7865c3bb9.bundle.js.map} +1 -1
- package/dist/{80933.e68a74507b277bc3029e.bundle.js → 80933.3c17cb7ee7edbf6e82e5.bundle.js} +2 -2
- package/dist/{80933.e68a74507b277bc3029e.bundle.js.map → 80933.3c17cb7ee7edbf6e82e5.bundle.js.map} +1 -1
- package/dist/{82917.025cdb8ee0ac54edcab1.bundle.js → 82917.577cefdef6ecc843b821.bundle.js} +2 -2
- package/dist/{82917.025cdb8ee0ac54edcab1.bundle.js.map → 82917.577cefdef6ecc843b821.bundle.js.map} +1 -1
- package/dist/{86099.27eafa3d7848c2893767.bundle.js → 86099.38ff7f3b1e3b7db27e13.bundle.js} +2 -2
- package/dist/{86099.27eafa3d7848c2893767.bundle.js.map → 86099.38ff7f3b1e3b7db27e13.bundle.js.map} +1 -1
- package/dist/assets/i18n/language-config.json +1 -1
- package/dist/i18n/locale-en.json +4 -3
- package/dist/i18n/locale-fr.json +4 -3
- package/dist/index.html +9 -9
- package/dist/js/angular/clustermanagement/templates/cluster-configuration/cluster-configuration.html +1 -1
- package/dist/js/angular/clustermanagement/templates/cluster-configuration/multi-region.html +1 -1
- package/dist/js/angular/clustermanagement/templates/cluster-nodes-configuration.html +1 -1
- package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
- package/dist/js/angular/core/directives/dynamic-form/templates/dynamic-form.html +1 -1
- package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
- package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
- package/dist/js/angular/core/directives/shuttle-multiselect/templates/shuttle-multiselect.html +1 -1
- package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +7 -7
- package/dist/js/angular/core/templates/cookie-policy/cookie-consent.html +1 -1
- package/dist/js/angular/core/templates/cookie-policy/cookie-policy.html +1 -1
- package/dist/js/angular/core/templates/core-errors.html +1 -1
- package/dist/js/angular/core/templates/editable-content/editable-content.html +1 -1
- package/dist/js/angular/core/templates/markdown-content/markdown-content.html +1 -1
- package/dist/js/angular/core/templates/search-resource-input.html +1 -1
- package/dist/js/angular/graphql/templates/create-graphql-endpoint.html +2 -2
- package/dist/js/angular/graphql/templates/graphql-endpoint-management.html +1 -1
- package/dist/js/angular/graphql/templates/graphql-playground.html +2 -2
- package/dist/js/angular/graphql/templates/modal/endpoint-configuration-modal.html +1 -1
- package/dist/js/angular/graphql/templates/modal/endpoint-generation-failure-result-modal.html +1 -1
- package/dist/js/angular/graphql/templates/modal/import-endpoint-definition-modal.html +1 -1
- package/dist/js/angular/security/templates/user.html +2 -2
- package/dist/js/angular/security/templates/users.html +1 -1
- package/dist/js/angular/templates/repositorySize.html +1 -1
- package/dist/js/angular/ttyg/templates/agent-list.html +1 -1
- package/dist/js/angular/ttyg/templates/agent-select-menu.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-item-detail.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-list.html +1 -1
- package/dist/js/angular/ttyg/templates/chat-panel.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-instructions-explain-modal.html +1 -1
- package/dist/js/angular/ttyg/templates/modal/agent-settings-modal.html +3 -3
- package/dist/js/angular/ttyg/templates/modal/external-integration-configuration-modal.html +1 -1
- package/dist/js/angular/ttyg/templates/no-agents-view.html +1 -1
- package/dist/js/angular/ttyg/templates/ttyg.html +1 -1
- package/dist/{legacyWorkbench.ba7ff32677564dfd4fe1.js → legacyWorkbench.fa4203b20bf8d73ada10.js} +3 -3
- package/dist/{legacyWorkbench.ba7ff32677564dfd4fe1.js.map → legacyWorkbench.fa4203b20bf8d73ada10.js.map} +1 -1
- package/dist/{main.d7968e926ea5592be2a6.js → main.6692816e0953b1a60712.js} +3 -3
- package/dist/{main.d7968e926ea5592be2a6.js.map → main.6692816e0953b1a60712.js.map} +1 -1
- package/dist/pages/aclmanagement.html +1 -1
- package/dist/pages/autocomplete.html +1 -1
- package/dist/pages/choose-repository-type.html +1 -1
- package/dist/pages/cluster-management/clusterInfo.html +2 -2
- package/dist/pages/create-index.html +1 -1
- package/dist/pages/dependencies.html +1 -1
- package/dist/pages/domainRangeInfo.html +2 -2
- package/dist/pages/edit.html +1 -1
- package/dist/pages/explore.html +1 -1
- package/dist/pages/export.html +1 -1
- package/dist/pages/graph-config/saveGraphConfig.html +8 -8
- package/dist/pages/graphs-visualizations.html +7 -7
- package/dist/pages/guides.html +1 -1
- package/dist/pages/home.html +1 -1
- package/dist/pages/import.html +2 -2
- package/dist/pages/jdbc-create.html +1 -1
- package/dist/pages/jdbc.html +1 -1
- package/dist/pages/monitor/backup-and-restore.html +1 -1
- package/dist/pages/monitor/queries.html +4 -4
- package/dist/pages/monitor/resources.html +1 -1
- package/dist/pages/namespaces.html +2 -2
- package/dist/pages/plugins.html +1 -1
- package/dist/pages/rdfClassHierarchyInfo.html +8 -8
- package/dist/pages/rdfrank.html +2 -2
- package/dist/pages/repositories.html +1 -1
- package/dist/pages/repository.html +1 -1
- package/dist/pages/similarity-indexes.html +1 -1
- package/dist/pages/sparql-editor.html +1 -1
- package/dist/pages/sparql-template-create.html +1 -1
- package/dist/pages/sparql-templates.html +1 -1
- package/dist/pages/ux-test1.html +2 -2
- package/dist/res/swagger5/index.html +8 -8
- package/dist/sbom.cdx.json +6 -6
- package/dist/shared-components/cjs/onto-layout.cjs.entry.js +1 -1
- package/dist/shared-components/collection/components/onto-layout/onto-layout.js +1 -1
- package/dist/shared-components/esm/onto-layout.entry.js +1 -1
- package/dist/shared-components/shared-components/p-6fd8a7ef.entry.js +1 -0
- package/dist/shared-components/shared-components/shared-components.esm.js +1 -1
- package/dist/shared-components/types/components/onto-layout/onto-layout.d.ts +1 -0
- package/package.json +1 -1
- package/dist/10804.9c5eb1358106e43a56ff.bundle.js +0 -2
- package/dist/10804.9c5eb1358106e43a56ff.bundle.js.map +0 -1
- package/dist/29733.eb663d4b8d6aa7331953.bundle.js +0 -2
- package/dist/29733.eb663d4b8d6aa7331953.bundle.js.map +0 -1
- package/dist/38046.76b9f6100b53827a1d44.bundle.js +0 -2
- package/dist/38046.76b9f6100b53827a1d44.bundle.js.map +0 -1
- package/dist/43239.40282ca142f86c6dde15.bundle.js +0 -2
- package/dist/43239.40282ca142f86c6dde15.bundle.js.map +0 -1
- package/dist/54231.a271c2f8a5cf643b3fcf.bundle.js +0 -2
- package/dist/54231.a271c2f8a5cf643b3fcf.bundle.js.map +0 -1
- package/dist/6345.2368e0979b55e4b52e55.bundle.js +0 -1
- package/dist/shared-components/shared-components/p-6bb1e333.entry.js +0 -1
- /package/dist/{legacyWorkbench.ba7ff32677564dfd4fe1.js.LICENSE.txt → legacyWorkbench.fa4203b20bf8d73ada10.js.LICENSE.txt} +0 -0
- /package/dist/{main.d7968e926ea5592be2a6.js.LICENSE.txt → main.6692816e0953b1a60712.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"54231.86549d1df408d58c8d9c.bundle.js","mappings":"mNAQA,SAASA,EAAmCC,EAAQC,EAAmBC,EAAYC,EAAMC,GAMrFJ,EAAOK,QAAUF,EAAKG,aAAYC,EAAAA,EAAAA,IAAWL,EAAWM,QAAQ,mDAAoD,CAACJ,gBAAiBA,MAMtIJ,EAAOS,OAAS,KACZR,EAAkBS,WAGtBV,EAAOW,SAAW,KACdV,EAAkBW,MAAM,CACpBC,WAAW,KAInBb,EAAOa,UAAY,KACfZ,EAAkBW,MAAM,CACpBC,WAAW,IAGvB,CAjCAC,QACKC,OAAO,wEAAyE,IAChFC,WAAW,qCAAsCjB,GAEtDA,EAAmCkB,QAAU,CAAC,SAAU,oBAAqB,aAAc,OAAQ,kB,UCAnG,SAASC,EAA4BlB,EAAQC,EAAmBkB,EAAMC,GAMlEpB,EAAOqB,cAAgB,CACnB,CAACC,KAAM,WAAYC,KAAM,wBACzB,CAACD,KAAM,UAAWC,KAAM,uBACxB,CAACD,KAAM,YAAaC,KAAM,2BAC1B,CAACD,KAAM,UAAWC,KAAM,uBACxB,CAACD,KAAM,KAAMC,KAAM,eACnB,CAACD,KAAM,YAAaC,KAAM,cAC1B,CAACD,KAAM,UAAWC,KAAM,iBACxB,CAACD,KAAM,SAAUC,KAAM,eACvB,CAACD,KAAM,OAAQC,KAAM,oBACrB,CAACD,KAAM,OAAQC,KAAM,uBAEzBvB,EAAOwB,QAAUL,EACjBnB,EAAOyB,aAAezB,EAAOqB,cAAcK,KAAMC,GAAgBA,EAAYJ,OAASH,GACtFpB,EAAO4B,aAAc,EAErB5B,EAAO6B,UAAY,IAOnB7B,EAAO8B,U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CACjBlb,IAAK,GAAGoa,KAAiBE,uBACzBtV,KAAMA,GAEd,EA/BIsK,mBAwCJ,SAA4BgL,EAAc9S,EAAMxC,GAC5C,OAAOgW,EAAOE,OAAO,CACjBlb,IAAK,GAAGoa,KAAiBE,8BACzBtV,KAAMA,GAEd,EACJ,C,gCC1DO,MAAM0J,EAcT,4BAAOC,GACH,MAAMwM,EAAO,IAAIC,KACjB,OAAOD,EAAKE,cAAgB,IAAMjX,EAAEkX,SAASH,EAAKI,WAAa,EAAG,EAAG,KAAO,IAAMnX,EAAEkX,SAASH,EAAKK,UAAW,EAAG,KAC1G,IAAMpX,EAAEkX,SAASH,EAAKM,WAAY,EAAG,KAAO,IAAMrX,EAAEkX,SAASH,EAAKO,aAAc,EAAG,KAAO,IAAMtX,EAAEkX,SAASH,EAAKQ,aAAc,EAAG,KACjI,IAAMvX,EAAEkX,SAASH,EAAKS,kBAAmB,EAAG,IACtD,E,kECRJ,MAAMC,EAAsBC,GACjBA,EAAOC,QAAQ,SAAU,IAG9BC,EAAalQ,GACM,iBAAVA,EACU,SAAVA,EAEJmQ,QAAQnQ,GAGbnJ,EAAezD,GACZA,GAGEgd,EAAAA,EAAAA,YAAWhd,EAAKid,eAFZjd,C","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/import/controllers/file-override-confirmation.controller.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/controllers/import-text-snippet.controller.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/controllers/import-url.controller.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/controllers/import-view.controller.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/controllers/settings-modal.controller.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/controllers/tab.controller.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/services/file-prefix-registry.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/import/services/import-context.service.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/models/import/file-formats.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/models/import/import-parsing-settings.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/models/import/import-resource.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/models/import/sorting-type.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/rest/import.rest.service.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/rest/mappers/import-mapper.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/rest/upload.rest.service.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/utils/date-utils.js","webpack://root-config/./packages/legacy-workbench/src/js/angular/utils/string-utils.js"],"sourcesContent":["import {decodeHTML} from \"../../../../app\";\n\nangular\n .module('graphdb.framework.impex.import.controllers.file-override-confirmation', [])\n .controller('FileOverrideConfirmationController', FileOverrideConfirmationController);\n\nFileOverrideConfirmationController.$inject = ['$scope', '$uibModalInstance', '$translate', '$sce', 'duplicatedFiles'];\n\nfunction FileOverrideConfirmationController($scope, $uibModalInstance, $translate, $sce, duplicatedFiles) {\n\n // =========================\n // Public variables\n // =========================\n\n $scope.message = $sce.trustAsHtml(decodeHTML($translate.instant('import.user_data.duplicates_confirmation.message', {duplicatedFiles: duplicatedFiles})));\n\n // =========================\n // Public functions\n // =========================\n\n $scope.cancel = () => {\n $uibModalInstance.dismiss();\n };\n\n $scope.keepBoth = () => {\n $uibModalInstance.close({\n overwrite: false\n });\n };\n\n $scope.overwrite = () => {\n $uibModalInstance.close({\n overwrite: true\n });\n };\n}\n","angular\n .module('graphdb.framework.impex.import.controllers.import-text-snippet', [])\n .controller('ImportTextSnippetController', ImportTextSnippetController);\n\nImportTextSnippetController.$inject = ['$scope', '$uibModalInstance', 'text', 'format'];\n\nfunction ImportTextSnippetController($scope, $uibModalInstance, text, format) {\n\n // =========================\n // Public variables\n // =========================\n\n $scope.importFormats = [\n {name: 'RDF/JSON', type: 'application/rdf+json'},\n {name: 'JSON-LD', type: 'application/ld+json'},\n {name: 'NDJSON-LD', type: 'application/x-ld+ndjson'},\n {name: 'RDF/XML', type: 'application/rdf+xml'},\n {name: 'N3', type: 'text/rdf+n3'},\n {name: 'N-Triples', type: 'text/plain'},\n {name: 'N-Quads', type: 'text/x-nquads'},\n {name: 'Turtle', type: 'text/turtle'},\n {name: 'TriX', type: 'application/trix'},\n {name: 'TriG', type: 'application/x-trig'},\n ];\n $scope.rdfText = text;\n $scope.importFormat = $scope.importFormats.find((formatModel) => formatModel.type === format);\n $scope.startImport = true;\n // Total amount of characters that can be imported via the text snippet dialog\n $scope.sizeLimit = 100000;\n\n\n // =========================\n // Public functions\n // =========================\n\n $scope.setFormat = (format) => {\n $scope.importFormat = format;\n };\n\n $scope.cancel = () => {\n $uibModalInstance.dismiss();\n };\n\n $scope.ok = () => {\n $uibModalInstance.close({\n text: $scope.rdfText,\n format: $scope.importFormat.type,\n startImport: $scope.startImport\n });\n };\n}\n","angular\n .module('graphdb.framework.impex.import.controllers.import-url', [])\n .controller('ImportUrlController', ImportUrlController);\n\nImportUrlController.$inject = ['$scope', '$uibModalInstance', 'toastr'];\n\nfunction ImportUrlController($scope, $uibModalInstance) {\n\n // =========================\n // Public variables\n // =========================\n\n $scope.importFormat = {name: 'Auto', type: ''};\n $scope.startImport = true;\n\n // =========================\n // Public functions\n // =========================\n\n $scope.cancel = function () {\n $uibModalInstance.dismiss();\n };\n\n $scope.ok = function () {\n $uibModalInstance.close({\n url: $scope.dataUrl,\n format: $scope.importFormat.type,\n startImport: $scope.startImport\n });\n };\n}\n\n","import 'angular/core/services';\nimport 'angular/utils/uri-utils';\nimport 'angular/rest/import.rest.service';\nimport 'angular/rest/upload.rest.service';\nimport 'angular/import/services/import-context.service';\nimport 'angular/import/controllers/tab.controller';\nimport 'angular/import/controllers/settings-modal.controller';\nimport 'angular/import/controllers/import-url.controller';\nimport 'angular/import/controllers/import-text-snippet.controller';\nimport 'angular/import/controllers/file-override-confirmation.controller';\nimport {FileFormats} from \"../../models/import/file-formats\";\nimport * as stringUtils from \"../../utils/string-utils\";\nimport {DateUtils} from \"../../utils/date-utils\";\nimport {filesToImportResource, toImportResource} from \"../../rest/mappers/import-mapper\";\nimport {decodeHTML} from \"../../../../app\";\nimport {escape} from \"lodash\";\nimport {FilePrefixRegistry} from \"../services/file-prefix-registry\";\nimport {SortingType} from \"../../models/import/sorting-type\";\nimport {ImportResourceStatus} from \"../../models/import/import-resource-status\";\nimport {TABS} from \"../services/import-context.service\";\nimport {service, GuidesService} from \"@ontotext/workbench-api\";\nimport {SettingsModalActions} from \"./settings-modal.controller\";\n\nconst modules = [\n 'ui.bootstrap',\n 'toastr',\n 'graphdb.framework.core.services.repositories',\n 'graphdb.framework.utils.localstorageadapter',\n 'graphdb.framework.utils.uriutils',\n 'graphdb.framework.guides.services',\n 'graphdb.framework.rest.import.service',\n 'graphdb.framework.rest.upload.service',\n 'graphdb.framework.import.services.importcontext',\n 'graphdb.framework.impex.import.controllers.tab',\n 'graphdb.framework.impex.import.controllers.settings-modal',\n 'graphdb.framework.impex.import.controllers.import-url',\n 'graphdb.framework.impex.import.controllers.import-text-snippet',\n 'graphdb.framework.impex.import.controllers.file-override-confirmation',\n];\n\nconst importViewModule = angular.module('graphdb.framework.impex.import.controllers', modules);\n\nexport const Operation = {\n IMPORT: 'import',\n BATCH_IMPORT: 'batch_import',\n IMPORT_SNIPPET: 'import_snippet',\n IMPORT_URL: 'import_url',\n UPLOAD: 'upload',\n};\n\nconst USER_DATA_TYPE = {\n FILE: 'file',\n TEXT: 'text',\n URL: 'url',\n};\n\nimportViewModule.controller('ImportViewCtrl', ['$scope', 'toastr', '$interval', '$repositories', '$uibModal', '$filter', '$jwtAuth', '$location', '$translate', 'LicenseRestService', 'ModalService', 'ImportRestService', 'ImportContextService',\n function($scope, toastr, $interval, $repositories, $uibModal, $filter, $jwtAuth, $location, $translate, LicenseRestService, ModalService, ImportRestService, ImportContextService) { // NOSONAR\n const guidesService = service(GuidesService);\n\n // =========================\n // Private variables\n // =========================\n\n const subscriptions = [];\n let listPollingHandler = null;\n const LIST_POLLING_INTERVAL = 4000;\n // Holds the default settings of the chosen repository. Must not be used directly.\n // The \"getDefaultSettings\" function must be used, as it guarantees that the default settings are loaded correctly.\n let defaultSettings = undefined;\n\n // =========================\n // Public variables\n // =========================\n\n $scope.files = []; // should be private\n $scope.fileChecked = {};\n $scope.activeTabId = ImportContextService.getActiveTabId();\n $scope.popoverTemplateUrl = 'settingsPopoverTemplate.html';\n $scope.fileFormatsExtended = FileFormats.getFileFormatsExtended();\n $scope.fileFormatsHuman = FileFormats.getFileFormatsHuman() + $translate.instant('import.gz.zip');\n $scope.textFileFormatsHuman = FileFormats.getTextFileFormatsHuman();\n $scope.maxUploadFileSizeBytes = 0;\n $scope.SORTING_TYPES = SortingType;\n $scope.TAB_IDS = TABS;\n\n // =========================\n // Public functions\n // =========================\n\n $scope.toTitleCase = (str) => stringUtils.toTitleCase(str);\n\n /**\n * Sets the settings for the given file and triggers import process.\n * TODO: this function should be refactored because it does too much.\n *\n * @param {string} fileName - Name of the file.\n * @param {boolean} withDefaultSettings - Whether to use default settings or not.\n * @param {string|undefined} format - Format of the file. This is applicable for single files only.\n * @param {string|undefined} operation - Operation that led to opening the settings modal.\n * @param {Function|undefined} onImportRejectHandler - Function to call when import is rejected.\n */\n $scope.setSettingsFor = (fileName, withDefaultSettings, format, operation, onImportRejectHandler = () => {\n }) => {\n void Promise.all([getSettingsFor(fileName, withDefaultSettings), getDefaultSettings()])\n .then(([settings, defaults]) => {\n $scope.settingsFor = fileName;\n $scope.settings = settings;\n\n const hasContextLink = fileName === \"\" ||\n format === \"application/ld+json\" ||\n format === \"application/x-ld+ndjson\" ||\n fileName.endsWith(\"jsonld\") ||\n fileName.endsWith(\"zip\") ||\n fileName.endsWith(\"gz\") ||\n $scope.settings.type === \"directory\";\n $scope.settings.hasContextLink = hasContextLink;\n\n // \"Restore defaults\" in the dialog must restore the backend defaults, not the saved settings of the file.\n const initialSettings = defaults ? {...defaults, hasContextLink} : structuredClone($scope.settings);\n\n const options = {\n templateUrl: 'js/angular/import/templates/settingsModal.html',\n controller: 'SettingsModalController',\n windowClass: 'import-settings-modal',\n resolve: {\n dialogModel: function() {\n return {\n operation: operation,\n settings: _.cloneDeep($scope.settings),\n hasParserSettings: $scope.isLocalLocation,\n defaultSettings: initialSettings,\n isMultiple: !fileName,\n activeTab: $scope.activeTabId,\n };\n },\n },\n size: 'lg',\n };\n\n if (guidesService.isActive()) {\n // Prevents closing dialog when user click outside the dialog.\n options.backdrop = 'static';\n options.keyboard = false;\n }\n\n $uibModal.open(options).result.then(\n // confirmed handler\n (data) => {\n if ($scope.currentFiles && (data.action === SettingsModalActions.UPLOAD_AND_IMPORT)) {\n const uploadingImportResource = filesToImportResource($scope.currentFiles, ImportResourceStatus.UPLOADING);\n ImportContextService.updateResourcesForUpload(uploadingImportResource);\n }\n\n $scope.settings = data.settings;\n if ($scope.settingsFor === '') {\n $scope.importSelected();\n } else {\n $scope.importFile($scope.settingsFor, true);\n }\n },\n // rejected handler\n (data) => {\n $scope.settings = data.settings;\n if (data.action === SettingsModalActions.CANCEL) {\n $scope.currentFiles = [];\n // remove the selected files because operation was canceled\n if (operation === Operation.UPLOAD) {\n $scope.files = [];\n }\n }\n if ($scope.currentFiles && (data.action === SettingsModalActions.UPLOAD_ONLY)) {\n const uploadingImportResource = filesToImportResource($scope.currentFiles, ImportResourceStatus.UPLOADING);\n ImportContextService.updateResourcesForUpload(uploadingImportResource);\n }\n if (onImportRejectHandler) {\n onImportRejectHandler();\n }\n });\n });\n };\n\n /**\n * TODO: this is just some ugly proxy function. It should be refactored.\n * @param {string} fileName - Name of the file.\n * @param {boolean} withDefaultSettings - Whether to use default settings or not.\n * @param {boolean} startImport - Whether to start the import process or not.\n */\n $scope.updateImport = (fileName, withDefaultSettings, startImport) => {\n getSettingsFor(fileName, withDefaultSettings)\n .then((settings) => {\n $scope.settingsFor = fileName;\n $scope.settings = settings;\n $scope.importFile(fileName, startImport);\n });\n };\n\n $scope.importSelected = (overrideSettings) => {\n const selected = new Set([...getImplicitlySelectedFiles(), ...getExplicitlySelectedFiles()]);\n const selectedFileNames = Array.from(selected);\n\n // Calls the REST API sequentially for the selected files\n const importNext = () => {\n const fileName = selectedFileNames.shift();\n if (fileName) {\n getSettingsFor(fileName)\n .then((settings) => {\n if (overrideSettings) {\n $scope.settings = settings;\n }\n $scope.importFile(fileName, true, importNext);\n });\n }\n };\n\n importNext();\n };\n\n $scope.isLocalLocation = () => {\n const location = $repositories.getActiveLocation();\n return location && location.local;\n };\n\n $scope.updateList = (force) => {\n if (!$scope.canWriteActiveRepo()) {\n return;\n }\n $scope.updateListHttp(force);\n };\n\n /**\n * Handles the change of the active repository.\n *\n * !!!This should be public because it's used by the upload and import controllers\n */\n $scope.onRepositoryChange = () => {\n // Update restricted on repositoryIsSet\n $scope.setRestricted();\n if ($scope.isRestricted) {\n return;\n }\n $scope.updateList(true);\n loadDefaultSettings();\n };\n\n /**\n * Handles the import operation triggered by the user.\n * @param {ImportResourceTreeElement} resource - The resource for which the import should be triggered.\n */\n $scope.onImport = (resource) => {\n $scope.setSettingsFor(resource.importResource.name, false, resource.importResource.format, Operation.IMPORT);\n };\n\n /**\n * Triggers abort operation in the backend for selected resources.\n * @param {ImportResourceTreeElement} resource - The resource for which the import should be stopped.\n */\n $scope.onStopImport = (resource) => {\n const file = resource.importResource;\n const importAborter = $scope.activeTabId === TABS.USER ? ImportRestService.stopUserDataImport : ImportRestService.stopServerImport;\n importAborter($repositories.getActiveRepository(), {name: file.name, type: file.type})\n .success(function() {\n $scope.updateList();\n }).error(function(data) {\n toastr.warning($translate.instant('import.error.could.not.stop', {data: getError(data)}));\n $scope.updateList();\n });\n };\n\n /**\n * Triggers a remove operation in the backend for selected resources.\n * @param {ImportResourceTreeElement[]} resources - The resources to be removed.\n */\n $scope.onRemove = (resources) => {\n const resourceNames = resources.map((resource) => resource.name);\n removeEntry(resourceNames);\n };\n\n /**\n * Resets the status of the selected resources.\n * @param {string[]} selectedResourcesNames - The names of the resources to be reset.\n */\n $scope.onReset = (selectedResourcesNames) => {\n resetStatusOrRemoveEntry(selectedResourcesNames, false);\n };\n\n /**\n * Imports all selected resources.\n * @param {ImportResourceTreeElement[]} selectedResources - The resources to be imported.\n * @param {boolean} withoutChangingSettings - Whether to use default settings or not.\n */\n $scope.importAll = (selectedResources, withoutChangingSettings) => {\n if (withoutChangingSettings) {\n $scope.importSelected(selectedResources, withoutChangingSettings);\n } else {\n // For single file import we need to pass the name.\n let fileName = '';\n if (selectedResources.length === 1) {\n fileName = selectedResources[0].importResource.name;\n }\n $scope.setSettingsFor(fileName, withoutChangingSettings, undefined, Operation.BATCH_IMPORT);\n }\n };\n\n /**\n * Edits the <code>resource</code>.\n *\n * @param {ImportResourceTreeElement} resource - the resource to be edited.\n */\n $scope.onEditResource = (resource) => {\n if (resource.importResource.isText()) {\n $scope.openTextSnippetDialog(resource.importResource);\n }\n };\n\n // =========================\n // Private functions\n // =========================\n\n const pollList = () => {\n listPollingHandler = $interval(() => {\n // Skip iteration if we are updating something\n if (!$scope.updating) {\n $scope.updateList(false);\n }\n }, LIST_POLLING_INTERVAL);\n };\n\n const loadDefaultSettings = () => {\n defaultSettings = undefined;\n if (!$scope.canWriteActiveRepo()) {\n return Promise.resolve(defaultSettings);\n }\n\n return ImportRestService.getDefaultSettings($repositories.getActiveRepository())\n .success(function(data) {\n defaultSettings = data;\n return defaultSettings;\n }).error(function(data) {\n toastr.warning($translate.instant('import.error.default.settings', {data: getError(data)}));\n });\n };\n\n /**\n * Get selection from the resource tree. These are files explicitly selected by the user by checking the\n * checkboxes.\n * @return {string[]}\n */\n const getExplicitlySelectedFiles = () => {\n return ImportContextService.getSelectedFilesNames();\n };\n\n /**\n * Get the names of the files which were just uploaded.\n * @return {string[]}\n */\n const getImplicitlySelectedFiles = () => {\n return $scope.currentFiles\n .filter((file) => file.name)\n .map((file) => file.name);\n };\n\n /**\n * Opens a confirmation dialog to confirm the removal of the selected resources. If removal is confirmed, a\n * request is sent to the backend with the selected file names to be removed.\n * @param {string[]} names - The names of the resources to be removed.\n */\n const removeEntry = (names = []) => {\n const namesString = `<br/>${names.map((name) => escape(name)).join('<br/>')}`;\n const message = decodeHTML($translate.instant('import.remove.confirm.msg', {name: namesString}));\n ModalService.openConfirmation(\n $translate.instant('common.confirm'),\n message,\n () => {\n resetStatusOrRemoveEntry(names, true);\n });\n };\n\n const getDefaultSettings = () => {\n if (defaultSettings) {\n return Promise.resolve(angular.copy(defaultSettings));\n }\n return loadDefaultSettings()\n .then(() => {\n return angular.copy(defaultSettings);\n });\n };\n\n const getSettingsFor = (fileName, withDefaultSettings) => {\n if (!withDefaultSettings && !_.isEmpty(fileName) && !_.isEmpty($scope.savedSettings[fileName])) {\n return Promise.resolve($scope.savedSettings[fileName]);\n } else {\n return getDefaultSettings()\n .then((defaultSettings) => {\n return defaultSettings;\n });\n }\n };\n\n // TODO: temporary exposed in the scope because it is called via scope.parent from the child TabsCtrl which should be changed\n /**\n * @param {boolean} force - Force the files list to be replaced with the new data\n * @return {Promise} A promise which is self resolved. An ugly legacy solution which we didn't want to change now.\n */\n $scope.updateListHttp = (force) => {\n if (!$repositories.getActiveRepository()) {\n return Promise.resolve();\n }\n const filesLoader = $scope.activeTabId === TABS.USER ? ImportRestService.getUploadedFiles : ImportRestService.getServerFiles;\n const executedInTabId = $scope.activeTabId;\n return filesLoader($repositories.getActiveRepository())\n .success(function(data) {\n if (executedInTabId !== ImportContextService.getActiveTabId()) {\n return;\n }\n\n ImportContextService.updateImportedResources(toImportResource(data));\n\n // reload all files\n if ($scope.files.length === 0 || force) {\n $scope.files = data;\n ImportContextService.updateFiles($scope.files);\n $scope.files.forEach(function(f) {\n if (!f.type) {\n f.type = $scope.defaultType;\n }\n });\n } else {\n // update the status of the files using the response from the server\n $scope.files.forEach(function(f) {\n const remoteStatus = _.find(data, _.matches({'name': f.name}));\n // Merge file if previously processed (has status) or if newly uploaded (lacks parserSettings)\n if ((f.status || !f.parserSettings) && remoteStatus) {\n _.assign(f, remoteStatus);\n }\n if (!f.type) {\n f.type = $scope.defaultType;\n }\n });\n }\n // Need new status here\n if (force && TABS.USER === $scope.activeTabId) {\n $scope.files = _.filter($scope.files, function(f) {\n return f.status !== undefined;\n });\n ImportContextService.updateFiles($scope.files);\n }\n\n $scope.savedSettings = _.mapKeys(_.filter($scope.files, 'parserSettings'), 'name');\n }).error(function(data) {\n toastr.warning($translate.instant('import.error.could.not.get.files', {data: getError(data)}));\n });\n };\n\n const resetStatusOrRemoveEntry = (names, remove) => {\n if (!names || names.length < 1) {\n return;\n }\n const resetService = $scope.activeTabId === TABS.USER ? ImportRestService.resetUserDataStatus : ImportRestService.resetServerFileStatus;\n resetService($repositories.getActiveRepository(), names, remove).success(function() {\n $scope.updateList(true);\n }).error(function(data) {\n toastr.warning($translate.instant('import.error.could.not.clear', {data: getError(data)}));\n $scope.updateList(true);\n });\n };\n\n const getAppData = () => {\n LicenseRestService.getInfo().success(function(data) {\n $scope.appData = {};\n $scope.appData.properties = {};\n for (let i = 0; i < data.length; i++) {\n $scope.appData.properties[data[i].key] = {\n source: data[i].source,\n value: data[i].value,\n };\n }\n $scope.maxUploadFileSizeBytes = $scope.appData.properties['graphdb.workbench.maxUploadSize'].value;\n }).error(function(data) {\n const msg = getError(data);\n toastr.error(msg, $translate.instant('common.error'));\n });\n };\n\n const removeAllListeners = () => {\n subscriptions.forEach((subscription) => subscription());\n };\n\n const onActiveTabChanged = (activeTabId) => {\n $scope.activeTabId = activeTabId;\n ImportContextService.updateImportedResources([]);\n ImportContextService.updateResourcesForUpload([]);\n ImportContextService.updateShowLoader(true);\n $scope.updateListHttp(true).finally(() => ImportContextService.updateShowLoader(false));\n };\n\n const initSubscriptions = () => {\n subscriptions.push($scope.$on('repositoryIsSet', $scope.onRepositoryChange));\n subscriptions.push($scope.$on('$destroy', () => $interval.cancel(listPollingHandler)));\n subscriptions.push(ImportContextService.onActiveTabIdUpdated((newActiveTabId) => onActiveTabChanged(newActiveTabId)));\n $scope.$on('$destroy', removeAllListeners);\n };\n\n // =========================\n // Initialization\n // =========================\n $scope.importViewControllerInit = () => {\n initSubscriptions();\n getAppData();\n loadDefaultSettings();\n pollList();\n onActiveTabChanged(ImportContextService.getActiveTabId());\n };\n }]);\n\nimportViewModule.controller('ImportCtrl', ['$scope', 'toastr', '$controller', '$translate', '$repositories', 'ImportRestService', 'ImportContextService', function($scope, toastr, $controller, $translate, $repositories, ImportRestService, ImportContextService) {\n // =========================\n // Private variables\n // =========================\n\n // =========================\n // Public variables\n // =========================\n\n $scope.columnKeys = {\n 'name': 'import.import_resource_tree.header.name',\n 'size': 'import.import_resource_tree.header.size',\n 'modified': 'import.import_resource_tree.header.modified',\n 'imported': 'import.import_resource_tree.header.imported',\n 'context': 'import.import_resource_tree.header.context',\n };\n //eslint-disable-next-line no-invalid-this\n angular.extend(this, $controller('ImportViewCtrl', {$scope: $scope}));\n $scope.defaultType = 'server';\n $scope.tabId = '#import-server';\n\n // =========================\n // Public functions\n // =========================\n\n /**\n * Triggers import operation for selected files.\n * @param {boolean} overrideSettings If default settings should be used or not.\n */\n $scope.importSelected = (overrideSettings) => {\n importServerFiles(ImportContextService.getSelectedFilesNames(), overrideSettings);\n };\n\n $scope.importFile = function(fileName) {\n importServerFiles([fileName]);\n };\n\n // =========================\n // Private functions\n // =========================\n\n const importServerFiles = function(selectedFileNames, overrideSettings) {\n if (!$scope.canWriteActiveRepo()) {\n return;\n }\n\n ImportRestService.importServerFiles(\n $repositories.getActiveRepository(),\n {importSettings: overrideSettings ? null : $scope.settings, fileNames: selectedFileNames},\n ).success(function() {\n $scope.updateList();\n $scope.fileChecked = {};\n }).error(function(data) {\n toastr.error($translate.instant('import.could.not.send.file', {data: getError(data)}));\n });\n };\n\n // =========================\n // Initialization\n // =========================\n\n if (TABS.SERVER === ImportContextService.getActiveTabId()) {\n $scope.importViewControllerInit();\n }\n}]);\n\nimportViewModule.controller('UploadCtrl', ['$scope', 'toastr', '$controller', '$uibModal', '$translate', '$repositories', 'ImportRestService', 'UploadRestService', 'ModalService', 'ImportContextService', 'EventEmitterService', '$filter', function($scope, toastr, $controller, $uibModal, $translate, $repositories, ImportRestService, UploadRestService, ModalService, ImportContextService, EventEmitterService, $filter) {\n // =========================\n // Private variables\n // =========================\n\n // A registry to keep track of the current index for each file name. The registry is created on page load and\n // updated when a new file is selected by the user with the option to preserve the original file.\n const filesPrefixRegistry = new FilePrefixRegistry();\n // Keeps track of any subscription that needs to be removed when the controller is destroyed.\n const subscriptions = [];\n\n // =========================\n // Public variables\n // =========================\n\n $scope.columnKeys = {\n 'name': 'import.import_resource_tree.header.name',\n 'size': 'import.import_resource_tree.header.size',\n 'modified': 'import.import_resource_tree.header.uploaded',\n 'imported': 'import.import_resource_tree.header.imported',\n 'context': 'import.import_resource_tree.header.context',\n };\n //eslint-disable-next-line no-invalid-this\n angular.extend(this, $controller('ImportViewCtrl', {$scope: $scope}));\n $scope.defaultType = USER_DATA_TYPE.FILE;\n $scope.tabId = '#import-user';\n // A list with all files that were uploaded or currently selected for uploading by the user.\n // This list is being watched by the controller. When it finds a change, it updates the $scope.files and tries to\n // upload the new files.\n // This is similar to the $scope.files which is used for the table rendering, but the files in the later have\n // different nested models. See the watcher for more details.\n $scope.currentFiles = [];\n // A flag to indicate if the list is initialized for the first time on load. This is needed in order to prevent\n // the watcher for $scope.currentFiles to try to update the $scope.files and to re-upload them on load.\n let isFileListInitialized = false;\n $scope.pastedDataIdx = 1;\n\n // =========================\n // Public functions\n // =========================\n\n $scope.fileSelected = function($files, $file, $newFiles, $duplicateFiles, $invalidFiles) {\n const eventData = {files: $newFiles, cancel: false};\n // Notify that new files have been selected and will be added for uploading.\n // Subscribers of the \"filesForUploadSelected\" event may cancel the event by setting the 'cancel' property to true in the passed 'eventData' object.\n EventEmitterService.emit(\"filesForUploadSelected\", eventData, (eventData) => {\n // Skip uploading of files if some subscriber canceled the uploading.\n if (!eventData.cancel) {\n const invalidFiles = $invalidFiles || [];\n notifyForTooLargeFiles(invalidFiles);\n const invalidFileNames = invalidFiles.map((invalidFile) => invalidFile.name);\n\n let newFiles = $newFiles || [];\n newFiles = newFiles.filter((file) => !invalidFileNames.includes(file.name));\n\n // RDF4J does not support decompressing .bz2 files, so we want to reject importing them\n removeBZip2Files(newFiles);\n\n const duplicatedFiles = [];\n const uniqueFiles = [];\n newFiles.forEach((file) => {\n const isDuplicated = $scope.files.some((currentFile) => currentFile.name === file.name);\n if (isDuplicated) {\n duplicatedFiles.push(file);\n } else {\n uniqueFiles.push(file);\n }\n });\n\n if (duplicatedFiles.length > 0) {\n // ask the user if he wants to keep the original files or overwrite them.\n openDuplicatedFilesConfirmDialog(duplicatedFiles, uniqueFiles);\n } else {\n $scope.currentFiles = [...newFiles];\n isFileListInitialized = true;\n uploadedFilesValidatorAndProcess();\n }\n }\n });\n };\n\n /**\n * Triggers import operation for selected resource. The resource can be a file, url or a rdf text snippet.\n * @param {string} fileName The name of the file that was selected.\n * @param {boolean} startImport If the import should be started immediately.\n * @param {function} nextCallback A callback that is called when the import is finished.\n */\n $scope.importFile = (fileName, startImport, nextCallback) => {\n const file = $scope.files.find((currentFile) => currentFile.name === fileName);\n if (!file) {\n toastr.warning($translate.instant('import.no.such.file', {name: fileName}));\n } else {\n if (file.type === USER_DATA_TYPE.TEXT) {\n importTextSnippet(file, startImport, nextCallback);\n } else if (file.type === USER_DATA_TYPE.URL) {\n importFromUrl(file, startImport, nextCallback);\n } else {\n uploadFile(file, startImport, nextCallback);\n }\n }\n };\n\n /**\n * Opens a modal dialog where the user can paste a rdf text snippet and import it.\n * @param {{ImportResource}|undefined} importResource\n */\n $scope.openTextSnippetDialog = (importResource) => {\n const scope = {};\n if (importResource) {\n scope.rdfText = importResource.data;\n }\n const modalInstance = $uibModal.open({\n templateUrl: 'js/angular/import/templates/textSnippet.html',\n controller: 'ImportTextSnippetController',\n resolve: {\n text: function() {\n return importResource ? importResource.data : '';\n },\n format: function() {\n return importResource ? importResource.format : 'text/turtle';\n },\n },\n });\n\n modalInstance.result.then((data) => {\n if (importResource) {\n if ((importResource.data !== data.text || importResource.format !== data.format) && importResource.status !== ImportResourceStatus.NONE) {\n importResource.status = ImportResourceStatus.NONE;\n importResource.message = $translate.instant('import.text.snippet.not.imported');\n }\n importResource.data = data.text;\n importResource.format = data.format;\n updateTextImport(importResource)\n .then(() => $scope.updateListHttp(true))\n .then(() => {\n if (data.startImport) {\n $scope.setSettingsFor(importResource.name, false, importResource.format, Operation.IMPORT_SNIPPET);\n }\n });\n } else {\n importResource = {type: 'text', name: 'Text snippet ' + DateUtils.formatCurrentDateTime(), format: data.format, data: data.text};\n $scope.files.unshift(importResource);\n $scope.updateImport(importResource.name, false, false);\n if (data.startImport) {\n $scope.setSettingsFor(importResource.name, false, importResource.format, Operation.IMPORT_SNIPPET);\n }\n }\n });\n };\n\n /**\n * Opens a modal dialog where the user can paste an url and import the data from it.\n */\n $scope.rdfDataFromURL = () => {\n const modalInstance = $uibModal.open({\n templateUrl: 'js/angular/import/templates/urlImport.html',\n controller: 'ImportUrlController',\n scope: $scope,\n });\n\n modalInstance.result.then(function(data) {\n // URL may already exist\n const existing = _.find($scope.files, {type: 'url', name: data.url});\n if (existing) {\n existing.format = data.format;\n } else {\n $scope.files.unshift({type: 'url', name: data.url, format: data.format, data: data.url});\n }\n $scope.updateImport(data.url, true, false);\n if (data.startImport) {\n $scope.setSettingsFor(data.url, true, data.format, Operation.IMPORT_URL);\n }\n });\n };\n\n // =========================\n // Private functions\n // =========================\n\n const notifyForTooLargeFiles = (invalidFiles) => {\n if (invalidFiles.length > 0) {\n invalidFiles.forEach(function(file) {\n toastr.warning($translate.instant('import.large.file', {\n name: file.name,\n size: $filter('bytes')(file.size),\n }));\n });\n }\n };\n\n const importTextSnippet = (file, startImport, nextCallback) => {\n $scope.settings.name = file.name;\n $scope.settings.type = file.type;\n $scope.settings.data = file.data;\n $scope.settings.format = file.format;\n file.status = ImportResourceStatus.PENDING;\n\n const importer = startImport ? ImportRestService.importTextSnippet : ImportRestService.updateTextSnippet;\n importer($repositories.getActiveRepository(), $scope.settings)\n .success(function() {\n $scope.updateList();\n }).error(function(data) {\n toastr.error($translate.instant('import.could.not.send.data', {data: getError(data)}));\n file.status = ImportResourceStatus.ERROR;\n file.message = getError(data);\n }).finally(nextCallback || function() {});\n };\n\n const updateTextImport = (settings) => {\n $scope.updating = true;\n return ImportRestService.updateTextSnippet($repositories.getActiveRepository(), settings).success(function(data) {\n // it's updated\n }).error(function(data) {\n toastr.error($translate.instant('import.could.not.update.text', {data: getError(data)}));\n }).finally(function() {\n $scope.updating = false;\n });\n };\n\n const importFromUrl = (file, startImport, nextCallback) => {\n $scope.settings.name = file.name;\n $scope.settings.type = file.type;\n $scope.settings.data = file.data;\n $scope.settings.format = file.format;\n file.status = ImportResourceStatus.PENDING;\n\n const importer = startImport ? ImportRestService.importFromUrl : ImportRestService.updateFromUrl;\n importer($repositories.getActiveRepository(), $scope.settings).success(function() {\n $scope.updateList();\n }).error(function(data) {\n toastr.error($translate.instant('import.could.not.send.url', {data: getError(data)}));\n }).finally(nextCallback || function() {});\n };\n\n const uploadFile = (file, startImport, nextCallback) => {\n $scope.settings.name = file.name;\n const data = UploadRestService.createUploadPayload(file, $scope.settings);\n const uploader = startImport ? UploadRestService.uploadUserDataFile : UploadRestService.updateUserDataFile;\n uploader($repositories.getActiveRepository(), file, data)\n .progress((evt) => {\n const progress = parseInt(100.0 * evt.loaded / evt.total) || 0;\n const uploadProgressMessage = $translate.instant(\n 'import.file.upload.progress',\n {progress: progress});\n\n const uploadingResource = ImportContextService.getResourceForUpload(file.name);\n /**\n * Skips the update of files that encountered an error during upload.\n *\n * <p>This is necessary because the upload library may exhibit different behavior\n * when there are connection issues. In some cases, the error callback is invoked\n * for a file, but once the connection is reestablished, the progress callback may\n * be called again. This can cause a mismatch between the file's status and its\n * corresponding message.</p>\n *\n * <p>To avoid this mismatch, we check if the resource is marked as failed\n * (i.e., has a status of {@code ImportResourceStatus.UPLOAD_ERROR}) before\n * proceeding with the update.</p>\n */\n if (uploadingResource && uploadingResource.status !== ImportResourceStatus.UPLOAD_ERROR) {\n if (progress >= 100) {\n uploadingResource.status = ImportResourceStatus.UPLOADED;\n } else {\n uploadingResource.status = ImportResourceStatus.UPLOADING;\n }\n uploadingResource.message = uploadProgressMessage;\n ImportContextService.updateResourceForUpload(uploadingResource);\n }\n })\n .success((resp) => {\n const uploadingResource = ImportContextService.getResourceForUpload(file.name);\n /**\n * Skips the update of files that encountered an error during upload.\n *\n * <p>This is necessary because the upload library may exhibit different behavior\n * when there are connection issues. In some cases, the error callback is invoked\n * for a file, but once the connection is reestablished, the progress callback may\n * be called again. This can cause a mismatch between the file's status and its\n * corresponding message.</p>\n *\n * <p>To avoid this mismatch, we check if the resource is marked as failed\n * (i.e., has a status of {@code ImportResourceStatus.UPLOAD_ERROR}) before\n * proceeding with the update.</p>\n */\n if (uploadingResource && uploadingResource.status !== ImportResourceStatus.UPLOAD_ERROR) {\n uploadingResource.status = ImportResourceStatus.UPLOADED;\n uploadingResource.message = undefined;\n ImportContextService.updateResourceForUpload(uploadingResource);\n }\n $scope.updateList();\n })\n .error((error) => {\n let errorMessage = '';\n if (error) {\n errorMessage = $translate.instant('import.could.not.upload.file', {data: errorMessage});\n } else {\n errorMessage = $translate.instant('import.upload.file.failure');\n }\n toastr.error(errorMessage);\n\n file.status = ImportResourceStatus.ERROR;\n file.message = errorMessage;\n const uploadingResource = ImportContextService.getResourceForUpload(file.name);\n /**\n * Skips the update of files that encountered an error during upload.\n *\n * <p>This is necessary because the upload library may exhibit different behavior\n * when there are connection issues. In some cases, the error callback is invoked\n * for a file, but once the connection is reestablished, the progress callback may\n * be called again. This can cause a mismatch between the file's status and its\n * corresponding message.</p>\n *\n * <p>To avoid this mismatch, we check if the resource is marked as failed\n * (i.e., has a status of {@code ImportResourceStatus.UPLOAD_ERROR}) before\n * proceeding with the update.</p>\n */\n // Prevents updating resource if it already uploaded.\n if (uploadingResource && uploadingResource.status !== ImportResourceStatus.UPLOADED) {\n uploadingResource.status = ImportResourceStatus.UPLOAD_ERROR;\n uploadingResource.message = errorMessage;\n ImportContextService.updateResourceForUpload(uploadingResource);\n }\n })\n .finally(() => {\n $scope.currentFiles = $scope.currentFiles.filter(({name: selectedFileName}) => selectedFileName !== file.name);\n nextCallback();\n });\n };\n\n const removeBZip2Files = (files) => {\n files.forEach(function(f) {\n if (f.name.substr(f.name.lastIndexOf('.') + 1) === 'bz2') {\n const fileIdx = files.indexOf(f);\n if (fileIdx > -1) {\n files.splice(fileIdx, 1);\n }\n toastr.error($translate.instant('import.could.not.upload', {name: f.name}));\n }\n });\n };\n\n const openDuplicatedFilesConfirmDialog = (duplicatedFiles, uniqueFiles) => {\n const existingFilenames = duplicatedFiles.map((file) => escape(file.name)).join('<br/>');\n const modalInstance = $uibModal.open({\n templateUrl: 'js/angular/import/templates/file-override-confirmation.html',\n controller: 'FileOverrideConfirmationController',\n windowClass: 'confirm-duplicate-files-dialog',\n resolve: {\n duplicatedFiles: () => existingFilenames,\n },\n });\n\n modalInstance.result.then((data) => {\n if (data.overwrite) {\n // on first upload, currentFiles would be empty\n if (!$scope.currentFiles.length) {\n $scope.currentFiles.push(...duplicatedFiles, ...uniqueFiles);\n } else {\n // while staying on the import view, each upload after the first should override existing files with\n // newer versions if file names are equal\n $scope.currentFiles = [...duplicatedFiles, ...uniqueFiles];\n }\n } else {\n // override rejected\n const prefixedDuplicates = filesPrefixRegistry.prefixDuplicates(duplicatedFiles);\n $scope.currentFiles = [...$scope.currentFiles, ...prefixedDuplicates, ...uniqueFiles];\n }\n isFileListInitialized = true;\n uploadedFilesValidatorAndProcess();\n });\n };\n\n const uploadedFilesValidatorAndProcess = () => {\n $scope.files = _.uniqBy(\n _.union(\n _.map($scope.currentFiles, function(file) {\n return {name: file.name, type: 'file', file: file};\n }),\n $scope.files,\n ),\n function(file) {\n return file.name;\n },\n );\n $scope.savedSettings = _.mapKeys(_.filter($scope.files, 'parserSettings'), 'name');\n if (isFileListInitialized) {\n // Mark the new files so that they can all be collected and imported.\n if ($scope.currentFiles.length > 0) {\n deselectAllFiles();\n // TODO: Get the selection from the tree where the user might have selected a file before and add it to\n // the list of currentFiles files to be imported.\n $scope.currentFiles.forEach((file) => {\n $scope.fileChecked[file.name] = true;\n });\n // Provide an import rejected callback and do the upload instead.\n let fileName = '';\n if ($scope.currentFiles.length === 1) {\n fileName = $scope.currentFiles[0].name;\n }\n $scope.setSettingsFor(fileName, false, undefined, Operation.UPLOAD, () => {\n $scope.currentFiles.forEach((file) => {\n $scope.updateImport(file.name, false, false);\n });\n });\n }\n }\n };\n\n const deselectAllFiles = () => {\n // TODO: This should be removed at some time\n Object.keys($scope.fileChecked).forEach((key) => {\n $scope.fileChecked[key] = false;\n });\n };\n\n const removeAllListeners = () => {\n subscriptions.forEach((subscription) => subscription());\n };\n\n // =========================\n // Watchers and event handlers\n // =========================\n\n\n $scope.$on('$destroy', removeAllListeners);\n\n // =========================\n // Initialization\n // =========================\n\n const init = function() {\n subscriptions.push(ImportContextService.onFilesUpdated((files) => {\n filesPrefixRegistry.buildPrefixesRegistry(files);\n }));\n };\n if (TABS.USER === ImportContextService.getActiveTabId()) {\n $scope.importViewControllerInit();\n init();\n }\n}]);\n","import {TABS} from \"../services/import-context.service\";\nimport {Operation} from \"./import-view.controller\";\nangular\n .module('graphdb.framework.impex.import.controllers.settings-modal', [])\n .controller('SettingsModalController', SettingsModalController);\n\n\nexport const SettingsModalActions = {\n UPLOAD_ONLY: 'upload_only',\n UPLOAD_AND_IMPORT: 'upload_and_import',\n CANCEL: 'cancel',\n CANCEL_IMPORT: 'cancel_import'\n};\n\n// TODO: combine all model parameters into one object!!!\nSettingsModalController.$inject = ['$scope', '$uibModalInstance', 'toastr', 'UriUtils', '$translate', 'dialogModel'];\n\nfunction SettingsModalController($scope, $uibModalInstance, toastr, UriUtils, $translate, dialogModel) {\n\n // =========================\n // Public variables\n // =========================\n\n $scope.settings = dialogModel.settings;\n $scope.hasParserSettings = dialogModel.hasParserSettings;\n $scope.isMultiple = dialogModel.isMultiple;\n $scope.enableReplace = !!($scope.settings.replaceGraphs && $scope.settings.replaceGraphs.length);\n $scope.showAdvancedSettings = false;\n $scope.activeTab = dialogModel.activeTab;\n $scope.userTabId = TABS.USER;\n $scope.isUploadOperation = dialogModel.operation === Operation.UPLOAD;\n\n // =========================\n // Public functions\n // =========================\n\n $scope.hasError = function (error, input) {\n return _.find(error, function (o) {\n return input === o['$name'];\n });\n };\n\n $scope.ok = function () {\n // resets the validity of a field only used for temporary things\n $scope.settingsForm.replaceGraph.$setValidity('replaceGraph', true);\n\n if ($scope.settingsForm.$valid) {\n fixSettings();\n $uibModalInstance.close(getDismissModel(SettingsModalActions.UPLOAD_AND_IMPORT));\n }\n };\n\n $scope.cancel = function () {\n fixSettings();\n $uibModalInstance.dismiss(getDismissModel(SettingsModalActions.CANCEL));\n };\n\n $scope.onlyUpload = function () {\n fixSettings();\n $uibModalInstance.dismiss(getDismissModel(SettingsModalActions.UPLOAD_ONLY));\n };\n\n $scope.cancelImport = function () {\n fixSettings();\n $uibModalInstance.dismiss(getDismissModel(SettingsModalActions.CANCEL_IMPORT));\n };\n\n $scope.close = function () {\n fixSettings();\n $uibModalInstance.dismiss(getDismissModel(SettingsModalActions.CANCEL));\n };\n\n $scope.reset = function () {\n $scope.settings = _.cloneDeep(dialogModel.defaultSettings);\n $scope.target = 'data';\n };\n\n $scope.addReplaceGraph = function (graph) {\n let valid = true;\n if (graph !== 'default') {\n valid = UriUtils.isValidIri(graph, graph.toString());\n }\n $scope.settingsForm.replaceGraph.$setTouched();\n $scope.settingsForm.replaceGraph.$setValidity('replaceGraph', valid);\n\n if ($scope.settingsForm.replaceGraph.$valid) {\n $scope.settings.replaceGraphs = $scope.settings.replaceGraphs || [];\n if (_.indexOf($scope.settings.replaceGraphs, graph) === -1) {\n $scope.replaceGraph = '';\n $scope.settings.replaceGraphs.push(graph);\n } else {\n toastr.warning($translate.instant('import.graph.already.in.list'));\n }\n }\n };\n\n $scope.checkEnterReplaceGraph = function (event, graph) {\n if (event.keyCode === 13) {\n event.preventDefault();\n $scope.addReplaceGraph(graph);\n }\n };\n\n $scope.switchParserSettings = function () {\n $scope.showAdvancedSettings = !$scope.showAdvancedSettings;\n };\n\n // =========================\n // Private functions\n // =========================\n\n /**\n * Returns the model for the dismiss action.\n * @param {string} action The action to be performed.\n * @return {{settings: *, action}}\n */\n const getDismissModel = function (action) {\n return {\n settings: $scope.settings,\n action\n };\n };\n\n const fixSettings = function () {\n if ($scope.target === 'default') {\n $scope.settings.context = 'default';\n } else if ($scope.target === 'data') {\n $scope.settings.context = '';\n }\n if ($scope.enableReplace) {\n if ($scope.target === 'default' || $scope.target === 'named') {\n $scope.settings.replaceGraphs = [$scope.settings.context];\n }\n } else {\n $scope.settings.replaceGraphs = [];\n }\n };\n\n // =========================\n // Initialization\n // =========================\n\n const init = function () {\n if ($scope.settings.context) {\n if ($scope.settings.context === 'default') {\n $scope.target = 'default';\n $scope.settings.context = '';\n } else {\n $scope.target = 'named';\n }\n } else {\n $scope.target = 'data';\n }\n };\n init();\n}\n\n\n","import {TABS} from \"../services/import-context.service\";\n\nangular\n .module('graphdb.framework.impex.import.controllers.tab', [])\n .controller('TabController', TabController);\n\nTabController.$inject = ['$scope', '$location', 'ImportContextService'];\n\nfunction TabController($scope, $location, ImportContextService) {\n // =========================\n // Private variables\n // =========================\n\n // object holds information about\n let helpVisibility;\n\n // =========================\n // Public variables\n // =========================\n $scope.isHelpVisible = false;\n $scope.fileSizeLimitInfoTemplateUrl = 'js/angular/import/templates/fileSizeLimitInfo.html';\n\n // =========================\n // Public functions\n // =========================\n\n const updateHelpVisibility = () => {\n if (helpVisibility.isPristine($scope.activeTabId)) {\n const resources = ImportContextService.getResources();\n $scope.isHelpVisible = !resources || resources.length === 0;\n } else {\n $scope.isHelpVisible = helpVisibility.isHelpVisible($scope.activeTabId);\n }\n };\n\n $scope.openTab = (tab) => {\n ImportContextService.updateActiveTabId(tab);\n };\n\n $scope.toggleHelp = () => {\n helpVisibility.setIsHelpVisible($scope.activeTabId, !$scope.isHelpVisible);\n updateHelpVisibility();\n };\n\n $scope.closeHelp = () => {\n $scope.toggleHelp();\n // The close button disappears with the help, so move the focus to the button that opens it again.\n document.querySelector('.toggle-help-btn')?.focus();\n };\n\n // =========================\n // Private functions\n // =========================\n const init = () => {\n helpVisibility = new HelpVisibilityPersistence();\n // Updates the active tab id from tha url.\n const activeTabId = $location.hash() || TABS.USER;\n $scope.openTab(activeTabId);\n updateHelpVisibility();\n };\n\n // =========================\n // Watchers and event handlers\n // =========================\n\n const subscriptions = [];\n subscriptions.push(ImportContextService.onActiveTabIdUpdated((newActiveTabId) => {\n $scope.activeTabId = newActiveTabId;\n $location.hash($scope.activeTabId);\n updateHelpVisibility();\n }));\n\n subscriptions.push(ImportContextService.onResourcesUpdated(updateHelpVisibility));\n\n const removeAllListeners = () => subscriptions.forEach((subscription) => subscription());\n\n $scope.$on('$destroy', removeAllListeners);\n\n init();\n}\n\nclass HelpVisibilityPersistence {\n constructor() {\n this._helpVisibility = {\n [TABS.USER]: {\n isHelpVisible: undefined,\n },\n [TABS.SERVER]: {\n isHelpVisible: undefined,\n },\n };\n }\n\n /**\n * Checks if user is toggled the help.\n * @param {string} tabId the value have to be one of {@link TABS}\n * @return {boolean} true if the user has clicked the help icon at least once.\n */\n isPristine(tabId) {\n return this._helpVisibility[tabId].isHelpVisible === undefined;\n }\n\n /**\n * Sets the help visibility.\n * @param {string} tabId the value have to be one of {@link TABS}\n * @param {boolean} isVisible - The visibility of the help.\n */\n setIsHelpVisible(tabId, isHelpVisible) {\n this._helpVisibility[tabId].isHelpVisible = isHelpVisible;\n }\n\n isHelpVisible(tabId) {\n return this._helpVisibility[tabId] && this._helpVisibility[tabId].isHelpVisible;\n }\n}\n","import {FileUtils} from \"../../utils/file-utils\";\n\n/**\n * This is a stateful utility class which maintains a registry of filenames mapped to numerical indices.\n */\nexport class FilePrefixRegistry {\n constructor() {\n this.filesPrefixRegistry = {};\n }\n\n /**\n * Builds a registry of filenames mapped to numerical indices.\n * The registry is in format <code>{filename: index}</code>.\n * @param {[object]} files - list of files to be used when building the registry.\n */\n buildPrefixesRegistry(files) {\n files.filter((file) => file.type === 'file')\n .forEach((file) => {\n // file name is in format file-name-123.txt\n const fileNameOnly = FileUtils.getFilenameAndExtension(file.name).filename;\n\n const suffixSeparatorIndex = fileNameOnly.lastIndexOf('-');\n let index = suffixSeparatorIndex < 0 ? 0 : fileNameOnly.substring(suffixSeparatorIndex + 1);\n let filename = fileNameOnly.substring(0, suffixSeparatorIndex);\n if (suffixSeparatorIndex < 0) {\n index = 0;\n filename = fileNameOnly;\n } else {\n index = fileNameOnly.substring(suffixSeparatorIndex + 1);\n filename = fileNameOnly.substring(0, suffixSeparatorIndex);\n }\n\n if (index) {\n index = parseInt(index);\n const currentIndex = this.filesPrefixRegistry[filename] || 0;\n this.filesPrefixRegistry[filename] = currentIndex < index ? index : currentIndex;\n } else {\n this.filesPrefixRegistry[filename] = 0;\n }\n });\n }\n\n /**\n * Prefixes all the duplicated files with a numeric index.\n * The prefixed file names are in the form of: <originalFileName>-<index>.\n *\n * @param {[object]} files - Array with new files which are selected by the user from the file system.\n * @return {[object]} - The same array with prefixed files.\n */\n prefixDuplicates(files) {\n return files.map((file) => {\n const {filename, extension} = FileUtils.getFilenameAndExtension(file.name);\n const prefixedName = `${filename}-${this.getIndexForFile(filename)}.${extension}`;\n // This is the way how the File name can be changed. It is not possible to change the file name by just\n // calling <code>file.name = 'newName'</code> because the File object is immutable.\n return new File([file], prefixedName, {\n type: file.type,\n lastModified: file.lastModified\n });\n });\n }\n\n /**\n * Finds the index for the given file name. If the file name is already in the registry, it returns the next index,\n * otherwise it creates a new index for the file name.\n * @param {string} filename - The filename to find the index for.\n * @return {*|number} - The index for the given file name.\n */\n getIndexForFile(filename) {\n let index = this.filesPrefixRegistry[filename];\n if (index !== undefined) {\n index++;\n } else {\n index = 0;\n }\n this.filesPrefixRegistry[filename] = index;\n return index;\n }\n}\n","/**\n * The import service is implemented using many controllers and directives that share common variables.\n * The purpose of the ImportContextService is to hold data shared between them.\n */\nimport {cloneDeep} from \"lodash\";\nimport {ImportResourceStatus} from \"../../models/import/import-resource-status\";\n\nexport const TABS = {\n USER: 'user',\n SERVER: 'server'\n};\n\nangular\n .module('graphdb.framework.import.services.importcontext', [])\n .factory('ImportContextService', ImportContextService);\n\nImportContextService.$inject = ['EventEmitterService'];\n\nfunction ImportContextService(EventEmitterService) {\n\n let _activeTabId = TABS.USER;\n /**\n * @type {ImportResource[]}\n * @private\n */\n let _importedResources = [];\n\n /**\n *\n * @type {ImportResource[]}\n * @private\n */\n let _resourcesForUpload = [];\n\n /**\n * @type {*[]}\n * @private\n */\n let _files = [];\n\n let _showLoader = true;\n\n let _selectedFilesNames = [];\n\n return {\n updateActiveTabId,\n getActiveTabId,\n onActiveTabIdUpdated,\n getFiles,\n addFile,\n updateFiles,\n onFilesUpdated,\n getImportedResources,\n updateImportedResources,\n onImportedResourcesUpdated,\n getResources,\n onResourcesUpdated,\n updateShowLoader,\n getShowLoader,\n onShowLoaderUpdated,\n updateSelectedFilesNames,\n getSelectedFilesNames,\n onSelectedFilesNamesUpdated,\n updateResourceForUpload,\n getResourceForUpload,\n updateResourcesForUpload,\n getResourcesForUpload,\n onResourcesForUploadChanged\n };\n\n /**\n * @param {string[]} selectedFilesNames\n */\n function updateSelectedFilesNames(selectedFilesNames) {\n _selectedFilesNames = cloneDeep(selectedFilesNames);\n EventEmitterService.emitSync('selectedFilesNamesUpdated', getSelectedFilesNames());\n }\n\n function getSelectedFilesNames() {\n return cloneDeep(_selectedFilesNames);\n }\n\n /**\n * Subscribes to the 'selectedFilesNamesUpdated' event.\n * @param {function} callback - The callback to be called when the event is fired.\n *\n * @return {function} unsubscribe function.\n */\n function onSelectedFilesNamesUpdated(callback) {\n return EventEmitterService.subscribeSync('selectedFilesNamesUpdated', (selectedFilenames) => callback(selectedFilenames));\n }\n\n /**\n * @param {boolean} showLoader\n */\n function updateShowLoader(showLoader) {\n _showLoader = showLoader;\n EventEmitterService.emitSync('showLoaderUpdated', getShowLoader());\n }\n\n function getShowLoader() {\n return _showLoader;\n }\n\n /**\n * Subscribes to the 'showLoaderUpdated' event.\n * @param {function} callback - The callback to be called when the event is fired.\n *\n * @return {function} unsubscribe function.\n */\n function onShowLoaderUpdated(callback) {\n return EventEmitterService.subscribeSync('showLoaderUpdated', (showLoader) => callback(showLoader));\n }\n\n /**\n * Updates the active tab id of import page.\n * @param {string} activeTabId - the new view of import page. Its value have to be one of {@link OPERATION}\n */\n function updateActiveTabId(activeTabId) {\n _activeTabId = activeTabId;\n EventEmitterService.emitSync('activeTabIdUpdated', getActiveTabId());\n }\n\n function getActiveTabId() {\n return _activeTabId;\n }\n\n /**\n * Subscribes to the 'activeTabUpdated' event.\n * @param {function} callback - The callback to be called when the event is fired.\n *\n * @return {function} unsubscribe function.\n */\n function onActiveTabIdUpdated(callback) {\n return EventEmitterService.subscribeSync('activeTabIdUpdated', (activeTabId) => callback(activeTabId));\n }\n\n /**\n * Updates the list of files.\n * Emits the 'filesUpdated' event when the list of files is updated.\n * The 'filesUpdated' event contains the new list of files.\n * @param {*[]} files\n */\n function updateFiles(files) {\n _files = cloneDeep(files);\n EventEmitterService.emitSync('filesUpdated', getFiles());\n }\n\n /**\n * Subscribes to the 'filesUpdated' event.\n * @param {function} callback - The callback to be called when the event is fired.\n *\n * @return {function} unsubscribe function.\n */\n function onFilesUpdated(callback) {\n return EventEmitterService.subscribeSync('filesUpdated', (files) => callback(files));\n }\n\n /**\n * Adds a file to the list of files.\n * Emits the 'fileAdded' event when the file is added.\n * The 'fileAdded' event contains the added file.\n * @param {object} file - The file to be added.\n */\n function addFile(file) {\n const files = getFiles();\n files.push(file);\n updateFiles(files);\n EventEmitterService.emitSync('fileAdded', cloneDeep(file));\n }\n\n /**\n * Gets the list of files.\n * @return {*[]} - The list of files.\n */\n function getFiles() {\n return cloneDeep(_files);\n }\n\n /**\n * Updates the imported resource. Emits the 'resourcesUpdated' and 'importedResourcesUpdated' events when the resources are updated.\n * The 'resourcesUpdated' event contains the resources that are currently uploading, resources that have been uploaded but not yet returned by the backend,\n * and resources that are either imported or being imported at the moment.\n * @param {ImportResource[]} importResources\n */\n function updateImportedResources(importResources) {\n _importedResources = importResources;\n EventEmitterService.emitSync('importedResourcesUpdated', getImportedResources());\n EventEmitterService.emitSync('resourcesUpdated', getResources());\n }\n\n /**\n * Gets the imported resources.\n * @return {ImportResource[]} - The imported resources.\n */\n function getImportedResources() {\n return cloneDeep(_importedResources) || [];\n }\n\n /**\n * Subscribes to the 'importedResourcesUpdated' event.\n * @param {function} callback - The callback to be called when the event is fired.\n *\n * @return {function} the unsubscribe function.\n */\n function onImportedResourcesUpdated(callback) {\n return EventEmitterService.subscribeSync('importedResourcesUpdated', (importedResources) => callback(importedResources));\n }\n\n /**\n * Gets the resources.\n * @return {ImportResource[]} - the resources that are currently uploading, resources that have been uploaded but not yet returned by the backend,\n * and resources that are either imported or being imported at the moment.\n */\n function getResources() {\n const importResources = getImportedResources();\n let resourcesForUpload = getResourcesForUpload();\n\n const uploadedResources = [];\n const overridingForUploadResource = [];\n\n importResources.forEach(({name: importResourceName}) => {\n const foundResourceForUpdate = resourcesForUpload.find(({name: nameOfUploadingResource}) => nameOfUploadingResource === importResourceName);\n if (foundResourceForUpdate) {\n if (foundResourceForUpdate.status === ImportResourceStatus.UPLOADED) {\n // If an already uploaded resource is found in the list of imported resources, it means we can remove it from the upload list.\n // It is removed here, rather than after the upload is finished, to ensure that the backend has returned it. Otherwise, it may temporarily disappear.\n uploadedResources.push(foundResourceForUpdate);\n } else {\n // If a resource for upload is not uploaded, but it is in list of imported resources, it means that it is uploaded with overwrite option, and we have to show instance that\n // is uploading at the moment.\n // So we add it to list of overwriting resources later we will skip it from the resulted list with resource.\n\n // If a resource is in the list of imported resources but is in the list of resources for upload, it means it was uploaded with the overwrite option,\n // and we need to show the instance that is currently uploading.\n // Therefore, we add it to the list of overwriting resources, so it can be skipped from the final list of resources.\n overridingForUploadResource.push(foundResourceForUpdate);\n }\n }\n });\n\n if (uploadedResources.length > 0) {\n // Remove all uploaded resources that have been returned by the backend.\n resourcesForUpload = resourcesForUpload.filter(({name: nameOfUploadingResource}) => !uploadedResources.some(({name: nameOfUploadedResource}) => nameOfUploadedResource === nameOfUploadingResource));\n updateResourcesForUpload(resourcesForUpload, false);\n }\n\n // Finally, concatenate the resources that are currently uploading, resources that have been uploaded but not yet returned by the backend,\n // and resources that are either imported or being imported at the moment.\n return importResources\n .filter(({name: importResourceName}) => !overridingForUploadResource.some((uploadingResourceName) => importResourceName === uploadingResourceName))\n .concat(resourcesForUpload);\n }\n\n /**\n * Subscribes to the 'resourcesUpdated' event. It will be called when already imported resource or resources for upload are changed.\n *\n * @param {function} callback - The callback to be called when the event is fired.\n *\n * @return {function} the unsubscribe function.\n */\n function onResourcesUpdated(callback) {\n return EventEmitterService.subscribeSync('resourcesUpdated', (resources) => callback(resources));\n }\n\n /**\n * @param {ImportResource} updatedResourceFroUpload\n */\n function updateResourceForUpload(updatedResourceFroUpload) {\n const resourcesForUpload = getResourcesForUpload();\n const foundResource = resourcesForUpload.find(({name: nameOfResourceForUpload}) => nameOfResourceForUpload === updatedResourceFroUpload.name);\n if (foundResource) {\n Object.assign(foundResource, updatedResourceFroUpload);\n } else {\n resourcesForUpload.push(updatedResourceFroUpload);\n }\n updateResourcesForUpload(resourcesForUpload);\n }\n\n function getResourceForUpload(name) {\n return cloneDeep(_resourcesForUpload.find(({name: nameOfResourceForUpload}) => nameOfResourceForUpload === name));\n }\n\n function updateResourcesForUpload(uploadedResources, notifyResourceChanged = true) {\n _resourcesForUpload = cloneDeep(uploadedResources);\n EventEmitterService.emitSync('resourcesForUploadChanged', getResourcesForUpload());\n if (notifyResourceChanged) {\n EventEmitterService.emitSync('resourcesUpdated', getResources());\n }\n }\n\n function getResourcesForUpload() {\n return cloneDeep(_resourcesForUpload) || [];\n }\n\n /**\n * Subscribes to the 'resourcesForUploadChanged' event.\n * @param {function} callback - The callback to be called when the event is fired.\n *\n * @return {function} unsubscribe function.\n */\n function onResourcesForUploadChanged(callback) {\n return EventEmitterService.subscribeSync('resourcesForUploadChanged', (uploadFiles) => callback(uploadFiles));\n }\n}\n","export const FILE_FORMATS = ['ttl', 'rdf', 'rj', 'n3', 'nt', 'nq', 'trig', 'trix', 'brf', 'owl', 'jsonld', 'xml', 'rdfs',\n 'ndjsonld', 'ndjson', 'jsonl'];\n\nexport class FileFormats {\n static getGZS() {\n return FILE_FORMATS.map((format) => `.${format}.gz`);\n }\n\n static getBasics() {\n return FILE_FORMATS.map((format) => `.${format}`);\n }\n\n static getFileFormatsExtended() {\n return [\n ...this.getGZS(),\n ...this.getBasics(),\n '.zip',\n '.gz',\n 'application/gzip',\n 'application/x-gzip'].join(', ');\n }\n\n static getFileFormatsHuman() {\n return [...this.getBasics()].join(' ');\n }\n\n static getTextFileFormatsHuman() {\n return this.getBasics().filter((el) => el !== '.brf').join(' ');\n }\n}\n","export class ImportParsingSettings {\n constructor() {\n /**\n * The property is used when importing JSONLD files only\n * @type {string | undefined}\n */\n this.contextLink = undefined;\n this.preserveBNodeIds = false;\n this.failOnUnknownDataTypes = false;\n this.verifyDataTypeValues = false;\n this.normalizeDataTypeValues = false;\n this.failOnUnknownLanguageTags = false;\n this.verifyLanguageTags = false;\n this.normalizeLanguageTags = false;\n this.stopOnError = true;\n this.disallowDoctypeDecl = true;\n }\n}\n","import {ImportResourceStatus} from \"./import-resource-status\";\nimport {ImportParsingSettings} from \"./import-parsing-settings\";\nimport {ImportResourceType} from \"./import-resource-type\";\n\n/**\n * DTO represents a resource that describes an import resource of rdf data.\n */\nexport class ImportResource {\n\n constructor(importResourceServerData, hashGenerator) {\n // we use hash as a key to tell angular that the object has changed, and it should update the view\n this.hash = hashGenerator(JSON.stringify(importResourceServerData));\n this.name = importResourceServerData ? importResourceServerData.name : undefined;\n this.status = importResourceServerData ? importResourceServerData.status : ImportResourceStatus.NONE;\n this.message = importResourceServerData && importResourceServerData.message ? importResourceServerData.message : '';\n this.context = importResourceServerData && importResourceServerData.context ? importResourceServerData.context : '';\n /**\n *\n * @type {string[]}\n */\n this.replaceGraphs = importResourceServerData ? importResourceServerData.replaceGraphs : [];\n this.baseURI = importResourceServerData ? importResourceServerData.baseURI : undefined;\n this.forceSerial = importResourceServerData ? importResourceServerData.forceSerial : false;\n /**\n * Specifies the type of the import resource. It must be one of the values defined in {@link ImportResourceType}.\n * @type {string | undefined}\n */\n this.type = importResourceServerData ? importResourceServerData.type : undefined;\n /**\n * Specifies the format of RDF data. This property is relevant only for resources of type {@link ImportResourceType.URL} or {@link ImportResourceType.TEXT}.\n * It must be one of the values defined in {@link ImportResourceFormat}.\n * @type {string | undefined}\n */\n this.format = importResourceServerData ? importResourceServerData.format : undefined;\n\n /**\n * @type {string | undefined}\n */\n this.data = importResourceServerData ? importResourceServerData.data : undefined;\n\n /**\n * @type {number | undefined}\n */\n this.modifiedOn = importResourceServerData ? importResourceServerData.lastModified : undefined;\n\n /**\n * @type {number | undefined}\n */\n this.importedOn = importResourceServerData ? importResourceServerData.imported : undefined;\n\n /**\n * @type {string}\n */\n this.size = importResourceServerData ? importResourceServerData.size : '';\n\n /**\n * @type {number}\n */\n this.addedStatements = importResourceServerData ? importResourceServerData.addedStatements : 0;\n\n /**\n * @type {number}\n */\n this.removedStatements = importResourceServerData ? importResourceServerData.removedStatements : 0;\n\n /**\n * @type {number}\n */\n this.numReplacedGraphs = importResourceServerData ? importResourceServerData.numReplacedGraphs : 0;\n\n this.parserSettings = importResourceServerData ? importResourceServerData.parserSettings : new ImportParsingSettings();\n\n /**\n * This field of ImportSettings will be used to forward \"X-Request-Id\" type headers (if any) to thread that will execute the import of file.\n * @type {string | undefined}\n */\n this.requestIdHeadersToForward = importResourceServerData ? importResourceServerData.requestIdHeadersToForward : undefined;\n }\n\n isDirectory() {\n return ImportResourceType.DIRECTORY === this.type;\n }\n\n isFile() {\n return ImportResourceType.FILE === this.type || ImportResourceType.URL === this.type || ImportResourceType.TEXT === this.type;\n }\n\n isURL() {\n return ImportResourceType.URL === this.type;\n }\n\n isText() {\n return ImportResourceType.TEXT === this.type;\n }\n}\n","export const SortingType = {\n \"NAME\": \"NAME\",\n \"SIZE\": \"SIZE\",\n \"MODIFIED\": \"MODIFIED\",\n \"IMPORTED\": \"IMPORTED\",\n \"CONTEXT\": \"CONTEXT\"\n};\n","angular\n .module('graphdb.framework.rest.import.service', [])\n .factory('ImportRestService', ImportRestService);\n\nImportRestService.$inject = ['$http'];\n\nconst BASE_ENDPOINT = 'rest/repositories';\n\nfunction ImportRestService($http) {\n return {\n getDefaultSettings,\n getUploadedFiles,\n getServerFiles,\n importServerFiles,\n importTextSnippet,\n updateTextSnippet,\n importFromUrl,\n updateFromUrl,\n stopServerImport,\n stopUserDataImport,\n resetServerFileStatus,\n resetUserDataStatus\n };\n\n /**\n * Fetches the list of uploaded files.\n * @param {string} repositoryId - The repository id\n * @return {*}\n */\n function getUploadedFiles(repositoryId) {\n return $http.get(`${BASE_ENDPOINT}/${repositoryId}/import/upload`);\n }\n\n /**\n * Fetches the list of server files available in the mounted folder.\n * @param {string} repositoryId - The repository id\n * @return {*}\n */\n function getServerFiles(repositoryId) {\n return $http.get(`${BASE_ENDPOINT}/${repositoryId}/import/server`);\n }\n\n /**\n * Imports the data from the server files.\n * @param {string} repositoryId - The repository id\n * @param {object} data - The settings data to be sent to the server\n * @return {*}\n */\n function importServerFiles(repositoryId, data) {\n return $http.post(`${BASE_ENDPOINT}/${repositoryId}/import/server`, data);\n }\n\n /**\n * Imports the data from the given text snippet.\n * @param {string} repositoryId - The repository id\n * @param {string} data - The text snippet to be imported\n * @return {*}\n */\n function importTextSnippet(repositoryId, data) {\n return $http.post(`${BASE_ENDPOINT}/${repositoryId}/import/upload/text`, data);\n }\n\n /**\n * Updates the data from the given text snippet.\n * @param {string} repositoryId - The repository id\n * @param {string} data - The text snippet to be updated\n * @return {*}\n */\n function updateTextSnippet(repositoryId, data) {\n return $http.post(`${BASE_ENDPOINT}/${repositoryId}/import/upload/update/text`, data);\n }\n\n /**\n * Imports the data from the given URL.\n * @param {string} repositoryId - The repository id\n * @param {object} data - The settings data to be sent to the server\n * @return {*}\n */\n function importFromUrl(repositoryId, data) {\n return $http.post(`${BASE_ENDPOINT}/${repositoryId}/import/upload/url`, data);\n }\n\n /**\n * Updates the data from the given URL.\n * @param {string} repositoryId - The repository id\n * @param {object} data - The settings data to be sent to the server\n * @return {*}\n */\n function updateFromUrl(repositoryId, data) {\n return $http.post(`${BASE_ENDPOINT}/${repositoryId}/import/upload/update/url`, data);\n }\n\n /**\n * Stops the user data import process.\n * @param {string} repositoryId - The repository id\n * @param {{name: string, type: string}} params - The parameters to be sent to the server\n * @return {*}\n */\n function stopUserDataImport(repositoryId, params) {\n return $http.delete(`${BASE_ENDPOINT}/${repositoryId}/import/upload`, {params});\n }\n\n /**\n * Stops the server file import process.\n * @param {string} repositoryId - The repository id\n * @param {{name: string, type: string}} params - The parameters to be sent to the server\n * @return {*}\n */\n function stopServerImport(repositoryId, params) {\n return $http.delete(`${BASE_ENDPOINT}/${repositoryId}/import/server`, {params});\n }\n\n /**\n * Resets server files status.\n * @param {string} repositoryId - The repository id\n * @param {object} data - The settings data to be sent to the server\n * @param {boolean} remove - Remove the files from the server\n * @return {*}\n */\n function resetServerFileStatus(repositoryId, data, remove = true) {\n return $http({\n method: 'DELETE',\n url: `${BASE_ENDPOINT}/${repositoryId}/import/server/status`,\n params: {remove: remove},\n data,\n headers: {'Content-type': 'application/json;charset=utf-8'}\n });\n }\n\n /**\n * Resets user data status.\n * @param {string} repositoryId - The repository id\n * @param {object} data - The settings data to be sent to the server\n * @param {boolean} remove - Remove the files from the server\n * @return {*}\n */\n function resetUserDataStatus(repositoryId, data, remove = true) {\n return $http({\n method: 'DELETE',\n url: `${BASE_ENDPOINT}/${repositoryId}/import/upload/status`,\n params: {remove: remove},\n data,\n headers: {'Content-type': 'application/json;charset=utf-8'}\n });\n }\n\n /**\n * Fetches the default settings for the import process.\n * @param {string} repositoryId - The repository id\n * @return {*}\n */\n function getDefaultSettings(repositoryId) {\n return $http.get(`${BASE_ENDPOINT}/${repositoryId}/import/settings/default`);\n }\n}\n","import {ImportResource} from \"../../models/import/import-resource\";\nimport {md5HashGenerator} from \"../../utils/hash-utils\";\n\nexport const toImportResource = (importResourcesServerData) => {\n const hashGenerator = md5HashGenerator();\n return importResourcesServerData.map((importResourceServerData) => new ImportResource(importResourceServerData, hashGenerator));\n};\n\nexport const fileToImportResource = (file) => {\n const hashGenerator = md5HashGenerator();\n return new ImportResource({\n name: file.name,\n size: file.size,\n type: 'file',\n modifiedOn: file.lastModified,\n file: file\n }, hashGenerator);\n};\n\n/**\n * Converts a list of files to a list of import resources.\n * @param {File[]} files\n * @return {ImportResource[]}\n */\nexport const filesToImportResource = (files, initialStatus) => {\n const hashGenerator = md5HashGenerator();\n const resources = files.map((file) => {\n return new ImportResource({\n name: file.name,\n size: file.size,\n type: 'file',\n modifiedOn: undefined,\n file: file,\n status: initialStatus\n }, hashGenerator);\n });\n return resources;\n};\n","angular\n .module('graphdb.framework.rest.upload.service', [])\n .factory('UploadRestService', UploadRestService);\n\nUploadRestService.$inject = ['$http', 'Upload', '$translate'];\n\nconst BASE_ENDPOINT = 'rest/repositories';\n\nfunction UploadRestService($http, Upload, $translate) {\n return {\n createUploadPayload,\n uploadUserDataFile,\n updateUserDataFile\n };\n\n /**\n * Creates the payload for the file upload.\n * @param {object} file The file to be uploaded\n * @param {object} settings The import settings\n * @return {{file, importSettings: *}}\n */\n function createUploadPayload(file, settings) {\n let data;\n if (file.file) {\n data = {file: file.file, importSettings: Upload.jsonBlob(settings)};\n } else {\n data = {importSettings: Upload.jsonBlob(settings)};\n }\n return data;\n }\n\n /**\n * Uploads the user data file.\n * @param {string} repositoryId The repository id\n * @param {object} file The file to be uploaded\n * @param {object} data The import settings\n * @return {*}\n */\n function uploadUserDataFile(repositoryId, file, data) {\n return Upload.upload({\n url: `${BASE_ENDPOINT}/${repositoryId}/import/upload/file`,\n data: data\n });\n }\n\n /**\n * Updates the user data file.\n * @param {string} repositoryId The repository id\n * @param {object} file The file to be updated\n * @param {object} data The import settings\n * @return {*}\n */\n function updateUserDataFile(repositoryId, file, data) {\n return Upload.upload({\n url: `${BASE_ENDPOINT}/${repositoryId}/import/upload/update/file`,\n data: data\n });\n }\n}\n","export class DateUtils {\n\n /**\n * Generates a string representing the current date and time using a Date instance in a specific format.\n * The format is YYYY-MM-DD HH:mm:ss.SSS, where:\n * YYYY is the four-digit year.\n * MM is the two-digit month (01 = January, 12 = December).\n * DD is the two-digit day of the month.\n * HH is the two-digit hour in 24-hour format.\n * mm is the two-digit minute.\n * ss is the two-digit second.\n * SSS is the three-digit millisecond.\n * @return {string} The formatted date and time string.\n */\n static formatCurrentDateTime() {\n const date = new Date();\n return date.getFullYear() + '-' + _.padStart(date.getMonth() + 1, 2, '0') + '-' + _.padStart(date.getDate(), 2, '0')\n + ' ' + _.padStart(date.getHours(), 2, '0') + ':' + _.padStart(date.getMinutes(), 2, '0') + ':' + _.padStart(date.getSeconds(), 2, '0')\n + '.' + _.padStart(date.getMilliseconds(), 3, '0');\n }\n}\n","import {upperFirst} from \"lodash\";\n\n/**\n * Removes brackets and serial commas from IRIs\n * when used to create ids for links and markers,\n * because elements with ids that contain such\n * are not valid XHTML and cause a host problems\n * when trying to style individual elements\n * @param {string} string The string to be processed.\n * @return {string} A string where the special characters are removed.\n */\nconst removeSpecialChars = (string) => {\n return string.replace(/[()']/g, \"\");\n};\n\nconst toBoolean = (value) => {\n if (typeof value === 'string') {\n return value === 'true';\n }\n return Boolean(value);\n};\n\nconst toTitleCase = (text) => {\n if (!text) {\n return text;\n }\n return upperFirst(text.toLowerCase());\n};\n\nexport {\n removeSpecialChars,\n toBoolean,\n toTitleCase\n};\n\n"],"names":["FileOverrideConfirmationController","$scope","$uibModalInstance","$translate","$sce","duplicatedFiles","message","trustAsHtml","decodeHTML","instant","cancel","dismiss","keepBoth","close","overwrite","angular","module","controller","$inject","ImportTextSnippetController","text","format","importFormats","name","type","rdfText","importFormat","find","formatModel","startImport","sizeLimit","setFormat","ok","ImportUrlController","url","dataUrl","importViewModule","Operation","IMPORT","BATCH_IMPORT","IMPORT_SNIPPET","IMPORT_URL","UPLOAD","toastr","$interval","$repositories","$uibModal","$filter","$jwtAuth","$location","LicenseRestService","ModalService","ImportRestService","ImportContextService","guidesService","service","GuidesService","subscriptions","defaultSettings","listPollingHandler","files","fileChecked","activeTabId","getActiveTabId","popoverTemplateUrl","fileFormatsExtended","FileFormats","getFileFormatsExtended","fileFormatsHuman","getFileFormatsHuman","textFileFormatsHuman","getTextFileFormatsHuman","maxUploadFileSizeBytes","SORTING_TYPES","SortingType","TAB_IDS","TABS","toTitleCase","str","stringUtils","setSettingsFor","fileName","withDefaultSettings","operation","onImportRejectHandler","Promise","all","getSettingsFor","getDefaultSettings","then","settings","defaults","settingsFor","hasContextLink","endsWith","initialSettings","structuredClone","options","templateUrl","windowClass","resolve","dialogModel","_","cloneDeep","hasParserSettings","isLocalLocation","isMultiple","activeTab","size","isActive","backdrop","keyboard","open","result","data","currentFiles","action","SettingsModalActions","UPLOAD_AND_IMPORT","uploadingImportResource","filesToImportResource","ImportResourceStatus","UPLOADING","updateResourcesForUpload","importSelected","importFile","CANCEL","UPLOAD_ONLY","updateImport","overrideSettings","selected","Set","getImplicitlySelectedFiles","getExplicitlySelectedFiles","selectedFileNames","Array","from","importNext","shift","location","getActiveLocation","local","updateList","force","canWriteActiveRepo","updateListHttp","onRepositoryChange","setRestricted","isRestricted","loadDefaultSettings","onImport","resource","importResource","onStopImport","file","USER","stopUserDataImport","stopServerImport","getActiveRepository","success","error","warning","getError","onRemove","resources","resourceNames","map","removeEntry","onReset","selectedResourcesNames","resetStatusOrRemoveEntry","importAll","selectedResources","withoutChangingSettings","length","undefined","onEditResource","isText","openTextSnippetDialog","getSelectedFilesNames","filter","names","namesString","escape","join","openConfirmation","copy","isEmpty","savedSettings","filesLoader","getUploadedFiles","getServerFiles","executedInTabId","updateImportedResources","toImportResource","updateFiles","forEach","f","defaultType","remoteStatus","matches","status","parserSettings","assign","mapKeys","remove","resetUserDataStatus","resetServerFileStatus","removeAllListeners","subscription","onActiveTabChanged","updateShowLoader","finally","importViewControllerInit","push","$on","onActiveTabIdUpdated","newActiveTabId","getInfo","appData","properties","i","key","source","value","msg","updating","$controller","columnKeys","extend","this","tabId","importServerFiles","importSettings","fileNames","SERVER","UploadRestService","EventEmitterService","filesPrefixRegistry","FilePrefixRegistry","isFileListInitialized","pastedDataIdx","fileSelected","$files","$file","$newFiles","$duplicateFiles","$invalidFiles","eventData","emit","invalidFiles","notifyForTooLargeFiles","invalidFileNames","invalidFile","newFiles","includes","removeBZip2Files","uniqueFiles","some","currentFile","openDuplicatedFilesConfirmDialog","uploadedFilesValidatorAndProcess","nextCallback","importTextSnippet","importFromUrl","uploadFile","NONE","updateTextImport","DateUtils","formatCurrentDateTime","unshift","rdfDataFromURL","scope","existing","PENDING","updateTextSnippet","ERROR","updateFromUrl","createUploadPayload","uploadUserDataFile","updateUserDataFile","progress","evt","parseInt","loaded","total","uploadProgressMessage","uploadingResource","getResourceForUpload","UPLOAD_ERROR","UPLOADED","updateResourceForUpload","resp","errorMessage","selectedFileName","substr","lastIndexOf","fileIdx","indexOf","splice","existingFilenames","prefixedDuplicates","prefixDuplicates","uniqBy","union","deselectAllFiles","Object","keys","onFilesUpdated","buildPrefixesRegistry","SettingsModalController","CANCEL_IMPORT","UriUtils","enableReplace","replaceGraphs","showAdvancedSettings","userTabId","isUploadOperation","hasError","input","o","settingsForm","replaceGraph","$setValidity","$valid","fixSettings","getDismissModel","onlyUpload","cancelImport","reset","target","addReplaceGraph","graph","valid","isValidIri","toString","$setTouched","checkEnterReplaceGraph","event","keyCode","preventDefault","switchParserSettings","context","TabController","helpVisibility","isHelpVisible","fileSizeLimitInfoTemplateUrl","updateHelpVisibility","isPristine","getResources","openTab","tab","updateActiveTabId","toggleHelp","setIsHelpVisible","closeHelp","document","querySelector","focus","hash","onResourcesUpdated","init","HelpVisibilityPersistence","constructor","_helpVisibility","fileNameOnly","FileUtils","getFilenameAndExtension","filename","suffixSeparatorIndex","index","substring","currentIndex","extension","prefixedName","getIndexForFile","File","lastModified","_activeTabId","_importedResources","_resourcesForUpload","_files","_showLoader","_selectedFilesNames","emitSync","callback","subscribeSync","getFiles","addFile","getImportedResources","importResources","onImportedResourcesUpdated","importedResources","showLoader","getShowLoader","onShowLoaderUpdated","updateSelectedFilesNames","selectedFilesNames","onSelectedFilesNamesUpdated","selectedFilenames","updatedResourceFroUpload","resourcesForUpload","getResourcesForUpload","foundResource","nameOfResourceForUpload","onResourcesForUploadChanged","uploadFiles","uploadedResources","overridingForUploadResource","importResourceName","foundResourceForUpdate","nameOfUploadingResource","nameOfUploadedResource","uploadingResourceName","concat","notifyResourceChanged","factory","FILE_FORMATS","getGZS","getBasics","el","ImportParsingSettings","contextLink","preserveBNodeIds","failOnUnknownDataTypes","verifyDataTypeValues","normalizeDataTypeValues","failOnUnknownLanguageTags","verifyLanguageTags","normalizeLanguageTags","stopOnError","disallowDoctypeDecl","ImportResource","importResourceServerData","hashGenerator","JSON","stringify","baseURI","forceSerial","modifiedOn","importedOn","imported","addedStatements","removedStatements","numReplacedGraphs","requestIdHeadersToForward","isDirectory","ImportResourceType","DIRECTORY","isFile","FILE","URL","TEXT","isURL","BASE_ENDPOINT","$http","repositoryId","get","post","params","delete","method","headers","importResourcesServerData","md5HashGenerator","initialStatus","Upload","jsonBlob","upload","date","Date","getFullYear","padStart","getMonth","getDate","getHours","getMinutes","getSeconds","getMilliseconds","removeSpecialChars","string","replace","toBoolean","Boolean","upperFirst","toLowerCase"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const __webpack_esm_id__=6345;export const __webpack_esm_ids__=[6345];export const __webpack_esm_modules__={6345(_,I,N){N.d(I,{_:()=>E});const E={PENDING:"PENDING",ACTIVE:"ACTIVE",IN_NEXT:"IN_NEXT",IN_HAS_NEXT:"IN_HAS_NEXT",COMMIT_PENDING:"COMMIT_PENDING",IN_COMMIT:"IN_COMMIT",IN_COMMIT_PLUGIN:"IN_COMMIT_PLUGIN",PARALLEL_BEGIN:"PARALLEL_BEGIN",IN_PARALLEL_IMPORT:"IN_PARALLEL_IMPORT",IN_PARALLEL_COMMIT:"IN_PARALLEL_COMMIT",ENQUEUED:"ENQUEUED",IN_TESTING:"IN_TESTING",CLUSTER_REPLICATING:"FOLLOWER_COMMIT",CLOSED:"CLOSED"}}};
|
|
2
|
+
//# sourceMappingURL=6345.4c432e9c50769f9fed92.bundle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"6345.4c432e9c50769f9fed92.bundle.js","mappings":"gJAAO,MAAMA,EAA6B,CAItC,QAAW,UAKX,OAAU,SAKV,QAAW,UACX,YAAe,cAKf,eAAkB,iBAClB,UAAa,YACb,iBAAoB,mBACpB,eAAkB,iBAClB,mBAAsB,qBACtB,mBAAsB,qBAKtB,SAAY,WACZ,WAAc,aAKd,oBAAuB,kBAKvB,OAAU,S","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/models/monitoring/query-and-update/monitoring-track-record-state.js"],"sourcesContent":["export const MonitoringTrackRecordState = {\n /**\n * Initial state before a permit has been acquired.\n */\n 'PENDING': 'PENDING',\n\n /**\n * state between IN_NEXT and IN_HAS_NEXT\n */\n 'ACTIVE': 'ACTIVE',\n\n // =====================\n // = Iterators' states =\n // =====================\n 'IN_NEXT': 'IN_NEXT',\n 'IN_HAS_NEXT': 'IN_HAS_NEXT',\n\n // ======================================\n // = SE/Free/Worker transaction states =\n // ======================================\n 'COMMIT_PENDING': 'COMMIT_PENDING',\n 'IN_COMMIT': 'IN_COMMIT',\n 'IN_COMMIT_PLUGIN': 'IN_COMMIT_PLUGIN',\n 'PARALLEL_BEGIN': 'PARALLEL_BEGIN',\n 'IN_PARALLEL_IMPORT': 'IN_PARALLEL_IMPORT',\n 'IN_PARALLEL_COMMIT': 'IN_PARALLEL_COMMIT',\n\n // =================\n // = Master states =\n // =================\n 'ENQUEUED': 'ENQUEUED',\n 'IN_TESTING': 'IN_TESTING',\n\n /**\n * Cluster only. The transaction is committed and is being replicated to the followers. It can't be aborted.\n */\n 'CLUSTER_REPLICATING': 'FOLLOWER_COMMIT',\n\n /**\n * final state\n */\n 'CLOSED': 'CLOSED'\n}\n"],"names":["MonitoringTrackRecordState"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const __webpack_esm_id__=64709;export const __webpack_esm_ids__=[64709];export const __webpack_esm_modules__={64709(){function t(){return{link:function(t,e,o){t.$watch("file.status",function(){"IMPORTING"!==t.file.status&&"UPLOADING"!==t.file.status||!$(e).has("object").length>0&&$(e).append('<object width="'+o.size+'" height="'+o.size+'" data="js/angular/templates/loader/ot-loader.svg?v=4.0.0-
|
|
2
|
-
//# sourceMappingURL=64709.
|
|
1
|
+
export const __webpack_esm_id__=64709;export const __webpack_esm_ids__=[64709];export const __webpack_esm_modules__={64709(){function t(){return{link:function(t,e,o){t.$watch("file.status",function(){"IMPORTING"!==t.file.status&&"UPLOADING"!==t.file.status||!$(e).has("object").length>0&&$(e).append('<object width="'+o.size+'" height="'+o.size+'" data="js/angular/templates/loader/ot-loader.svg?v=4.0.0-TR25">{{\'common.loading\' | translate}}</object>')})}}}angular.module("graphdb.framework.import.directives.import-progress-indicator",[]).directive("importProgressIndicator",t),t.$inject=[]}};
|
|
2
|
+
//# sourceMappingURL=64709.62285597fe955d9a4e6f.bundle.js.map
|
package/dist/{64709.692234bce97b3d7c3f08.bundle.js.map → 64709.62285597fe955d9a4e6f.bundle.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"64709.
|
|
1
|
+
{"version":3,"file":"64709.62285597fe955d9a4e6f.bundle.js","mappings":"6HASA,SAASA,IACL,MAAO,CACHC,KAAM,SAASC,EAAOC,EAASC,GAC3BF,EAAMG,OAAO,cAAe,WACE,cAAtBH,EAAMI,KAAKC,QAAgD,cAAtBL,EAAMI,KAAKC,SAC3CC,EAAEL,GAASM,IAAI,UAAUC,OAAS,GACnCF,EAAEL,GAASQ,OAAO,kBAAoBP,EAAKQ,KAAO,aAAeR,EAAKQ,KAAO,8GAGzF,EACJ,EAER,CAnBAC,QACKC,OAAO,gEAHI,IAIXC,UAAU,0BAA2Bf,GAE1CA,EAAwBgB,QAAU,E","sources":["webpack://root-config/./packages/legacy-workbench/src/js/angular/import/directives/import-progress-indicator.directive.js"],"sourcesContent":["const modules = [];\n\nangular\n .module('graphdb.framework.import.directives.import-progress-indicator', modules)\n .directive('importProgressIndicator', ImportProgressIndicator);\n\nImportProgressIndicator.$inject = [];\n\n// importDirectives.directive('filesOntoLoader',\nfunction ImportProgressIndicator() {\n return {\n link: function(scope, element, attr) {\n scope.$watch('file.status', function() {\n if (scope.file.status === 'IMPORTING' || scope.file.status === 'UPLOADING') {\n if (!$(element).has('object').length > 0) {\n $(element).append('<object width=\"' + attr.size + '\" height=\"' + attr.size + '\" data=\"js/angular/templates/loader/ot-loader.svg?v=4.0.0-TR25\">{{\\'common.loading\\' | translate}}</object>');\n }\n }\n });\n },\n };\n}\n"],"names":["ImportProgressIndicator","link","scope","element","attr","$watch","file","status","$","has","length","append","size","angular","module","directive","$inject"],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const __webpack_esm_id__=65677;export const __webpack_esm_ids__=[65677];export const __webpack_esm_modules__={65677(t,e,r){var a=r(66886),n=r(9508),o=(r(38473),r(44482));function s(t,e,r,s,c,i,l,d,p,u,f,g,h){return{restrict:"AE",template:'<div id="domain-range"></div>',scope:{showPredicatesInfoPanel:"=",selectedPredicate:"=",collapseEdges:"="},link:function(u){const f=d(function(){!function(u){var f=1200,y=f/18,x=f/110,m=x/2,v=f/90,b=1.2,k=o.select("#domain-range").append("svg").attr("viewBox","0 0 1200 600").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null),w=o.forceSimulation(),E=o.drag().subject(function(t){return t}).on("start",function(t,e){w.stop(),e.fx=t.x,e.fy=t.y,o.select(this).classed("selected",!0)}).on("end",function(t,e){e.fx=null,e.fy=null,o.select(this).classed("selected",!1),C?(w.alpha(.2).restart(),C=!1):w.restart()}).on("drag",function(t,e){C=!0,w.alphaTarget(0).restart(),e.fx=t.x,e.fy=t.y}),N=k.append("defs");N.append("marker").attrs({id:"arrow",viewBox:"0 -5 10 10",refX:10,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:g}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),N.append("marker").attrs({id:"collapsed-arrow",viewBox:"0 -5 10 10",refX:9,refY:0,markerUnits:"strokeWidth",markerWidth:4,markerHeight:4,orient:"auto",fill:g}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),N.append("marker").attrs({id:"arrow-loop",viewBox:"0 -5 10 10",refX:7,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:g}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),o.select("#download-svg").on("mouseover",function(){var t=a.A.Export.getCSSRules("css/domain-range-graph.css?v=4.0.0-TR24");$("defs").append('<style type="text/css"><![CDATA['+t+"]]></style>");var e=a.A.Export.generateBase64ImageSource("#domain-range svg");o.select(this).attrs({href:e,download:"domain-range-graph-"+r.getActiveRepository()+".svg"})}),function(){var t=f/7,e=205.7142857142857,r=o.select(".legend-container").append("svg").attr("viewBox","0 0 "+t+" "+e).attr("preserveAspectRatio","xMidYMid meet");r.append("rect").attrs({width:t,height:e}).style("fill","rgba(235, 235, 235, 0.9)");var a=16,n=42.66666666666667,s=n+f/90,i=v/1.1,l=(r.append("circle").attrs({class:"legend-class-node",cx:29.333333333333336,cy:30,r:y/4.5}),30+f/370);r.append("text").attrs({x:s,y:l}).style("font-size",i+"px").text("main class node"),r.append("circle").attrs({class:"legend-object-node",cx:29.333333333333336,cy:70,r:8.727272727272727});var d=l+40;r.append("text").attrs({x:s,y:d}).style("font-size",i+"px").text("class node");var p=70+f/45;r.append("circle").attrs({class:"legend-datatype-node",cx:29.333333333333336,cy:p,r:m});var u=d+f/45;r.append("text").attrs({x:s,y:u}).style("font-size",i+"px").text("datatype node");var g=123.33333333333334;r.append("line").attrs({class:"property-arrow",x1:a,y1:g,x2:n,y2:g}).style("stroke-width",b).attr("marker-end","url("+c.absUrl()+"#arrow)"),r.append("text").attrs({x:s,y:126.57657657657658}).style("font-size",i+"px").text("explicit property");var h=150;r.append("line").attrs({class:"implicit-property-arrow",x1:a,y1:h,x2:n,y2:h}).style("stroke-width",b).attr("marker-end","url("+c.absUrl()+"#arrow)"),r.append("text").attrs({x:s,y:153.24324324324326}).style("font-size",i+"px").text("implicit property");var x=176.66666666666666;r.append("line").attrs({class:"collapsed-property-arrow",x1:a,y1:x,x2:n,y2:x}).style("stroke-width",2).attr("marker-end","url("+c.absUrl()+"#collapsed-arrow)"),r.append("text").attrs({x:s,y:179.9099099099099}).style("font-size",i+"px").text("collapsed property")}();var R=c.search().uri,A=c.search().name;const L=c.search().collapsed;(function(t,e){s.getDomainRangeData(t,e).success(function(t,e,r){u.domainRangeGraphData=t}).error(function(t){p.error("Request for "+A+" failed!")})})(R,L),$(window).on("popstate",function(){i.set(l.DOMAIN_RANGE_WENT_BACK,!0)}),e.onpopstate=function(e){e.state&&t.$broadcast("changeCollapsedEdgesState",e.state.collapsed)},u.$watch("collapseEdges",function(){angular.isUndefined(u.collapseEdges)||(i.set(l.DOMAIN_RANGE_COLLAPSE_EDGES,u.collapseEdges),"true"!==i.get(l.DOMAIN_RANGE_WENT_BACK)&&function(e){t.$broadcast("switchEdgeMode",{uri:R,name:A,collapsed:e})}(u.collapseEdges),i.remove(l.DOMAIN_RANGE_WENT_BACK))}),u.$watch("domainRangeGraphData",function(){if(u.domainRangeGraphData){var r=_.cloneDeep(u.domainRangeGraphData);const S=r.nodes,I=r.links;w.nodes(S).force("x",o.forceX(600)).force("y",o.forceY(300)).force("charge",o.forceManyBody().strength(-800)).force("link",o.forceLink(I).distance(f/3.5));var a=k.selectAll(".link").data(I).enter().append("g");function B(t){t.style("stroke",g),t.style("stroke-width",2),t.attr("marker-end","url("+c.absUrl()+"#collapsed-arrow)")}var s,i,l=0;a.each(function(t){if(t.objectPropNodeClassUri!==R)s=a.append("line").attrs({class:"link","marker-end":"url("+c.absUrl()+"#arrow)"}).style("stroke-width",b).each(function(t){switch(t.propertyType){case"objectLeft":t.targetRadius=y;break;case"objectRight":t.targetRadius=x;break;case"datatype":t.targetRadius=m;break;default:t.targetRadius=0}var e=o.select(this);t.targetNodeEdgeCount>1?B(e):t.implicit&&e.style("stroke-dasharray","3, 3")});else{if(angular.isUndefined(i)){var e=y/2;i=o.select(this).append("path").attrs({d:"M 0 0 A "+e+" "+e+" 0 1 1 0 "+e,class:"loop-link",fill:"none","marker-end":"url("+c.absUrl()+"#arrow-loop)"}).style("stroke-width",b)}(l+=t.targetNodeEdgeCount)>1&&B(o.select(".loop-link"))}});var p={};function G(){$.isEmptyObject(p)||(p.text.style("fill","black"),p.background.style("fill","#f0f0f0"))}function W(t,e){G(),p.text=o.select(this),p.background=o.select(this.previousSibling),p.text.style("fill","white"),p.background.style("fill",g),d(function(){u.showPredicatesInfoPanel=!0,u.selectedPredicate=e}),t.stopPropagation()}$("document").ready(function(){$("#domain-range").bind("click",G)});var N=a.append("text").attr("class",function(t){return t.objectPropNodeClassUri===R?"loop-link-property-name":"property-name"}).attr("dx",function(t){return y/2*("objectLeft"===t.propertyType?1:-1)}).style("text-anchor",function(t){return"objectLeft"===t.propertyType?"end":"start"}).style("font-size",v).text(function(t){return t.targetNodeEdgeCount>1?t.targetNodeEdgeCount+" predicates":t.name});N.each(function(t){var r=o.select(this);/\d\spredicates/.test(r.text())?r.style("font-weight","bold").on("click",W):r.on("click",function(t,r){e.open("resource?uri="+encodeURIComponent(r.uri),"_blank")})});var L=a.append("rect").attr("class",function(t){return t.objectPropNodeClassUri!==R?"link-background":"loop-link-background"}).attr("width",function(t){return t.calculatedWidth=this.previousSibling.getBBox().width,t.calculatedWidth+4}).attr("height",function(t){return t.calculatedHeight=this.previousSibling.getBBox().height,t.calculatedHeight+2}).attr("transform",function(t){var e=2-y/2*("objectLeft"===t.propertyType?1:-1);return"objectLeft"===t.propertyType&&(e+=t.calculatedWidth),"translate(-"+e+",-"+(2+t.calculatedHeight/2)+")"}).on("click",function(t){t.stopPropagation()}),C=k.selectAll(".node").data(S).enter().append("g"),P=C.filter(function(t){return t.objectPropClassUri!==R}).append("circle").each(function(t){var e=o.select(this);"main"===t.classPosition?e.attrs({class:"class-node",r:y}).attr("marker-end","url("+c.absUrl()+"#loop-link)"):null===t.objectPropClassName?e.attrs({class:"datatype-node",r:m}):e.attrs({class:"object-prop-node",r:x})}).call(E);function z(e,r,a){u.$apply(function(){t.$broadcast("reloadDomainRangeGraphView",r,a)})}o.selectAll(".object-prop-node").on("dblclick",z),C.filter(function(t){return t.objectPropClassName&&t.objectPropClassUri!==R}).append("text").attr("class",function(t){return t.classPosition+"-class-label"}).style("font-size",v).text(function(t){return t.objectPropClassName}).on("click",function(t,r){e.open("resource?uri="+encodeURIComponent(r.objectPropClassUri),"_blank")});var U=C.select("text");k.select(".class-node").each(function(){o.select(this.parentNode).append("text").attr("class","rdf-class-label").style("font-size",function(t){return n.A.Text.calcFontSize(A,y)}).text(A).on("click",function(){e.open("resource?uri="+encodeURIComponent(R),"_blank")})});var j=k.select(".class-node + text"),T=o.select(".class-node"),M=o.selectAll(".loop-link-background"),O=o.selectAll(".loop-link-property-name");if(N=o.selectAll(".property-name"),!angular.isUndefined(i)){var D=[];M.each(function(t,e){o.select(this),D.push({idx:e,width:t.calculatedWidth,height:t.calculatedHeight})})}function F(t){var e=8*w.alpha();function r(t){var e=t.x+2*y,r=t.y-35.08771929824562;var a=[];M.each(function(n,s){a.push(n),s<h?function(a,n){var o=$.grep(D,function(t){return t.idx==n});n>0&&(e+=parseFloat(n*(o[0].height/(n/1.4)))),a.attrs({transform:"rotate(270, "+t.x+","+t.y+") translate("+e+","+r+")",width:o[0].height,height:o[0].width})}(o.select(this),s):o.select(this).remove()}),function(t){var e;o.select(".view-more-preds-label").style("font-weight","bold").each(function(r){r.target.allEdges=t,e=this.getComputedTextLength()}).on("click",W),o.select(".view-more-preds-rect").attr("height",e+4)}(a)}s.filter(function(t){return t.objectPropNodeClassUri!==R}).attr("x1",function(t){return t.source.x}).attr("y1",function(t){return t.source.y}).attr("x2",function(t){return t.targetX}).attr("y2",function(t){return t.targetY}).each(function(t){!function(t){"objectLeft"===t.propertyType?(t.source.x-=8*e,t.source.y-=e/9):(t.target.x+=8*e,t.target.y-=e/9)}(t);var r=Math.atan2(t.target.y-t.source.y,t.target.x-t.source.x);t.targetX=t.target.x-Math.cos(r)*t.targetRadius,t.targetY=t.target.y-Math.sin(r)*t.targetRadius}),P.each(function(t){"main"!==t.classPosition||angular.isUndefined(i)||(function(t){var e=t.x+64,r=t.y-y/5.7-5;i.attr("transform","rotate(270, "+t.x+","+t.y+") translate("+e+","+r+")")}(t),function(t){function e(e,r){var a=$.grep(D,function(t){return t.idx==r}),n=0;r>0&&(n=parseFloat(2*r*(a[0].height/1.4)));var o=t.x,s=t.y-2.1*y-n;e.attrs({x:o,y:s}).moveToFront()}O.each(function(t,r){var a=o.select(this),n=O.size()-h;n<0?e(a,r):(0==r&&!u.collapseEdges&&n>1&&(function(t,e,r){t.classed("view-more-preds-label",!0).text(r+" predicates more ..."),null!==this.nextSibling&&e.classed("view-more-preds-rect",!0)}(a,o.select(this.nextSibling),n),e(a,r)),r<h?e(a,r):a.remove())})}(t),r(t)),t.objectPropClassUri!==R&&o.select(this).attr("cx",function(t){return"main"===t.classPosition?function(t){!window.ActiveXObject&&"ActiveXObject"in window&&(Math.log10=function(t){return Math.log(t)/Math.LN10});var e=T.attr("cx")-600,r=.5*Math.log10(Math.abs(e));return t.x+=e>0?-r:r,t.x}(t):t.x}).attr("cy",function(t){return t.y})}),j.attr("x",function(t){return t.x}).attr("y",function(t){return t.y}).moveToFront(),L.filter(function(t){return t.objectPropNodeClassUri!==R}).attr("x",function(t){return t.target.x>t.source.x?t.source.x+(t.target.x-t.source.x)/2:t.target.x+(t.source.x-t.target.x)/2}).attr("y",function(t){return t.target.y>t.source.y?t.source.y+(t.target.y-t.source.y)/2:t.target.y+(t.source.y-t.target.y)/2}).moveToFront(),N.attr("x",function(t){return t.target.x>t.source.x?t.source.x+(t.target.x-t.source.x)/2:t.target.x+(t.source.x-t.target.x)/2}).attr("y",function(t){return t.target.y>t.source.y?t.source.y+(t.target.y-t.source.y)/2:t.target.y+(t.source.y-t.target.y)/2}).moveToFront(),U.attr("x",function(t){return"right"===t.classPosition?t.x+13.09090909090909:t.x-13.09090909090909}).attr("y",function(t){return t.y}).moveToFront()}w.on("tick",F)}});let C=!1}(u)},50);u.$on("$destroy",function(){d.cancel(f)})}}}angular.module("graphdb.framework.graphexplore.directives.domainrange",["graphdb.framework.graphexplore.controllers.domainrange","graphdb.framework.utils.localstorageadapter"]).constant("ONTO_RED","var(--gw-primary-base)").constant("ONTO_GREEN","var(--gw-tertiary-base)").constant("ONTO_BLUE","var(--gw-secondary-base)").constant("NON_COLLAPSED_REFLEXIVE_LINK_LIMIT",6).directive("domainRangeGraph",s),s.$inject=["$rootScope","$window","$repositories","GraphDataRestService","$location","LocalStorageAdapter","LSKeys","$timeout","toastr","ONTO_RED","ONTO_GREEN","ONTO_BLUE","NON_COLLAPSED_REFLEXIVE_LINK_LIMIT"]}};
|
|
2
|
-
//# sourceMappingURL=65677.
|
|
1
|
+
export const __webpack_esm_id__=65677;export const __webpack_esm_ids__=[65677];export const __webpack_esm_modules__={65677(t,e,r){var a=r(66886),n=r(9508),o=(r(38473),r(44482));function s(t,e,r,s,c,i,l,d,p,u,f,g,h){return{restrict:"AE",template:'<div id="domain-range"></div>',scope:{showPredicatesInfoPanel:"=",selectedPredicate:"=",collapseEdges:"="},link:function(u){const f=d(function(){!function(u){var f=1200,y=f/18,x=f/110,m=x/2,v=f/90,b=1.2,k=o.select("#domain-range").append("svg").attr("viewBox","0 0 1200 600").attr("preserveAspectRatio","xMidYMid meet").on("dblclick.zoom",null),w=o.forceSimulation(),E=o.drag().subject(function(t){return t}).on("start",function(t,e){w.stop(),e.fx=t.x,e.fy=t.y,o.select(this).classed("selected",!0)}).on("end",function(t,e){e.fx=null,e.fy=null,o.select(this).classed("selected",!1),C?(w.alpha(.2).restart(),C=!1):w.restart()}).on("drag",function(t,e){C=!0,w.alphaTarget(0).restart(),e.fx=t.x,e.fy=t.y}),N=k.append("defs");N.append("marker").attrs({id:"arrow",viewBox:"0 -5 10 10",refX:10,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:g}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),N.append("marker").attrs({id:"collapsed-arrow",viewBox:"0 -5 10 10",refX:9,refY:0,markerUnits:"strokeWidth",markerWidth:4,markerHeight:4,orient:"auto",fill:g}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),N.append("marker").attrs({id:"arrow-loop",viewBox:"0 -5 10 10",refX:7,refY:0,markerUnits:"strokeWidth",markerWidth:5,markerHeight:5,orient:"auto",fill:g}).append("path").attrs({d:"M0,-5L10,0L0,5",class:"arrowHead"}),o.select("#download-svg").on("mouseover",function(){var t=a.A.Export.getCSSRules("css/domain-range-graph.css?v=4.0.0-TR25");$("defs").append('<style type="text/css"><![CDATA['+t+"]]></style>");var e=a.A.Export.generateBase64ImageSource("#domain-range svg");o.select(this).attrs({href:e,download:"domain-range-graph-"+r.getActiveRepository()+".svg"})}),function(){var t=f/7,e=205.7142857142857,r=o.select(".legend-container").append("svg").attr("viewBox","0 0 "+t+" "+e).attr("preserveAspectRatio","xMidYMid meet");r.append("rect").attrs({width:t,height:e}).style("fill","rgba(235, 235, 235, 0.9)");var a=16,n=42.66666666666667,s=n+f/90,i=v/1.1,l=(r.append("circle").attrs({class:"legend-class-node",cx:29.333333333333336,cy:30,r:y/4.5}),30+f/370);r.append("text").attrs({x:s,y:l}).style("font-size",i+"px").text("main class node"),r.append("circle").attrs({class:"legend-object-node",cx:29.333333333333336,cy:70,r:8.727272727272727});var d=l+40;r.append("text").attrs({x:s,y:d}).style("font-size",i+"px").text("class node");var p=70+f/45;r.append("circle").attrs({class:"legend-datatype-node",cx:29.333333333333336,cy:p,r:m});var u=d+f/45;r.append("text").attrs({x:s,y:u}).style("font-size",i+"px").text("datatype node");var g=123.33333333333334;r.append("line").attrs({class:"property-arrow",x1:a,y1:g,x2:n,y2:g}).style("stroke-width",b).attr("marker-end","url("+c.absUrl()+"#arrow)"),r.append("text").attrs({x:s,y:126.57657657657658}).style("font-size",i+"px").text("explicit property");var h=150;r.append("line").attrs({class:"implicit-property-arrow",x1:a,y1:h,x2:n,y2:h}).style("stroke-width",b).attr("marker-end","url("+c.absUrl()+"#arrow)"),r.append("text").attrs({x:s,y:153.24324324324326}).style("font-size",i+"px").text("implicit property");var x=176.66666666666666;r.append("line").attrs({class:"collapsed-property-arrow",x1:a,y1:x,x2:n,y2:x}).style("stroke-width",2).attr("marker-end","url("+c.absUrl()+"#collapsed-arrow)"),r.append("text").attrs({x:s,y:179.9099099099099}).style("font-size",i+"px").text("collapsed property")}();var R=c.search().uri,A=c.search().name;const L=c.search().collapsed;(function(t,e){s.getDomainRangeData(t,e).success(function(t,e,r){u.domainRangeGraphData=t}).error(function(t){p.error("Request for "+A+" failed!")})})(R,L),$(window).on("popstate",function(){i.set(l.DOMAIN_RANGE_WENT_BACK,!0)}),e.onpopstate=function(e){e.state&&t.$broadcast("changeCollapsedEdgesState",e.state.collapsed)},u.$watch("collapseEdges",function(){angular.isUndefined(u.collapseEdges)||(i.set(l.DOMAIN_RANGE_COLLAPSE_EDGES,u.collapseEdges),"true"!==i.get(l.DOMAIN_RANGE_WENT_BACK)&&function(e){t.$broadcast("switchEdgeMode",{uri:R,name:A,collapsed:e})}(u.collapseEdges),i.remove(l.DOMAIN_RANGE_WENT_BACK))}),u.$watch("domainRangeGraphData",function(){if(u.domainRangeGraphData){var r=_.cloneDeep(u.domainRangeGraphData);const S=r.nodes,I=r.links;w.nodes(S).force("x",o.forceX(600)).force("y",o.forceY(300)).force("charge",o.forceManyBody().strength(-800)).force("link",o.forceLink(I).distance(f/3.5));var a=k.selectAll(".link").data(I).enter().append("g");function B(t){t.style("stroke",g),t.style("stroke-width",2),t.attr("marker-end","url("+c.absUrl()+"#collapsed-arrow)")}var s,i,l=0;a.each(function(t){if(t.objectPropNodeClassUri!==R)s=a.append("line").attrs({class:"link","marker-end":"url("+c.absUrl()+"#arrow)"}).style("stroke-width",b).each(function(t){switch(t.propertyType){case"objectLeft":t.targetRadius=y;break;case"objectRight":t.targetRadius=x;break;case"datatype":t.targetRadius=m;break;default:t.targetRadius=0}var e=o.select(this);t.targetNodeEdgeCount>1?B(e):t.implicit&&e.style("stroke-dasharray","3, 3")});else{if(angular.isUndefined(i)){var e=y/2;i=o.select(this).append("path").attrs({d:"M 0 0 A "+e+" "+e+" 0 1 1 0 "+e,class:"loop-link",fill:"none","marker-end":"url("+c.absUrl()+"#arrow-loop)"}).style("stroke-width",b)}(l+=t.targetNodeEdgeCount)>1&&B(o.select(".loop-link"))}});var p={};function G(){$.isEmptyObject(p)||(p.text.style("fill","black"),p.background.style("fill","#f0f0f0"))}function W(t,e){G(),p.text=o.select(this),p.background=o.select(this.previousSibling),p.text.style("fill","white"),p.background.style("fill",g),d(function(){u.showPredicatesInfoPanel=!0,u.selectedPredicate=e}),t.stopPropagation()}$("document").ready(function(){$("#domain-range").bind("click",G)});var N=a.append("text").attr("class",function(t){return t.objectPropNodeClassUri===R?"loop-link-property-name":"property-name"}).attr("dx",function(t){return y/2*("objectLeft"===t.propertyType?1:-1)}).style("text-anchor",function(t){return"objectLeft"===t.propertyType?"end":"start"}).style("font-size",v).text(function(t){return t.targetNodeEdgeCount>1?t.targetNodeEdgeCount+" predicates":t.name});N.each(function(t){var r=o.select(this);/\d\spredicates/.test(r.text())?r.style("font-weight","bold").on("click",W):r.on("click",function(t,r){e.open("resource?uri="+encodeURIComponent(r.uri),"_blank")})});var L=a.append("rect").attr("class",function(t){return t.objectPropNodeClassUri!==R?"link-background":"loop-link-background"}).attr("width",function(t){return t.calculatedWidth=this.previousSibling.getBBox().width,t.calculatedWidth+4}).attr("height",function(t){return t.calculatedHeight=this.previousSibling.getBBox().height,t.calculatedHeight+2}).attr("transform",function(t){var e=2-y/2*("objectLeft"===t.propertyType?1:-1);return"objectLeft"===t.propertyType&&(e+=t.calculatedWidth),"translate(-"+e+",-"+(2+t.calculatedHeight/2)+")"}).on("click",function(t){t.stopPropagation()}),C=k.selectAll(".node").data(S).enter().append("g"),P=C.filter(function(t){return t.objectPropClassUri!==R}).append("circle").each(function(t){var e=o.select(this);"main"===t.classPosition?e.attrs({class:"class-node",r:y}).attr("marker-end","url("+c.absUrl()+"#loop-link)"):null===t.objectPropClassName?e.attrs({class:"datatype-node",r:m}):e.attrs({class:"object-prop-node",r:x})}).call(E);function z(e,r,a){u.$apply(function(){t.$broadcast("reloadDomainRangeGraphView",r,a)})}o.selectAll(".object-prop-node").on("dblclick",z),C.filter(function(t){return t.objectPropClassName&&t.objectPropClassUri!==R}).append("text").attr("class",function(t){return t.classPosition+"-class-label"}).style("font-size",v).text(function(t){return t.objectPropClassName}).on("click",function(t,r){e.open("resource?uri="+encodeURIComponent(r.objectPropClassUri),"_blank")});var U=C.select("text");k.select(".class-node").each(function(){o.select(this.parentNode).append("text").attr("class","rdf-class-label").style("font-size",function(t){return n.A.Text.calcFontSize(A,y)}).text(A).on("click",function(){e.open("resource?uri="+encodeURIComponent(R),"_blank")})});var j=k.select(".class-node + text"),T=o.select(".class-node"),M=o.selectAll(".loop-link-background"),O=o.selectAll(".loop-link-property-name");if(N=o.selectAll(".property-name"),!angular.isUndefined(i)){var D=[];M.each(function(t,e){o.select(this),D.push({idx:e,width:t.calculatedWidth,height:t.calculatedHeight})})}function F(t){var e=8*w.alpha();function r(t){var e=t.x+2*y,r=t.y-35.08771929824562;var a=[];M.each(function(n,s){a.push(n),s<h?function(a,n){var o=$.grep(D,function(t){return t.idx==n});n>0&&(e+=parseFloat(n*(o[0].height/(n/1.4)))),a.attrs({transform:"rotate(270, "+t.x+","+t.y+") translate("+e+","+r+")",width:o[0].height,height:o[0].width})}(o.select(this),s):o.select(this).remove()}),function(t){var e;o.select(".view-more-preds-label").style("font-weight","bold").each(function(r){r.target.allEdges=t,e=this.getComputedTextLength()}).on("click",W),o.select(".view-more-preds-rect").attr("height",e+4)}(a)}s.filter(function(t){return t.objectPropNodeClassUri!==R}).attr("x1",function(t){return t.source.x}).attr("y1",function(t){return t.source.y}).attr("x2",function(t){return t.targetX}).attr("y2",function(t){return t.targetY}).each(function(t){!function(t){"objectLeft"===t.propertyType?(t.source.x-=8*e,t.source.y-=e/9):(t.target.x+=8*e,t.target.y-=e/9)}(t);var r=Math.atan2(t.target.y-t.source.y,t.target.x-t.source.x);t.targetX=t.target.x-Math.cos(r)*t.targetRadius,t.targetY=t.target.y-Math.sin(r)*t.targetRadius}),P.each(function(t){"main"!==t.classPosition||angular.isUndefined(i)||(function(t){var e=t.x+64,r=t.y-y/5.7-5;i.attr("transform","rotate(270, "+t.x+","+t.y+") translate("+e+","+r+")")}(t),function(t){function e(e,r){var a=$.grep(D,function(t){return t.idx==r}),n=0;r>0&&(n=parseFloat(2*r*(a[0].height/1.4)));var o=t.x,s=t.y-2.1*y-n;e.attrs({x:o,y:s}).moveToFront()}O.each(function(t,r){var a=o.select(this),n=O.size()-h;n<0?e(a,r):(0==r&&!u.collapseEdges&&n>1&&(function(t,e,r){t.classed("view-more-preds-label",!0).text(r+" predicates more ..."),null!==this.nextSibling&&e.classed("view-more-preds-rect",!0)}(a,o.select(this.nextSibling),n),e(a,r)),r<h?e(a,r):a.remove())})}(t),r(t)),t.objectPropClassUri!==R&&o.select(this).attr("cx",function(t){return"main"===t.classPosition?function(t){!window.ActiveXObject&&"ActiveXObject"in window&&(Math.log10=function(t){return Math.log(t)/Math.LN10});var e=T.attr("cx")-600,r=.5*Math.log10(Math.abs(e));return t.x+=e>0?-r:r,t.x}(t):t.x}).attr("cy",function(t){return t.y})}),j.attr("x",function(t){return t.x}).attr("y",function(t){return t.y}).moveToFront(),L.filter(function(t){return t.objectPropNodeClassUri!==R}).attr("x",function(t){return t.target.x>t.source.x?t.source.x+(t.target.x-t.source.x)/2:t.target.x+(t.source.x-t.target.x)/2}).attr("y",function(t){return t.target.y>t.source.y?t.source.y+(t.target.y-t.source.y)/2:t.target.y+(t.source.y-t.target.y)/2}).moveToFront(),N.attr("x",function(t){return t.target.x>t.source.x?t.source.x+(t.target.x-t.source.x)/2:t.target.x+(t.source.x-t.target.x)/2}).attr("y",function(t){return t.target.y>t.source.y?t.source.y+(t.target.y-t.source.y)/2:t.target.y+(t.source.y-t.target.y)/2}).moveToFront(),U.attr("x",function(t){return"right"===t.classPosition?t.x+13.09090909090909:t.x-13.09090909090909}).attr("y",function(t){return t.y}).moveToFront()}w.on("tick",F)}});let C=!1}(u)},50);u.$on("$destroy",function(){d.cancel(f)})}}}angular.module("graphdb.framework.graphexplore.directives.domainrange",["graphdb.framework.graphexplore.controllers.domainrange","graphdb.framework.utils.localstorageadapter"]).constant("ONTO_RED","var(--gw-primary-base)").constant("ONTO_GREEN","var(--gw-tertiary-base)").constant("ONTO_BLUE","var(--gw-secondary-base)").constant("NON_COLLAPSED_REFLEXIVE_LINK_LIMIT",6).directive("domainRangeGraph",s),s.$inject=["$rootScope","$window","$repositories","GraphDataRestService","$location","LocalStorageAdapter","LSKeys","$timeout","toastr","ONTO_RED","ONTO_GREEN","ONTO_BLUE","NON_COLLAPSED_REFLEXIVE_LINK_LIMIT"]}};
|
|
2
|
+
//# sourceMappingURL=65677.5b3c1615bec7865c3bb9.bundle.js.map
|