adiwg-mdjson_schemas 2.10.0.pre.beta.5 → 2.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/create-release.yml +41 -0
- data/CONTRIBUTING.md +75 -0
- data/Gemfile.lock +4 -4
- data/README.md +2 -2
- data/adiwg-json_schemas.gemspec +1 -1
- data/lib/adiwg/mdjson_schemas/version.rb +1 -1
- data/package-lock.json +73 -75
- data/package.json +5 -2
- data/schema/dataDictionary.json +36 -5
- data/schema/schema.json +1 -1
- data/scripts/clean.sh +5 -0
- metadata +9 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a2b02cf38a741417a83dd8de3de6e6cf184276ffa3fbd5a27f7af8ca7a1594e
|
4
|
+
data.tar.gz: f22114819b7650cec6e15507ba95f3a9f5e8c4f83eab0921b9548004c4af7353
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2268b8c5a1e9e3af5f08ebc84403bb0425e3ac6a154bb10c6608a8277a7cbfd1c6e3a6cfd64f71bc00cb16abc5f08074ea25f0846942db7bb60e78c22f6a20b3
|
7
|
+
data.tar.gz: 74b16a4bfea2d56babfc38dd6ea8e97507da1f8af00d2a2a585c9d81b9401120b061d8df25b111aa863b1491280109bb662eade338baaac97729610b356ece95
|
@@ -0,0 +1,41 @@
|
|
1
|
+
name: Deploy to GitHub Pages
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
create-release:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
steps:
|
12
|
+
- uses: actions/checkout@v3
|
13
|
+
|
14
|
+
- name: Use Node.js
|
15
|
+
uses: actions/setup-node@v3
|
16
|
+
with:
|
17
|
+
node-version: "16"
|
18
|
+
|
19
|
+
- name: Create Tag
|
20
|
+
id: create_tag
|
21
|
+
env:
|
22
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
23
|
+
run: |
|
24
|
+
# Read version from package.json
|
25
|
+
version=$(node -p "require('./package.json').version")
|
26
|
+
version_tag="v$version"
|
27
|
+
echo "Version from package.json: $version_tag"
|
28
|
+
echo "version=$version_tag" >> $GITHUB_OUTPUT
|
29
|
+
git tag $version_tag
|
30
|
+
git push origin $version_tag
|
31
|
+
|
32
|
+
- name: Create GitHub Release
|
33
|
+
uses: ncipollo/release-action@v1
|
34
|
+
with:
|
35
|
+
tag: ${{ steps.create_tag.outputs.version }}
|
36
|
+
name: Release ${{ steps.create_tag.outputs.version }}
|
37
|
+
body: Automated release for version ${{ steps.create_tag.outputs.version }}.
|
38
|
+
draft: false
|
39
|
+
prerelease: false
|
40
|
+
env:
|
41
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
# mdJSON Schema Style Guidelines
|
2
|
+
The following guidelines should be used when editiing mdJSON schema definition files.
|
3
|
+
|
4
|
+
# Guidelines
|
5
|
+
- [Use lowerCamelCase](#use-lowercamelcase)
|
6
|
+
- [Use singular tense](#use-singular-tense)
|
7
|
+
- [Provide all translations](#provide-all-translations)
|
8
|
+
|
9
|
+
## Use lowerCamelCase
|
10
|
+
Use lower camel case for all schema property names.
|
11
|
+
|
12
|
+
yes:
|
13
|
+
```
|
14
|
+
title
|
15
|
+
associatedResource{}
|
16
|
+
pointOfContact[]
|
17
|
+
```
|
18
|
+
|
19
|
+
no:
|
20
|
+
```
|
21
|
+
Title
|
22
|
+
AssociatedResource{}
|
23
|
+
pointofContact[]
|
24
|
+
```
|
25
|
+
|
26
|
+
## Use singular tense
|
27
|
+
Use singular tense for all property names names.
|
28
|
+
|
29
|
+
yes: `dataDictionary[]`
|
30
|
+
|
31
|
+
no: `dataDictionaries[]`
|
32
|
+
|
33
|
+
## Provide all translations
|
34
|
+
Provide translations for: 1) "[__FGDC CSDGM__](https://www.fgdc.gov/metadata/csdgm-standard)", 2) "__DCAT__" ([Data Catalog Vocabulary](https://www.w3.org/TR/vocab-dcat-2/)), and 3) "[__sbJSON__]" ([ScienceBase JSON](https://www.usgs.gov/sciencebase-instructions-and-documentation/item-core-model)) when an ISO translation is provided. If no translation is available indicate ```"no translation"```.
|
35
|
+
|
36
|
+
yes:
|
37
|
+
```
|
38
|
+
"translation": {
|
39
|
+
"ISO 19115-1": ["CI_ResponsibleParty > partyIdentifier"],
|
40
|
+
"FGDC CSDGM": ["no translation"]
|
41
|
+
"DCAT": ["no translation"],
|
42
|
+
"sbJSON": ["no translation"]
|
43
|
+
}
|
44
|
+
```
|
45
|
+
|
46
|
+
yes:
|
47
|
+
```
|
48
|
+
"translation": {
|
49
|
+
"ISO 19115-2": ["MD_Keywords > thesaurusName > CI_Citation"],
|
50
|
+
"FGDC CSDGM": [
|
51
|
+
"idinfo>keywords>theme>themekt",
|
52
|
+
"idinfo>keywords>place>placekt",
|
53
|
+
"idinfo>keywords>temporal>tempkt"
|
54
|
+
],
|
55
|
+
"DCAT": ["no translation"],
|
56
|
+
"sbJSON": ["tags > scheme"]
|
57
|
+
}
|
58
|
+
```
|
59
|
+
|
60
|
+
no:
|
61
|
+
```
|
62
|
+
"translation": {
|
63
|
+
"ISO 19115-1": ["CI_ResponsibleParty > partyIdentifier"]
|
64
|
+
}
|
65
|
+
```
|
66
|
+
|
67
|
+
no:
|
68
|
+
```
|
69
|
+
"translation": {
|
70
|
+
"ISO 19115-1": ["CI_ResponsibleParty > partyIdentifier"],
|
71
|
+
"FGDC CSDGM": ["no translation"]
|
72
|
+
}
|
73
|
+
```
|
74
|
+
|
75
|
+
|
data/Gemfile.lock
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
adiwg-mdjson_schemas (2.10.
|
4
|
+
adiwg-mdjson_schemas (2.10.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
addressable (2.8.6)
|
10
10
|
public_suffix (>= 2.0.2, < 6.0)
|
11
|
-
adiwg-mdcodes (2.10.
|
11
|
+
adiwg-mdcodes (2.10.1)
|
12
12
|
json (~> 2.0)
|
13
|
-
json (2.
|
13
|
+
json (2.9.1)
|
14
14
|
json-schema (2.8.1)
|
15
15
|
addressable (>= 2.4)
|
16
16
|
minitest (5.22.2)
|
@@ -21,7 +21,7 @@ PLATFORMS
|
|
21
21
|
arm64-darwin-22
|
22
22
|
|
23
23
|
DEPENDENCIES
|
24
|
-
adiwg-mdcodes (= 2.10.
|
24
|
+
adiwg-mdcodes (= 2.10.1)
|
25
25
|
adiwg-mdjson_schemas!
|
26
26
|
bundler (~> 2)
|
27
27
|
json-schema (~> 2.8.1)
|
data/README.md
CHANGED
@@ -49,6 +49,6 @@ as a workaround you can pre-load all of the schemas by calling `ADIWG::MdjsonSch
|
|
49
49
|
4. Push to the branch (`git push origin my-new-feature`)
|
50
50
|
5. Create new Pull Request
|
51
51
|
|
52
|
-
###
|
52
|
+
### See [CONTRIBUTING](CONTRIBUTING.md) file
|
53
53
|
|
54
|
-
|
54
|
+
View the [CONTRIBUTING.md](CONTRIBUTING.md) file for additional guidelines related to developing mdJson schemas.
|
data/adiwg-json_schemas.gemspec
CHANGED
@@ -22,5 +22,5 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_development_dependency "rake", ">= 0"
|
23
23
|
spec.add_development_dependency "json-schema", "~> 2.8.1"
|
24
24
|
spec.add_development_dependency "minitest", "~>5"
|
25
|
-
spec.add_development_dependency "adiwg-mdcodes", "2.10.
|
25
|
+
spec.add_development_dependency "adiwg-mdcodes", "2.10.1"
|
26
26
|
end
|
data/package-lock.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "mdjson-schemas",
|
3
|
-
"version": "2.10.
|
3
|
+
"version": "2.10.1",
|
4
4
|
"lockfileVersion": 3,
|
5
5
|
"requires": true,
|
6
6
|
"packages": {
|
7
7
|
"": {
|
8
8
|
"name": "mdjson-schemas",
|
9
|
-
"version": "2.10.
|
9
|
+
"version": "2.10.1",
|
10
10
|
"license": "GPL-3.0",
|
11
11
|
"devDependencies": {
|
12
12
|
"ajv": "^6.5.0",
|
@@ -34,9 +34,9 @@
|
|
34
34
|
}
|
35
35
|
},
|
36
36
|
"node_modules/ansi-colors": {
|
37
|
-
"version": "4.1.
|
38
|
-
"resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.
|
39
|
-
"integrity": "sha512
|
37
|
+
"version": "4.1.3",
|
38
|
+
"resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz",
|
39
|
+
"integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==",
|
40
40
|
"dev": true,
|
41
41
|
"engines": {
|
42
42
|
"node": ">=6"
|
@@ -92,12 +92,15 @@
|
|
92
92
|
"dev": true
|
93
93
|
},
|
94
94
|
"node_modules/binary-extensions": {
|
95
|
-
"version": "2.
|
96
|
-
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.
|
97
|
-
"integrity": "sha512-
|
95
|
+
"version": "2.3.0",
|
96
|
+
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
|
97
|
+
"integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
|
98
98
|
"dev": true,
|
99
99
|
"engines": {
|
100
100
|
"node": ">=8"
|
101
|
+
},
|
102
|
+
"funding": {
|
103
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
101
104
|
}
|
102
105
|
},
|
103
106
|
"node_modules/brace-expansion": {
|
@@ -111,12 +114,12 @@
|
|
111
114
|
}
|
112
115
|
},
|
113
116
|
"node_modules/braces": {
|
114
|
-
"version": "3.0.
|
115
|
-
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.
|
116
|
-
"integrity": "sha512-
|
117
|
+
"version": "3.0.3",
|
118
|
+
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
|
119
|
+
"integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
|
117
120
|
"dev": true,
|
118
121
|
"dependencies": {
|
119
|
-
"fill-range": "^7.
|
122
|
+
"fill-range": "^7.1.1"
|
120
123
|
},
|
121
124
|
"engines": {
|
122
125
|
"node": ">=8"
|
@@ -197,16 +200,10 @@
|
|
197
200
|
}
|
198
201
|
},
|
199
202
|
"node_modules/chokidar": {
|
200
|
-
"version": "3.
|
201
|
-
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.
|
202
|
-
"integrity": "sha512-
|
203
|
+
"version": "3.6.0",
|
204
|
+
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
|
205
|
+
"integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
|
203
206
|
"dev": true,
|
204
|
-
"funding": [
|
205
|
-
{
|
206
|
-
"type": "individual",
|
207
|
-
"url": "https://paulmillr.com/funding/"
|
208
|
-
}
|
209
|
-
],
|
210
207
|
"dependencies": {
|
211
208
|
"anymatch": "~3.1.2",
|
212
209
|
"braces": "~3.0.2",
|
@@ -219,6 +216,9 @@
|
|
219
216
|
"engines": {
|
220
217
|
"node": ">= 8.10.0"
|
221
218
|
},
|
219
|
+
"funding": {
|
220
|
+
"url": "https://paulmillr.com/funding/"
|
221
|
+
},
|
222
222
|
"optionalDependencies": {
|
223
223
|
"fsevents": "~2.3.2"
|
224
224
|
}
|
@@ -286,12 +286,12 @@
|
|
286
286
|
"dev": true
|
287
287
|
},
|
288
288
|
"node_modules/debug": {
|
289
|
-
"version": "4.
|
290
|
-
"resolved": "https://registry.npmjs.org/debug/-/debug-4.
|
291
|
-
"integrity": "sha512-
|
289
|
+
"version": "4.4.0",
|
290
|
+
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",
|
291
|
+
"integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
|
292
292
|
"dev": true,
|
293
293
|
"dependencies": {
|
294
|
-
"ms": "2.1.
|
294
|
+
"ms": "^2.1.3"
|
295
295
|
},
|
296
296
|
"engines": {
|
297
297
|
"node": ">=6.0"
|
@@ -302,12 +302,6 @@
|
|
302
302
|
}
|
303
303
|
}
|
304
304
|
},
|
305
|
-
"node_modules/debug/node_modules/ms": {
|
306
|
-
"version": "2.1.2",
|
307
|
-
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
308
|
-
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
|
309
|
-
"dev": true
|
310
|
-
},
|
311
305
|
"node_modules/decamelize": {
|
312
306
|
"version": "4.0.0",
|
313
307
|
"resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz",
|
@@ -321,9 +315,9 @@
|
|
321
315
|
}
|
322
316
|
},
|
323
317
|
"node_modules/diff": {
|
324
|
-
"version": "5.
|
325
|
-
"resolved": "https://registry.npmjs.org/diff/-/diff-5.
|
326
|
-
"integrity": "sha512
|
318
|
+
"version": "5.2.0",
|
319
|
+
"resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz",
|
320
|
+
"integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==",
|
327
321
|
"dev": true,
|
328
322
|
"engines": {
|
329
323
|
"node": ">=0.3.1"
|
@@ -336,9 +330,9 @@
|
|
336
330
|
"dev": true
|
337
331
|
},
|
338
332
|
"node_modules/escalade": {
|
339
|
-
"version": "3.
|
340
|
-
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.
|
341
|
-
"integrity": "sha512-
|
333
|
+
"version": "3.2.0",
|
334
|
+
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
|
335
|
+
"integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
|
342
336
|
"dev": true,
|
343
337
|
"engines": {
|
344
338
|
"node": ">=6"
|
@@ -369,9 +363,9 @@
|
|
369
363
|
"dev": true
|
370
364
|
},
|
371
365
|
"node_modules/fill-range": {
|
372
|
-
"version": "7.
|
373
|
-
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.
|
374
|
-
"integrity": "sha512-
|
366
|
+
"version": "7.1.1",
|
367
|
+
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
|
368
|
+
"integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
|
375
369
|
"dev": true,
|
376
370
|
"dependencies": {
|
377
371
|
"to-regex-range": "^5.0.1"
|
@@ -438,6 +432,7 @@
|
|
438
432
|
"version": "7.2.3",
|
439
433
|
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
|
440
434
|
"integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
|
435
|
+
"deprecated": "Glob versions prior to v9 are no longer supported",
|
441
436
|
"dev": true,
|
442
437
|
"dependencies": {
|
443
438
|
"fs.realpath": "^1.0.0",
|
@@ -494,6 +489,7 @@
|
|
494
489
|
"version": "1.0.6",
|
495
490
|
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
|
496
491
|
"integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
|
492
|
+
"deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",
|
497
493
|
"dev": true,
|
498
494
|
"dependencies": {
|
499
495
|
"once": "^1.3.0",
|
@@ -661,31 +657,31 @@
|
|
661
657
|
}
|
662
658
|
},
|
663
659
|
"node_modules/mocha": {
|
664
|
-
"version": "10.
|
665
|
-
"resolved": "https://registry.npmjs.org/mocha/-/mocha-10.
|
666
|
-
"integrity": "sha512-
|
660
|
+
"version": "10.8.2",
|
661
|
+
"resolved": "https://registry.npmjs.org/mocha/-/mocha-10.8.2.tgz",
|
662
|
+
"integrity": "sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==",
|
667
663
|
"dev": true,
|
668
664
|
"dependencies": {
|
669
|
-
"ansi-colors": "4.1.
|
670
|
-
"browser-stdout": "1.3.1",
|
671
|
-
"chokidar": "3.5.3",
|
672
|
-
"debug": "4.3.
|
673
|
-
"diff": "5.
|
674
|
-
"escape-string-regexp": "4.0.0",
|
675
|
-
"find-up": "5.0.0",
|
676
|
-
"glob": "8.1.0",
|
677
|
-
"he": "1.2.0",
|
678
|
-
"js-yaml": "4.1.0",
|
679
|
-
"log-symbols": "4.1.0",
|
680
|
-
"minimatch": "5.
|
681
|
-
"ms": "2.1.3",
|
682
|
-
"serialize-javascript": "6.0.
|
683
|
-
"strip-json-comments": "3.1.1",
|
684
|
-
"supports-color": "8.1.1",
|
685
|
-
"workerpool": "6.
|
686
|
-
"yargs": "16.2.0",
|
687
|
-
"yargs-parser": "20.2.
|
688
|
-
"yargs-unparser": "2.0.0"
|
665
|
+
"ansi-colors": "^4.1.3",
|
666
|
+
"browser-stdout": "^1.3.1",
|
667
|
+
"chokidar": "^3.5.3",
|
668
|
+
"debug": "^4.3.5",
|
669
|
+
"diff": "^5.2.0",
|
670
|
+
"escape-string-regexp": "^4.0.0",
|
671
|
+
"find-up": "^5.0.0",
|
672
|
+
"glob": "^8.1.0",
|
673
|
+
"he": "^1.2.0",
|
674
|
+
"js-yaml": "^4.1.0",
|
675
|
+
"log-symbols": "^4.1.0",
|
676
|
+
"minimatch": "^5.1.6",
|
677
|
+
"ms": "^2.1.3",
|
678
|
+
"serialize-javascript": "^6.0.2",
|
679
|
+
"strip-json-comments": "^3.1.1",
|
680
|
+
"supports-color": "^8.1.1",
|
681
|
+
"workerpool": "^6.5.1",
|
682
|
+
"yargs": "^16.2.0",
|
683
|
+
"yargs-parser": "^20.2.9",
|
684
|
+
"yargs-unparser": "^2.0.0"
|
689
685
|
},
|
690
686
|
"bin": {
|
691
687
|
"_mocha": "bin/_mocha",
|
@@ -708,6 +704,7 @@
|
|
708
704
|
"version": "8.1.0",
|
709
705
|
"resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz",
|
710
706
|
"integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==",
|
707
|
+
"deprecated": "Glob versions prior to v9 are no longer supported",
|
711
708
|
"dev": true,
|
712
709
|
"dependencies": {
|
713
710
|
"fs.realpath": "^1.0.0",
|
@@ -724,9 +721,9 @@
|
|
724
721
|
}
|
725
722
|
},
|
726
723
|
"node_modules/mocha/node_modules/minimatch": {
|
727
|
-
"version": "5.
|
728
|
-
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.
|
729
|
-
"integrity": "sha512-
|
724
|
+
"version": "5.1.6",
|
725
|
+
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz",
|
726
|
+
"integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==",
|
730
727
|
"dev": true,
|
731
728
|
"dependencies": {
|
732
729
|
"brace-expansion": "^2.0.1"
|
@@ -871,6 +868,7 @@
|
|
871
868
|
"version": "2.7.1",
|
872
869
|
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",
|
873
870
|
"integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==",
|
871
|
+
"deprecated": "Rimraf versions prior to v4 are no longer supported",
|
874
872
|
"dev": true,
|
875
873
|
"dependencies": {
|
876
874
|
"glob": "^7.1.3"
|
@@ -900,9 +898,9 @@
|
|
900
898
|
]
|
901
899
|
},
|
902
900
|
"node_modules/serialize-javascript": {
|
903
|
-
"version": "6.0.
|
904
|
-
"resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.
|
905
|
-
"integrity": "sha512-
|
901
|
+
"version": "6.0.2",
|
902
|
+
"resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz",
|
903
|
+
"integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==",
|
906
904
|
"dev": true,
|
907
905
|
"dependencies": {
|
908
906
|
"randombytes": "^2.1.0"
|
@@ -1027,9 +1025,9 @@
|
|
1027
1025
|
}
|
1028
1026
|
},
|
1029
1027
|
"node_modules/workerpool": {
|
1030
|
-
"version": "6.
|
1031
|
-
"resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.
|
1032
|
-
"integrity": "sha512-
|
1028
|
+
"version": "6.5.1",
|
1029
|
+
"resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz",
|
1030
|
+
"integrity": "sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==",
|
1033
1031
|
"dev": true
|
1034
1032
|
},
|
1035
1033
|
"node_modules/wrap-ansi": {
|
@@ -1083,9 +1081,9 @@
|
|
1083
1081
|
}
|
1084
1082
|
},
|
1085
1083
|
"node_modules/yargs-parser": {
|
1086
|
-
"version": "20.2.
|
1087
|
-
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.
|
1088
|
-
"integrity": "sha512-
|
1084
|
+
"version": "20.2.9",
|
1085
|
+
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",
|
1086
|
+
"integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",
|
1089
1087
|
"dev": true,
|
1090
1088
|
"engines": {
|
1091
1089
|
"node": ">=10"
|
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "mdjson-schemas",
|
3
|
-
"version": "2.10.
|
3
|
+
"version": "2.10.1",
|
4
4
|
"description": "JSON schemas, examples, and templates for ADIwg metadata standards",
|
5
5
|
"main": "index.js",
|
6
6
|
"directories": {
|
@@ -11,8 +11,11 @@
|
|
11
11
|
"scripts": {
|
12
12
|
"test": "mocha",
|
13
13
|
"build": "bundle && npm install && npm run prepublish",
|
14
|
+
"clean": "sh scripts/clean.sh",
|
14
15
|
"prepublish": "node scripts/prepublish.js",
|
15
|
-
"release": "npm run
|
16
|
+
"release": "npm run clean && npm run build && npm publish && gem build mdjson-schemas.gemspec && gem push mdjson-schemas-*.gem",
|
17
|
+
"release:npm": "npm run build && npm publish",
|
18
|
+
"release:gem": "npm run clean && npm run build && gem build mdjson-schemas.gemspec && gem push mdjson-schemas-*.gem"
|
16
19
|
},
|
17
20
|
"files": [
|
18
21
|
"examples",
|
data/schema/dataDictionary.json
CHANGED
@@ -7,6 +7,16 @@
|
|
7
7
|
"required": ["subject", "citation", "responsibleParty"],
|
8
8
|
"additionalProperties": true,
|
9
9
|
"properties": {
|
10
|
+
"dictionaryId": {
|
11
|
+
"type": "string",
|
12
|
+
"description": "Unique identifier for the dictionary.",
|
13
|
+
"translation": {
|
14
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > identifier > MD_Identifier"],
|
15
|
+
"FGDC CSDGM": ["no translation"],
|
16
|
+
"DCAT": ["no translation"],
|
17
|
+
"sbJSON": ["no translation"]
|
18
|
+
}
|
19
|
+
},
|
10
20
|
"citation": {
|
11
21
|
"description": "Citation for the dictionary.",
|
12
22
|
"$ref": "./citation.json#"
|
@@ -14,7 +24,12 @@
|
|
14
24
|
"description": {
|
15
25
|
"type": "string",
|
16
26
|
"description": "A free text description of the contents of the data dictionary.",
|
17
|
-
"translation": {
|
27
|
+
"translation": {
|
28
|
+
"ISO 19115-2": [],
|
29
|
+
"FGDC CSDGM": ["eainfo > detailed > enttype > enttypd"],
|
30
|
+
"DCAT": ["no translation"],
|
31
|
+
"sbJSON": ["no translation"]
|
32
|
+
}
|
18
33
|
},
|
19
34
|
"subject": {
|
20
35
|
"type": "array",
|
@@ -46,7 +61,6 @@
|
|
46
61
|
"items": {
|
47
62
|
"$ref": "./locale.json"
|
48
63
|
}
|
49
|
-
|
50
64
|
},
|
51
65
|
"responsibleParty": {
|
52
66
|
"$ref": "./responsibility.json#",
|
@@ -60,19 +74,33 @@
|
|
60
74
|
"dictionaryFunctionalLanguage": {
|
61
75
|
"type": "string",
|
62
76
|
"description": "Formal functional language used in the dictionary.",
|
63
|
-
"translation": {
|
77
|
+
"translation": {
|
78
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > functionalLanguage"],
|
79
|
+
"FGDC CSDGM": ["no translation"],
|
80
|
+
"DCAT": ["no translation"],
|
81
|
+
"sbJSON": ["no translation"]
|
82
|
+
}
|
64
83
|
},
|
65
84
|
"dictionaryIncludedWithResource": {
|
66
85
|
"type": "boolean",
|
67
86
|
"description": "Indication of whether or not the data dictionary is included with the resource.",
|
68
87
|
"translation": {
|
69
|
-
"ISO 19115-3": ["MD_FeatureCatalogueDescription > includedWithDataset"]
|
88
|
+
"ISO 19115-3": ["MD_FeatureCatalogueDescription > includedWithDataset"],
|
89
|
+
"FGDC CSDGM": ["eainfo"],
|
90
|
+
"DCAT": ["no translation"],
|
91
|
+
"sbJSON": ["no translation"]
|
70
92
|
},
|
71
93
|
"default": false
|
72
94
|
},
|
73
95
|
"domain": {
|
74
96
|
"type": "array",
|
75
97
|
"description": "A list of permissable values used to constrain an attribute's value. A single domain may be assigned to multiple attributes in a table or database.",
|
98
|
+
"translation": {
|
99
|
+
"ISO 19115-2": ["FC_FeatureAttribute > listedValue"],
|
100
|
+
"FGDC CSDGM": ["eainfo > detailed > attr > attrdomv"],
|
101
|
+
"DCAT": ["no translation"],
|
102
|
+
"sbJSON": ["no translation"]
|
103
|
+
},
|
76
104
|
"items": {
|
77
105
|
"$ref": "./domain.json#"
|
78
106
|
}
|
@@ -81,7 +109,10 @@
|
|
81
109
|
"type": "array",
|
82
110
|
"description": "Defines the structure of a discrete data object within the data resource. The data object may be a table, dataset, or single sheet of a spreadsheet.",
|
83
111
|
"translation": {
|
84
|
-
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType"]
|
112
|
+
"ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType"],
|
113
|
+
"FGDC CSDGM": ["eainfo"],
|
114
|
+
"DCAT": ["no translation"],
|
115
|
+
"sbJSON": ["no translation"]
|
85
116
|
},
|
86
117
|
"items": {
|
87
118
|
"$ref": "./entity.json#"
|
data/schema/schema.json
CHANGED
data/scripts/clean.sh
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adiwg-mdjson_schemas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.10.
|
4
|
+
version: 2.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Bradley, Stan Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 2.10.
|
75
|
+
version: 2.10.1
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 2.10.
|
82
|
+
version: 2.10.1
|
83
83
|
description: JSON schemas for validating according to the the ADIwg project and data
|
84
84
|
metadata standard. The schemas comply with JSON Schema draft version 4.
|
85
85
|
email:
|
@@ -89,11 +89,13 @@ extensions: []
|
|
89
89
|
extra_rdoc_files: []
|
90
90
|
files:
|
91
91
|
- ".editorconfig"
|
92
|
+
- ".github/workflows/create-release.yml"
|
92
93
|
- ".github_changelog_generator"
|
93
94
|
- ".gitignore"
|
94
95
|
- ".jshintrc"
|
95
96
|
- ".travis.yml"
|
96
97
|
- CHANGELOG.md
|
98
|
+
- CONTRIBUTING.md
|
97
99
|
- CREDITS
|
98
100
|
- Gemfile
|
99
101
|
- Gemfile.lock
|
@@ -300,6 +302,7 @@ files:
|
|
300
302
|
- schema/vectorRepresentation.json
|
301
303
|
- schema/verticalDatum.json
|
302
304
|
- schema/verticalExtent.json
|
305
|
+
- scripts/clean.sh
|
303
306
|
- scripts/prepublish.js
|
304
307
|
- test/draft-04.json
|
305
308
|
- test/helper.rb
|
@@ -403,9 +406,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
403
406
|
version: '0'
|
404
407
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
405
408
|
requirements:
|
406
|
-
- - "
|
409
|
+
- - ">="
|
407
410
|
- !ruby/object:Gem::Version
|
408
|
-
version:
|
411
|
+
version: '0'
|
409
412
|
requirements: []
|
410
413
|
rubygems_version: 3.1.6
|
411
414
|
signing_key:
|