graphdb-workbench 2.7.0-RC5 → 2.7.0-RC7
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/12.f6fa40c8064b1a1ab5ec.bundle.js +2 -0
- package/dist/149.fa1d474cfaf6b767889b.bundle.js +1 -1
- package/dist/17.61150aea9442c9814294.bundle.js +1 -1
- package/dist/{2.581f30abc14038706ded.bundle.js → 2.7052cd94dd6c1a03dd24.bundle.js} +1 -1
- package/dist/28.8699576c7fe3a1d8fc03.bundle.js +1 -1
- package/dist/29.15213e151364f5ecfcd5.bundle.js +1 -1
- package/dist/300.cef8eccb11324bcfdb36.bundle.js +1 -1
- package/dist/302.7a5d2ba28bd6479a77be.bundle.js +1 -1
- package/dist/303.e817b957f010153de97a.bundle.js +1 -1
- package/dist/304.fd2e766c67cd966f6751.bundle.js +1 -1
- package/dist/333.9f051c77b4c6747b320c.bundle.js +1 -1
- package/dist/42.52befbab22e69bb433f4.bundle.js +1 -1
- package/dist/51.ebafb19025c2f912a73d.bundle.js +1 -1
- package/dist/{bundle.85c062b8f26f60eeb6f8.bundle.js → bundle.814112fea9d8e39e7721.bundle.js} +2 -2
- package/dist/css/bootstrap-graphdb-theme.css +0 -1
- package/dist/css/explore.css +4 -0
- package/dist/index.html +4 -4
- package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +1 -1
- package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
- package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
- package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
- package/dist/js/angular/security/templates/user.html +1 -1
- package/dist/license-checker.json +2 -2
- package/dist/{main.12f182bd7790c4e4b110.css → main.98c547eac0aca6db48bb.css} +1 -1
- package/dist/pages/aclmanagement.html +2 -2
- package/dist/pages/autocomplete.html +1 -1
- package/dist/pages/choose-repository-type.html +1 -1
- package/dist/pages/cluster-management/clusterInfo.html +3 -3
- package/dist/pages/create-index.html +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/find.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/import.html +2 -2
- package/dist/pages/jdbc-create.html +1 -1
- package/dist/pages/monitor/backup-and-restore.html +1 -1
- package/dist/pages/monitor/queries.html +1 -1
- 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 +7 -7
- package/dist/pages/rdfrank.html +2 -2
- package/dist/pages/repositories.html +1 -1
- package/dist/pages/repository.html +1 -1
- package/dist/pages/similarity-indexes.html +1 -1
- package/dist/pages/sparql-editor.html +1 -1
- package/dist/pages/sparql-template-create.html +1 -1
- package/dist/pages/ux-test1.html +2 -2
- package/dist/pages/webapi.html +2 -2
- package/dist/res/swagger5/index.html +12 -12
- package/package.json +1 -1
- package/dist/12.27901cde5137cef7ebd9.bundle.js +0 -2
package/dist/pages/edit.html
CHANGED
package/dist/pages/explore.html
CHANGED
package/dist/pages/export.html
CHANGED
package/dist/pages/find.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<link href="css/graphs-config.css?v=2.7.0-
|
|
1
|
+
<link href="css/graphs-config.css?v=2.7.0-RC7" rel="stylesheet"/>
|
|
2
2
|
|
|
3
3
|
<h1>
|
|
4
4
|
{{title}}
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
<label class="start-mode search image-label d-flex" ng-class="{'active': newConfig.startMode === 'search'}">
|
|
60
60
|
<input type="radio" class="form-check-input" id="checkboxSuccessSearch"
|
|
61
61
|
ng-model="newConfig.startMode" value="search">
|
|
62
|
-
<img class="image-label-image" src="css/images/search.png?v=2.7.0-
|
|
62
|
+
<img class="image-label-image" src="css/images/search.png?v=2.7.0-RC7" alt="search image"
|
|
63
63
|
width="100%">
|
|
64
64
|
<div class="image-label-content">
|
|
65
65
|
<h5>{{'start.with.search.box' | translate}}</h5>
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
<label class="start-mode node image-label d-flex" ng-class="{'active': newConfig.startMode === 'node'}">
|
|
71
71
|
<input type="radio" class="form-check-input" id="checkboxSuccessNode" ng-model="newConfig.startMode"
|
|
72
72
|
value="node">
|
|
73
|
-
<img class="image-label-image" src="css/images/node.png?v=2.7.0-
|
|
73
|
+
<img class="image-label-image" src="css/images/node.png?v=2.7.0-RC7" alt="node image"
|
|
74
74
|
width="100%">
|
|
75
75
|
<div class="image-label-content">
|
|
76
76
|
<h5>{{'start.with.fixed.node' | translate}}</h5>
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
<label class="start-mode query image-label d-flex" ng-class="{'active': newConfig.startMode === 'query'}">
|
|
82
82
|
<input type="radio" class="form-check-input" data-cy="graph-config-by-graph-query-checkbox"
|
|
83
83
|
ng-model="newConfig.startMode" value="query">
|
|
84
|
-
<img class="image-label-image" src="css/images/query.png?v=2.7.0-
|
|
84
|
+
<img class="image-label-image" src="css/images/query.png?v=2.7.0-RC7" alt="query image"
|
|
85
85
|
width="100%">
|
|
86
86
|
<div class="image-label-content">
|
|
87
87
|
<h5>{{'query.results.start' | translate}}</h5>
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
{{'sample.query.used' | translate}}</p>
|
|
129
129
|
</div>
|
|
130
130
|
<div>
|
|
131
|
-
<img src="css/images/expand.png?v=2.7.0-
|
|
131
|
+
<img src="css/images/expand.png?v=2.7.0-RC7" class="info-box-img" height="220"
|
|
132
132
|
alt="expand image">
|
|
133
133
|
</div>
|
|
134
134
|
</div>
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
{{'sample.query.used' | translate}}</p>
|
|
157
157
|
</div>
|
|
158
158
|
<div>
|
|
159
|
-
<img src="css/images/labels-size.png?v=2.7.0-
|
|
159
|
+
<img src="css/images/labels-size.png?v=2.7.0-RC7" class="info-box-img" height="220"
|
|
160
160
|
alt="labels size image">
|
|
161
161
|
</div>
|
|
162
162
|
</div>
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
<p>{{'query.is.optional.local.name' | translate}}</p>
|
|
180
180
|
</div>
|
|
181
181
|
<div>
|
|
182
|
-
<img src="css/images/predicates.png?v=2.7.0-
|
|
182
|
+
<img src="css/images/predicates.png?v=2.7.0-RC7" class="info-box-img" height="220"
|
|
183
183
|
alt="predicates image">
|
|
184
184
|
</div>
|
|
185
185
|
</div>
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
{{'sample.query.used' | translate}}</p>
|
|
212
212
|
</div>
|
|
213
213
|
<div>
|
|
214
|
-
<img src="css/images/side-panel.png?v=2.7.0-
|
|
214
|
+
<img src="css/images/side-panel.png?v=2.7.0-RC7" class="info-box-img" height="220"
|
|
215
215
|
alt="side panel image">
|
|
216
216
|
</div>
|
|
217
217
|
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<link href="css/graphs-vizualizations.css?v=2.7.0-
|
|
2
|
-
<link href="css/rdf-details-side-panel.css?v=2.7.0-
|
|
3
|
-
<link href="css/lib/ng-tags-input/ng-tags-input.min.css?v=2.7.0-
|
|
4
|
-
<link href="js/lib/d3-tip/d3-tip.css?v=2.7.0-
|
|
1
|
+
<link href="css/graphs-vizualizations.css?v=2.7.0-RC7" rel="stylesheet"/>
|
|
2
|
+
<link href="css/rdf-details-side-panel.css?v=2.7.0-RC7" rel="stylesheet"/>
|
|
3
|
+
<link href="css/lib/ng-tags-input/ng-tags-input.min.css?v=2.7.0-RC7" rel="stylesheet"/>
|
|
4
|
+
<link href="js/lib/d3-tip/d3-tip.css?v=2.7.0-RC7" rel="stylesheet"/>
|
|
5
5
|
|
|
6
6
|
<div class="container-fluid">
|
|
7
7
|
|
|
@@ -131,9 +131,9 @@
|
|
|
131
131
|
<tr ng-repeat="config in graphConfigs">
|
|
132
132
|
<td width="20">
|
|
133
133
|
<a href ng-click="goToGraphConfig(config)">
|
|
134
|
-
<img ng-if="config.startMode == 'search'" src="css/images/search.png?v=2.7.0-
|
|
135
|
-
<img ng-if="config.startMode == 'node'" src="css/images/node.png?v=2.7.0-
|
|
136
|
-
<img ng-if="config.startMode == 'query'" src="css/images/query.png?v=2.7.0-
|
|
134
|
+
<img ng-if="config.startMode == 'search'" src="css/images/search.png?v=2.7.0-RC7" alt="" width="64" uib-popover="{{'visual.config.search.box.starting.point' | translate}}" popover-trigger="mouseenter">
|
|
135
|
+
<img ng-if="config.startMode == 'node'" src="css/images/node.png?v=2.7.0-RC7" alt="" width="64" uib-popover="{{'visual.config.fixed.resource.starting.point' | translate}}" popover-trigger="mouseenter">
|
|
136
|
+
<img ng-if="config.startMode == 'query'" src="css/images/query.png?v=2.7.0-RC7" alt="" data-cy="graph-config-starting-point-query-results" width="64" uib-popover="{{'visual.config.query.results.starting.point' | translate}}" popover-trigger="mouseenter">
|
|
137
137
|
</a>
|
|
138
138
|
</td>
|
|
139
139
|
<td>
|
package/dist/pages/guides.html
CHANGED
package/dist/pages/import.html
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<link rel="stylesheet" type="text/css" href="css/import.css?v=2.7.0-
|
|
2
|
-
<link rel="stylesheet" type="text/css" href="css/import-resource-tree.css?v=2.7.0-
|
|
1
|
+
<link rel="stylesheet" type="text/css" href="css/import.css?v=2.7.0-RC7">
|
|
2
|
+
<link rel="stylesheet" type="text/css" href="css/import-resource-tree.css?v=2.7.0-RC7">
|
|
3
3
|
|
|
4
4
|
<div id="wb-import">
|
|
5
5
|
<h1>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<link href="css/lib/angular-xeditable/xeditable.min.css?v=2.7.0-
|
|
2
|
-
<link href="css/export.css?v=2.7.0-
|
|
1
|
+
<link href="css/lib/angular-xeditable/xeditable.min.css?v=2.7.0-RC7" rel="stylesheet">
|
|
2
|
+
<link href="css/export.css?v=2.7.0-RC7" rel="stylesheet">
|
|
3
3
|
|
|
4
4
|
<title>Namespaces</title>
|
|
5
5
|
|
package/dist/pages/plugins.html
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<link href="css/rdf-class-hierarchy.css?v=2.7.0-
|
|
2
|
-
<link href="css/rdf-class-hierarchy-labels.css?v=2.7.0-
|
|
3
|
-
<link href="css/rdf-details-side-panel.css?v=2.7.0-
|
|
4
|
-
<link href="js/lib/rzslider/rzslider.min.css?v=2.7.0-
|
|
5
|
-
<link href="js/lib/angucomplete-alt/angucomplete-alt.css?v=2.7.0-
|
|
6
|
-
<link href="js/lib/d3-tip/d3-tip.css?v=2.7.0-
|
|
7
|
-
<link href="css/lib/animate/3.2.0/animate.min.css?v=2.7.0-
|
|
1
|
+
<link href="css/rdf-class-hierarchy.css?v=2.7.0-RC7" rel="stylesheet"/>
|
|
2
|
+
<link href="css/rdf-class-hierarchy-labels.css?v=2.7.0-RC7" rel="stylesheet"/>
|
|
3
|
+
<link href="css/rdf-details-side-panel.css?v=2.7.0-RC7" rel="stylesheet"/>
|
|
4
|
+
<link href="js/lib/rzslider/rzslider.min.css?v=2.7.0-RC7" rel="stylesheet"/>
|
|
5
|
+
<link href="js/lib/angucomplete-alt/angucomplete-alt.css?v=2.7.0-RC7" rel="stylesheet"/>
|
|
6
|
+
<link href="js/lib/d3-tip/d3-tip.css?v=2.7.0-RC7" rel="stylesheet"/>
|
|
7
|
+
<link href="css/lib/animate/3.2.0/animate.min.css?v=2.7.0-RC7" rel="stylesheet"/>
|
|
8
8
|
|
|
9
9
|
<title>Explore Data Graph</title>
|
|
10
10
|
|
package/dist/pages/rdfrank.html
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<link href="css/rdfrank.css?v=2.7.0-
|
|
2
|
-
<link href="css/lib/ng-tags-input/ng-tags-input.min.css?v=2.7.0-
|
|
1
|
+
<link href="css/rdfrank.css?v=2.7.0-RC7" rel="stylesheet">
|
|
2
|
+
<link href="css/lib/ng-tags-input/ng-tags-input.min.css?v=2.7.0-RC7" rel="stylesheet"/>
|
|
3
3
|
|
|
4
4
|
<div id="rdfRank" class="page">
|
|
5
5
|
<h1>
|
package/dist/pages/ux-test1.html
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<link rel="stylesheet" type="text/css" href="css/ux-test1.css">
|
|
2
|
-
<link href="js/lib/rzslider/rzslider.min.css?v=2.7.0-
|
|
2
|
+
<link href="js/lib/rzslider/rzslider.min.css?v=2.7.0-RC7" rel="stylesheet"/>
|
|
3
3
|
|
|
4
4
|
<div class="content-wrapper">
|
|
5
5
|
<div core-errors></div>
|
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
{{'sample.query.used' | translate}}</p>
|
|
443
443
|
</div>
|
|
444
444
|
<div>
|
|
445
|
-
<img src="css/images/expand.png?v=2.7.0-
|
|
445
|
+
<img src="css/images/expand.png?v=2.7.0-RC7" class="info-box-img" height="220"
|
|
446
446
|
alt="expand image">
|
|
447
447
|
</div>
|
|
448
448
|
</div>
|
package/dist/pages/webapi.html
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
<link href='css/lib/swagger-ui.min.css?v=2.7.0-
|
|
3
|
-
<link href='css/swagger.custom.css?v=2.7.0-
|
|
2
|
+
<link href='css/lib/swagger-ui.min.css?v=2.7.0-RC7' rel='stylesheet' type='text/css'/>
|
|
3
|
+
<link href='css/swagger.custom.css?v=2.7.0-RC7' rel='stylesheet' type='text/css'/>
|
|
4
4
|
|
|
5
5
|
<h1>
|
|
6
6
|
{{title}}
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
<title>Swagger UI</title>
|
|
7
|
-
<link rel="stylesheet" type="text/css" href="./swagger-ui.css?v=2.7.0-
|
|
8
|
-
<link rel="stylesheet" type="text/css" href="./index.css?v=2.7.0-
|
|
9
|
-
<link rel="icon" type="image/png" href="./favicon-32x32.png?v=2.7.0-
|
|
10
|
-
<link rel="icon" type="image/png" href="./favicon-16x16.png?v=2.7.0-
|
|
11
|
-
<link href='../../css/common.css?v=2.7.0-
|
|
12
|
-
<link href='css/reset.css?v=2.7.0-
|
|
13
|
-
<link href='css/screen.css?v=2.7.0-
|
|
14
|
-
<link href='css/onto-theme.css?v=2.7.0-
|
|
15
|
-
<link href='css/print.css?v=2.7.0-
|
|
7
|
+
<link rel="stylesheet" type="text/css" href="./swagger-ui.css?v=2.7.0-RC7" />
|
|
8
|
+
<link rel="stylesheet" type="text/css" href="./index.css?v=2.7.0-RC7" />
|
|
9
|
+
<link rel="icon" type="image/png" href="./favicon-32x32.png?v=2.7.0-RC7" sizes="32x32" />
|
|
10
|
+
<link rel="icon" type="image/png" href="./favicon-16x16.png?v=2.7.0-RC7" sizes="16x16" />
|
|
11
|
+
<link href='../../css/common.css?v=2.7.0-RC7' media='screen' rel='stylesheet' type='text/css'/>
|
|
12
|
+
<link href='css/reset.css?v=2.7.0-RC7' media='screen' rel='stylesheet' type='text/css'/>
|
|
13
|
+
<link href='css/screen.css?v=2.7.0-RC7' media='screen' rel='stylesheet' type='text/css'/>
|
|
14
|
+
<link href='css/onto-theme.css?v=2.7.0-RC7' media='screen' rel='stylesheet' type='text/css'/>
|
|
15
|
+
<link href='css/print.css?v=2.7.0-RC7' media='print' rel='stylesheet' type='text/css'/>
|
|
16
16
|
</head>
|
|
17
17
|
|
|
18
18
|
<body class="swagger-section">
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
<br>
|
|
22
22
|
<br>
|
|
23
23
|
<div id="swagger-ui-container-rdf4j" class="swagger-ui-wrap"></div>
|
|
24
|
-
<script src="./swagger-ui-bundle.js?v=2.7.0-
|
|
25
|
-
<script src="./swagger-ui-standalone-preset.js?v=2.7.0-
|
|
26
|
-
<script src="./swagger-initializer.js?v=2.7.0-
|
|
24
|
+
<script src="./swagger-ui-bundle.js?v=2.7.0-RC7" charset="UTF-8"> </script>
|
|
25
|
+
<script src="./swagger-ui-standalone-preset.js?v=2.7.0-RC7" charset="UTF-8"> </script>
|
|
26
|
+
<script src="./swagger-initializer.js?v=2.7.0-RC7" charset="UTF-8"> </script>
|
|
27
27
|
</body>
|
|
28
28
|
</html>
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[12,110,250,270],{170:function(e,t){angular.module("graphdb.framework.rest.export.service",[]).factory("ExportRestService",n),n.$inject=["$http","$repositories","$translate"];function n(e,t,n){return{getExportedStatementsAsJSONLD:function(t,n,o,r,a){const i=`repositories/${n.id}/statements?infer=false`,s={location:n.location},l={accept:a.accept};Array.isArray(t)?s.context=t.map(e=>decodeURIComponent(e)):t&&(s.context=decodeURIComponent(o[t.value].exportUri));r&&(s.authToken=r);a.link&&""!==a.link&&(l.link=a.link);return e({url:i,method:"GET",params:s,headers:l,responseType:"blob"}).then((function(e){const t=e.data;let n=e.headers()["content-disposition"].split("filename=")[1];return n=n.substring(0,n.length),{data:t,filename:n}}))}}}},241:function(e,t,n){"use strict";n.r(t);n(7),n(26),n(27),n(96),n(170);var o=n(463),r=n(0),a=n(64),i=n(86);angular.module("graphdb.framework.impex.export.controllers",["ngCookies","ui.bootstrap","toastr","graphdb.framework.core.services.repositories","graphdb.framework.core.services.jwtauth","graphdb.workbench.utils.filetypes","graphdb.framework.rest.export.service"]).controller("ExportCtrl",["$scope","$http","$location","$timeout","ModalService","filterFilter","$repositories","toastr","ExportRestService","RDF4JRepositoriesRestService","FileTypes","$translate","AuthTokenService","$uibModal",function(e,t,n,s,l,p,c,d,u,g,f,h,m,x){e.getActiveRepository=function(){return c.getActiveRepository()},e.exportFormats=f,e.deleting={},e.showExportDDTooltip=!0,e.page=1,e.pageSize=10,e.pageSizeOptions=[10,20,50,100],e.displayGraphs=[],e.exportFilter="",e.export=!0,e.exportMultipleGraphs=!1,e.repoExportFormat={name:"TriG",type:"application/x-trig",extension:".trig"},e.selectedGraphs={exportGraphs:{}},e.$watch((function(){return c.getActiveRepository()}),(function(){e.exportFilter="",e.getGraphs(),e.selectedAll=!1,s((function(){e.changePageSize(10)}),100)})),e.isShacl=function(e){return"http%3A%2F%2Frdf4j.org%2Fschema%2Frdf4j%23SHACLShapeGraph"===e},e.getGraphs=function(){e.getActiveRepository()?(e.loader=!0,g.getGraphs(e.getActiveRepository()).success((function(t){t.results.bindings.unshift({contextID:{type:"default",value:"import.default.graph"}}),e.graphsByValue={},Object.keys(t.results.bindings).forEach((function(n){const o=t.results.bindings[n];"bnode"===o.contextID.type?o.contextID.value="_:"+o.contextID.value:"default"===o.contextID.type?(o.contextID.uri=encodeURIComponent("http://www.openrdf.org/schema/sesame#nil"),o.contextID.clearUri="DEFAULT",o.contextID.exportUri="null",o.contextID.longName="default graph"):(o.contextID.uri=encodeURIComponent(o.contextID.value),o.contextID.clearUri="GRAPH <"+o.contextID.value+">",o.contextID.exportUri=encodeURIComponent("<"+o.contextID.value+">"),o.contextID.longName="named graph "+o.contextID.value),e.graphsByValue[o.contextID.value]=o.contextID})),e.graphs=t.results.bindings,e.filteredGraphs=Object(a.cloneDeep)(e.graphs),e.displayGraphs=e.filteredGraphs.slice(e.pageSize*(e.page-1),e.pageSize*e.page),e.loader=!1,e.selectedGraphs.exportGraphs={},e.matchedElements=e.graphs})).error((function(t,n){const o=getError(t,n);"There is no active location!"===o&&(c.setRepository(""),d.error(o,h.instant("common.error"))),e.loader=!1}))):e.loader=!1},e.onGraphSearch=function(){e.matchedElements=[],e.deselectAll(),e.filterResults()},e.filterResults=function(){angular.forEach(e.graphs,(function(t){-1!==t.contextID.value.indexOf(e.exportFilter)&&e.matchedElements.push(t)}))},e.downloadExport=function(e,t){let n=e+"&Accept="+encodeURIComponent(t.type);const o=m.getAuthToken();o&&(n=n+"&authToken="+encodeURIComponent(o));let r=window.open(n);s((function(){"about:blank"!==r.document.location.href&&(r.close(),d.error("Could not export graph. Check GraphDB logs for detailed reason."))}),100)},e.openExportDDTooltip=function(){e.showExportDDTooltip&&(s((function(){$("#tooltipTarget").trigger("showExportDDTooltip")}),0),s((function(){$("#tooltipTarget").trigger("showExportDDTooltip")}),3e3),e.showExportDDTooltip=!1)},e.exportRepo=function(t,n){"application/rdf+xml"===t.type||"text/plain"===t.type||"text/turtle"===t.type||"application/x-turtlestar"===t.type||"text/rdf+n3"===t.type?l.openSimpleModal({title:h.instant("common.warning"),message:Object(r.decodeHTML)(h.instant("export.format.warning.msg")),warning:!0}).result.then((function(){e.startDownload(t,n)})):e.startDownload(t,n)},e.openJSONLDExportSettings=function(t,n){x.open({templateUrl:"js/angular/core/components/export-settings-modal/exportSettingsModal.html",controller:i.ExportSettingsCtrl,size:"lg",scope:e,resolve:{format:function(){return t.name}}}).result.then((function(r){const a=r.link?"<"+r.link+">":"";!function(e,t,n,r,a,i){const s={accept:e.type+";profile="+i.link,link:n};u.getExportedStatementsAsJSONLD(t,r,a,m.getAuthToken(),s).then((function({data:e,filename:t}){Object(o.saveAs)(e,t)})).catch((function(e){e.data.text().then(t=>{431===e.status?d.error(e.statusText,h.instant("common.error")):d.error(t,h.instant("common.error"))})}))}(t,n,a,c.getActiveRepositoryObject(),e.graphsByValue,r.currentMode)}))},e.startDownload=function(t,n){let o;const r=c.getActiveRepositoryObject();o=n?`repositories/${r.id}/statements?infer=false&context=${e.graphsByValue[n.value].exportUri}&location=${encodeURIComponent(r.location)}`:`repositories/${r.id}/statements?infer=false&location=${encodeURIComponent(r.location)}`,e.downloadExport(o,t)},e.hasMultipleSelected=function(){if(_.isEmpty(e.selectedGraphs.exportGraphs))return!_.isEmpty(e.selectedGraphs.exportGraphs);for(const t in e.selectedGraphs.exportGraphs)if(!0===e.selectedGraphs.exportGraphs[t])return!0;return!1},e.openJSONLDExportSettingsForSelectedGraphs=function(t){const n=Object.keys(e.selectedGraphs.exportGraphs).filter(t=>e.selectedGraphs.exportGraphs[t]).map(t=>e.graphsByValue[t].exportUri);n?e.openJSONLDExportSettings(t,n):l.openSimpleModal({title:h.instant("export.multiple.graph"),message:h.instant("export.check.graphs.msg"),warning:!0})},e.exportSelectedGraphs=function(t){let n="";for(const t in e.selectedGraphs.exportGraphs)e.selectedGraphs.exportGraphs[t]&&(n+="context="+e.graphsByValue[t].exportUri+"&");if(n){const o=function(){n=n.substring(0,n.length-1);const o="repositories/"+e.getActiveRepository()+"/statements?infer=false&"+n;e.downloadExport(o,t)};"application/rdf+xml"===t.type||"text/plain"===t.type||"text/turtle"===t.type||"application/x-turtlestar"===t.type||"text/rdf+n3"===t.type?l.openSimpleModal({title:h.instant("common.warning"),message:Object(r.decodeHTML)(h.instant("export.format.warning.msg")),warning:!0}).result.then((function(){o()})):o()}else l.openSimpleModal({title:h.instant("export.multiple.graph"),message:h.instant("export.check.graphs.msg"),warning:!0})},e.$watch("exportFilter",(function(){if(e.filteredGraphs=p(e.graphs,e.exportFilter),e.getActiveRepository()&&angular.element(document).find(".btn.btn-secondary.btn-sm.dropdown-toggle span").length){const t=angular.element(document).find(".btn.btn-secondary.btn-sm.dropdown-toggle span")[0].innerHTML.trim();let n;"All"===t&&(n=e.filteredGraphs.length),e.filteredGraphs&&e.filteredGraphs.length>e.pageSize&&"All"!==t&&(n=e.pageSize),e.changePageSize(n),e.changePagination()}})),e.changePagination=function(){e.selectedAll=!1,angular.isDefined(e.filteredGraphs)&&(e.displayGraphs=e.filteredGraphs.slice(e.pageSize*(e.page-1),e.pageSize*e.page))},e.changePageSize=function(t){$(".ot-graph-page-size").removeClass("active"),e.page=1,t&&(e.pageSize=t,e.changePagination()),e.filteredGraphs&&""!==e.exportFilter&&(e.displayGraphs=e.filteredGraphs)},e.checkAll=function(){e.selectedAll=e.selectedAll||!1,angular.forEach(e.displayGraphs,(function(t){t.contextID.uri&&(e.selectedGraphs.exportGraphs[t.contextID.value]=e.selectedAll)}))},e.deselectAll=function(){e.selectedAll=!1,angular.forEach(e.displayGraphs,(function(t){t.contextID.uri&&(e.selectedGraphs.exportGraphs[t.contextID.value]=!1)}))},e.dropRepository=function(){e.canWriteActiveRepo()&&(e.deleting["*"]=!0,l.openSimpleModal({title:h.instant("export.confirm.clear.msg"),message:h.instant("export.warning.clear.repo.msg",{repo:c.getActiveRepository()}),warning:!0}).result.then((function(){s((function(){g.addStatements(c.getActiveRepository(),"update=CLEAR ALL").then((function(){e.deleting["*"]=!1,d.success(h.instant("export.cleared.repo",{repo:c.getActiveRepository()})),e.getGraphs()}),(function(t){e.deleting["*"]=!1;const n=t.data;"string"==typeof n&&n.indexOf("Clearing all statements in the repository is incompatible with collecting history")>-1?d.error(h.instant("export.clearing.statements.warning")):d.error(h.instant("export.cleared.repo.failed.msg",{repo:c.getActiveRepository()}),t)}))}),100)})))},e.dropContext=function(t){e.canWriteActiveRepo()&&(angular.isDefined(t)?function(t){const n=t.contextID.longName;e.deleting[t]=!0,l.openSimpleModal({title:h.instant("export.confirm.clear.graph"),message:h.instant("export.clear.graph.warning",{longName:n}),warning:!0}).result.then((function(){s((function(){const o="update=CLEAR "+t.contextID.clearUri;g.addStatements(c.getActiveRepository(),o).then((function(){e.deleting[t]=!1,d.success(h.instant("export.cleared.graph",{longName:n})),e.getGraphs(),e.exportFilter="",e.filteredGraphs.length=0,e.updateResults(),e.changePageSize(e.pageSize)}),(function(o){e.deleting[t]=!1,d.error(h.instant("export.clear.graph.msg",{longName:n}),getError(o,o.status))}))}),100)}),(function(){e.deleting[t]=!1}))}(t):function(t){const n=[];angular.forEach(e.selectedGraphs.exportGraphs,(function(e,t){e&&n.push(t)})),n.length>0&&(e.deleting[t]=!0,l.openSimpleModal({title:h.instant("export.confirm.clear.graph"),message:h.instant("export.warning.clear.graph.msg"),warning:!0}).result.then((function(){s((function(){let t=0;angular.forEach(n,(function(o){const r="update=CLEAR "+e.graphsByValue[o].clearUri;g.addStatements(c.getActiveRepository(),r).then((function(){e.loader=!0,e.selectedGraphs.exportGraphs[o]=!1,delete e.selectedGraphs.exportGraphs[o],t++,n.length===t&&(e.selectedAll=!1,e.exportFilter="",e.filteredGraphs.length=0,e.getGraphs(),e.updateResults(),e.changePageSize(e.pageSize),d.success(h.instant("export.cleared.graph.msg")),e.loader=!1)}),(function(t){const n=e.graphsByValue[o].longName;d.error(h.instant("export.clear.graph.msg",{longName:n}),getError(t,t.status)),e.selectedAll=!1}))}))}),100)}),(function(){e.deleting[t]=!1})))}(t))}}])},462:function(e,t){(function(t){e.exports=t}).call(this,{})},463:function(e,t,n){var o,r=r||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},o=t.createElementNS("http://www.w3.org/1999/xhtml","a"),r=e.webkitRequestFileSystem,a=e.requestFileSystem||r||e.mozRequestFileSystem,i=function(t){(e.setImmediate||e.setTimeout)((function(){throw t}),0)},s=0,l=function(t){var o=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};e.chrome?o():setTimeout(o,500)},p=function(e,t,n){for(var o=(t=[].concat(t)).length;o--;){var r=e["on"+t[o]];if("function"==typeof r)try{r.call(e,n||e)}catch(e){i(e)}}},c=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e},d=function(t,i){t=c(t);var d,u,g,f=this,h=t.type,m=!1,x=function(){p(f,"writestart progress write writeend".split(" "))},y=function(){(!m&&d||(d=n().createObjectURL(t)),u)?u.location.href=d:null==e.open(d,"_blank")&&"undefined"!=typeof safari&&(e.location.href=d);f.readyState=f.DONE,x(),l(d)},w=function(e){return function(){if(f.readyState!==f.DONE)return e.apply(this,arguments)}},S={create:!0,exclusive:!1};if(f.readyState=f.INIT,i||(i="download"),o)return d=n().createObjectURL(t),o.href=d,o.download=i,void setTimeout((function(){var e,t;e=o,t=new MouseEvent("click"),e.dispatchEvent(t),x(),l(d),f.readyState=f.DONE}));e.chrome&&h&&"application/octet-stream"!==h&&(g=t.slice||t.webkitSlice,t=g.call(t,0,t.size,"application/octet-stream"),m=!0),r&&"download"!==i&&(i+=".download"),("application/octet-stream"===h||r)&&(u=e),a?(s+=t.size,a(e.TEMPORARY,s,w((function(e){e.root.getDirectory("saved",S,w((function(e){var n=function(){e.getFile(i,S,w((function(e){e.createWriter(w((function(n){n.onwriteend=function(t){u.location.href=e.toURL(),f.readyState=f.DONE,p(f,"writeend",t),l(e)},n.onerror=function(){var e=n.error;e.code!==e.ABORT_ERR&&y()},"writestart progress write abort".split(" ").forEach((function(e){n["on"+e]=f["on"+e]})),n.write(t),f.abort=function(){n.abort(),f.readyState=f.DONE},f.readyState=f.WRITING})),y)})),y)};e.getFile(i,{create:!1},w((function(e){e.remove(),n()})),w((function(e){e.code===e.NOT_FOUND_ERR?n():y()})))})),y)})),y)):y()},u=d.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t){return navigator.msSaveOrOpenBlob(c(e),t)}:(u.abort=function(){this.readyState=this.DONE,p(this,"abort")},u.readyState=u.INIT=0,u.WRITING=1,u.DONE=2,u.error=u.onwritestart=u.onprogress=u.onwrite=u.onabort=u.onerror=u.onwriteend=null,function(e,t){return new d(e,t)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);
|
|
2
|
-
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */e.exports?e.exports.saveAs=r:null!==n(474)&&null!=n(462)&&(void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o))},474:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},86:function(e,t,n){"use strict";function o(e,t,n,o,r){e.JSONLDModes=[{name:"framed",link:"http://www.w3.org/ns/json-ld#framed"},{name:"expanded",link:"http://www.w3.org/ns/json-ld#expanded"},{name:"flattened",link:"http://www.w3.org/ns/json-ld#flattened"},{name:"compacted",link:"http://www.w3.org/ns/json-ld#compacted"}],e.JSONLDModesNames=e.JSONLDModes.reduce((function(e,t){return e[t.name]=t.name,e}),{}),e.JSONLDFramedModes=[e.JSONLDModesNames.framed],e.JSONLDContextModes=[e.JSONLDModesNames.compacted,e.JSONLDModesNames.flattened],e.defaultMode=e.JSONLDModes.find(e=>"expanded"===e.name),e.currentMode=e.defaultMode,e.link=null,e.fileFormat=r.toLowerCase(),e.setJSONLDSettingsToLocalStorage=function(e,t,r){n.set(o.JSONLD_EXPORT_SETTINGS,JSON.stringify({jsonldFormName:e,jsonldFormLink:t,jsonldLink:r}))},e.cancel=function(){t.dismiss()},e.reset=function(){e.currentMode=e.defaultMode,e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.clearLinkInput=function(){e.link="",e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link)},e.exportJsonLD=function(){e.setJSONLDSettingsToLocalStorage(e.currentMode.name,e.currentMode.link,e.link),t.close({currentMode:e.currentMode,link:e.link})};!function(){const t=n.get(o.JSONLD_EXPORT_SETTINGS);t&&(e.currentMode=e.JSONLDModes.find(e=>e.name===t.jsonldFormName),e.link=t.jsonldLink)}()}n.r(t),n.d(t,"ExportSettingsCtrl",(function(){return o})),angular.module("graphdb.framework.core.components.export-settings-modal",["graphdb.framework.utils.localstorageadapter"]).controller("ExportSettingsCtrl",o),o.$inject=["$scope","$uibModalInstance","LocalStorageAdapter","LSKeys","format"]},96:function(e,t){angular.module("graphdb.workbench.utils.filetypes",[]).value("FileTypes",[{name:"JSON",translateKey:"download.as.json",type:"application/rdf+json",extension:".json"},{name:"JSON-LD",translateKey:"download.as.jsonld",type:"application/ld+json",extension:".jsonld"},{name:"NDJSON-LD",translateKey:"download.as.ndjsonld",type:"application/x-ld+ndjson",extension:".ndjsonld"},{name:"RDF-XML",translateKey:"download.as.rdfxml",type:"application/rdf+xml",extension:".rdf"},{name:"N3",translateKey:"download.as.n3",type:"text/rdf+n3",extension:".n3"},{name:"N-Triples",translateKey:"download.as.ntriples",type:"text/plain",extension:".nt"},{name:"N-Quads",translateKey:"download.as.nquads",type:"text/x-nquads",extension:".nq"},{name:"Turtle",translateKey:"download.as.turtle",type:"text/turtle",extension:".ttl"},{name:"Turtle*",translateKey:"download.as.turtlestar",type:"application/x-turtlestar",extension:".ttls"},{name:"TriX",translateKey:"download.as.trix",type:"application/trix",extension:".trix"},{name:"TriG",translateKey:"download.as.trig",type:"application/x-trig",extension:".trig"},{name:"TriG*",translateKey:"download.as.trigstar",type:"application/x-trigstar",extension:".trigs"},{name:"Binary RDF",translateKey:"download.as.binaryrdf",type:"application/x-binary-rdf",extension:".brf"}])}}]);
|