adiwg-mdjson_schemas 2.9.5 → 2.9.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da679a4ce3373b2e263bf4f6d9651380ffce0ba047e4204b2a3a8c80e9d69954
4
- data.tar.gz: 2148cc8bf8ee1ab17f32a61fb07bbd5dec55a4ca20bb45f0a19a433074de11eb
3
+ metadata.gz: 4a0020804dc68800f5d302e8b4f891cf48ed950df4add215e395b6e00a8e0d68
4
+ data.tar.gz: 8ed3707f3a7bc4dcf77642f0a911b2e36a4ce08a492415607ee601a3da31de2f
5
5
  SHA512:
6
- metadata.gz: 2b10f176cc4316fe801f0a5f5beadc66809b06dd1c71b62033c3da0f6138bd97f73f54d6c856a425c6145879448ac3dffde667d60b70fb93f469848cbedee4d9
7
- data.tar.gz: c8317d948377effd0e6c0ff64028c6e6b767055e9c5fca36a5a0fc03128bd8eb7134bbca40a0b0d5877f76722367524bfa76cc60392d933a4f806670b2d6c24c
6
+ metadata.gz: 00fc2190bc3233c217a535e9091f81e301e96a6a76208c0f32baab81241218eca36f9c3988c5ac2da8f1aae6b412fcce547823fd167a34fae60514aa33d9f4eb
7
+ data.tar.gz: 034fc9111f384b7287f57fdfb58b4701094943f02334e8c6995fa8e6be38f605f21710119edccda0e632d8fc5a8e091d36d859ca70d21e92de0977984bd9fecd
@@ -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.9.5)
4
+ adiwg-mdjson_schemas (2.9.6)
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.0)
11
+ adiwg-mdcodes (2.10.1)
12
12
  json (~> 2.0)
13
- json (2.7.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.0)
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
@@ -15,7 +15,7 @@ Use with [ruby-json-schema/json-schema](https://github.com/ruby-json-schema/json
15
15
 
16
16
  Add this line to your application's Gemfile:
17
17
 
18
- gem 'adiwg-json_schemas'
18
+ gem 'adiwg-mdjson_schemas'
19
19
 
20
20
  And then execute:
21
21
 
@@ -23,7 +23,7 @@ And then execute:
23
23
 
24
24
  Or install it yourself as:
25
25
 
26
- $ gem install adiwg-json_schemas
26
+ $ gem install adiwg-mdjson_schemas
27
27
 
28
28
  ## npm
29
29
 
@@ -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
- ### Ignore anything below this line
52
+ ### See [CONTRIBUTING](CONTRIBUTING.md) file
53
53
 
54
- Just making changes to make changes to something. Trying to resolve merge conflicts.
54
+ View the [CONTRIBUTING.md](CONTRIBUTING.md) file for additional guidelines related to developing mdJson schemas.
@@ -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.0"
25
+ spec.add_development_dependency "adiwg-mdcodes", "2.10.1"
26
26
  end
@@ -1,6 +1,6 @@
1
1
  module ADIWG
2
2
  module MdjsonSchemas
3
3
  # Current schema version number
4
- VERSION = "2.9.5"
4
+ VERSION = "2.9.6"
5
5
  end
6
6
  end
data/package-lock.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "mdjson-schemas",
3
- "version": "2.9.5",
3
+ "version": "2.9.6",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "mdjson-schemas",
9
- "version": "2.9.5",
9
+ "version": "2.9.6",
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.1",
38
- "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz",
39
- "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==",
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.2.0",
96
- "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz",
97
- "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==",
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.2",
115
- "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
116
- "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
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.0.1"
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.5.3",
201
- "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
202
- "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==",
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.3.4",
290
- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
291
- "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
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.2"
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.0.0",
325
- "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz",
326
- "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==",
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.1.2",
340
- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz",
341
- "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==",
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.0.1",
373
- "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
374
- "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
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.3.0",
665
- "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.3.0.tgz",
666
- "integrity": "sha512-uF2XJs+7xSLsrmIvn37i/wnc91nw7XjOQB8ccyx5aEgdnohr7n+rEiZP23WkCYHjilR6+EboEnbq/ZQDz4LSbg==",
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.1",
670
- "browser-stdout": "1.3.1",
671
- "chokidar": "3.5.3",
672
- "debug": "4.3.4",
673
- "diff": "5.0.0",
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.0.1",
681
- "ms": "2.1.3",
682
- "serialize-javascript": "6.0.0",
683
- "strip-json-comments": "3.1.1",
684
- "supports-color": "8.1.1",
685
- "workerpool": "6.2.1",
686
- "yargs": "16.2.0",
687
- "yargs-parser": "20.2.4",
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.0.1",
728
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz",
729
- "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==",
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.0",
904
- "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz",
905
- "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==",
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.2.1",
1031
- "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz",
1032
- "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==",
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.4",
1087
- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz",
1088
- "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==",
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.9.5",
3
+ "version": "2.9.6",
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 prepublish && npm publish"
16
+ "release": "npm run clean && npm run build && npm publish && gem build adiwg-json_schemas.gemspec && gem push adiwg-mdjson_schemas-*.gem",
17
+ "release:npm": "npm run build && npm publish",
18
+ "release:gem": "npm run clean && npm run build && gem build adiwg-json_schemas.gemspec && gem push adiwg-mdjson_schemas-*.gem"
16
19
  },
17
20
  "files": [
18
21
  "examples",
@@ -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/metadata.json CHANGED
@@ -16,7 +16,9 @@
16
16
  },
17
17
  "resourceInfo": {
18
18
  "translation": {
19
- "ISO 19115-2": ["MD_Metadata > identificationInfo > MD_DataIdentification"],
19
+ "ISO 19115-2": [
20
+ "MD_Metadata > identificationInfo > MD_DataIdentification"
21
+ ],
20
22
  "FGDC CSDGM": ["idinfo"]
21
23
  },
22
24
  "$ref": "resourceInfo.json#"
@@ -52,7 +54,9 @@
52
54
  "type": "array",
53
55
  "description": "Other resources which are directly related to the subject resource such as parent, child, or sibling datasets or projects.",
54
56
  "translation": {
55
- "ISO 19115-2": ["MD_DataIdentification > aggregationInfo > MD_AggregateInformation"],
57
+ "ISO 19115-2": [
58
+ "MD_DataIdentification > aggregationInfo > MD_AggregateInformation"
59
+ ],
56
60
  "FGDC CSDGM": ["idinfo > crossref"]
57
61
  },
58
62
  "items": {
@@ -63,7 +67,9 @@
63
67
  "type": "array",
64
68
  "description": "Other documents related to, but not defining, the resource such as factsheets, data catalog pages, award documents, proposals, and informational websites.",
65
69
  "translation": {
66
- "ISO 19115-2": ["MD_DataIdentification > aggregationInfo > MD_AggregateInformation > aggregateDataSetName > CI_Citation"],
70
+ "ISO 19115-2": [
71
+ "MD_DataIdentification > aggregationInfo > MD_AggregateInformation > aggregateDataSetName > CI_Citation"
72
+ ],
67
73
  "FGDC CSDGM": ["idinfo > crossref "]
68
74
  },
69
75
  "items": {
data/schema/schema.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "schema.json#",
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
- "version": "2.9.5",
4
+ "version": "2.9.6",
5
5
  "description": "schema for ADIwg mdJSON metadata",
6
6
  "example": "../examples/mdJson.json",
7
7
  "type": "object",
data/scripts/clean.sh ADDED
@@ -0,0 +1,5 @@
1
+ #!/bin/bash
2
+
3
+ rm -rf mdjson-schemas-*.gem
4
+ rm -rf node_modules
5
+ rm -rf resources/js
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.9.5
4
+ version: 2.9.6
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-05-26 00:00:00.000000000 Z
11
+ date: 2025-01-23 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.0
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.0
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
@@ -273,6 +275,7 @@ files:
273
275
  - schema/vectorRepresentation.json
274
276
  - schema/verticalDatum.json
275
277
  - schema/verticalExtent.json
278
+ - scripts/clean.sh
276
279
  - scripts/prepublish.js
277
280
  - test/draft-04.json
278
281
  - test/helper.rb