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

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: d91a5d28503fe5c7369ccb16da4805668aafb6e1
4
- data.tar.gz: 9c3b6b3d37d535c6287f57a6564e961fe2e85a71
3
+ metadata.gz: 4d41e4ffe998388d6bc497346096fba0d1074b7d
4
+ data.tar.gz: 9f03d2c308be13662597703355a3634718c9979b
5
5
  SHA512:
6
- metadata.gz: 37ddb8658e4319a04d0fbd1d2a3d7ccd5bd20f06352c64e37b2712671ed1e184f7144131da654e9118c9003549cca6c5fdfca583eaa5fbf7b601e2264afe706e
7
- data.tar.gz: 0a6373e5bd0eca227fe5a735e76128c7c64f08daeee741cb62c5215663476e72edd546670e35b97a03f5f72d5395a465f6e456033b255bc033969ae053e344cd
6
+ metadata.gz: 915223a0b712728e0835f11f7a869fc643723ce8f3c725309038bb88078007aa549dadc9578eeacffedb9eec43d5c724ed05c27b31a93f32466e424bce2a4aa4
7
+ data.tar.gz: 0306a5a4d30ea60a230d023d1949a9f95efee35b19e61abecc55b01e49b268fc1b3ffe1d990c501408515dceae85dc29b58b7dabbd09fb3c4f81b315882b9510
@@ -1,33 +1,37 @@
1
1
  [{
2
2
  "scopeCode": "scopeCode",
3
3
  "scopeDescription": [{
4
- "type": "dataset",
5
- "description": "description"
4
+ "dataset": "dataset"
6
5
  }],
7
- "timePeriod": [{
8
- "id": "id",
9
- "description": "description",
10
- "identifier": {
11
- "identifier": "identifier",
12
- "namespace": "namespace"
13
- },
14
- "periodName": [
15
- "periodName0",
16
- "periodName1"
17
- ],
18
- "startDateTime": "2016-10-14T11:10:15.2-10:00",
19
- "endDateTime": "2016-12-31",
20
- "timeInterval": {
21
- "interval": 9.9,
22
- "units": "units"
23
- },
24
- "duration": {
25
- "years": 1,
26
- "months": 1,
27
- "days": 1,
28
- "hours": 1,
29
- "minutes": 1,
30
- "seconds": 1
31
- }
6
+ "scopeExtent": [{
7
+ "temporalExtent": [{
8
+ "type": "period",
9
+ "timePeriod": {
10
+ "id": "id",
11
+ "description": "description",
12
+ "identifier": {
13
+ "identifier": "identifier",
14
+ "namespace": "namespace"
15
+ },
16
+ "periodName": [
17
+ "periodName0",
18
+ "periodName1"
19
+ ],
20
+ "startDateTime": "2016-10-14T11:10:15.2-10:00",
21
+ "endDateTime": "2016-12-31",
22
+ "timeInterval": {
23
+ "interval": 9.9,
24
+ "units": "units"
25
+ },
26
+ "duration": {
27
+ "years": 1,
28
+ "months": 1,
29
+ "days": 1,
30
+ "hours": 1,
31
+ "minutes": 1,
32
+ "seconds": 1
33
+ }
34
+ }
35
+ }]
32
36
  }]
33
37
  }]
@@ -0,0 +1,6 @@
1
+ [{
2
+ "dataset": "",
3
+ "attribute": "",
4
+ "feature": "",
5
+ "other": ""
6
+ }]
@@ -1,6 +1,6 @@
1
1
  module ADIWG
2
2
  module MdjsonSchemas
3
3
  # Current schema version number
4
- VERSION = "2.0.0-alpha.8"
4
+ VERSION = "2.0.0-alpha.9"
5
5
  end
6
6
  end
@@ -19,7 +19,6 @@
19
19
  "allocation": {
20
20
  "type": "array",
21
21
  "description": "Funds contributed to support the development of the resource.",
22
- "example": "",
23
22
  "items": {
24
23
  "$ref": "#/definitions/allocation"
25
24
  }
@@ -37,7 +37,6 @@
37
37
  },
38
38
  "authority": {
39
39
  "description": "Citation for the authority issuing the identifier.",
40
- "example": "",
41
40
  "translation": {
42
41
  "ISO 19115-2": ["MD_Identifier > authority > CI_Citation"]
43
42
  },
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "roleExtent": {
22
22
  "type": "array",
23
- "description": "The period of time for which the role is valid.",
23
+ "description": "The area or period of time for which the role is valid.",
24
24
  "translation": {},
25
25
  "items": {
26
26
  "$ref": "./extent.json#"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "schema.json#",
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
- "version": "2.0.0-alpha.8",
4
+ "version": "2.0.0-alpha.9",
5
5
  "description": "schema for ADIwg mdJSON metadata",
6
6
  "example": "../examples/mdJson.json",
7
7
  "type": "object",
@@ -19,32 +19,44 @@
19
19
  "description": "Detailed description/listing of the items specified by the scope.",
20
20
  "translation": {},
21
21
  "items": {
22
- "type": "object",
23
- "required": ["type", "description"],
24
- "additionalProperties": true,
25
- "properties": {
26
- "type": {
27
- "type": "string",
28
- "description": "The type of item described.",
29
- "translation": {},
30
- "minLength": 1,
31
- "enum": ["dataset", "attribute", "feature", "other"]
32
- },
33
- "description": {
34
- "type": "string",
35
- "description": "Description of the scope item.",
36
- "translation": {},
37
- "minLength": 1
38
- }
39
- }
22
+ "$ref": "#/definitions/scopeDescription"
40
23
  }
41
24
  },
42
- "timePeriod": {
25
+ "scopeExtent": {
43
26
  "type": "array",
44
- "description": "information about the temporal extent of the resource specified by the scope",
27
+ "description": "Information about the horizontal, vertical and temporal extent of the resource specified by the scope.",
45
28
  "translation": {},
46
29
  "items": {
47
- "$ref": "./timePeriod.json#"
30
+ "$ref": "./extent.json#"
31
+ }
32
+ }
33
+ },
34
+ "definitions": {
35
+ "scopeDescription": {
36
+ "type": "object",
37
+ "additionalProperties": true,
38
+ "minProperties": 1,
39
+ "properties": {
40
+ "dataset": {
41
+ "type": "string",
42
+ "description": "Dataset to which the information applies.",
43
+ "translation": {}
44
+ },
45
+ "attribute": {
46
+ "type": "string",
47
+ "description": "Instances of attribute types to which the information is applied.",
48
+ "translation": {}
49
+ },
50
+ "feature": {
51
+ "type": "string",
52
+ "description": "Instances of feature types to which the information is applied.",
53
+ "translation": {}
54
+ },
55
+ "other": {
56
+ "type": "string",
57
+ "description": "Class of information that does not fall into the other categories to which the information applies.",
58
+ "translation": {}
59
+ }
48
60
  }
49
61
  }
50
62
  }
@@ -11,7 +11,6 @@
11
11
  "type": {
12
12
  "type": "string",
13
13
  "description": "The type of temporal extent.",
14
- "example": "",
15
14
  "translation": {},
16
15
  "enum": ["instant", "period"]
17
16
  }
@@ -5,4 +5,8 @@ class TestScope < TestHelper
5
5
  errors = JSON::Validator.fully_validate('scope.json', @@example + 'scope.json', strict: @@strict, list: true)
6
6
  assert(errors.empty?, errors.join("\n"))
7
7
  end
8
+ def test_scopeDescription
9
+ errors = JSON::Validator.fully_validate('scope.json', @@example + 'scopeDescription.json', fragment: '#/definitions/scopeDescription', strict: @@strict, list: true)
10
+ assert(errors.empty?, errors.join("\n"))
11
+ end
8
12
  end
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.8
4
+ version: 2.0.0.pre.alpha.9
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-15 00:00:00.000000000 Z
11
+ date: 2017-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -144,6 +144,7 @@ files:
144
144
  - examples/resourceType.json
145
145
  - examples/responsibleParty.json
146
146
  - examples/scope.json
147
+ - examples/scopeDescription.json
147
148
  - examples/securityConstraint.json
148
149
  - examples/series.json
149
150
  - examples/source.json