jskos-server 2.4.0
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/.dockerignore +20 -0
- package/.editorconfig +9 -0
- package/.github/workflows/docker.yml +59 -0
- package/.github/workflows/gh-pages.yml +23 -0
- package/.github/workflows/gh-release.yml +19 -0
- package/.github/workflows/test.yml +39 -0
- package/.husky/pre-commit +1 -0
- package/CHANGELOG.md +18 -0
- package/LICENSE +21 -0
- package/README.md +2710 -0
- package/bin/extra.js +81 -0
- package/bin/import.js +438 -0
- package/bin/mongodb.js +21 -0
- package/bin/reset.js +257 -0
- package/bin/upgrade.js +34 -0
- package/config/config.default.json +88 -0
- package/config/config.schema.json +877 -0
- package/config/config.test.json +107 -0
- package/config/index.js +77 -0
- package/config/setup.js +212 -0
- package/depdendencies.png +0 -0
- package/docker/.env +1 -0
- package/docker/Dockerfile +20 -0
- package/docker/README.md +175 -0
- package/docker/docker-compose.yml +29 -0
- package/docker/docker-entrypoint.sh +8 -0
- package/docker/mongo-initdb.d/mongo_setup.sh +22 -0
- package/ecosystem.example.json +7 -0
- package/errors/index.js +94 -0
- package/eslint.config.js +17 -0
- package/index.js +10 -0
- package/models/annotations.js +13 -0
- package/models/concepts.js +12 -0
- package/models/concordances.js +12 -0
- package/models/index.js +33 -0
- package/models/mappings.js +20 -0
- package/models/meta.js +21 -0
- package/models/registries.js +12 -0
- package/models/schemes.js +12 -0
- package/package.json +91 -0
- package/routes/annotations.js +83 -0
- package/routes/common.js +86 -0
- package/routes/concepts.js +64 -0
- package/routes/concordances.js +86 -0
- package/routes/data.js +19 -0
- package/routes/mappings.js +108 -0
- package/routes/registries.js +24 -0
- package/routes/schemes.js +72 -0
- package/routes/validate.js +37 -0
- package/server.js +190 -0
- package/services/abstract.js +328 -0
- package/services/annotations.js +237 -0
- package/services/concepts.js +459 -0
- package/services/concordances.js +264 -0
- package/services/data.js +30 -0
- package/services/index.js +34 -0
- package/services/mappings.js +978 -0
- package/services/registries.js +319 -0
- package/services/schemes.js +318 -0
- package/services/validate.js +39 -0
- package/status.schema.json +145 -0
- package/test/abstract-service.js +36 -0
- package/test/annotations/annotation.json +13 -0
- package/test/api.js +2481 -0
- package/test/chai.js +14 -0
- package/test/changes.js +179 -0
- package/test/concepts/conceptNoFileEnding +4 -0
- package/test/concepts/concepts-ddc-6-60-61-62.json +123 -0
- package/test/concordances/concordances.ndjson +2 -0
- package/test/config.js +26 -0
- package/test/configs/complex-config.json +90 -0
- package/test/configs/empty-object.json +1 -0
- package/test/configs/fail-array.json +1 -0
- package/test/configs/fail-empty.json +0 -0
- package/test/configs/fail-mapping-only-props1.json +5 -0
- package/test/configs/fail-mapping-only-props2.json +5 -0
- package/test/configs/fail-mapping-only-props3.json +5 -0
- package/test/configs/fail-mapping-only-props4.json +5 -0
- package/test/configs/fail-nonexisting-prop.json +3 -0
- package/test/configs/fail-port-string.json +3 -0
- package/test/configs/fail-registry-types.json +16 -0
- package/test/configs/registry-types.json +16 -0
- package/test/data-write.js +784 -0
- package/test/eslint.js +22 -0
- package/test/import-reset.js +287 -0
- package/test/infer-mappings.js +340 -0
- package/test/ipcheck.js +287 -0
- package/test/mappings/README.md +1 -0
- package/test/mappings/ddc-gnd-1.mapping.json +33 -0
- package/test/mappings/ddc-gnd-2.mapping.json +67 -0
- package/test/mappings/mapping-ddc-gnd-noScheme.json +145 -0
- package/test/mappings/mapping-ddc-gnd.json +175 -0
- package/test/mappings/mappings-ddc.json +214 -0
- package/test/registries/registries.ndjson +2 -0
- package/test/services.js +557 -0
- package/test/terminologies/terminologies.json +94 -0
- package/test/test-utils.js +182 -0
- package/test/utils.js +425 -0
- package/test/validate.js +226 -0
- package/utils/adjust.js +206 -0
- package/utils/auth.js +154 -0
- package/utils/changes.js +88 -0
- package/utils/db.js +106 -0
- package/utils/ipcheck.js +76 -0
- package/utils/middleware.js +636 -0
- package/utils/searchHelper.js +153 -0
- package/utils/status.js +77 -0
- package/utils/users.js +7 -0
- package/utils/utils.js +114 -0
- package/utils/uuid.js +6 -0
- package/utils/version.js +324 -0
- package/views/base.ejs +172 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"from": {
|
|
4
|
+
"memberSet": [
|
|
5
|
+
{
|
|
6
|
+
"uri": "http://dewey.info/class/612.112/e23/",
|
|
7
|
+
"notation": [
|
|
8
|
+
"612.112"
|
|
9
|
+
]
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
"to": {
|
|
14
|
+
"memberSet": [
|
|
15
|
+
{
|
|
16
|
+
"uri": "http://rvk.uni-regensburg.de/nt/WW_8844",
|
|
17
|
+
"notation": [
|
|
18
|
+
"WW 8844"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"fromScheme": {
|
|
24
|
+
"uri": "http://bartoc.org/en/node/241",
|
|
25
|
+
"notation": [
|
|
26
|
+
"DDC"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"toScheme": {
|
|
30
|
+
"uri": "http://bartoc.org/en/node/533",
|
|
31
|
+
"notation": [
|
|
32
|
+
"RVK"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"@context": "https://gbv.github.io/jskos/context.json"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"from": {
|
|
39
|
+
"memberSet": [
|
|
40
|
+
{
|
|
41
|
+
"uri": "http://dewey.info/class/612.112/e23/",
|
|
42
|
+
"notation": [
|
|
43
|
+
"612.112"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
"to": {
|
|
49
|
+
"memberSet": [
|
|
50
|
+
{
|
|
51
|
+
"uri": "http://rvk.uni-regensburg.de/nt/WW_8840",
|
|
52
|
+
"notation": [
|
|
53
|
+
"WW 8840"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"fromScheme": {
|
|
59
|
+
"uri": "http://bartoc.org/en/node/241",
|
|
60
|
+
"notation": [
|
|
61
|
+
"DDC"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"toScheme": {
|
|
65
|
+
"uri": "http://bartoc.org/en/node/533",
|
|
66
|
+
"notation": [
|
|
67
|
+
"RVK"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"@context": "https://gbv.github.io/jskos/context.json"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"from": {
|
|
74
|
+
"memberSet": [
|
|
75
|
+
{
|
|
76
|
+
"uri": "http://dewey.info/class/612.11/e23/",
|
|
77
|
+
"notation": [
|
|
78
|
+
"612.11"
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"to": {
|
|
84
|
+
"memberSet": [
|
|
85
|
+
{
|
|
86
|
+
"uri": "http://rvk.uni-regensburg.de/nt/WW_8840",
|
|
87
|
+
"notation": [
|
|
88
|
+
"WW 8840"
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"fromScheme": {
|
|
94
|
+
"uri": "http://bartoc.org/en/node/241",
|
|
95
|
+
"notation": [
|
|
96
|
+
"DDC"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"toScheme": {
|
|
100
|
+
"uri": "http://bartoc.org/en/node/533",
|
|
101
|
+
"notation": [
|
|
102
|
+
"RVK"
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"@context": "https://gbv.github.io/jskos/context.json"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"from": {
|
|
109
|
+
"memberSet": [
|
|
110
|
+
{
|
|
111
|
+
"uri": "http://dewey.info/class/612.111/e23/",
|
|
112
|
+
"notation": [
|
|
113
|
+
"612.111"
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
"to": {
|
|
119
|
+
"memberSet": [
|
|
120
|
+
{
|
|
121
|
+
"uri": "http://rvk.uni-regensburg.de/nt/WW_8840",
|
|
122
|
+
"notation": [
|
|
123
|
+
"WW 8840"
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"fromScheme": {
|
|
129
|
+
"uri": "http://bartoc.org/en/node/241",
|
|
130
|
+
"notation": [
|
|
131
|
+
"DDC"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"toScheme": {
|
|
135
|
+
"uri": "http://bartoc.org/en/node/533",
|
|
136
|
+
"notation": [
|
|
137
|
+
"RVK"
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
"@context": "https://gbv.github.io/jskos/context.json"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"from": {
|
|
144
|
+
"memberSet": [
|
|
145
|
+
{
|
|
146
|
+
"uri": "http://d-nb.info/gnd/4074195-3",
|
|
147
|
+
"notation": [
|
|
148
|
+
"4074195-3"
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
"to": {
|
|
154
|
+
"memberSet": [
|
|
155
|
+
{
|
|
156
|
+
"uri": "http://dewey.info/class/612.112/e23/",
|
|
157
|
+
"notation": [
|
|
158
|
+
"612.112"
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
"fromScheme": {
|
|
164
|
+
"uri": "http://bartoc.org/en/node/430",
|
|
165
|
+
"notation": [
|
|
166
|
+
"GND"
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
"toScheme": {
|
|
170
|
+
"uri": "http://bartoc.org/en/node/241",
|
|
171
|
+
"notation": [
|
|
172
|
+
"DDC"
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
"type": ["http://www.w3.org/2004/02/skos/core#closeMatch"],
|
|
176
|
+
"@context": "https://gbv.github.io/jskos/context.json"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"from": {
|
|
180
|
+
"memberSet": [
|
|
181
|
+
{
|
|
182
|
+
"uri": "http://d-nb.info/gnd/4499720-6",
|
|
183
|
+
"notation": [
|
|
184
|
+
"4499720-6"
|
|
185
|
+
]
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
"to": {
|
|
190
|
+
"memberSet": [
|
|
191
|
+
{
|
|
192
|
+
"uri": "http://dewey.info/class/612.112/e23/",
|
|
193
|
+
"notation": [
|
|
194
|
+
"612.112"
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
"fromScheme": {
|
|
200
|
+
"uri": "http://bartoc.org/en/node/430",
|
|
201
|
+
"notation": [
|
|
202
|
+
"GND"
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
"toScheme": {
|
|
206
|
+
"uri": "http://bartoc.org/en/node/241",
|
|
207
|
+
"notation": [
|
|
208
|
+
"DDC"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
"type": ["http://www.w3.org/2004/02/skos/core#relatedMatch"],
|
|
212
|
+
"@context": "https://gbv.github.io/jskos/context.json"
|
|
213
|
+
}
|
|
214
|
+
]
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
{"uri":"http://example.org/registry/1","notation":["ERMS"],"prefLabel":{"en":"ERMS Example Registry"},"definition":{"en":["Registry entry containing ERMS for suggest/search tests."]},"type":["http://www.w3.org/ns/dcat#Catalog"],"created":"2020-01-01T00:00:00.000Z","modified":"2020-01-01T00:00:00.000Z"}
|
|
2
|
+
{"uri":"http://example.org/registry/2","notation":["XYZ"],"prefLabel":{"en":"XYZ Example Registry"},"definition":{"en":["Second registry entry."]},"type":["http://www.w3.org/ns/dcat#Catalog"],"created":"2020-01-01T00:00:00.000Z","modified":"2020-01-01T00:00:00.000Z"}
|