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 +4 -4
- data/examples/additionalDocumentation.json +4 -1
- data/examples/associatedResource.json +4 -1
- data/examples/mdJson.json +4 -1
- data/examples/metadata.json +20 -5
- data/examples/resourceInfo.json +4 -1
- data/examples/resourceType.json +4 -0
- data/lib/adiwg/mdjson_schemas/version.rb +1 -1
- data/schema/additionalDocumentation.json +6 -2
- data/schema/associatedResource.json +5 -1
- data/schema/metadataInfo.json +1 -15
- data/schema/resourceInfo.json +6 -2
- data/schema/resourceType.json +24 -0
- data/schema/responsibility.json +19 -14
- data/schema/schema.json +21 -16
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d91a5d28503fe5c7369ccb16da4805668aafb6e1
|
4
|
+
data.tar.gz: 9c3b6b3d37d535c6287f57a6564e961fe2e85a71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37ddb8658e4319a04d0fbd1d2a3d7ccd5bd20f06352c64e37b2712671ed1e184f7144131da654e9118c9003549cca6c5fdfca583eaa5fbf7b601e2264afe706e
|
7
|
+
data.tar.gz: 0a6373e5bd0eca227fe5a735e76128c7c64f08daeee741cb62c5215663476e72edd546670e35b97a03f5f72d5395a465f6e456033b255bc033969ae053e344cd
|
data/examples/mdJson.json
CHANGED
data/examples/metadata.json
CHANGED
@@ -29,7 +29,10 @@
|
|
29
29
|
}]
|
30
30
|
},
|
31
31
|
"resourceInfo": {
|
32
|
-
"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":
|
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":
|
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":
|
97
|
+
"resourceType": [{
|
98
|
+
"type": "MD_ScopeCode",
|
99
|
+
"name": ""
|
100
|
+
}],
|
89
101
|
"citation": [{
|
90
102
|
"title": "title"
|
91
103
|
}]
|
92
104
|
},
|
93
105
|
{
|
94
|
-
"resourceType":
|
106
|
+
"resourceType": [{
|
107
|
+
"type": "MD_ScopeCode",
|
108
|
+
"name": ""
|
109
|
+
}],
|
95
110
|
"citation": [{
|
96
111
|
"title": "title"
|
97
112
|
}]
|
data/examples/resourceInfo.json
CHANGED
@@ -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": "
|
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": "
|
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": {
|
data/schema/metadataInfo.json
CHANGED
@@ -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",
|
data/schema/resourceInfo.json
CHANGED
@@ -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": "
|
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
|
+
}
|
data/schema/responsibility.json
CHANGED
@@ -32,20 +32,25 @@
|
|
32
32
|
"translation": {},
|
33
33
|
"minItems": 1,
|
34
34
|
"items": {
|
35
|
-
"
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
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
|
}
|
data/schema/schema.json
CHANGED
@@ -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.
|
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
|
-
"
|
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.
|
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-
|
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
|