@piveau/dpi 0.2.0-alpha.19 → 0.2.0-alpha.20
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/assets/dpi.css +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +62 -56
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +4 -53
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +58 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +65 -53
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +60 -56
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +67 -79
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +17 -17
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +411 -318
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +103 -71
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +88 -60
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +143 -126
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +32 -32
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +64 -48
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +46 -41
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +227 -208
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +124 -106
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +113 -108
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +370 -360
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +464 -182
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +31 -26
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +31 -92
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +183 -126
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/ContactPage.vue.js +95 -89
- package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +139 -122
- package/dist/packages/dpi/src/data-provider-interface/components/DistributionSimplePage.vue.js +618 -525
- package/dist/packages/dpi/src/data-provider-interface/components/HVDPage.vue.js +56 -55
- package/dist/packages/dpi/src/data-provider-interface/components/PublisherPage.vue.js +94 -89
- package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js +247 -238
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +4 -4
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +16 -17
- package/dist/packages/dpi/src/data-provider-interface/components/TempResPage.vue.js +122 -104
- package/dist/packages/dpi/src/data-provider-interface/components/TempResPageInModal.vue.js +249 -108
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +332 -305
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +89 -55
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +243 -199
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +24 -11
- package/dist/packages/dpi/src/data-provider-interface/store/modules/authStore.js +14 -12
- package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +317 -288
- package/package.json +2 -2
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
import { datasetResolvers as
|
|
2
|
-
import { useAsyncState as
|
|
3
|
-
import { isEmpty as
|
|
4
|
-
import { toRef as
|
|
5
|
-
function
|
|
1
|
+
import { datasetResolvers as ee, defineJsonldResolver as te, dcatDatasetTransformer as re } from "@piveau/jsonld";
|
|
2
|
+
import { useAsyncState as ie } from "@vueuse/core";
|
|
3
|
+
import { isEmpty as oe } from "lodash-es";
|
|
4
|
+
import { toRef as ae, ref as ne, toValue as z, computed as M, watch as O } from "vue";
|
|
5
|
+
function x(e) {
|
|
6
6
|
return e == null ? [] : Array.isArray(e) ? e : [e];
|
|
7
7
|
}
|
|
8
8
|
function o(e) {
|
|
9
9
|
if (e != null)
|
|
10
10
|
return Array.isArray(e) ? e[0] : e;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function f(e) {
|
|
13
13
|
return Array.isArray(e) ? e : e ? [e] : void 0;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function ce(e) {
|
|
16
16
|
return Object.fromEntries(
|
|
17
17
|
Object.entries(e).filter(
|
|
18
|
-
([
|
|
18
|
+
([t, i]) => i != null && !oe(i)
|
|
19
19
|
)
|
|
20
20
|
);
|
|
21
21
|
}
|
|
22
|
-
function De(e,
|
|
23
|
-
const { enabled:
|
|
24
|
-
baseUrl:
|
|
25
|
-
resolvers:
|
|
26
|
-
transformer:
|
|
27
|
-
}),
|
|
28
|
-
state:
|
|
29
|
-
isReady:
|
|
30
|
-
isLoading:
|
|
31
|
-
error:
|
|
32
|
-
execute:
|
|
33
|
-
} =
|
|
22
|
+
function De(e, t) {
|
|
23
|
+
const { enabled: i, hubSearchUrl: r } = t, n = ae(i), m = [...ee()].filter((u) => u.name !== "licence"), { safeTransform: s } = te({
|
|
24
|
+
baseUrl: r,
|
|
25
|
+
resolvers: m,
|
|
26
|
+
transformer: re
|
|
27
|
+
}), p = ne([]), {
|
|
28
|
+
state: g,
|
|
29
|
+
isReady: h,
|
|
30
|
+
isLoading: y,
|
|
31
|
+
error: B,
|
|
32
|
+
execute: D
|
|
33
|
+
} = ie(
|
|
34
34
|
async () => {
|
|
35
|
-
var
|
|
36
|
-
if (!
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
39
|
-
return
|
|
35
|
+
var P;
|
|
36
|
+
if (!t.preprocess && !t.transform) {
|
|
37
|
+
const c = await s(z(e));
|
|
38
|
+
if (c.error)
|
|
39
|
+
return p.value.push({
|
|
40
40
|
code: "transform_failed",
|
|
41
|
-
message:
|
|
41
|
+
message: c.error.message
|
|
42
42
|
}), null;
|
|
43
|
-
const
|
|
44
|
-
return (!
|
|
43
|
+
const l = c.data;
|
|
44
|
+
return (!l || !((P = l["dpi:isDPIv3"]) != null && P["@value"])) && p.value.push({
|
|
45
45
|
code: "not_dpi_v3",
|
|
46
|
-
message: `The dataset is not a DPI v3 dataset. ID ${
|
|
46
|
+
message: `The dataset is not a DPI v3 dataset. ID ${l["@id"]}`
|
|
47
47
|
}), {
|
|
48
|
-
dpiData:
|
|
49
|
-
data:
|
|
48
|
+
dpiData: ye(l, t.visibility || "public"),
|
|
49
|
+
data: l
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
let
|
|
53
|
-
if (
|
|
52
|
+
let v;
|
|
53
|
+
if (t.preprocess)
|
|
54
54
|
try {
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
57
|
-
return
|
|
55
|
+
const c = await t.preprocess(z(e));
|
|
56
|
+
if (c && typeof c == "object" && "error" in c && c.error)
|
|
57
|
+
return p.value.push({
|
|
58
58
|
code: "preprocess_failed",
|
|
59
|
-
message:
|
|
59
|
+
message: c.error.message || "Preprocess failed"
|
|
60
60
|
}), null;
|
|
61
|
-
|
|
62
|
-
} catch (
|
|
63
|
-
return
|
|
61
|
+
v = c && typeof c == "object" && "data" in c ? c.data : c;
|
|
62
|
+
} catch (c) {
|
|
63
|
+
return p.value.push({
|
|
64
64
|
code: "preprocess_failed",
|
|
65
|
-
message: (
|
|
65
|
+
message: (c == null ? void 0 : c.message) || String(c)
|
|
66
66
|
}), null;
|
|
67
67
|
}
|
|
68
68
|
else
|
|
69
|
-
|
|
70
|
-
if (!
|
|
71
|
-
return
|
|
69
|
+
v = z(e);
|
|
70
|
+
if (!t.transform)
|
|
71
|
+
return p.value.push({
|
|
72
72
|
code: "missing_transform",
|
|
73
73
|
message: "No transform function provided. Either supply a transform or omit both preprocess and transform to use the default DCAT dataset path."
|
|
74
74
|
}), null;
|
|
75
|
-
let
|
|
75
|
+
let T;
|
|
76
76
|
try {
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
} catch (
|
|
80
|
-
return
|
|
77
|
+
const c = t.preprocess ? v : z(e);
|
|
78
|
+
T = await t.transform(c);
|
|
79
|
+
} catch (c) {
|
|
80
|
+
return p.value.push({
|
|
81
81
|
code: "transform_apply_failed",
|
|
82
|
-
message: (
|
|
82
|
+
message: (c == null ? void 0 : c.message) || String(c)
|
|
83
83
|
}), null;
|
|
84
84
|
}
|
|
85
85
|
return {
|
|
86
|
-
dpiData:
|
|
87
|
-
data:
|
|
86
|
+
dpiData: T,
|
|
87
|
+
data: v
|
|
88
88
|
};
|
|
89
89
|
},
|
|
90
90
|
null,
|
|
91
91
|
{ immediate: !1 }
|
|
92
|
-
),
|
|
93
|
-
() =>
|
|
94
|
-
),
|
|
95
|
-
() =>
|
|
96
|
-
),
|
|
97
|
-
var
|
|
98
|
-
return (
|
|
99
|
-
}),
|
|
100
|
-
var
|
|
101
|
-
return (
|
|
92
|
+
), R = M(
|
|
93
|
+
() => n.value && !y.value && !!h.value
|
|
94
|
+
), L = M(
|
|
95
|
+
() => n.value && !!R.value
|
|
96
|
+
), A = M(() => L.value), I = M(() => {
|
|
97
|
+
var u;
|
|
98
|
+
return (u = g.value) == null ? void 0 : u.dpiData;
|
|
99
|
+
}), U = M(() => {
|
|
100
|
+
var u;
|
|
101
|
+
return (u = g.value) == null ? void 0 : u.data;
|
|
102
102
|
});
|
|
103
|
-
return
|
|
104
|
-
() =>
|
|
105
|
-
(
|
|
106
|
-
),
|
|
107
|
-
console.log("jsonld resolved result:",
|
|
108
|
-
}),
|
|
109
|
-
console.log("jsonld error:",
|
|
103
|
+
return O(
|
|
104
|
+
() => z(e),
|
|
105
|
+
(u) => u && n.value ? D() : null
|
|
106
|
+
), O(U, (u) => {
|
|
107
|
+
console.log("jsonld resolved result:", u);
|
|
108
|
+
}), O(B, (u) => {
|
|
109
|
+
console.log("jsonld error:", u);
|
|
110
110
|
}), {
|
|
111
|
-
processedInput:
|
|
112
|
-
isProcessedInputReady:
|
|
113
|
-
result:
|
|
114
|
-
isMaterialized:
|
|
115
|
-
isReady:
|
|
116
|
-
errors:
|
|
111
|
+
processedInput: g,
|
|
112
|
+
isProcessedInputReady: R,
|
|
113
|
+
result: I,
|
|
114
|
+
isMaterialized: L,
|
|
115
|
+
isReady: A,
|
|
116
|
+
errors: p
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function b(e) {
|
|
120
120
|
if (typeof e == "string")
|
|
121
121
|
return e;
|
|
122
122
|
if (e && typeof e == "object") {
|
|
@@ -127,133 +127,133 @@ function p(e) {
|
|
|
127
127
|
}
|
|
128
128
|
return "";
|
|
129
129
|
}
|
|
130
|
-
function d(e,
|
|
130
|
+
function d(e, t = "de") {
|
|
131
131
|
if (!e)
|
|
132
132
|
return "";
|
|
133
133
|
if (typeof e == "string")
|
|
134
134
|
return e;
|
|
135
135
|
if (typeof e == "object" && !Array.isArray(e) && !e["@value"] && !e["@id"])
|
|
136
|
-
return e[
|
|
136
|
+
return e[t] || Object.values(e)[0] || "";
|
|
137
137
|
if (Array.isArray(e)) {
|
|
138
|
-
const
|
|
139
|
-
(
|
|
138
|
+
const i = e.find(
|
|
139
|
+
(n) => n["@language"] === t
|
|
140
140
|
);
|
|
141
|
-
if (
|
|
142
|
-
return
|
|
143
|
-
const
|
|
144
|
-
return (
|
|
141
|
+
if (i)
|
|
142
|
+
return i["@value"] || "";
|
|
143
|
+
const r = e[0];
|
|
144
|
+
return (r == null ? void 0 : r["@value"]) || b(r) || "";
|
|
145
145
|
}
|
|
146
|
-
return e["@language"] && e["@value"] ? e["@value"] :
|
|
146
|
+
return e["@language"] && e["@value"] ? e["@value"] : b(e);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function G(e) {
|
|
149
149
|
return {
|
|
150
150
|
uri: e.uri,
|
|
151
151
|
label: e.label
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
const
|
|
156
|
-
return
|
|
154
|
+
function V(e, t) {
|
|
155
|
+
const i = e.prefLabel;
|
|
156
|
+
return G({
|
|
157
157
|
uri: e["@id"] || e["purl:identifier"] || "",
|
|
158
|
-
"@value":
|
|
158
|
+
"@value": i ? d(i) : e["purl:identifier"] || ""
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function H(e) {
|
|
162
162
|
return typeof e == "string" ? {
|
|
163
163
|
"@value": e
|
|
164
164
|
} : e;
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function _(e, t = !0) {
|
|
167
167
|
return {
|
|
168
|
-
isValid:
|
|
168
|
+
isValid: t,
|
|
169
169
|
...e
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
return e ?
|
|
174
|
-
"@value":
|
|
175
|
-
"@language":
|
|
176
|
-
}) :
|
|
177
|
-
"@value":
|
|
178
|
-
"@language":
|
|
179
|
-
}) :
|
|
180
|
-
"@value":
|
|
181
|
-
"@language":
|
|
182
|
-
}) :
|
|
172
|
+
function X(e, t = "de") {
|
|
173
|
+
return e ? x(e).map((r) => typeof r == "string" ? _({
|
|
174
|
+
"@value": r,
|
|
175
|
+
"@language": t
|
|
176
|
+
}) : r && typeof r == "object" ? r["@language"] && r["@value"] ? _({
|
|
177
|
+
"@value": r["@value"],
|
|
178
|
+
"@language": r["@language"]
|
|
179
|
+
}) : _({
|
|
180
|
+
"@value": b(r),
|
|
181
|
+
"@language": t
|
|
182
|
+
}) : _({
|
|
183
183
|
"@value": "",
|
|
184
|
-
"@language":
|
|
184
|
+
"@language": t
|
|
185
185
|
})) : [];
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
return e ?
|
|
189
|
-
(
|
|
190
|
-
"@type":
|
|
191
|
-
"@value":
|
|
187
|
+
function de(e, t) {
|
|
188
|
+
return e ? x(e).map(
|
|
189
|
+
(r) => _({
|
|
190
|
+
"@type": t,
|
|
191
|
+
"@value": b(r)
|
|
192
192
|
})
|
|
193
193
|
) : [];
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
const
|
|
197
|
-
for (const [
|
|
198
|
-
r
|
|
199
|
-
return
|
|
195
|
+
function Y(e, t) {
|
|
196
|
+
const i = { isValid: !0 };
|
|
197
|
+
for (const [r, n] of Object.entries(t))
|
|
198
|
+
i[r] = b(e == null ? void 0 : e[n]);
|
|
199
|
+
return i;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function le(e) {
|
|
202
202
|
return {
|
|
203
203
|
happyFlowLandingPage: {}
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
|
-
function
|
|
207
|
-
const
|
|
206
|
+
function se(e, t) {
|
|
207
|
+
const i = {
|
|
208
208
|
discoverabilityPage: [{ isValid: !0 }]
|
|
209
209
|
};
|
|
210
210
|
if (e["dcatap:hvdCategory"]) {
|
|
211
|
-
const
|
|
212
|
-
|
|
211
|
+
const r = x(e["dcatap:hvdCategory"]).filter(Boolean);
|
|
212
|
+
i.hvdPage = r == null ? void 0 : r.map((n) => ({
|
|
213
213
|
isValid: !0,
|
|
214
|
-
uri:
|
|
215
|
-
label: d(
|
|
214
|
+
uri: n["@id"],
|
|
215
|
+
label: d(n.prefLabel)
|
|
216
216
|
}));
|
|
217
217
|
}
|
|
218
218
|
if (e["dcat:theme"]) {
|
|
219
|
-
const
|
|
220
|
-
|
|
219
|
+
const r = x(e["dcat:theme"]);
|
|
220
|
+
i.discoverabilityPage = [
|
|
221
221
|
{ isValid: !0 },
|
|
222
|
-
...
|
|
223
|
-
(
|
|
224
|
-
id:
|
|
225
|
-
uri:
|
|
226
|
-
label: d(
|
|
222
|
+
...r.map(
|
|
223
|
+
(n) => _({
|
|
224
|
+
id: b(n).split("/").pop(),
|
|
225
|
+
uri: b(n),
|
|
226
|
+
label: d(n.prefLabel)
|
|
227
227
|
})
|
|
228
228
|
)
|
|
229
229
|
];
|
|
230
230
|
}
|
|
231
|
-
return
|
|
231
|
+
return t && (i.visibilityPage = [
|
|
232
232
|
{
|
|
233
233
|
isValid: !0,
|
|
234
|
-
visibility:
|
|
234
|
+
visibility: t
|
|
235
235
|
}
|
|
236
|
-
]),
|
|
236
|
+
]), i;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
var
|
|
240
|
-
const
|
|
241
|
-
datasetID: ((
|
|
238
|
+
function ue(e) {
|
|
239
|
+
var r;
|
|
240
|
+
const i = {
|
|
241
|
+
datasetID: ((r = e["@id"]) == null ? void 0 : r.split("/").pop()) || "",
|
|
242
242
|
"dct:title": [],
|
|
243
243
|
"dct:description": [],
|
|
244
244
|
"dct:modified": [""],
|
|
245
245
|
"dct:publisher": [],
|
|
246
246
|
"dcat:contactPoint": []
|
|
247
247
|
};
|
|
248
|
-
if (e["dct:title"] && (
|
|
248
|
+
if (e["dct:title"] && (i["dct:title"] = X(e["dct:title"])), e["dct:description"] && (i["dct:description"] = X(
|
|
249
249
|
e["dct:description"]
|
|
250
|
-
)), e["dct:modified"] && (
|
|
250
|
+
)), e["dct:modified"] && (i["dct:modified"] = de(
|
|
251
251
|
e["dct:modified"],
|
|
252
252
|
"http://www.w3.org/2001/XMLSchema#date"
|
|
253
253
|
)), e["dct:publisher"]) {
|
|
254
|
-
const
|
|
255
|
-
|
|
256
|
-
|
|
254
|
+
const n = o(e["dct:publisher"]);
|
|
255
|
+
i["dct:publisher"] = [
|
|
256
|
+
Y(n, {
|
|
257
257
|
"foaf:name": "foaf:name",
|
|
258
258
|
"foaf:mbox": "foaf:mbox",
|
|
259
259
|
"foaf:homepage": "foaf:homepage"
|
|
@@ -261,23 +261,23 @@ function se(e) {
|
|
|
261
261
|
];
|
|
262
262
|
}
|
|
263
263
|
if (e["dcat:contactPoint"]) {
|
|
264
|
-
const
|
|
265
|
-
|
|
266
|
-
|
|
264
|
+
const n = o(e["dcat:contactPoint"]);
|
|
265
|
+
i["dcat:contactPoint"] = [
|
|
266
|
+
Y(n, {
|
|
267
267
|
"vcard:fn": "vcard:fn",
|
|
268
268
|
"vcard:hasEmail": "vcard:hasEmail",
|
|
269
269
|
"vcard:hasTelephone": "vcard:hasTelephone"
|
|
270
270
|
})
|
|
271
271
|
];
|
|
272
272
|
}
|
|
273
|
-
return
|
|
273
|
+
return i;
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
var
|
|
275
|
+
function fe(e) {
|
|
276
|
+
var t, i;
|
|
277
277
|
return {
|
|
278
|
-
"dcatde:politicalGeocodingURI": (
|
|
279
|
-
var
|
|
280
|
-
const
|
|
278
|
+
"dcatde:politicalGeocodingURI": (t = e["dcatapde:politicalGeocodingURI"]) == null ? void 0 : t.map((r) => {
|
|
279
|
+
var p;
|
|
280
|
+
const m = {
|
|
281
281
|
districtKey: "Kreis",
|
|
282
282
|
governmentDistrictKey: "Bezirk",
|
|
283
283
|
municipalityKey: "Gemeindeschlüssel",
|
|
@@ -285,241 +285,268 @@ function ue(e) {
|
|
|
285
285
|
stateKey: "Bundesland",
|
|
286
286
|
regionalKey: "Regionalschlüssel"
|
|
287
287
|
};
|
|
288
|
-
let
|
|
289
|
-
return
|
|
288
|
+
let s = r["@id"].split("/").slice(-2, -1)[0];
|
|
289
|
+
return s = m[s] || s, {
|
|
290
290
|
isValid: !0,
|
|
291
|
-
uri:
|
|
292
|
-
id: ((
|
|
293
|
-
label: d(
|
|
294
|
-
inVoc:
|
|
291
|
+
uri: r["@id"],
|
|
292
|
+
id: ((p = r.prefLabel) == null ? void 0 : p.de) || r["@id"].split("/").pop(),
|
|
293
|
+
label: d(r.altLabel),
|
|
294
|
+
inVoc: s
|
|
295
295
|
};
|
|
296
296
|
}),
|
|
297
|
-
"dcat:temporalResolution": (
|
|
298
|
-
const
|
|
297
|
+
"dcat:temporalResolution": (i = e["dct:temporal"]) == null ? void 0 : i.reduce((r, n) => {
|
|
298
|
+
const s = o(n["dcat:startDate"]), p = o(n["dcat:endDate"]), g = b(s) || "", h = b(p) || "", y = typeof s != "string" && (s == null ? void 0 : s["@type"]) === "http://www.w3.org/2001/XMLSchema#dateTime" ? "dateTime" : "date", B = y === "date" ? g : g.split("T")[0], D = y === "date" ? h : h.split("T")[0], R = y === "dateTime" ? g.split("T")[1] : "", L = y === "dateTime" ? h.split("T")[1] : "";
|
|
299
299
|
return {
|
|
300
300
|
isValid: !0,
|
|
301
301
|
type: "dct:PeriodOfTime",
|
|
302
302
|
"dct:temporal": [
|
|
303
303
|
{
|
|
304
|
-
dataType:
|
|
305
|
-
"dcat:startDate":
|
|
306
|
-
"dcat:endDate":
|
|
307
|
-
startTime:
|
|
308
|
-
endTime:
|
|
304
|
+
dataType: y,
|
|
305
|
+
"dcat:startDate": B,
|
|
306
|
+
"dcat:endDate": D,
|
|
307
|
+
startTime: R || "",
|
|
308
|
+
endTime: L || ""
|
|
309
309
|
}
|
|
310
310
|
]
|
|
311
311
|
};
|
|
312
312
|
}, {})
|
|
313
313
|
};
|
|
314
314
|
}
|
|
315
|
-
function
|
|
316
|
-
var
|
|
317
|
-
|
|
318
|
-
return {};
|
|
319
|
-
const r = o(e["spdx:checksum"]);
|
|
320
|
-
return {
|
|
315
|
+
function pe(e, t) {
|
|
316
|
+
var i, r, n, m, s, p, g, h, y, B, D, R, L, A, I, U, u, v, T, P, c;
|
|
317
|
+
return e ? (o(e["spdx:checksum"]), {
|
|
321
318
|
isValid: !0,
|
|
322
|
-
id:
|
|
323
|
-
"dcat:accessURL":
|
|
319
|
+
id: t + 1,
|
|
320
|
+
"dcat:accessURL": b(o(e["dcat:accessURL"])) || "",
|
|
321
|
+
"dcat:downloadURL": ((i = e["dcat:downloadURL"]) == null ? void 0 : i.map((l) => ({
|
|
322
|
+
"@id": b(l)
|
|
323
|
+
}))) || [{ "@id": "" }],
|
|
324
324
|
"dct:format": {
|
|
325
325
|
// redundancy in label and title for better compatibility
|
|
326
|
-
label: ((
|
|
327
|
-
title: ((
|
|
328
|
-
uri: ((
|
|
326
|
+
label: ((r = o(e["dct:format"])) == null ? void 0 : r["purl:identifier"]) || "",
|
|
327
|
+
title: ((n = o(e["dct:format"])) == null ? void 0 : n["purl:identifier"]) || "",
|
|
328
|
+
uri: ((m = o(e["dct:format"])) == null ? void 0 : m["@id"]) || ""
|
|
329
329
|
},
|
|
330
330
|
"dct:title": d(e["dct:title"]),
|
|
331
331
|
"dct:description": d(e["dct:description"]),
|
|
332
|
-
"dct:modified":
|
|
333
|
-
"dct:issued":
|
|
334
|
-
"dcat:byteSize":
|
|
332
|
+
"dct:modified": b(o(e["dct:modified"])),
|
|
333
|
+
"dct:issued": b(o(e["dct:issued"])),
|
|
334
|
+
"dcat:byteSize": b(o(e["dcat:byteSize"])),
|
|
335
335
|
"dcatde:licenseAttributionByText": d(e["dcatapde:licenseAttributionByText"]) || "",
|
|
336
|
-
"dct:license": e["dct:license"] ?
|
|
336
|
+
"dct:license": e["dct:license"] ? {
|
|
337
337
|
isValid: !0,
|
|
338
|
-
uri: ((
|
|
339
|
-
"dcterms:license": d(
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
338
|
+
uri: ((s = o(e["dct:license"])) == null ? void 0 : s["@id"]) || "",
|
|
339
|
+
"dcterms:license": d(
|
|
340
|
+
(p = o(e["dct:license"])) == null ? void 0 : p.altLabel
|
|
341
|
+
) || "",
|
|
342
|
+
label: d(
|
|
343
|
+
(g = o(e["dct:license"])) == null ? void 0 : g.prefLabel
|
|
344
|
+
) || "",
|
|
345
|
+
title: d(e["dcatapde:licenseAttributionByText"]) || ""
|
|
346
|
+
} : {},
|
|
347
|
+
"dct:accessRights": e["dct:accessRights"] ? o(V(e["dct:accessRights"])) : [],
|
|
344
348
|
"dcatap:availability": {
|
|
345
349
|
// Redundant label and title for better compatibility
|
|
346
|
-
label: ((
|
|
347
|
-
title: ((
|
|
348
|
-
uri: ((
|
|
350
|
+
label: ((h = o(e["dcatap:availability"])) == null ? void 0 : h.prefLabel) || "",
|
|
351
|
+
title: ((y = o(e["dcatap:availability"])) == null ? void 0 : y.prefLabel) || "",
|
|
352
|
+
uri: ((B = o(e["dcatap:availability"])) == null ? void 0 : B["@id"]) || ""
|
|
349
353
|
},
|
|
350
|
-
"dct:language": ((
|
|
351
|
-
"dcat:mediaType":
|
|
354
|
+
"dct:language": ((D = e["dct:language"]) == null ? void 0 : D.map((l) => V(l)).filter(Boolean)) || [],
|
|
355
|
+
"dcat:mediaType": G({
|
|
352
356
|
label: d(
|
|
353
|
-
(
|
|
357
|
+
(R = o(e["dcat:mediaType"])) == null ? void 0 : R.prefLabel
|
|
354
358
|
) || "",
|
|
355
|
-
uri: ((
|
|
359
|
+
uri: ((L = o(e["dcat:mediaType"])) == null ? void 0 : L["@id"]) || ""
|
|
356
360
|
}),
|
|
357
|
-
"dcat:compressFormat":
|
|
361
|
+
"dcat:compressFormat": G({
|
|
358
362
|
label: d(
|
|
359
|
-
(
|
|
363
|
+
(A = o(e["dcat:compressFormat"])) == null ? void 0 : A.prefLabel
|
|
360
364
|
) || "",
|
|
361
|
-
uri: ((
|
|
365
|
+
uri: ((I = o(e["dcat:compressFormat"])) == null ? void 0 : I["@id"]) || ""
|
|
362
366
|
}),
|
|
363
|
-
"dcat:packageFormat":
|
|
367
|
+
"dcat:packageFormat": G({
|
|
364
368
|
label: d(
|
|
365
|
-
(
|
|
369
|
+
(U = o(e["dcat:packageFormat"])) == null ? void 0 : U.prefLabel
|
|
366
370
|
) || "",
|
|
367
|
-
uri: ((
|
|
371
|
+
uri: ((u = o(e["dcat:packageFormat"])) == null ? void 0 : u["@id"]) || ""
|
|
368
372
|
}),
|
|
369
|
-
"adms:status":
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
"spdx:checksum": ((A = p(o(r == null ? void 0 : r["spdx:algorithm"]))) == null ? void 0 : A.split("_").pop()) || "",
|
|
373
|
-
uri: (n = p(
|
|
374
|
-
o(r == null ? void 0 : r["spdx:algorithm"])
|
|
375
|
-
)) == null ? void 0 : n.replace("spdx:", "http://spdx.org/rdf/terms#")
|
|
373
|
+
"adms:status": {
|
|
374
|
+
uri: ((v = o(e["adms:status"])) == null ? void 0 : v["@id"]) || "",
|
|
375
|
+
"@value": d((T = o(e["adms:status"])) == null ? void 0 : T.prefLabel) || ""
|
|
376
376
|
},
|
|
377
|
-
accessServices:
|
|
378
|
-
conformsToItems: (
|
|
377
|
+
accessServices: he(e["dcat:accessService"] || []),
|
|
378
|
+
conformsToItems: (P = e["dct:conformsTo"]) == null ? void 0 : P.map((l, S) => ({
|
|
379
379
|
// for some reason dct:conformsTo is different from the one on dcat:dataset level
|
|
380
|
-
id:
|
|
381
|
-
"dcat:accessURL":
|
|
382
|
-
"dct:title": d(
|
|
383
|
-
"dcat:downloadURL":
|
|
380
|
+
id: S + 1,
|
|
381
|
+
"dcat:accessURL": l["@id"],
|
|
382
|
+
"dct:title": d(l["rdfs:label"]) || "",
|
|
383
|
+
"dcat:downloadURL": l["@id"],
|
|
384
384
|
// redundancy to match properties on dcat:dataset level
|
|
385
|
-
"rdfs:label": d(
|
|
386
|
-
uri:
|
|
387
|
-
})).filter(Boolean)
|
|
388
|
-
|
|
385
|
+
"rdfs:label": d(l["rdfs:label"]) || "",
|
|
386
|
+
uri: l["@id"]
|
|
387
|
+
})).filter(Boolean),
|
|
388
|
+
policyItems: ((c = e["odrl:hasPolicy"]) == null ? void 0 : c.map((l, S) => ({
|
|
389
|
+
// don't ask
|
|
390
|
+
id: S + 1,
|
|
391
|
+
"dcat:downloadURL": l["@id"],
|
|
392
|
+
"dcat:accessURL": l["@id"]
|
|
393
|
+
}))) || [{ id: 1, "dcat:downloadURL": "", "dcat:accessURL": "" }]
|
|
394
|
+
}) : {};
|
|
389
395
|
}
|
|
390
|
-
function
|
|
391
|
-
|
|
396
|
+
function me(e) {
|
|
397
|
+
var i, r;
|
|
398
|
+
const t = {
|
|
392
399
|
"dcat:distribution": []
|
|
393
400
|
};
|
|
394
|
-
if (e["dcat:distribution"]) {
|
|
395
|
-
const
|
|
396
|
-
|
|
401
|
+
if (t["dct:license"] = [(r = (i = t["dcat:distribution"]) == null ? void 0 : i[0]) == null ? void 0 : r["dct:license"]], e["dcat:distribution"]) {
|
|
402
|
+
const n = x(e["dcat:distribution"]);
|
|
403
|
+
t["dcat:distribution"] = n.map((m, s) => pe(m, s)).filter((m) => Object.keys(m).length > 0);
|
|
397
404
|
}
|
|
398
|
-
return console.log(
|
|
405
|
+
return console.log(t), t;
|
|
399
406
|
}
|
|
400
|
-
function
|
|
407
|
+
function be(e) {
|
|
401
408
|
return {
|
|
402
409
|
reviewAndPublishPage: [{ isValid: !0 }]
|
|
403
410
|
};
|
|
404
411
|
}
|
|
405
|
-
function
|
|
406
|
-
var r,
|
|
407
|
-
const
|
|
408
|
-
"dct:language": (
|
|
409
|
-
"
|
|
410
|
-
|
|
411
|
-
"@
|
|
412
|
+
function ge(e) {
|
|
413
|
+
var i, r, n, m, s, p, g, h, y, B, D, R, L, A, I, U, u, v, T, P, c, l, S, E, K, C, q, N;
|
|
414
|
+
const t = {
|
|
415
|
+
"dct:language": (i = e["dct:language"]) == null ? void 0 : i.map((a) => V(a)).filter(Boolean),
|
|
416
|
+
"dcatde:politicalGeocodingLevelURI": (r = e["dcatapde:politicalGeocodingLevelURI"]) == null ? void 0 : r.map((a) => ({
|
|
417
|
+
uri: a["@id"],
|
|
418
|
+
"@value": d(a.prefLabel)
|
|
419
|
+
})),
|
|
420
|
+
"dct:conformsTo": (n = e["dct:conformsTo"]) == null ? void 0 : n.map((a) => ({
|
|
421
|
+
"rdfs:label": d(a["rdfs:label"]) || "",
|
|
422
|
+
"@id": a["@id"]
|
|
412
423
|
})).filter(Boolean),
|
|
413
|
-
"dct:accessRights": e["dct:accessRights"] ?
|
|
414
|
-
"dct:
|
|
415
|
-
|
|
416
|
-
|
|
424
|
+
"dct:accessRights": e["dct:accessRights"] ? f(V(e["dct:accessRights"])) : [],
|
|
425
|
+
"dct:issued": x(e["dct:issued"]),
|
|
426
|
+
"dct:provenance": (m = e["dct:provenance"]) == null ? void 0 : m.map((a) => ({
|
|
427
|
+
"rdfs:label": d(a["rdfs:label"]) || "",
|
|
428
|
+
uri: a["@id"]
|
|
417
429
|
})).filter(Boolean),
|
|
418
|
-
"dct:accrualPeriodicity": e["dct:accrualPeriodicity"] ?
|
|
419
|
-
"dct:type": (
|
|
420
|
-
"dcat:spatialResolutionInMeters": ((
|
|
421
|
-
"dcat:temporalResolution": e["dcat:temporalResolution"] ? e["dcat:temporalResolution"].map(
|
|
422
|
-
const
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
430
|
+
"dct:accrualPeriodicity": e["dct:accrualPeriodicity"] ? f(V(e["dct:accrualPeriodicity"])) : [],
|
|
431
|
+
"dct:type": (s = e["dct:type"]) == null ? void 0 : s.map((a) => V(a)).filter(Boolean),
|
|
432
|
+
"dcat:spatialResolutionInMeters": ((p = e["dcat:spatialResolutionInMeters"]) == null ? void 0 : p.map(H)) || void 0,
|
|
433
|
+
"dcat:temporalResolution": e["dcat:temporalResolution"] ? e["dcat:temporalResolution"].map(H).map((a) => {
|
|
434
|
+
const F = a["@value"].match(
|
|
435
|
+
/^P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/
|
|
436
|
+
);
|
|
437
|
+
if (F) {
|
|
438
|
+
const [, j, k, $, J, W, Q] = F.map(
|
|
439
|
+
(Z) => Z || "0"
|
|
440
|
+
);
|
|
441
|
+
return [
|
|
442
|
+
{ Year: j },
|
|
443
|
+
{ Month: k },
|
|
444
|
+
{ Day: $ },
|
|
445
|
+
{ Hour: J },
|
|
446
|
+
{ Minute: W },
|
|
447
|
+
{ Second: Q }
|
|
448
|
+
];
|
|
426
449
|
}
|
|
427
|
-
}).filter(Boolean) : void 0,
|
|
428
|
-
"dcat:qualifiedRelation": (
|
|
450
|
+
}).filter(Boolean).flat() : void 0,
|
|
451
|
+
"dcat:qualifiedRelation": (g = f(
|
|
429
452
|
e["dcat:qualifiedRelation"]
|
|
430
|
-
)) == null ? void 0 :
|
|
431
|
-
"dct:creator": (
|
|
432
|
-
"dct:contributor": (
|
|
433
|
-
"dcatde:contributorID": (
|
|
434
|
-
"dcatde:geocodingDescription": (
|
|
453
|
+
)) == null ? void 0 : g.filter(Boolean),
|
|
454
|
+
"dct:creator": (h = f(e["dct:creator"])) == null ? void 0 : h.filter(Boolean),
|
|
455
|
+
"dct:contributor": (y = f(e["dct:contributor"])) == null ? void 0 : y.filter(Boolean),
|
|
456
|
+
"dcatde:contributorID": (B = e["dcatapde:contributorID"]) == null ? void 0 : B.map((a) => V(a)).filter(Boolean),
|
|
457
|
+
"dcatde:geocodingDescription": (D = f(
|
|
435
458
|
e["dcatapde:geocodingDescription"]
|
|
436
|
-
)) == null ? void 0 :
|
|
437
|
-
"dct:identifier": (
|
|
438
|
-
"@value":
|
|
459
|
+
)) == null ? void 0 : D.filter(Boolean),
|
|
460
|
+
"dct:identifier": (R = e["dct:identifier"]) == null ? void 0 : R.map((a) => ({
|
|
461
|
+
"@value": a
|
|
439
462
|
})),
|
|
440
|
-
"adms:identifier": (
|
|
441
|
-
"owl:versionInfo": (
|
|
442
|
-
"@value":
|
|
463
|
+
"adms:identifier": (L = f(e["adms:identifier"])) == null ? void 0 : L.filter(Boolean),
|
|
464
|
+
"owl:versionInfo": (A = e["owl:versionInfo"]) == null ? void 0 : A.map((a) => ({
|
|
465
|
+
"@value": a
|
|
443
466
|
})),
|
|
444
467
|
"adms:versionNotes": e["adms:versionNotes"],
|
|
445
|
-
"dcatde:legalBasis": (I =
|
|
468
|
+
"dcatde:legalBasis": (I = f(e["dcatapde:legalBasis"])) == null ? void 0 : I.filter(
|
|
446
469
|
Boolean
|
|
447
470
|
),
|
|
448
|
-
"dct:relation": (
|
|
449
|
-
"dcat:landingPage": (
|
|
471
|
+
"dct:relation": (U = f(e["dct:relation"])) == null ? void 0 : U.filter(Boolean),
|
|
472
|
+
"dcat:landingPage": (u = f(e["dcat:landingPage"])) == null ? void 0 : u.filter(
|
|
450
473
|
Boolean
|
|
451
474
|
),
|
|
452
|
-
"prov:wasGeneratedBy": (
|
|
475
|
+
"prov:wasGeneratedBy": (v = f(e["prov:wasGeneratedBy"])) == null ? void 0 : v.filter(
|
|
453
476
|
Boolean
|
|
454
477
|
),
|
|
455
|
-
"dct:isReferencedBy": (
|
|
478
|
+
"dct:isReferencedBy": (T = f(e["dct:isReferencedBy"])) == null ? void 0 : T.filter(
|
|
456
479
|
Boolean
|
|
457
480
|
),
|
|
458
|
-
"dct:source": (P =
|
|
459
|
-
"dct:hasVersion": (
|
|
460
|
-
"dct:isVersionOf": (
|
|
461
|
-
"prov:qualifiedAttribution": (
|
|
481
|
+
"dct:source": (P = f(e["dct:source"])) == null ? void 0 : P.filter(Boolean),
|
|
482
|
+
"dct:hasVersion": (c = f(e["dct:hasVersion"])) == null ? void 0 : c.filter(Boolean),
|
|
483
|
+
"dct:isVersionOf": (l = f(e["dct:isVersionOf"])) == null ? void 0 : l.filter(Boolean),
|
|
484
|
+
"prov:qualifiedAttribution": (S = f(
|
|
462
485
|
e["prov:qualifiedAttribution"]
|
|
463
|
-
)) == null ? void 0 :
|
|
464
|
-
"dcat:keyword": (
|
|
465
|
-
"dct:spatial": (
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
486
|
+
)) == null ? void 0 : S.filter(Boolean),
|
|
487
|
+
"dcat:keyword": (E = f(e["dcat:keyword"])) == null ? void 0 : E.filter(Boolean),
|
|
488
|
+
"dct:spatial": (K = f(e["dct:spatial"])) == null ? void 0 : K.filter((a) => a ? !a["@id"].startsWith(
|
|
489
|
+
"http://dcat-ap.de/def/politicalGeocoding/"
|
|
490
|
+
) : !1).filter(Boolean),
|
|
491
|
+
"dct:references": (C = f(e["dct:references"])) == null ? void 0 : C.filter(Boolean),
|
|
492
|
+
"foaf:page": (q = f(e["foaf:page"])) == null ? void 0 : q.filter(Boolean).map((a) => {
|
|
493
|
+
if (!a)
|
|
469
494
|
return;
|
|
470
|
-
const w = o(
|
|
495
|
+
const w = o(a["dct:format"]);
|
|
471
496
|
return {
|
|
472
|
-
"dct:title": o(
|
|
473
|
-
"dct:description": o(
|
|
497
|
+
"dct:title": o(a["dct:title"]),
|
|
498
|
+
"dct:description": o(a["dct:description"]),
|
|
474
499
|
"@value": w ? d(w.prefLabel) : "",
|
|
475
500
|
uri: w ? w["@id"] : "",
|
|
476
|
-
"foaf:homepage": o(
|
|
501
|
+
"foaf:homepage": o(a["foaf:homepage"]) || ""
|
|
477
502
|
};
|
|
478
503
|
}),
|
|
479
|
-
"dcatap:availability": (
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
504
|
+
"dcatap:availability": (N = e["dcatap:availability"]) == null ? void 0 : N.map(
|
|
505
|
+
(a) => {
|
|
506
|
+
var w, F, j, k;
|
|
507
|
+
return {
|
|
508
|
+
// Redundant label and title for better compatibility
|
|
509
|
+
label: ((w = o(a)) == null ? void 0 : w.prefLabel) || "",
|
|
510
|
+
title: ((F = o(a)) == null ? void 0 : F.prefLabel) || "",
|
|
511
|
+
uri: ((j = o(a)) == null ? void 0 : j["@id"]) || "",
|
|
512
|
+
"@value": d((k = o(a)) == null ? void 0 : k.prefLabel) || ""
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
)
|
|
489
516
|
};
|
|
490
|
-
return
|
|
517
|
+
return ce(t);
|
|
491
518
|
}
|
|
492
|
-
function
|
|
519
|
+
function ye(e, t) {
|
|
493
520
|
return {
|
|
494
|
-
Landing:
|
|
495
|
-
Discoverability:
|
|
496
|
-
BasicInfos:
|
|
497
|
-
Covering:
|
|
498
|
-
DistributionSimple:
|
|
499
|
-
ReviewAndPublish:
|
|
500
|
-
Additionals:
|
|
521
|
+
Landing: le(),
|
|
522
|
+
Discoverability: se(e, t),
|
|
523
|
+
BasicInfos: ue(e),
|
|
524
|
+
Covering: fe(e),
|
|
525
|
+
DistributionSimple: me(e),
|
|
526
|
+
ReviewAndPublish: be(),
|
|
527
|
+
Additionals: ge(e)
|
|
501
528
|
};
|
|
502
529
|
}
|
|
503
|
-
function
|
|
504
|
-
return !e || !Array.isArray(e) || e.length === 0 ? [] : e.map((
|
|
505
|
-
var
|
|
530
|
+
function he(e) {
|
|
531
|
+
return !e || !Array.isArray(e) || e.length === 0 ? [] : e.map((t, i) => {
|
|
532
|
+
var r, n;
|
|
506
533
|
return {
|
|
507
|
-
id:
|
|
508
|
-
"dcat:downloadURL": ((
|
|
509
|
-
"dcat:endpointURL": ((
|
|
510
|
-
"dct:description": d(
|
|
511
|
-
"dct:title": d(
|
|
534
|
+
id: i + 1,
|
|
535
|
+
"dcat:downloadURL": ((r = o(t["dcat:endpointURL"])) == null ? void 0 : r["@id"]) || "",
|
|
536
|
+
"dcat:endpointURL": ((n = o(t["dcat:endpointURL"])) == null ? void 0 : n["@id"]) || "",
|
|
537
|
+
"dct:description": d(t["dct:description"]) || "",
|
|
538
|
+
"dct:title": d(t["dct:title"]) || ""
|
|
512
539
|
};
|
|
513
540
|
});
|
|
514
541
|
}
|
|
515
542
|
export {
|
|
516
|
-
|
|
543
|
+
f as asSomeArray,
|
|
517
544
|
d as extractLocalizedString,
|
|
518
|
-
|
|
545
|
+
b as extractStringValue,
|
|
519
546
|
o as getFirstItem,
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
547
|
+
x as normalizeToArray,
|
|
548
|
+
ce as purgeNullishAndEmptyProperties,
|
|
549
|
+
he as toAccessService,
|
|
550
|
+
ye as toDpi,
|
|
524
551
|
De as useDpiSimpleLoader
|
|
525
552
|
};
|