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 +4 -4
- data/examples/scope.json +31 -27
- data/examples/scopeDescription.json +6 -0
- data/lib/adiwg/mdjson_schemas/version.rb +1 -1
- data/schema/funding.json +0 -1
- data/schema/identifier.json +0 -1
- data/schema/responsibility.json +1 -1
- data/schema/schema.json +1 -1
- data/schema/scope.json +33 -21
- data/schema/temporalExtent.json +0 -1
- data/test/tc_scope.rb +4 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d41e4ffe998388d6bc497346096fba0d1074b7d
|
4
|
+
data.tar.gz: 9f03d2c308be13662597703355a3634718c9979b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 915223a0b712728e0835f11f7a869fc643723ce8f3c725309038bb88078007aa549dadc9578eeacffedb9eec43d5c724ed05c27b31a93f32466e424bce2a4aa4
|
7
|
+
data.tar.gz: 0306a5a4d30ea60a230d023d1949a9f95efee35b19e61abecc55b01e49b268fc1b3ffe1d990c501408515dceae85dc29b58b7dabbd09fb3c4f81b315882b9510
|
data/examples/scope.json
CHANGED
@@ -1,33 +1,37 @@
|
|
1
1
|
[{
|
2
2
|
"scopeCode": "scopeCode",
|
3
3
|
"scopeDescription": [{
|
4
|
-
"
|
5
|
-
"description": "description"
|
4
|
+
"dataset": "dataset"
|
6
5
|
}],
|
7
|
-
"
|
8
|
-
"
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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
|
}]
|
data/schema/funding.json
CHANGED
data/schema/identifier.json
CHANGED
data/schema/responsibility.json
CHANGED
data/schema/schema.json
CHANGED
data/schema/scope.json
CHANGED
@@ -19,32 +19,44 @@
|
|
19
19
|
"description": "Detailed description/listing of the items specified by the scope.",
|
20
20
|
"translation": {},
|
21
21
|
"items": {
|
22
|
-
"
|
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
|
-
"
|
25
|
+
"scopeExtent": {
|
43
26
|
"type": "array",
|
44
|
-
"description": "
|
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": "./
|
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
|
}
|
data/schema/temporalExtent.json
CHANGED
data/test/tc_scope.rb
CHANGED
@@ -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.
|
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-
|
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
|