adiwg-mdtranslator 0.12.1 → 1.0.0rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (191) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/.gitmodules +3 -3
  4. data/Rakefile +1 -1
  5. data/adiwg-mdtranslator.gemspec +3 -3
  6. data/lib/adiwg/mdtranslator/internal/internal_metadata_obj.rb +5 -1
  7. data/lib/adiwg/mdtranslator/readers/mdJson/mdJson_validator.rb +2 -2
  8. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_entity.rb +9 -0
  9. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_entityAttribute.rb +9 -0
  10. data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_mdJson.rb +7 -2
  11. data/lib/adiwg/mdtranslator/readers/mdJson/readme.md +2 -2
  12. data/lib/adiwg/mdtranslator/version.rb +5 -1
  13. data/lib/adiwg/mdtranslator/writers/html/html_writer.rb +43 -0
  14. data/lib/adiwg/mdtranslator/writers/html/md_html_writer.rb +25 -0
  15. data/lib/adiwg/mdtranslator/writers/html/readme.md +10 -0
  16. data/lib/adiwg/mdtranslator/writers/iso/classes/class_aggregateInformation.rb +3 -3
  17. data/lib/adiwg/mdtranslator/writers/iso/classes/class_boundingPolygon.rb +4 -4
  18. data/lib/adiwg/mdtranslator/writers/iso/classes/class_citation.rb +4 -4
  19. data/lib/adiwg/mdtranslator/writers/iso/classes/class_contact.rb +3 -3
  20. data/lib/adiwg/mdtranslator/writers/iso/classes/class_dataIdentification.rb +17 -17
  21. data/lib/adiwg/mdtranslator/writers/iso/classes/class_dataQuality.rb +2 -2
  22. data/lib/adiwg/mdtranslator/writers/iso/classes/class_date.rb +1 -1
  23. data/lib/adiwg/mdtranslator/writers/iso/classes/class_digitalTransferOptions.rb +2 -2
  24. data/lib/adiwg/mdtranslator/writers/iso/classes/class_distribution.rb +1 -1
  25. data/lib/adiwg/mdtranslator/writers/iso/classes/class_distributor.rb +4 -4
  26. data/lib/adiwg/mdtranslator/writers/iso/classes/class_extent.rb +4 -4
  27. data/lib/adiwg/mdtranslator/writers/iso/classes/class_featureAttribute.rb +3 -3
  28. data/lib/adiwg/mdtranslator/writers/iso/classes/class_featureType.rb +11 -2
  29. data/lib/adiwg/mdtranslator/writers/iso/classes/class_genericMetaData.rb +2 -2
  30. data/lib/adiwg/mdtranslator/writers/iso/classes/class_geographicDescription.rb +1 -1
  31. data/lib/adiwg/mdtranslator/writers/iso/classes/class_geographicElement.rb +2 -2
  32. data/lib/adiwg/mdtranslator/writers/iso/classes/class_identifier.rb +1 -1
  33. data/lib/adiwg/mdtranslator/writers/iso/classes/class_keyword.rb +2 -2
  34. data/lib/adiwg/mdtranslator/writers/iso/classes/class_legalConstraints.rb +1 -1
  35. data/lib/adiwg/mdtranslator/writers/iso/classes/class_lineage.rb +2 -2
  36. data/lib/adiwg/mdtranslator/writers/iso/classes/class_maintenanceInformation.rb +2 -2
  37. data/lib/adiwg/mdtranslator/writers/iso/classes/class_medium.rb +2 -2
  38. data/lib/adiwg/mdtranslator/writers/iso/classes/class_metadataExtension.rb +4 -4
  39. data/lib/adiwg/mdtranslator/writers/iso/classes/class_multiGeometry.rb +3 -3
  40. data/lib/adiwg/mdtranslator/writers/iso/classes/class_onlineResource.rb +1 -1
  41. data/lib/adiwg/mdtranslator/writers/iso/classes/class_processStep.rb +1 -1
  42. data/lib/adiwg/mdtranslator/writers/iso/classes/class_referenceSystem.rb +1 -1
  43. data/lib/adiwg/mdtranslator/writers/iso/classes/class_responsibleParty.rb +2 -2
  44. data/lib/adiwg/mdtranslator/writers/iso/classes/class_securityConstraints.rb +1 -1
  45. data/lib/adiwg/mdtranslator/writers/iso/classes/class_source.rb +2 -2
  46. data/lib/adiwg/mdtranslator/writers/iso/classes/class_taxonSystem.rb +4 -4
  47. data/lib/adiwg/mdtranslator/writers/iso/classes/class_temporalExtent.rb +2 -2
  48. data/lib/adiwg/mdtranslator/writers/iso/classes/class_usage.rb +1 -1
  49. data/lib/adiwg/mdtranslator/writers/iso/classes/class_vouchers.rb +1 -1
  50. data/lib/adiwg/mdtranslator/writers/iso19110/class_FCfeatureCatalogue.rb +159 -147
  51. data/lib/adiwg/mdtranslator/writers/iso19110/iso19110_writer.rb +17 -23
  52. data/lib/adiwg/mdtranslator/writers/iso19115_2/class_MImetadata.rb +11 -10
  53. data/lib/adiwg/mdtranslator/writers/iso19115_2/iso19115_2_writer.rb +97 -103
  54. data/lib/adiwg/mdtranslator/writers/mdWriters.rb +1 -11
  55. data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_additionalDocumentation.rb +4 -4
  56. data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_address.rb +3 -3
  57. data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_associatedResource.rb +4 -4
  58. data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_browseGraphic.rb +3 -3
  59. data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_citation.rb +4 -4
  60. data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_contact.rb +4 -4
  61. data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_dictionaryInfo.rb +4 -4
  62. data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_domain.rb +4 -4
  63. data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_onlineResource.rb +3 -3
  64. data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_phone.rb +3 -3
  65. data/test/readers/mdJson/{v0_9 → v1_0}/tc_reader_mdjson_responsibleParty.rb +3 -3
  66. data/test/readers/mdJson/{v0_9 → v1_0}/tc_translation.rb +4 -4
  67. data/test/schemas/v1_0/.gitignore +18 -0
  68. data/test/schemas/v1_0/.travis.yml +7 -0
  69. data/test/schemas/v1_0/CREDITS +3 -0
  70. data/test/schemas/v1_0/Gemfile +4 -0
  71. data/test/schemas/v1_0/LICENSE +24 -0
  72. data/test/schemas/v1_0/README.md +36 -0
  73. data/test/schemas/v1_0/Rakefile +12 -0
  74. data/test/schemas/v1_0/adiwg-json_schemas.gemspec +25 -0
  75. data/test/schemas/v1_0/examples/additionalDocumentation.json +61 -0
  76. data/test/schemas/v1_0/examples/address.json +10 -0
  77. data/test/schemas/v1_0/examples/associatedResource.json +119 -0
  78. data/test/schemas/v1_0/examples/citation.json +128 -0
  79. data/test/schemas/v1_0/examples/contact.json +205 -0
  80. data/test/schemas/v1_0/examples/contactRef.json +12 -0
  81. data/test/schemas/v1_0/examples/dataDictionary.json +547 -0
  82. data/test/schemas/v1_0/examples/dataQuality.json +272 -0
  83. data/test/schemas/v1_0/examples/date.json +19 -0
  84. data/test/schemas/v1_0/examples/distributor.json +113 -0
  85. data/test/schemas/v1_0/examples/extent_linestring.json +288 -0
  86. data/test/schemas/v1_0/examples/extent_point.json +246 -0
  87. data/test/schemas/v1_0/examples/extent_polygon.json +353 -0
  88. data/test/schemas/v1_0/examples/format.json +14 -0
  89. data/test/schemas/v1_0/examples/full_example.json +2844 -0
  90. data/test/schemas/v1_0/examples/full_example2.json +2325 -0
  91. data/test/schemas/v1_0/examples/geojson.json +446 -0
  92. data/test/schemas/v1_0/examples/graphicOverview.json +28 -0
  93. data/test/schemas/v1_0/examples/hierarchyLevel.json +90 -0
  94. data/test/schemas/v1_0/examples/keywords.json +144 -0
  95. data/test/schemas/v1_0/examples/lcc_project_example.json +326 -0
  96. data/test/schemas/v1_0/examples/legalConstraints.json +17 -0
  97. data/test/schemas/v1_0/examples/maintInfo.json +34 -0
  98. data/test/schemas/v1_0/examples/metadataInfo.json +103 -0
  99. data/test/schemas/v1_0/examples/minimum_example.json +35 -0
  100. data/test/schemas/v1_0/examples/onlineResource.json +17 -0
  101. data/test/schemas/v1_0/examples/resolution.json +9 -0
  102. data/test/schemas/v1_0/examples/resourceInfo.json +1264 -0
  103. data/test/schemas/v1_0/examples/resourceMaintenance.json +10 -0
  104. data/test/schemas/v1_0/examples/securityConstraints.json +13 -0
  105. data/test/schemas/v1_0/examples/spatialRef.json +14 -0
  106. data/test/schemas/v1_0/examples/taxonomy.json +197 -0
  107. data/test/schemas/v1_0/examples/temporalElement.json +29 -0
  108. data/test/schemas/v1_0/examples/uri.json +16 -0
  109. data/test/schemas/v1_0/examples/usage.json +35 -0
  110. data/test/schemas/v1_0/examples/verticalExtent.json +18 -0
  111. data/test/schemas/v1_0/lib/adiwg/mdjson_schemas/utils.rb +20 -0
  112. data/test/schemas/v1_0/lib/adiwg/mdjson_schemas/validator.rb +42 -0
  113. data/test/schemas/v1_0/lib/adiwg/mdjson_schemas/version.rb +6 -0
  114. data/test/schemas/v1_0/lib/adiwg/mdjson_schemas.rb +7 -0
  115. data/test/schemas/v1_0/lib/adiwg-mdjson_schemas.rb +1 -0
  116. data/test/schemas/v1_0/schema/schema/citation.json +186 -0
  117. data/test/schemas/v1_0/schema/schema/contact.json +255 -0
  118. data/test/schemas/v1_0/schema/schema/dataDictionary.json +209 -0
  119. data/test/schemas/v1_0/schema/schema/dataQuality.json +159 -0
  120. data/test/schemas/v1_0/schema/schema/distributor.json +171 -0
  121. data/test/schemas/v1_0/schema/schema/extent.json +214 -0
  122. data/test/schemas/v1_0/schema/schema/geojson/bbox.json +14 -0
  123. data/test/schemas/v1_0/schema/schema/geojson/crs.json +99 -0
  124. data/test/schemas/v1_0/schema/schema/geojson/geojson.json +194 -0
  125. data/test/schemas/v1_0/schema/schema/geojson/geometry.json +203 -0
  126. data/test/schemas/v1_0/schema/schema/graphicOverview.json +42 -0
  127. data/test/schemas/v1_0/schema/schema/keyword.json +39 -0
  128. data/test/schemas/v1_0/schema/schema/maintInfo.json +43 -0
  129. data/test/schemas/v1_0/schema/schema/metadata.json +173 -0
  130. data/test/schemas/v1_0/schema/schema/onlineResource.json +42 -0
  131. data/test/schemas/v1_0/schema/schema/resolution.json +51 -0
  132. data/test/schemas/v1_0/schema/schema/resourceConstraint.json +108 -0
  133. data/test/schemas/v1_0/schema/schema/resourceInfo.json +305 -0
  134. data/test/schemas/v1_0/schema/schema/taxonomy.json +122 -0
  135. data/test/schemas/v1_0/schema/schema/usage.json +39 -0
  136. data/test/schemas/v1_0/schema/schema.json +64 -0
  137. data/test/schemas/v1_0/templates/mdJson_template.json +1065 -0
  138. data/test/schemas/v1_0/test/draft-04.json +189 -0
  139. data/test/schemas/v1_0/test/tc_schemas.rb +210 -0
  140. data/test/schemas/v1_0/test/tc_utils.rb +27 -0
  141. metadata +241 -90
  142. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_additionalDocumentation.rb +0 -0
  143. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_address.rb +0 -0
  144. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_associatedResource.rb +0 -0
  145. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_boundingBox.rb +0 -0
  146. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_browseGraphic.rb +0 -0
  147. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_citation.rb +0 -0
  148. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_contacts.rb +0 -0
  149. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_coordinates.rb +0 -0
  150. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_dataDictionary.rb +0 -0
  151. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_dataQuality.rb +0 -0
  152. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_dateTime.rb +0 -0
  153. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_descriptiveKeyword.rb +0 -0
  154. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_dictionaryInfo.rb +0 -0
  155. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_distributionInfo.rb +0 -0
  156. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_domain.rb +0 -0
  157. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_domainItem.rb +0 -0
  158. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_entityForeignKey.rb +0 -0
  159. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_entityIndex.rb +0 -0
  160. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_extent.rb +0 -0
  161. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_geoCoordSystem.rb +0 -0
  162. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_geoProperties.rb +0 -0
  163. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_geographicElement.rb +0 -0
  164. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_legalConstraint.rb +0 -0
  165. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_lineString.rb +0 -0
  166. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_lineage.rb +0 -0
  167. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_metadata.rb +0 -0
  168. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_metadataExtension.rb +0 -0
  169. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_metadataInfo.rb +0 -0
  170. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_onlineResource.rb +0 -0
  171. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_phone.rb +0 -0
  172. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_point.rb +0 -0
  173. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_polygon.rb +0 -0
  174. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_processStep.rb +0 -0
  175. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_resolution.rb +0 -0
  176. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_resourceFormat.rb +0 -0
  177. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_resourceIdentifier.rb +0 -0
  178. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_resourceInfo.rb +0 -0
  179. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_resourceMaintenance.rb +0 -0
  180. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_resourceSpecificUsage.rb +0 -0
  181. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_responsibleParty.rb +0 -0
  182. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_securityConstraint.rb +0 -0
  183. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_source.rb +0 -0
  184. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_spatialReference.rb +0 -0
  185. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_taxonClass.rb +0 -0
  186. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_taxonomy.rb +0 -0
  187. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_temporalElement.rb +0 -0
  188. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_timeInstant.rb +0 -0
  189. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_timePeriod.rb +0 -0
  190. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_verticalElement.rb +0 -0
  191. /data/lib/adiwg/mdtranslator/readers/mdJson/{modules_0.9 → modules_1.0}/module_voucher.rb +0 -0
@@ -0,0 +1,173 @@
1
+ {
2
+ "id": "metadata.json#",
3
+ "$schema": "http://json-schema.org/draft-04/schema#",
4
+ "description": "The main body of the metadata record.",
5
+ "type": "object",
6
+ "example": "../../examples/full_example.json#/metadata",
7
+ "translation": {
8
+ "ISO 19115-2": ["MI_Metadata"],
9
+ "FGDC CSDGM": ["metadata"]
10
+ },
11
+ "required": ["resourceInfo"],
12
+ "additionalProperties": false,
13
+ "properties": {
14
+ "metadataInfo": {
15
+ "type": "object",
16
+ "description": "General information about the metadata record.",
17
+ "example": "../../examples/full_example.json#/metadata/metadataInfo",
18
+ "required": ["metadataContact", "metadataCreationDate"],
19
+ "additionalProperties": false,
20
+ "properties": {
21
+ "metadataIdentifier": {
22
+ "description": "Unique identifier for this metadata file.",
23
+ "translation": {
24
+ "ISO 19115-2": ["MI_Metadata > fileIdentifier"]
25
+ },
26
+ "$ref": "citation.json#/definitions/identifier"
27
+ },
28
+ "parentMetadata": {
29
+ "description": "Identifier of the metadata to which this metadata is a subset (child).",
30
+ "translation": {
31
+ "ISO 19115-2": ["MI_Metadata > parentIdentifier"]
32
+ },
33
+ "$ref": "citation.json#/definitions/citationFull"
34
+ },
35
+ "metadataContact": {
36
+ "type": "array",
37
+ "description": "Person or organization responsible for metadata information (metadata custodian).",
38
+ "translation": {
39
+ "ISO 19115-2": ["MI_Metadata > contact > CI_Contact > responsibleParty > CI_ResponsibleParty"],
40
+ "FGDC CSDGM": ["metainfo > metc > cntinfo"]
41
+ },
42
+ "minItems": 1,
43
+ "items": {
44
+ "$ref": "contact.json#/definitions/contactRef"
45
+ }
46
+ },
47
+ "metadataCharacterSet": {
48
+ "type": "string",
49
+ "description": "Full name of the character coding standard used for the metadata set.",
50
+ "translation": {
51
+ "ISO 19115-2": ["MI_Metadata > characterSet [MD_CharacterSetCode]"]
52
+ }
53
+ },
54
+ "metadataCreationDate": {
55
+ "$ref": "../schema.json#/definitions/date",
56
+ "description": "Date that the metadata was created.",
57
+ "translation": {
58
+ "ISO 19115-2": ["MI_Metadata > dateStamp"],
59
+ "FGDC CSDGM": ["metainfo > metd"]
60
+ }
61
+ },
62
+ "metadataLastUpdate": {
63
+ "$ref": "../schema.json#/definitions/date",
64
+ "description": "Date that the metadata was updated.",
65
+ "translation": {
66
+ "ISO 19115-2": ["MI_Metadata > dateStamp"],
67
+ "FGDC CSDGM": ["metainfo > metrd"]
68
+ }
69
+ },
70
+ "metadataUri": {
71
+ "$ref": "../schema.json#/definitions/uri",
72
+ "description": "Uniform Resource Identifier (URI) of the metadata record."
73
+ },
74
+ "metadataStatus": {
75
+ "type": "string",
76
+ "description": "Status of the metadata record."
77
+ },
78
+ "metadataMaintenance": {
79
+ "description": "Provides information about the frequency of metadata updates, and the scope of those updates.",
80
+ "translation": {
81
+ "ISO 19115-2": ["MI_Metadata > metadataMaintenance > MD_MaintenanceInformation"]
82
+ },
83
+ "$ref": "maintInfo.json#"
84
+ }
85
+ }
86
+ },
87
+ "resourceInfo": {
88
+ "translation": {
89
+ "ISO 19115-2": ["MD_Metadata > identificationInfo > MD_DataIdentification"],
90
+ "FGDC CSDGM": ["idinfo"]
91
+ },
92
+ "$ref": "resourceInfo.json#"
93
+ },
94
+ "distributionInfo": {
95
+ "type": "array",
96
+ "description": "Information about the distributor of and options for obtaining the resource.",
97
+ "example": "../../examples/full_example.json#/metadata/distributionInfo",
98
+ "translation": {
99
+ "ISO 19115-2": ["MD_Metadata > distribution > MD_Distribution"],
100
+ "FGDC CSDGM": ["distinfo"]
101
+ },
102
+ "items": {
103
+ "$ref": "distributor.json#"
104
+ }
105
+ },
106
+ "associatedResource": {
107
+ "type": "array",
108
+ "description": "Information about a resource related to the data resource, such as: study, dataset, project, etc. An associated resource may be a child reference, or reference a larger work, such as an initiative.",
109
+ "example": "../../examples/full_example.json#/metadata/associatedResource",
110
+ "translation": {
111
+ "ISO 19115-2": ["MD_DataIdentification > aggregationInfo > MD_AggregateInformation"],
112
+ "FGDC CSDGM": ["idinfo > crossref"]
113
+ },
114
+ "items": {
115
+ "type": "object",
116
+ "required": ["associationType", "resourceType"],
117
+ "additionalProperties": false,
118
+ "properties": {
119
+ "associationType": {
120
+ "type": "string",
121
+ "description": "Identifies the type of association, such as: source, cross reference, etc.",
122
+ "translation": {
123
+ "ISO 19115-2": ["MD_AggregateInformation > associationType [DS_AssociationTypeCode]"]
124
+ }
125
+ },
126
+ "initiativeType": {
127
+ "type": "string",
128
+ "description": "Identifies type of initiative under which the resource was produced - the activity that resulted in the resource.",
129
+ "translation": {
130
+ "ISO 19115-2": ["MD_AggregateInformation > initiativeType > [DS_InitiativeTypeCode]"]
131
+ }
132
+ },
133
+ "resourceType": {
134
+ "type": "string",
135
+ "description": "Identifies the type of resource, such as: a dataset, study, publication, etc."
136
+ },
137
+ "resourceCitation": {
138
+ "description": "Citation for the associated resource.",
139
+ "translation": {
140
+ "ISO 19115-2": ["MD_AggregateInformation > aggregateDataSetName > CI_Citation"],
141
+ "FGDC CSDGM": ["idinfo > crossref > citeinfo"]
142
+ },
143
+ "$ref": "citation.json#"
144
+ },
145
+ "metadataCitation": {
146
+ "description": "Citation for the associated resource metadata.",
147
+ "$ref": "citation.json#"
148
+ }
149
+ }
150
+ }
151
+ },
152
+ "additionalDocumentation": {
153
+ "type": "array",
154
+ "description": "Additional references associated with the resource, such as: web sites, documents for additional reading, etc.",
155
+ "translation": {
156
+ "ISO 19115-2": ["MD_DataIdentification > aggregationInfo > MD_AggregateInformation > aggregateDataSetName > CI_Citation"],
157
+ "FGDC CSDGM": ["idinfo > crossref "]
158
+ },
159
+ "items": {
160
+ "required": ["citation"],
161
+ "properties": {
162
+ "resourceType": {
163
+ "type": "string",
164
+ "description": "Identifies the type of resource, such as: userGuide, website, report, etc."
165
+ },
166
+ "citation": {
167
+ "$ref": "citation.json#"
168
+ }
169
+ }
170
+ }
171
+ }
172
+ }
173
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "id": "onlineResource.json#",
3
+ "$schema": "http://json-schema.org/draft-04/schema#",
4
+ "type": "object",
5
+ "description": "Information about accessing online resources and services.",
6
+ "example": "../../examples/full_example.json#/contact/1/onlineResource",
7
+ "required": ["uri"],
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "uri": {
11
+ "$ref": "../schema.json#/definitions/uri"
12
+ },
13
+ "name": {
14
+ "type": "string",
15
+ "description": "Name of the online resource.",
16
+ "translation": {
17
+ "ISO 19115-2": ["CI_OnlineResource > name"]
18
+ }
19
+ },
20
+ "protocol": {
21
+ "type": "string",
22
+ "description": "The connection protocol to be used such as: ftp, http, etc.",
23
+ "translation": {
24
+ "ISO 19115-2": ["CI_OnlineResource > protocol"]
25
+ }
26
+ },
27
+ "description": {
28
+ "type": "string",
29
+ "description": "Detailed text description of what the online resource is/does.",
30
+ "translation": {
31
+ "ISO 19115-2": ["CI_OnlineResource > description"]
32
+ }
33
+ },
34
+ "function": {
35
+ "type": "string",
36
+ "description": "Function performed by the online resource.",
37
+ "translation": {
38
+ "ISO 19115-2": ["CI_OnlineResource > function > CI_OnlineFunctionCode [codelist]"]
39
+ }
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "id": "resolution.json#",
3
+ "$schema": "http://json-schema.org/draft-04/schema#",
4
+ "description": "Information about the scale of the geographic extent.",
5
+ "example": "../../examples/full_example.json#/metadata/resourceInfo/spatialResolution",
6
+ "translation": {
7
+ "ISO 19115-2": ["MD_Resolution"]
8
+ },
9
+ "anyOf": [
10
+ {
11
+ "type": "object",
12
+ "title": "scaleFactor",
13
+ "description": "Scale of geographic extent",
14
+ "example": "../../examples/full_example.json#/metadata/resourceInfo/spatialResolution",
15
+ "required": ["equivalentScale"],
16
+ "additionalProperties": true,
17
+ "properties": {
18
+ "equivalentScale": {
19
+ "type": "number",
20
+ "description": "Scale of geographic extent expressed in a hardcopy map scale fraction (denominator).",
21
+ "translation": {
22
+ "ISO 19115-2": ["MD_Resolution > equivalentScale > MD_RepresentativeFraction > denominator > Integer"]
23
+ }
24
+ }
25
+ }
26
+ }, {
27
+ "type": "object",
28
+ "title": "distance",
29
+ "example": "../../examples/full_example.json#/metadata/resourceInfo/spatialResolution",
30
+ "description": "Scale of geographic extent expressed in ground distance parameters.",
31
+ "required": ["distance"],
32
+ "additionalProperties": true,
33
+ "properties": {
34
+ "distance": {
35
+ "type": "number",
36
+ "description": "Ground distance measurement representing geographic extent.",
37
+ "translation": {
38
+ "ISO 19115-2": ["MD_Resolution > distance > Distance "]
39
+ }
40
+ },
41
+ "uom": {
42
+ "type": "string",
43
+ "description": "Ground distance units of measure.",
44
+ "translation": {
45
+ "ISO 19115-2": ["MD_Resolution > distance > Distance @uom"]
46
+ }
47
+ }
48
+ }
49
+ }
50
+ ]
51
+ }
@@ -0,0 +1,108 @@
1
+ {
2
+ "id": "resourceConstraint.json#",
3
+ "$schema": "http://json-schema.org/draft-04/schema#",
4
+ "description": "schema for resource constraint",
5
+ "example": "../../examples/full_example.json#/metadata/resourceInfo/constraint",
6
+ "anyOf": [
7
+ {
8
+ "$ref": "#/definitions/useLimitation"
9
+ }, {
10
+ "$ref": "#/definitions/legalConstraint"
11
+ }, {
12
+ "$ref": "#/definitions/securityConstraint"
13
+ }
14
+ ],
15
+ "definitions": {
16
+ "useLimitation": {
17
+ "type": "string",
18
+ "description": "Limitation affecting the fitness for use of the resource or metadata. For example, \"not to be used for navigation\".",
19
+ "example": "../../examples/full_example.json#/metadata/resourceInfo/constraint/useLimitation",
20
+ "translation": {
21
+ "ISO 19115-2": ["MD_Constraints > useLimitation"]
22
+ }
23
+ },
24
+ "legalConstraint": {
25
+ "type": "object",
26
+ "description": "Restrictions and legal prerequisites for accessing and using the resource or metadata.",
27
+ "example": "../../examples/full_example.json#/metadata/resourceInfo/constraint/legalConstraint",
28
+ "translation": {
29
+ "ISO 19115-2": ["MD_LegalConstraints"]
30
+ },
31
+ "additionalProperties": false,
32
+ "properties": {
33
+ "accessConstraint": {
34
+ "type": "array",
35
+ "description": "Access constraints applied to assure the protection of privacy or intellectual property, and any special restrictions or limitations on obtaining the resource or metadata.",
36
+ "translation": {
37
+ "ISO 19115-2": ["MD_LegalConstraints > accessConstraints [MD_RestrictionCode]"],
38
+ "FGDC CSDGM": ["idinfo > accconst"]
39
+ },
40
+ "items": {
41
+ "type": "string"
42
+ }
43
+ },
44
+ "useConstraint": {
45
+ "type": "array",
46
+ "description": "Constraints applied to assure the protection of privacy or intellectual property, and any special restrictions or limitations or warnings on using the resource or metadata.",
47
+ "translation": {
48
+ "ISO 19115-2": ["MD_LegalConstraints > useConstraints [MD_RestrictionCode]"],
49
+ "FGDC CSDGM": ["idinfo > useconst"]
50
+ },
51
+ "items": {
52
+ "type": "string"
53
+ }
54
+ },
55
+ "otherConstraint": {
56
+ "type": "array",
57
+ "description": "Other restrictions and legal prerequisites for accessing and using the resource or metadata.",
58
+ "translation": {
59
+ "ISO 19115-2": ["MD_LegalConstraints > otherConstraints"]
60
+ },
61
+ "items": {
62
+ "type": "string"
63
+ }
64
+ }
65
+ }
66
+ },
67
+ "securityConstraint": {
68
+ "type": "object",
69
+ "description": "Handling restrictions imposed on the resource or metadata for national security or similar security concerns.",
70
+ "example": "../../examples/full_example.json#/metadata/resourceInfo/constraint/securityConstraint",
71
+ "translation": {
72
+ "ISO 19115-2": ["MD_SecurityConstraints"]
73
+ },
74
+ "required": ["classification"],
75
+ "additionalProperties": false,
76
+ "properties": {
77
+ "classification": {
78
+ "type": "string",
79
+ "description": "Name of the handling restrictions on the resource or metadata.",
80
+ "translation": {
81
+ "ISO 19115-2": ["MD_SecurityConstraints > classification [MD_ClassificationCode]"]
82
+ }
83
+ },
84
+ "userNote": {
85
+ "type": "string",
86
+ "description": "Explanation of the application of the legal constraints or other restrictions and legal prerequisites for obtaining and using the resource or metadata.",
87
+ "translation": {
88
+ "ISO 19115-2": ["MD_SecurityConstraints > userNote"]
89
+ }
90
+ },
91
+ "classificationSystem": {
92
+ "type": "string",
93
+ "description": "Name of the classification system associated with a security constraint.",
94
+ "translation": {
95
+ "ISO 19115-2": ["MD_SecurityConstraints > classificationSystem"]
96
+ }
97
+ },
98
+ "handlingDescription": {
99
+ "type": "string",
100
+ "description": "Additional description regarding the security handling of the resource or metadata.",
101
+ "translation": {
102
+ "ISO 19115-2": ["MD_SecurityConstraints > handlingDescription"]
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }
@@ -0,0 +1,305 @@
1
+ {
2
+ "id": "resourceInfo.json#",
3
+ "$schema": "http://json-schema.org/draft-04/schema#",
4
+ "description": "Information about the resource.",
5
+ "type": "object",
6
+ "example": "../../examples/full_example.json#/metadata/resourceInfo",
7
+ "translation": {
8
+ "ISO 19115-2": ["MD_DataIdentification"],
9
+ "FGDC CSDGM": ["idinfo"]
10
+ },
11
+ "required": ["resourceType", "citation", "abstract", "status", "language", "pointOfContact"],
12
+ "additionalProperties": false,
13
+ "properties": {
14
+ "resourceType": {
15
+ "type": "string",
16
+ "description": "Identifies the type of resource, such as: a dataset, study, publication, etc.",
17
+ "translation": {
18
+ "ISO 19115-2": ["MI_Metadata > hierarchyLevel [MD_ScopeCode]"]
19
+ }
20
+ },
21
+ "citation": {
22
+ "description": "Citation for the resource.",
23
+ "translation": {
24
+ "ISO 19115-2": ["MD_DataIdentification > citation > CI_Citation"],
25
+ "FGDC CSDGM": ["idinfo > citation"]
26
+ },
27
+ "$ref": "citation.json#"
28
+ },
29
+ "resourceTimePeriod": {
30
+ "description": "Time period for the resource, e.g. project start and end date(s).",
31
+ "translation": {
32
+ "ISO 19115-2": ["EX_Extent > temporalElement > EX_TemporalExtent > extent > TimePeriod"]
33
+ },
34
+ "$ref": "extent.json#/definitions/timePeriod"
35
+ },
36
+ "pointOfContact": {
37
+ "type": "array",
38
+ "description": "Identification of, and means of communication with, person(s) and organizations that may be contacted for acquiring knowledge about or acquisition of the resource.",
39
+ "translation": {
40
+ "ISO 19115-2": ["MD_DataIdentification > pointOfContact"]
41
+ },
42
+ "minItems": 1,
43
+ "uniqueItems": true,
44
+ "items": {
45
+ "$ref": "contact.json#/definitions/contactRef"
46
+ }
47
+ },
48
+ "abstract": {
49
+ "type": "string",
50
+ "description": "Brief narrative summary of the content of the resource.",
51
+ "translation": {
52
+ "ISO 19115-2": ["MD_DataIdentification > abstract"],
53
+ "FGDC CSDGM": ["idinfo > descript > abstract"]
54
+ }
55
+ },
56
+ "shortAbstract": {
57
+ "type": "string",
58
+ "description": "A short description of the resource. Max of 300 characters."
59
+ },
60
+ "status": {
61
+ "type": "string",
62
+ "description": "Status of the resource.",
63
+ "translation": {
64
+ "ISO 19115-2": ["MD_DataIdentification > status"],
65
+ "FGDC CSDGM": ["idinfo > status > progress"]
66
+ }
67
+ },
68
+ "hasMapLocation": {
69
+ "type": "boolean",
70
+ "description": "A flag indicating that a resource has a geographic location associated with it and therefore can be located using a map interface."
71
+ },
72
+ "hasDataAvailable": {
73
+ "type": "boolean",
74
+ "description": "A flag to indicate whether data for this resource is available for distribution."
75
+ },
76
+ "language": {
77
+ "type": "array",
78
+ "description": "Language(s) used within the resource. Should be a valid ISO 639-3 code.",
79
+ "translation": {
80
+ "ISO 19115-2": ["MD_DataIdentification > language"]
81
+ },
82
+ "items": {
83
+ "type": "string"
84
+ }
85
+ },
86
+ "purpose": {
87
+ "type": "string",
88
+ "description": "A summary of intentions for which the resource was created.",
89
+ "translation": {
90
+ "ISO 19115-2": ["MD_DataIdentification > purpose"],
91
+ "FGDC CSDGM": ["idinfo > descript > purpose"]
92
+ }
93
+ },
94
+ "credit": {
95
+ "type": "array",
96
+ "description": "A narrative identification of additional resources credited for the resource.",
97
+ "translation": {
98
+ "ISO 19115-2": ["MD_DataIdentification > credit"],
99
+ "FGDC CSDGM": ["idinfo > datacred"]
100
+ },
101
+ "items": {
102
+ "type": "string"
103
+ }
104
+ },
105
+ "topicCategory": {
106
+ "type": "array",
107
+ "description": "General theme keyword of the resource, such as: oceans, biota atmosphere, etc.",
108
+ "translation": {
109
+ "ISO 19115-2": ["MD_DataIdentification > topicCategory"]
110
+ },
111
+ "items": {
112
+ "type": "string"
113
+ }
114
+ },
115
+ "environmentDescription": {
116
+ "type": "string",
117
+ "description": "Description of the dataset in the producer's processing environment, including items such as the software, the computer, the computer operating system, file name, and the dataset size.",
118
+ "translation": {
119
+ "ISO 19115-2": ["MD_DataIdentification > environmentDescription"],
120
+ "FGDC CSDGM": ["idinfo > native"]
121
+ }
122
+ },
123
+ "resourceNativeFormat": {
124
+ "type": "array",
125
+ "description": "Provides a description of the format of the resource(s).",
126
+ "translation": {
127
+ "ISO 19115-2": ["MD_DataIdentification > resourceFormat > MD_Format"]
128
+ },
129
+ "minItems": 1,
130
+ "uniqueItems": true,
131
+ "items": {
132
+ "$ref": "distributor.json#/definitions/format"
133
+ }
134
+ },
135
+ "keyword": {
136
+ "type": "array",
137
+ "description": "Provides category keywords, their type, and reference source.",
138
+ "translation": {
139
+ "ISO 19115-2": ["MD_DataIdentification > descriptiveKeywords > MD_Keywords"],
140
+ "FGDC CSDGM": ["idinfo > keywords"]
141
+ },
142
+ "uniqueItems": true,
143
+ "items": {
144
+ "$ref": "keyword.json"
145
+ }
146
+ },
147
+ "resourceMaintenance": {
148
+ "type": "array",
149
+ "description": "Information about the maintenance of the resource.",
150
+ "translation": {
151
+ "ISO 19115-2": ["MD_DataIdentification > resourceMaintenance > MD_MaintenanceInformation"]
152
+ },
153
+ "items": {
154
+ "$ref": "maintInfo.json#"
155
+ }
156
+ },
157
+ "resourceSpecificUsage": {
158
+ "type": "array",
159
+ "description": "Description of ways in which the resource is currently or has been used.",
160
+ "translation": {
161
+ "ISO 19115-2": ["MD_DataIdentification > resourceSpecificUsage > MD_Usage"]
162
+ },
163
+ "uniqueItems": true,
164
+ "items": {
165
+ "$ref": "usage.json"
166
+ }
167
+ },
168
+ "graphicOverview": {
169
+ "type": "array",
170
+ "description": "A browse graphic associated with the resource in which to gain an at-a-glance referencing for the resource, such as geographic location and extent.",
171
+ "translation": {
172
+ "ISO 19115-2": ["MD_DataIdentification > graphicOverview > MD_BrowseGraphic"]
173
+ },
174
+ "items": {
175
+ "$ref": "graphicOverview.json#"
176
+ }
177
+ },
178
+ "constraint": {
179
+ "type": "object",
180
+ "description": "Provides information about constraints to the use of the resource.",
181
+ "translation": {
182
+ "ISO 19115-2": ["MD_DataIdentification > resourceConstraints"]
183
+ },
184
+ "properties": {
185
+ "useLimitation": {
186
+ "type": "array",
187
+ "example": "../../examples/full_example.json#/metadata/resourceInfo/constraint",
188
+ "translation": {
189
+ "ISO 19115-2": ["MD_DataIdentification > resourceConstraints > MD_Constraints[useLimitation]"]
190
+ },
191
+ "items": {
192
+ "$ref": "resourceConstraint.json#/definitions/useLimitation"
193
+ }
194
+ },
195
+ "legalConstraint": {
196
+ "type": "array",
197
+ "example": "../../examples/full_example.json#/metadata/resourceInfo/constraint/legalConstraint",
198
+ "translation": {
199
+ "ISO 19115-2": ["MI_Metadata > resourceConstraints > MD_LegalConstraints"]
200
+ },
201
+ "items": {
202
+ "$ref": "resourceConstraint.json#/definitions/legalConstraint"
203
+ }
204
+ },
205
+ "securityConstraint": {
206
+ "type": "array",
207
+ "example": "../../examples/full_example.json#/metadata/resourceInfo/constraint/securityConstraint",
208
+ "translation": {
209
+ "ISO 19115-2": ["MI_Metadata > resourceConstraints > MD_SecurityConstraints"]
210
+ },
211
+ "items": {
212
+ "$ref": "resourceConstraint.json#/definitions/securityConstraint"
213
+ }
214
+ }
215
+ }
216
+ },
217
+ "taxonomy": {
218
+ "translation": {
219
+ "ISO 19115-2": ["MD_DataIdentification > taxonomy"],
220
+ "FGDC CSDGM": ["idinfo > taxonomy"]
221
+ },
222
+ "$ref": "taxonomy.json"
223
+ },
224
+ "spatialReferenceSystem": {
225
+ "description": "Geospatial referencing system associated with describing the geospatial extent of the data resource. The referencing can be provided indirectly by an EPSG number, a named reference, or providing the parameters in a well known text (WKT) format.",
226
+ "example": "../../examples/spatialRef.json",
227
+ "translation": {
228
+ "ISO 19115-2": ["MD_Metadata > referenceSystemInfo > MD_ReferenceSystem > referenceSystemIdentifier > RS_Identifier > code"]
229
+ },
230
+ "type": "object",
231
+ "properties": {
232
+ "name": {
233
+ "type": "array",
234
+ "description": "A recognized reference system name.",
235
+ "items": {
236
+ "type": "string"
237
+ }
238
+ },
239
+ "epsgNumber": {
240
+ "type": "array",
241
+ "description": "The EPSG Geodetic Parameter Dataset of the reference system, see epsg-registry.org.",
242
+ "items": {
243
+ "type": "integer"
244
+ }
245
+ },
246
+ "wkt": {
247
+ "type": "array",
248
+ "description": "Well-known text representation of the reference system.",
249
+ "items": {
250
+ "type": "string"
251
+ }
252
+ }
253
+ }
254
+ },
255
+ "spatialRepresentation": {
256
+ "type": "array",
257
+ "description": "Format of the resource geographic extent, such as: vector, grid, etc.",
258
+ "translation": {
259
+ "ISO 19115-2": ["MD_DataIdenification > spatialRepresentationType [MD_SpatialRepresentationTypeCode]"],
260
+ "FGDC CSDGM": ["spdoinfo"]
261
+ },
262
+ "items": {
263
+ "type": "string"
264
+ }
265
+ },
266
+ "spatialResolution": {
267
+ "type": "array",
268
+ "description": "Information about the scale of the geographic extent.",
269
+ "translation": {
270
+ "ISO 19115-2": ["MD_DataIdenification > spatialResolution > MD_Resolution"]
271
+ },
272
+ "items": {
273
+ "$ref": "resolution.json"
274
+ }
275
+ },
276
+ "extent": {
277
+ "type": "array",
278
+ "description": "Information about the geographic extent of the resource. A resource may have multiple extents.",
279
+ "translation": {
280
+ "ISO 19115-2": ["MD_DataIdentification > extent > EX_Extent"]
281
+ },
282
+ "items": {
283
+ "$ref": "extent.json"
284
+ }
285
+ },
286
+ "dataQualityInfo": {
287
+ "type": "array",
288
+ "description": "Information about the quality of the resource.",
289
+ "translation": {
290
+ "ISO 19115-2": ["MI_Metadata > dataQualityInfo > DQ_DataQuality"],
291
+ "FGDC CSDGM": ["dataqual"]
292
+ },
293
+ "items": {
294
+ "$ref": "dataQuality.json#"
295
+ }
296
+ },
297
+ "supplementalInfo": {
298
+ "type": "string",
299
+ "description": "Any other descriptive information about the dataset.",
300
+ "translation": {
301
+ "ISO 19115-2": ["MD_DataIdentification > supplementalInfo"]
302
+ }
303
+ }
304
+ }
305
+ }