adiwg-mdjson_schemas 2.0.1 → 2.0.2

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: 8e66cd93f62d744217745f1372674cba47a25d62
4
- data.tar.gz: d40372c55e11868c6f8b8fd19c3cfc5e45db7945
3
+ metadata.gz: 7f9bf2dc3bbaee289991b9ee9f3e57df8842066a
4
+ data.tar.gz: 44b8d90fe6e9a5950c88d6781411ad00690bcc78
5
5
  SHA512:
6
- metadata.gz: 40b244332eb9577835ca277b84ce7c289ae586eecb75c33d01ee562562e2124d583cad77293a6382d6d4962762bb861452e9ccb8362872d66f3322c953ebd031
7
- data.tar.gz: e7cf72bb91a7fac52fb65aef554a4346687a8b6fc3775847c610c637f8030bcfa4f7e5a2550b689ec0f59fdb3e7a25edaca7ef3dbdb4c86543ac1aecfc0f7216
6
+ metadata.gz: fc79c4d5909acddce5c08c41a12988f11081164228cb165f4cab82ae12b118a2b4c45f3df730a7fabafc6b724341f247116ddd7e5ad195ee6428f9b6adf57c81
7
+ data.tar.gz: 0363bfca11bf7d1624d3f890a7a7b088eedff1d17aa4cc55bbbf19617a28ab836605c1a11100c68a580dd94aebdad85c2c0af3199fec58f7a4868f0116588deb
data/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ # mdJson-schemas Changelog
2
+
3
+ ### Master
4
+
5
+ ### Release 2.0.1 (March 15, 2017)
6
+
7
+ - Removed old template
8
+ - [1833df8](https://github.com/adiwg/mdJson-schemas/commit/1833df80b9324dfbc5eb067821bde4a8011ccc08) [FIX] Fixed spatialRepresentation
@@ -1,6 +1,6 @@
1
1
  module ADIWG
2
2
  module MdjsonSchemas
3
3
  # Current schema version number
4
- VERSION = "2.0.1"
4
+ VERSION = "2.0.2"
5
5
  end
6
6
  end
data/schema/citation.json CHANGED
@@ -36,25 +36,7 @@
36
36
  "ISO 19115-2": ["CI_Citation > date > CI_Date"]
37
37
  },
38
38
  "items": {
39
- "type": "object",
40
- "example":"../examples/date.json",
41
- "required": ["date", "dateType"],
42
- "properties": {
43
- "date": {
44
- "translation": {
45
- "ISO 19115-2": ["CI_Date > date", "FC_FeatureCatalogue > versionDate"],
46
- "FGDC CSDGM": ["idinfo > citation > citeinfo > pubdate"]
47
- },
48
- "$ref": "common.json#/definitions/date"
49
- },
50
- "dateType": {
51
- "type": "string",
52
- "description": "The type of date in the context of the citation.",
53
- "translation": {
54
- "ISO 19115-2": ["CI_Date > dateType [CI_DateTypeCode]"]
55
- }
56
- }
57
- }
39
+ "$ref": "common.json#/definitions/dateObject"
58
40
  }
59
41
  },
60
42
  "edition": {
data/schema/common.json CHANGED
@@ -20,6 +20,10 @@
20
20
  "type": "string",
21
21
  "description": "An ISO 8601 date/timestamp.",
22
22
  "example": "../examples/date.json",
23
+ "translation": {
24
+ "ISO 19115-2": ["CI_Date > date", "FC_FeatureCatalogue > versionDate"],
25
+ "FGDC CSDGM": ["idinfo > citation > citeinfo > pubdate"]
26
+ },
23
27
  "pattern": "^(\\d{4}(-\\d{2})?(-\\d{2})?$)|(^\\d{4}-\\d{2}-\\d{2}(T\\d{2})?(\\:\\d{2}(\\:\\d{2}(\\.\\d+)?)?|Z)?(Z|(-|\\+)\\d{2}(:\\d{2})?)?$)"
24
28
  },
25
29
  "dateObject": {
@@ -35,12 +39,15 @@
35
39
  "dateType": {
36
40
  "type": "string",
37
41
  "description": "The type of date.",
38
- "translation": {},
42
+ "translation": {
43
+ "ISO 19115-2": ["CI_Date > dateType [CI_DateTypeCode]"]
44
+ },
45
+ "codelist": "iso_dateType",
39
46
  "minLength": 1
40
47
  },
41
48
  "description": {
42
- "type" : "string",
43
- "description" : "Supplemental information describing the date context."
49
+ "type": "string",
50
+ "description": "Supplemental information describing the date context."
44
51
  }
45
52
  }
46
53
  }
@@ -3,6 +3,7 @@
3
3
  "$schema": "http://json-schema.org/draft-04/schema#",
4
4
  "description": "schema for resource constraint",
5
5
  "example":"../examples/constraint.json",
6
+ "required": ["type"],
6
7
  "anyOf": [{
7
8
  "type": "object",
8
9
  "title": "useLimitation is required",
@@ -56,7 +56,8 @@
56
56
  "description": "Indication of whether or not the data dictionary is included with the resource.",
57
57
  "translation": {
58
58
  "ISO 19115-2": ["MD_FeatureCatalogueDescription > includedWithDataset"]
59
- }
59
+ },
60
+ "default": false
60
61
  },
61
62
  "domain": {
62
63
  "type": "array",
data/schema/entity.json CHANGED
@@ -108,7 +108,8 @@
108
108
  "description": "Indicates whether the index allows duplicates or values are required to be unique. true = allow duplicates; false = values must be unique.",
109
109
  "translation": {
110
110
  "ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > constrainedBy > FC_Constraint > description > CharacterString"]
111
- }
111
+ },
112
+ "default": false
112
113
  },
113
114
  "attributeCodeName": {
114
115
  "type": "array",
@@ -168,12 +169,14 @@
168
169
  "description": "Indicates whether null values are allowed for the attribute",
169
170
  "translation": {
170
171
  "ISO 19115-2": ["FC_FeatureCatalogue > featureType > FC_FeatureType > carrierOfCharacteristics > FC_FeatureAttribute > cardinality > Multiplicity > range > MultiplicityRange > lower > integer[0=optional | 1=required]"]
171
- }
172
+ },
173
+ "default": false
172
174
  },
173
175
  "allowMany": {
174
176
  "type": "boolean",
175
177
  "description": "Indicates whether null values are allowed for the attribute",
176
- "translation": {}
178
+ "translation": {},
179
+ "default": false
177
180
  },
178
181
  "units": {
179
182
  "type": "string",
data/schema/funding.json CHANGED
@@ -38,33 +38,28 @@
38
38
  "properties": {
39
39
  "amount": {
40
40
  "type": "number",
41
- "description": "The amount of the allocation in the indicated currency.",
42
- "example": ""
41
+ "description": "The amount of the allocation in the indicated currency."
43
42
  },
44
43
  "currency": {
45
44
  "type": "string",
46
- "description": "The ISO 4217 currency code.",
47
- "example": ""
45
+ "description": "The ISO 4217 currency code."
48
46
  },
49
47
  "sourceId": {
50
48
  "type": "string",
51
- "description": "The contactId of the entity providing the allocation.",
52
- "example": ""
49
+ "description": "The contactId of the entity providing the allocation."
53
50
  },
54
51
  "recipientId": {
55
52
  "type": "string",
56
- "description": "The contactId of the entity receiving the allocation.",
57
- "example": ""
53
+ "description": "The contactId of the entity receiving the allocation."
58
54
  },
59
55
  "matching": {
60
56
  "type": "boolean",
61
- "description": "Tdicates whether the funds are to be considered matching funds.",
62
- "example": ""
57
+ "description": "Indicates whether the funds are to be considered matching funds.",
58
+ "default": false
63
59
  },
64
60
  "comment": {
65
61
  "type": "string",
66
- "description": "Additional information relevant to the allocation.",
67
- "example": ""
62
+ "description": "Additional information relevant to the allocation."
68
63
  }
69
64
  }
70
65
  }
@@ -9,7 +9,8 @@
9
9
  "containsData": {
10
10
  "type": "boolean",
11
11
  "description": "Idication of whether the geographic element encompasses an area covered by the data or an area where data are not present.",
12
- "translation": {}
12
+ "translation": {},
13
+ "default": true
13
14
  },
14
15
  "identifier": {
15
16
  "$ref": "./identifier.json#",
@@ -14,7 +14,8 @@
14
14
  "checkPointAvailable": {
15
15
  "type": "boolean",
16
16
  "description": "Idication of whether or not geographic position points are available to test the accuracy of the georeferenced grid data.",
17
- "translation": {}
17
+ "translation": {},
18
+ "default": false
18
19
  },
19
20
  "checkPointDescription": {
20
21
  "type": "string",
@@ -5,7 +5,7 @@
5
5
  "title": "georeferenceableRepresentation",
6
6
  "description": "Grid with cells irregularly spaced in any given geographic/map projection coordinate system, whose individual cells can be geolocated using geolocation information supplied with the data but cannot be geolocated from the grid properties alone.",
7
7
  "example": "../examples/georeferenceableRepresentation.json",
8
- "required": ["controlPointAvailable", "orientationParameterAvailable", "georeferencedParameter"],
8
+ "required": ["gridRepresentation", "controlPointAvailable", "orientationParameterAvailable", "georeferencedParameter"],
9
9
  "additionalProperties": true,
10
10
  "properties": {
11
11
  "gridRepresentation": {
@@ -14,12 +14,14 @@
14
14
  "controlPointAvailable": {
15
15
  "type": "boolean",
16
16
  "description": "Indication of whether or not control point(s) exist.",
17
- "translation": {}
17
+ "translation": {},
18
+ "default": false
18
19
  },
19
20
  "orientationParameterAvailable": {
20
21
  "type": "boolean",
21
22
  "description": "Description of the parameters used to describe sensor orientation.",
22
- "translation": {}
23
+ "translation": {},
24
+ "default": false
23
25
  },
24
26
  "orientationParameterDescription": {
25
27
  "type": "string",
@@ -40,7 +40,8 @@
40
40
  "description": "An indication of whether or not parameters for transformation between image coordinates and geographic or map coordinates exist (are available).",
41
41
  "translation": {
42
42
  "ISO 19115-2": ["MD_GridSpatialRepresentation > transformationParameterAvailability"]
43
- }
43
+ },
44
+ "default": false
44
45
  }
45
46
  },
46
47
  "definitions": {
@@ -3,7 +3,7 @@
3
3
  "id": "imageDescription.json#",
4
4
  "type": "object",
5
5
  "description": "Information about an image's suitability for use.",
6
- "example":"../examples/imageDescription.json",
6
+ "example":"../examples/imageDescription.json",
7
7
  "translation": {
8
8
  "ISO 19115-2": ["MI_ImageDescription"]
9
9
  },
@@ -65,28 +65,32 @@
65
65
  "description": "Indication of whether or not the radiometric calibration information for generating the radiometrically calibrated standard data product is available.",
66
66
  "translation": {
67
67
  "ISO 19115-2": ["MI_ImageDescription > radiometricCalibrationDataAvailability"]
68
- }
68
+ },
69
+ "default": false
69
70
  },
70
71
  "cameraCalibrationAvailable": {
71
72
  "type": "boolean",
72
73
  "description": "Indication of whether or not constants are available which allow for camera calibration corrections.",
73
74
  "translation": {
74
75
  "ISO 19115-2": ["MI_ImageDescription > camerCalibrationInformationAvailability"]
75
- }
76
+ },
77
+ "default": false
76
78
  },
77
79
  "filmDistortionAvailable": {
78
80
  "type": "boolean",
79
81
  "description": "Indication of whether or not Calibration Reseau information is available",
80
82
  "translation": {
81
83
  "ISO 19115-2": ["MI_ImageDescription > filmDistrotionInformationAvailability"]
82
- }
84
+ },
85
+ "default": false
83
86
  },
84
87
  "lensDistortionAvailable": {
85
88
  "type": "boolean",
86
89
  "description": "Indication of whether or not lens aberration correction information is available.",
87
90
  "translation": {
88
91
  "ISO 19115-2": ["MI_ImageDescription > lensDistortionInformationAvailability"]
89
- }
92
+ },
93
+ "default": false
90
94
  }
91
95
  }
92
96
  }
@@ -7,6 +7,8 @@
7
7
  "translation": {
8
8
  "ISO 19115-2": ["MD_MaintenanceInformation"]
9
9
  },
10
+ "codelist": "iso_maintenanceFrequency",
11
+ "required": ["frequency"],
10
12
  "additionalProperties": true,
11
13
  "properties": {
12
14
  "frequency": {
data/schema/schema.json CHANGED
@@ -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.1",
4
+ "version": "2.0.2",
5
5
  "description": "schema for ADIwg mdJSON metadata",
6
6
  "example": "../examples/mdJson.json",
7
7
  "type": "object",
data/schema/taxonomy.json CHANGED
@@ -35,7 +35,9 @@
35
35
  "description": "Information on any non-authoritative materials (e.g. field guides) useful for reconstructing the actual process.",
36
36
  "translation": {},
37
37
  "minItems": 1,
38
- "items": {}
38
+ "items": {
39
+ "$ref": "./identifier.json#"
40
+ }
39
41
  },
40
42
  "observer": {
41
43
  "type": "array",
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.1
4
+ version: 2.0.2
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-03-15 00:00:00.000000000 Z
11
+ date: 2017-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -76,6 +76,7 @@ extra_rdoc_files: []
76
76
  files:
77
77
  - ".gitignore"
78
78
  - ".travis.yml"
79
+ - CHANGELOG.md
79
80
  - CREDITS
80
81
  - Gemfile
81
82
  - LICENSE