adiwg-mdjson_schemas 2.0.0.pre.alpha.7 → 2.0.0.pre.alpha.8

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
  SHA1:
3
- metadata.gz: e42d629b76b7b17f16eff16fca0d3d0a5028fff8
4
- data.tar.gz: 8c5fff39c65d2d5b01074b9103dd7fb5e912576b
3
+ metadata.gz: d91a5d28503fe5c7369ccb16da4805668aafb6e1
4
+ data.tar.gz: 9c3b6b3d37d535c6287f57a6564e961fe2e85a71
5
5
  SHA512:
6
- metadata.gz: 16f340aacf53ceb75e03b6e07bb5ff3d7310344566016eeab01820e18b45a5462174012bc872e287d4dc2c13d420489491858f4a856b5e09438450791e24de6b
7
- data.tar.gz: 4a03d09effc1ffbfb9d86911de006f44228bef6542454707a47326f0bc53ea2d45024ebea7f3b847719d562dfdb17dafd5a2db49f92fc362142d7a5b561c761d
6
+ metadata.gz: 37ddb8658e4319a04d0fbd1d2a3d7ccd5bd20f06352c64e37b2712671ed1e184f7144131da654e9118c9003549cca6c5fdfca583eaa5fbf7b601e2264afe706e
7
+ data.tar.gz: 0a6373e5bd0eca227fe5a735e76128c7c64f08daeee741cb62c5215663476e72edd546670e35b97a03f5f72d5395a465f6e456033b255bc033969ae053e344cd
@@ -1,5 +1,8 @@
1
1
  [{
2
- "resourceType": "resourceType",
2
+ "resourceType": [{
3
+ "type": "MD_ScopeCode",
4
+ "name": ""
5
+ }],
3
6
  "citation": [{
4
7
  "title": "title"
5
8
  },
@@ -1,5 +1,8 @@
1
1
  [{
2
- "resourceType": "resourceType",
2
+ "resourceType": [{
3
+ "type": "MD_ScopeCode",
4
+ "name": ""
5
+ }],
3
6
  "associationType": "associationType",
4
7
  "initiativeType": "initiativeType",
5
8
  "resourceCitation": {
@@ -57,7 +57,10 @@
57
57
  }]
58
58
  },
59
59
  "resourceInfo": {
60
- "resourceType": "resourceType",
60
+ "resourceType": [{
61
+ "type": "MD_ScopeCode",
62
+ "name": ""
63
+ }],
61
64
  "citation": {
62
65
  "title": "title"
63
66
  },
@@ -29,7 +29,10 @@
29
29
  }]
30
30
  },
31
31
  "resourceInfo": {
32
- "resourceType": "resourceType",
32
+ "resourceType": [{
33
+ "type": "MD_ScopeCode",
34
+ "name": ""
35
+ }],
33
36
  "citation": {
34
37
  "title": "title"
35
38
  },
@@ -70,14 +73,20 @@
70
73
  }
71
74
  ],
72
75
  "associatedResource": [{
73
- "resourceType": "resourceType",
76
+ "resourceType": [{
77
+ "type": "MD_ScopeCode",
78
+ "name": ""
79
+ }],
74
80
  "associationType": "associationType",
75
81
  "resourceCitation": {
76
82
  "title": "title"
77
83
  }
78
84
  },
79
85
  {
80
- "resourceType": "resourceType",
86
+ "resourceType": [{
87
+ "type": "MD_ScopeCode",
88
+ "name": ""
89
+ }],
81
90
  "associationType": "associationType",
82
91
  "resourceCitation": {
83
92
  "title": "title"
@@ -85,13 +94,19 @@
85
94
  }
86
95
  ],
87
96
  "additionalDocumentation": [{
88
- "resourceType": "resourceType",
97
+ "resourceType": [{
98
+ "type": "MD_ScopeCode",
99
+ "name": ""
100
+ }],
89
101
  "citation": [{
90
102
  "title": "title"
91
103
  }]
92
104
  },
93
105
  {
94
- "resourceType": "resourceType",
106
+ "resourceType": [{
107
+ "type": "MD_ScopeCode",
108
+ "name": ""
109
+ }],
95
110
  "citation": [{
96
111
  "title": "title"
97
112
  }]
@@ -1,5 +1,8 @@
1
1
  [{
2
- "resourceType": "resourceType",
2
+ "resourceType": [{
3
+ "type": "MD_ScopeCode",
4
+ "name": ""
5
+ }],
3
6
  "citation": {
4
7
  "title": "title"
5
8
  },
@@ -0,0 +1,4 @@
1
+ [{
2
+ "type": "MD_ScopeCode",
3
+ "name": ""
4
+ }]
@@ -1,6 +1,6 @@
1
1
  module ADIWG
2
2
  module MdjsonSchemas
3
3
  # Current schema version number
4
- VERSION = "2.0.0-alpha.7"
4
+ VERSION = "2.0.0-alpha.8"
5
5
  end
6
6
  end
@@ -9,13 +9,17 @@
9
9
  "FGDC CSDGM": ["idinfo > crossref "]
10
10
  },
11
11
  "example": "../examples/additionalDocumentation.json",
12
- "required": ["citation"],
12
+ "required": ["citation", "resourceType"],
13
13
  "properties": {
14
14
  "resourceType": {
15
- "type": "string",
15
+ "type": "array",
16
16
  "description": "Identifies the type of resource, such as: userGuide, website, report, etc.",
17
17
  "translation": {
18
18
  "ISO 19115-2": ["[MD_ScopeCode]"]
19
+ },
20
+ "minItems": 1,
21
+ "items": {
22
+ "$ref": "./resourceType.json#"
19
23
  }
20
24
  },
21
25
  "citation": {
@@ -27,10 +27,14 @@
27
27
  }
28
28
  },
29
29
  "resourceType": {
30
- "type": "string",
30
+ "type": "array",
31
31
  "description": "Identifies the type of resource, such as: a dataset, study, publication, etc.",
32
32
  "translation": {
33
33
  "ISO 19115-2": ["[MD_ScopeCode]"]
34
+ },
35
+ "minItems": 1,
36
+ "items": {
37
+ "$ref": "./resourceType.json#"
34
38
  }
35
39
  },
36
40
  "resourceCitation": {
@@ -62,21 +62,7 @@
62
62
  "minItems": 1,
63
63
  "items": {
64
64
  "$ref": "common.json#/definitions/dateObject"
65
- },
66
- "allOf": [{
67
- "type": "array",
68
- "items": [{
69
- "type": "object",
70
- "title": "Creation date required.",
71
- "description": "A creation date must be the first object in the array.",
72
- "properties": {
73
- "dateType": {
74
- "type": "string",
75
- "enum": ["creation"]
76
- }
77
- }
78
- }]
79
- }]
65
+ }
80
66
  },
81
67
  "metadataOnlineResource": {
82
68
  "type": "array",
@@ -3,7 +3,7 @@
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
4
  "description": "Information about the resource.",
5
5
  "type": "object",
6
- "example":"../examples/resourceInfo.json",
6
+ "example": "../examples/resourceInfo.json",
7
7
  "translation": {
8
8
  "ISO 19115-2": ["MD_DataIdentification"],
9
9
  "FGDC CSDGM": ["idinfo"]
@@ -12,10 +12,14 @@
12
12
  "additionalProperties": true,
13
13
  "properties": {
14
14
  "resourceType": {
15
- "type": "string",
15
+ "type": "array",
16
16
  "description": "Identifies the type of resource, such as: a dataset, study, publication, etc.",
17
17
  "translation": {
18
18
  "ISO 19115-2": ["MI_Metadata > hierarchyLevel [MD_ScopeCode]"]
19
+ },
20
+ "minItems": 1,
21
+ "items": {
22
+ "$ref": "./resourceType.json#"
19
23
  }
20
24
  },
21
25
  "citation": {
@@ -0,0 +1,24 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "id": "resourceType.json#",
4
+ "type": "object",
5
+ "title": "resourceType",
6
+ "description": "Identifies the kinds and scope of items in the resource",
7
+ "example": "../examples/resourceType.json",
8
+ "required": ["type"],
9
+ "additionalProperties": true,
10
+ "properties": {
11
+ "type": {
12
+ "type": "string",
13
+ "description": "The type of resource(or component of a resource) being described.",
14
+ "translation": {},
15
+ "codelist": "iso_scope",
16
+ "minLength": 1
17
+ },
18
+ "name": {
19
+ "type": "string",
20
+ "description": "The name of the resource component.",
21
+ "translation": {}
22
+ }
23
+ }
24
+ }
@@ -32,20 +32,25 @@
32
32
  "translation": {},
33
33
  "minItems": 1,
34
34
  "items": {
35
- "type": "object",
36
- "required": ["contactId"],
37
- "properties": {
38
- "contactId": {
39
- "type": "string",
40
- "description": "Identifier matching a contactId in the main contact array."
41
- },
42
- "organizationMembers": {
43
- "type": "array",
44
- "description": "Identifies individuals that have an association with an organization contact.",
45
- "translation": {},
46
- "items": {
47
- "type": "string"
48
- }
35
+ "$ref": "#/definitions/party"
36
+ }
37
+ }
38
+ },
39
+ "definitions": {
40
+ "party": {
41
+ "type": "object",
42
+ "required": ["contactId"],
43
+ "properties": {
44
+ "contactId": {
45
+ "type": "string",
46
+ "description": "Identifier matching a contactId in the main contact array."
47
+ },
48
+ "organizationMembers": {
49
+ "type": "array",
50
+ "description": "Identifies individuals that have an association with an organization contact.",
51
+ "translation": {},
52
+ "items": {
53
+ "type": "string"
49
54
  }
50
55
  }
51
56
  }
@@ -1,28 +1,14 @@
1
1
  {
2
2
  "id": "schema.json#",
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
- "version": "2.0.0-alpha.7",
4
+ "version": "2.0.0-alpha.8",
5
5
  "description": "schema for ADIwg mdJSON metadata",
6
6
  "example": "../examples/mdJson.json",
7
7
  "type": "object",
8
8
  "required": ["schema", "contact", "metadata"],
9
9
  "properties": {
10
10
  "schema": {
11
- "type": "object",
12
- "description": "Identifies the version of the JSON schema standard that applies to the metadata.",
13
- "required": ["name", "version"],
14
- "additionalProperties": true,
15
- "properties": {
16
- "name": {
17
- "type": "string",
18
- "description": "Schema identifier, i.e. the name of the schema standard."
19
- },
20
- "version": {
21
- "type": "string",
22
- "description": "Specific version number of the schema standard.",
23
- "pattern": "[0-9]\\.[0-9]\\.[0-9]"
24
- }
25
- }
11
+ "$ref": "#/definitions/schema"
26
12
  },
27
13
  "contact": {
28
14
  "type": "array",
@@ -55,5 +41,24 @@
55
41
  "$ref": "dataDictionary.json"
56
42
  }
57
43
  }
44
+ },
45
+ "definitions": {
46
+ "schema": {
47
+ "type": "object",
48
+ "description": "Identifies the version of the JSON schema standard that applies to the metadata.",
49
+ "required": ["name", "version"],
50
+ "additionalProperties": true,
51
+ "properties": {
52
+ "name": {
53
+ "type": "string",
54
+ "description": "Schema identifier, i.e. the name of the schema standard."
55
+ },
56
+ "version": {
57
+ "type": "string",
58
+ "description": "Specific version number of the schema standard.",
59
+ "pattern": "[0-9]\\.[0-9]\\.[0-9]"
60
+ }
61
+ }
62
+ }
58
63
  }
59
64
  }
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.0.0.pre.alpha.7
4
+ version: 2.0.0.pre.alpha.8
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: 2017-02-14 00:00:00.000000000 Z
11
+ date: 2017-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -141,6 +141,7 @@ files:
141
141
  - examples/processStep.json
142
142
  - examples/releasability.json
143
143
  - examples/resourceInfo.json
144
+ - examples/resourceType.json
144
145
  - examples/responsibleParty.json
145
146
  - examples/scope.json
146
147
  - examples/securityConstraint.json
@@ -208,6 +209,7 @@ files:
208
209
  - schema/orderProcess.json
209
210
  - schema/releasability.json
210
211
  - schema/resourceInfo.json
212
+ - schema/resourceType.json
211
213
  - schema/responsibility.json
212
214
  - schema/schema.json
213
215
  - schema/scope.json