adiwg-mdjson_schemas 2.4.5 → 2.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +24 -1
- data/adiwg-json_schemas.gemspec +1 -1
- data/examples/distribution.json +1 -0
- data/examples/duration.json +1 -4
- data/examples/format.json +2 -1
- data/examples/funding.json +27 -0
- data/examples/mdJson.json +960 -1343
- data/examples/metadataInfo.json +57 -1
- data/examples/resourceInfo.json +5 -5
- data/examples/taxonomicClassification.json +14 -14
- data/examples/taxonomy.json +2 -2
- data/examples/vectorRepresentation.json +10 -0
- data/lib/adiwg/mdjson_schemas/version.rb +1 -1
- data/package-lock.json +21 -13
- data/package.json +3 -3
- data/schema/constraint.json +15 -5
- data/schema/dataDictionary.json +1 -0
- data/schema/distribution.json +19 -2
- data/schema/format.json +9 -0
- data/schema/funding.json +7 -0
- data/schema/metadataInfo.json +11 -1
- data/schema/resourceInfo.json +24 -2
- data/schema/schema.json +1 -1
- data/schema/scope.json +1 -0
- data/schema/taxonomy.json +28 -4
- data/schema/timePeriod.json +20 -1
- data/schema/vectorRepresentation.json +8 -0
- metadata +4 -4
data/examples/metadataInfo.json
CHANGED
@@ -40,7 +40,7 @@
|
|
40
40
|
{
|
41
41
|
"role": "role",
|
42
42
|
"roleExtent": [{
|
43
|
-
"temporalExtent": [{
|
43
|
+
"temporalExtent": [{
|
44
44
|
"timePeriod": {
|
45
45
|
"startDateTime": "2016-10-24T11:10:15.2-10:00"
|
46
46
|
}
|
@@ -66,6 +66,62 @@
|
|
66
66
|
}, {
|
67
67
|
"uri": "http://adiwg.org"
|
68
68
|
}],
|
69
|
+
"metadataConstraint": [{
|
70
|
+
"type": "use",
|
71
|
+
"useLimitation": [
|
72
|
+
"useLimitation0",
|
73
|
+
"useLimitation1"
|
74
|
+
],
|
75
|
+
"scope": {
|
76
|
+
"scopeCode": "scopeCode"
|
77
|
+
},
|
78
|
+
"graphic": [{
|
79
|
+
"fileName": "fileName0"
|
80
|
+
}, {
|
81
|
+
"fileName": "fileName1"
|
82
|
+
}],
|
83
|
+
"reference": [{
|
84
|
+
"title": "title0"
|
85
|
+
}, {
|
86
|
+
"title": "title1"
|
87
|
+
}],
|
88
|
+
"releasability": {
|
89
|
+
"statement": "statement"
|
90
|
+
},
|
91
|
+
"responsibleParty": [{
|
92
|
+
"role": "role0",
|
93
|
+
"roleExtent": [{
|
94
|
+
"temporalExtent": [{
|
95
|
+
"timePeriod": {
|
96
|
+
"startDateTime": "2016-10-24T11:10:15.2-10:00"
|
97
|
+
}
|
98
|
+
}]
|
99
|
+
}],
|
100
|
+
"party": [{
|
101
|
+
"contactId": "individualId0"
|
102
|
+
}]
|
103
|
+
}],
|
104
|
+
"legal": {
|
105
|
+
"useConstraint": [
|
106
|
+
"useConstraint0",
|
107
|
+
"useConstraint1"
|
108
|
+
],
|
109
|
+
"accessConstraint": [
|
110
|
+
"accessConstraint0",
|
111
|
+
"accessConstraint1"
|
112
|
+
],
|
113
|
+
"otherConstraint": [
|
114
|
+
"otherConstraint0",
|
115
|
+
"otherConstraint1"
|
116
|
+
]
|
117
|
+
},
|
118
|
+
"security": {
|
119
|
+
"classification": "classification",
|
120
|
+
"classificationSystem": "classificationSystem",
|
121
|
+
"userNote": "userNote",
|
122
|
+
"handlingDescription": "handlingDescription"
|
123
|
+
}
|
124
|
+
}],
|
69
125
|
"metadataMaintenance": {
|
70
126
|
"frequency": "frequency"
|
71
127
|
},
|
data/examples/resourceInfo.json
CHANGED
@@ -39,7 +39,7 @@
|
|
39
39
|
}, {
|
40
40
|
"role": "role2",
|
41
41
|
"roleExtent": [{
|
42
|
-
"temporalExtent": [{
|
42
|
+
"temporalExtent": [{
|
43
43
|
"timePeriod": {
|
44
44
|
"startDateTime": "2016-10-24T11:10:15.2-10:00"
|
45
45
|
}
|
@@ -120,7 +120,7 @@
|
|
120
120
|
"coverageName": "coverageName1",
|
121
121
|
"coverageDescription": "coverageDescription1"
|
122
122
|
}],
|
123
|
-
"taxonomy": {
|
123
|
+
"taxonomy": [{
|
124
124
|
"taxonomicSystem": [{
|
125
125
|
"citation": {
|
126
126
|
"title": "title"
|
@@ -146,10 +146,10 @@
|
|
146
146
|
}],
|
147
147
|
"identificationProcedure": "identificationProcedure",
|
148
148
|
"taxonomicClassification": {
|
149
|
-
"
|
150
|
-
"
|
149
|
+
"taxonomicLevel": "taxonomicLevel",
|
150
|
+
"taxonomicName": "taxonomicName"
|
151
151
|
}
|
152
|
-
},
|
152
|
+
}],
|
153
153
|
"graphicOverview": [{
|
154
154
|
"fileName": "fileName0"
|
155
155
|
}, {
|
@@ -1,25 +1,25 @@
|
|
1
1
|
[{
|
2
2
|
"taxonomicSystemId": "999999",
|
3
|
-
"
|
4
|
-
"
|
3
|
+
"taxonomicLevel": "taxonomicLevel0",
|
4
|
+
"taxonomicName": "taxonomicName",
|
5
5
|
"commonName": ["commonName0", "commonName1"],
|
6
6
|
"subClassification": [{
|
7
|
-
"
|
8
|
-
"
|
7
|
+
"taxonomicLevel": "taxonomicLevel00",
|
8
|
+
"taxonomicName": "taxonomicName",
|
9
9
|
"commonName": [
|
10
10
|
"commonName0",
|
11
11
|
"commonName1"
|
12
12
|
],
|
13
13
|
"subClassification": [{
|
14
|
-
"
|
15
|
-
"
|
14
|
+
"taxonomicLevel": "taxonomicLevel000",
|
15
|
+
"taxonomicName": "taxonomicName",
|
16
16
|
"commonName": [
|
17
17
|
"commonName0",
|
18
18
|
"commonName1"
|
19
19
|
],
|
20
20
|
"subClassification": [{
|
21
|
-
"
|
22
|
-
"
|
21
|
+
"taxonomicLevel": "taxonomicLevel0000.1",
|
22
|
+
"taxonomicName": "taxonomicName",
|
23
23
|
"commonName": [
|
24
24
|
"commonName0",
|
25
25
|
"commonName1"
|
@@ -27,8 +27,8 @@
|
|
27
27
|
"subClassification": []
|
28
28
|
},
|
29
29
|
{
|
30
|
-
"
|
31
|
-
"
|
30
|
+
"taxonomicLevel": "taxonomicLevel0000.2",
|
31
|
+
"taxonomicName": "taxonomicName",
|
32
32
|
"commonName": [
|
33
33
|
"commonName0",
|
34
34
|
"commonName1"
|
@@ -39,15 +39,15 @@
|
|
39
39
|
}]
|
40
40
|
},
|
41
41
|
{
|
42
|
-
"
|
43
|
-
"
|
42
|
+
"taxonomicLevel": "taxonomicLevel01",
|
43
|
+
"taxonomicName": "taxonomicName",
|
44
44
|
"commonName": [
|
45
45
|
"commonName0",
|
46
46
|
"commonName1"
|
47
47
|
],
|
48
48
|
"subClassification": [{
|
49
|
-
"
|
50
|
-
"
|
49
|
+
"taxonomicLevel": "taxonomicLevel010",
|
50
|
+
"taxonomicName": "taxonomicName",
|
51
51
|
"commonName": [
|
52
52
|
"commonName0",
|
53
53
|
"commonName1"
|
data/examples/taxonomy.json
CHANGED
data/package-lock.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "mdjson-schemas",
|
3
|
-
"version": "2.4.
|
3
|
+
"version": "2.4.5",
|
4
4
|
"lockfileVersion": 1,
|
5
5
|
"requires": true,
|
6
6
|
"dependencies": {
|
@@ -39,14 +39,12 @@
|
|
39
39
|
"dev": true
|
40
40
|
},
|
41
41
|
"buildify": {
|
42
|
-
"version": "
|
43
|
-
"resolved": "https://registry.npmjs.org/buildify/-/buildify-0.4.0.tgz",
|
44
|
-
"integrity": "sha1-IMi94gSIsyWIzpKkGJZyoITToMQ=",
|
42
|
+
"version": "github:powmedia/buildify#20458a121411f759dcc5ec1b441695eb7fc2b3b7",
|
45
43
|
"dev": true,
|
46
44
|
"requires": {
|
47
45
|
"clean-css": "0.6.0",
|
48
46
|
"mkdirp": "0.3.2",
|
49
|
-
"uglify-
|
47
|
+
"uglify-es": "3.0.22",
|
50
48
|
"underscore": "1.3.3"
|
51
49
|
},
|
52
50
|
"dependencies": {
|
@@ -130,7 +128,7 @@
|
|
130
128
|
"glob": {
|
131
129
|
"version": "7.1.2",
|
132
130
|
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz",
|
133
|
-
"integrity": "
|
131
|
+
"integrity": "sha1-wZyd+aAocC1nhhI4SmVSQExjbRU=",
|
134
132
|
"dev": true,
|
135
133
|
"requires": {
|
136
134
|
"fs.realpath": "1.0.0",
|
@@ -264,7 +262,7 @@
|
|
264
262
|
"minimatch": {
|
265
263
|
"version": "3.0.4",
|
266
264
|
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
|
267
|
-
"integrity": "
|
265
|
+
"integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=",
|
268
266
|
"dev": true,
|
269
267
|
"requires": {
|
270
268
|
"brace-expansion": "1.1.8"
|
@@ -354,12 +352,18 @@
|
|
354
352
|
"rimraf": {
|
355
353
|
"version": "2.6.2",
|
356
354
|
"resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz",
|
357
|
-
"integrity": "
|
355
|
+
"integrity": "sha1-LtgVDSShbqhlHm1u8PR8QVjOejY=",
|
358
356
|
"dev": true,
|
359
357
|
"requires": {
|
360
358
|
"glob": "7.1.2"
|
361
359
|
}
|
362
360
|
},
|
361
|
+
"source-map": {
|
362
|
+
"version": "0.5.7",
|
363
|
+
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
|
364
|
+
"integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
|
365
|
+
"dev": true
|
366
|
+
},
|
363
367
|
"supports-color": {
|
364
368
|
"version": "3.1.2",
|
365
369
|
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.1.2.tgz",
|
@@ -369,11 +373,15 @@
|
|
369
373
|
"has-flag": "1.0.0"
|
370
374
|
}
|
371
375
|
},
|
372
|
-
"uglify-
|
373
|
-
"version": "
|
374
|
-
"resolved": "https://registry.npmjs.org/uglify-
|
375
|
-
"integrity": "
|
376
|
-
"dev": true
|
376
|
+
"uglify-es": {
|
377
|
+
"version": "3.0.22",
|
378
|
+
"resolved": "https://registry.npmjs.org/uglify-es/-/uglify-es-3.0.22.tgz",
|
379
|
+
"integrity": "sha512-4bvwQuswYIpkeZRJ7v9ZVwsOXKeWnop9EUL5FmGy+KVQHtYBf0GzIKryzvY7j6eBTAw9otf4b9VsrufW9CcDHA==",
|
380
|
+
"dev": true,
|
381
|
+
"requires": {
|
382
|
+
"commander": "2.9.0",
|
383
|
+
"source-map": "0.5.7"
|
384
|
+
}
|
377
385
|
},
|
378
386
|
"underscore": {
|
379
387
|
"version": "1.3.3",
|
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "mdjson-schemas",
|
3
|
-
"version": "2.4.
|
3
|
+
"version": "2.4.7",
|
4
4
|
"description": "JSON schemas, examples, and templates for ADIwg metadata standards",
|
5
5
|
"main": "index.js",
|
6
6
|
"directories": {
|
@@ -10,7 +10,7 @@
|
|
10
10
|
},
|
11
11
|
"scripts": {
|
12
12
|
"test": "mocha",
|
13
|
-
"
|
13
|
+
"prepublishOnly": "scripts/prepublish.js",
|
14
14
|
"pretest": "scripts/prepublish.js"
|
15
15
|
},
|
16
16
|
"files": [
|
@@ -40,7 +40,7 @@
|
|
40
40
|
"homepage": "https://github.com/adiwg/mdJson-schemas#readme",
|
41
41
|
"devDependencies": {
|
42
42
|
"ajv": "^5.2.2",
|
43
|
-
"buildify": "
|
43
|
+
"buildify": "github:powmedia/buildify#20458a121411f759dcc5ec1b441695eb7fc2b3b7",
|
44
44
|
"glob": "^7.1.2",
|
45
45
|
"mkdirp": "^0.5.1",
|
46
46
|
"mocha": "^3.5.0",
|
data/schema/constraint.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"id": "constraint.json#",
|
3
3
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
4
|
-
"description": "schema for
|
5
|
-
"example":"../examples/constraint.json",
|
4
|
+
"description": "schema for constraint",
|
5
|
+
"example": "../examples/constraint.json",
|
6
6
|
"required": ["type"],
|
7
7
|
"anyOf": [{
|
8
8
|
"type": "object",
|
@@ -87,7 +87,7 @@
|
|
87
87
|
"legalConstraint": {
|
88
88
|
"type": "object",
|
89
89
|
"description": "Restrictions and legal prerequisites for accessing and using the resource or metadata.",
|
90
|
-
"example":"../examples/legalConstraint.json",
|
90
|
+
"example": "../examples/legalConstraint.json",
|
91
91
|
"translation": {
|
92
92
|
"ISO 19115-2": ["MD_LegalConstraints"]
|
93
93
|
},
|
@@ -126,12 +126,22 @@
|
|
126
126
|
"type": "string"
|
127
127
|
}
|
128
128
|
}
|
129
|
-
}
|
129
|
+
},
|
130
|
+
"anyOf": [{
|
131
|
+
"title": "accessConstraint is required",
|
132
|
+
"required": ["accessConstraint"]
|
133
|
+
}, {
|
134
|
+
"title": "useConstraint is required",
|
135
|
+
"required": ["useConstraint"]
|
136
|
+
}, {
|
137
|
+
"title": "otherConstraint is required",
|
138
|
+
"required": ["otherConstraint"]
|
139
|
+
}]
|
130
140
|
},
|
131
141
|
"securityConstraint": {
|
132
142
|
"type": "object",
|
133
143
|
"description": "Handling restrictions imposed on the resource or metadata for national security or similar security concerns.",
|
134
|
-
"example":"../examples/securityConstraint.json",
|
144
|
+
"example": "../examples/securityConstraint.json",
|
135
145
|
"translation": {
|
136
146
|
"ISO 19115-2": ["MD_SecurityConstraints"]
|
137
147
|
},
|
data/schema/dataDictionary.json
CHANGED
data/schema/distribution.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"type": "object",
|
5
5
|
"title": "distribution",
|
6
6
|
"description": "Information about the distributor of and options for obtaining the resource.",
|
7
|
-
"example":"../examples/distribution.json",
|
7
|
+
"example": "../examples/distribution.json",
|
8
8
|
"translation": {
|
9
9
|
"ISO 19115-2": ["MD_Metadata > distribution > MD_Distribution"],
|
10
10
|
"FGDC CSDGM": ["distinfo"]
|
@@ -16,6 +16,15 @@
|
|
16
16
|
"description": "A description of a set of distribution options.",
|
17
17
|
"translation": {}
|
18
18
|
},
|
19
|
+
"liabilityStatement": {
|
20
|
+
"type": "string",
|
21
|
+
"description": "A statement of the liability assumed by the resource owner.",
|
22
|
+
"translation": {
|
23
|
+
"ISO 19115-2": ["MD_DataIdentification > resourceConstraints > MD_LegalConstraints > otherConstraints"],
|
24
|
+
"FGDC CSDGM": ["distinfo > distliab"],
|
25
|
+
"sbJSON": ["rights"]
|
26
|
+
}
|
27
|
+
},
|
19
28
|
"distributor": {
|
20
29
|
"type": "array",
|
21
30
|
"description": "Information about the distributor of and options for obtaining the resource.",
|
@@ -23,10 +32,18 @@
|
|
23
32
|
"ISO 19115-2": ["MD_Distribution"],
|
24
33
|
"FGDC CSDGM": ["distinfo"]
|
25
34
|
},
|
35
|
+
"minItems": 1,
|
26
36
|
"items": {
|
27
37
|
"$ref": "./distributor.json#",
|
28
38
|
"description": "Information about the distributor of and options for obtaining the resource."
|
29
39
|
}
|
30
40
|
}
|
31
|
-
}
|
41
|
+
},
|
42
|
+
"anyOf": [{
|
43
|
+
"title": "description is required",
|
44
|
+
"required": ["description"]
|
45
|
+
}, {
|
46
|
+
"title": "distributor is required",
|
47
|
+
"required": ["distributor"]
|
48
|
+
}]
|
32
49
|
}
|
data/schema/format.json
CHANGED
@@ -31,6 +31,15 @@
|
|
31
31
|
"description": "Recommendations of algorithms or processes that can be applied to read or expand resources to which compression techniques have been applied.",
|
32
32
|
"translation": {},
|
33
33
|
"minLength": 1
|
34
|
+
},
|
35
|
+
"technicalPrerequisite": {
|
36
|
+
"type": "string",
|
37
|
+
"description": "Description of any technical capabilities that the consumer must have to use the data set in the form(s) provided by the distributor.",
|
38
|
+
"translation": {
|
39
|
+
"FGDC CSDGM": ["distinfo > techpreq"]
|
40
|
+
},
|
41
|
+
"minLength": 1
|
34
42
|
}
|
43
|
+
|
35
44
|
}
|
36
45
|
}
|
data/schema/funding.json
CHANGED
@@ -59,6 +59,13 @@
|
|
59
59
|
"type": "string",
|
60
60
|
"description": "The contactId of the entity receiving the allocation."
|
61
61
|
},
|
62
|
+
"responsibleParty": {
|
63
|
+
"type": "array",
|
64
|
+
"description": "Individuals and/or organizations other than source and recipient that serve as contact points or other roles related to the allocation",
|
65
|
+
"items": {
|
66
|
+
"$ref": "responsibility.json#"
|
67
|
+
}
|
68
|
+
},
|
62
69
|
"matching": {
|
63
70
|
"type": "boolean",
|
64
71
|
"description": "Indicates whether the funds are to be considered matching funds.",
|
data/schema/metadataInfo.json
CHANGED
@@ -51,7 +51,6 @@
|
|
51
51
|
"ISO 19115-2": ["MI_Metadata > dateStamp"],
|
52
52
|
"FGDC CSDGM": ["metainfo > metrd"]
|
53
53
|
},
|
54
|
-
"minItems": 1,
|
55
54
|
"items": {
|
56
55
|
"$ref": "common.json#/definitions/dateObject"
|
57
56
|
}
|
@@ -64,6 +63,17 @@
|
|
64
63
|
"$ref": "./onlineResource.json#"
|
65
64
|
}
|
66
65
|
},
|
66
|
+
"metadataConstraint": {
|
67
|
+
"type": "array",
|
68
|
+
"description": "Provides information about restrictions on the access and use of metadata.",
|
69
|
+
"translation": {
|
70
|
+
"ISO 19115-2": ["MI_Metadata > metadataConstraints"],
|
71
|
+
"FGDC CSDGM": ["metainfo > metac", "metainfo > metuc"]
|
72
|
+
},
|
73
|
+
"items": {
|
74
|
+
"$ref": "./constraint.json#"
|
75
|
+
}
|
76
|
+
},
|
67
77
|
"alternateMetadataReference": {
|
68
78
|
"type": "array",
|
69
79
|
"description": "Reference to alternative metadata for the resource.",
|