adiwg-mdtranslator 0.10.2 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -4
  3. data/Rakefile +4 -1
  4. data/adiwg-mdtranslator.gemspec +10 -8
  5. data/bin/mdtranslator +8 -2
  6. data/lib/adiwg/mdtranslator.rb +72 -147
  7. data/lib/adiwg/mdtranslator/internal/internal_metadata_obj.rb +538 -538
  8. data/lib/adiwg/mdtranslator/internal/module_dateTimeFun.rb +78 -78
  9. data/lib/adiwg/mdtranslator/readers/mdJson/mdJson_reader.rb +153 -74
  10. data/lib/adiwg/mdtranslator/readers/mdJson/mdJson_validator.rb +41 -108
  11. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_additionalDocumentation.rb +54 -0
  12. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_address.rb +89 -0
  13. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_associatedResource.rb +82 -0
  14. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_boundingBox.rb +62 -0
  15. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_browseGraphic.rb +69 -0
  16. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_citation.rb +122 -0
  17. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_contacts.rb +150 -0
  18. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_coordinates.rb +63 -0
  19. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_dataDictionary.rb +63 -0
  20. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_dataQuality.rb +51 -0
  21. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_dateTime.rb +38 -0
  22. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_descriptiveKeyword.rb +60 -0
  23. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_dictionaryInfo.rb +63 -0
  24. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_distributionInfo.rb +161 -0
  25. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_domain.rb +73 -0
  26. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_domainItem.rb +53 -0
  27. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_entity.rb +103 -0
  28. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_entityAttribute.rb +102 -0
  29. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_entityForeignKey.rb +54 -0
  30. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_entityIndex.rb +53 -0
  31. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_extent.rb +73 -0
  32. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_geoCoordSystem.rb +57 -0
  33. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_geoProperties.rb +100 -0
  34. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_geographicElement.rb +179 -0
  35. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_legalConstraint.rb +56 -0
  36. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_lineString.rb +36 -0
  37. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_lineage.rb +61 -0
  38. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_mdJson.rb +69 -0
  39. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_metadata.rb +88 -0
  40. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_metadataExtension.rb +51 -0
  41. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_metadataInfo.rb +123 -0
  42. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_onlineResource.rb +79 -0
  43. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_phone.rb +79 -0
  44. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_point.rb +36 -0
  45. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_polygon.rb +66 -0
  46. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_processStep.rb +75 -0
  47. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_resolution.rb +53 -0
  48. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_resourceFormat.rb +46 -0
  49. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_resourceIdentifier.rb +60 -0
  50. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_resourceInfo.rb +328 -0
  51. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_resourceMaintenance.rb +61 -0
  52. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_resourceSpecificUsage.rb +61 -0
  53. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_responsibleParty.rb +48 -0
  54. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_securityConstraint.rb +63 -0
  55. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_source.rb +59 -0
  56. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_spatialReference.rb +59 -0
  57. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_taxonClass.rb +54 -0
  58. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_taxonomy.rb +94 -0
  59. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_temporalElement.rb +82 -0
  60. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_timeInstant.rb +56 -0
  61. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_timePeriod.rb +64 -0
  62. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_verticalElement.rb +64 -0
  63. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_voucher.rb +49 -0
  64. data/lib/adiwg/mdtranslator/readers/mdJson/readme.md +1 -1
  65. data/lib/adiwg/mdtranslator/readers/mdJson/validator.rb +43 -0
  66. data/lib/adiwg/mdtranslator/readers/mdReaders.rb +55 -0
  67. data/lib/adiwg/mdtranslator/version.rb +15 -4
  68. data/lib/adiwg/mdtranslator/writers/iso/classes/class_address.rb +107 -86
  69. data/lib/adiwg/mdtranslator/writers/iso/classes/class_aggregateInformation.rb +68 -57
  70. data/lib/adiwg/mdtranslator/writers/iso/classes/class_boundingPolygon.rb +59 -48
  71. data/lib/adiwg/mdtranslator/writers/iso/classes/class_browseGraphic.rb +57 -46
  72. data/lib/adiwg/mdtranslator/writers/iso/classes/class_citation.rb +149 -138
  73. data/lib/adiwg/mdtranslator/writers/iso/classes/class_contact.rb +83 -72
  74. data/lib/adiwg/mdtranslator/writers/iso/classes/class_dataIdentification.rb +334 -322
  75. data/lib/adiwg/mdtranslator/writers/iso/classes/class_dataQuality.rb +46 -34
  76. data/lib/adiwg/mdtranslator/writers/iso/classes/class_date.rb +47 -36
  77. data/lib/adiwg/mdtranslator/writers/iso/classes/class_digitalTransferOptions.rb +42 -31
  78. data/lib/adiwg/mdtranslator/writers/iso/classes/class_distribution.rb +29 -18
  79. data/lib/adiwg/mdtranslator/writers/iso/classes/class_distributor.rb +77 -66
  80. data/lib/adiwg/mdtranslator/writers/iso/classes/class_extent.rb +87 -76
  81. data/lib/adiwg/mdtranslator/writers/iso/classes/class_featureAttribute.rb +113 -102
  82. data/lib/adiwg/mdtranslator/writers/iso/classes/class_featureConstraint.rb +44 -33
  83. data/lib/adiwg/mdtranslator/writers/iso/classes/class_featureType.rb +121 -110
  84. data/lib/adiwg/mdtranslator/writers/iso/classes/class_format.rb +45 -34
  85. data/lib/adiwg/mdtranslator/writers/iso/classes/class_genericMetaData.rb +45 -36
  86. data/lib/adiwg/mdtranslator/writers/iso/classes/class_geographicBoundingBox.rb +78 -67
  87. data/lib/adiwg/mdtranslator/writers/iso/classes/class_geographicDescription.rb +25 -14
  88. data/lib/adiwg/mdtranslator/writers/iso/classes/class_geographicElement.rb +30 -19
  89. data/lib/adiwg/mdtranslator/writers/iso/classes/class_identifier.rb +41 -30
  90. data/lib/adiwg/mdtranslator/writers/iso/classes/class_keyword.rb +58 -49
  91. data/lib/adiwg/mdtranslator/writers/iso/classes/class_legalConstraints.rb +65 -54
  92. data/lib/adiwg/mdtranslator/writers/iso/classes/class_lineString.rb +77 -66
  93. data/lib/adiwg/mdtranslator/writers/iso/classes/class_lineage.rb +62 -51
  94. data/lib/adiwg/mdtranslator/writers/iso/classes/class_listedValue.rb +70 -59
  95. data/lib/adiwg/mdtranslator/writers/iso/classes/class_maintenanceInformation.rb +54 -43
  96. data/lib/adiwg/mdtranslator/writers/iso/classes/class_medium.rb +58 -47
  97. data/lib/adiwg/mdtranslator/writers/iso/classes/class_metadataExtension.rb +154 -143
  98. data/lib/adiwg/mdtranslator/writers/iso/classes/class_multiGeometry.rb +138 -127
  99. data/lib/adiwg/mdtranslator/writers/iso/classes/class_multiplicity.rb +37 -26
  100. data/lib/adiwg/mdtranslator/writers/iso/classes/class_onlineResource.rb +79 -68
  101. data/lib/adiwg/mdtranslator/writers/iso/classes/class_point.rb +77 -66
  102. data/lib/adiwg/mdtranslator/writers/iso/classes/class_polygon.rb +98 -87
  103. data/lib/adiwg/mdtranslator/writers/iso/classes/class_processStep.rb +80 -69
  104. data/lib/adiwg/mdtranslator/writers/iso/classes/class_referenceIdentifier.rb +38 -27
  105. data/lib/adiwg/mdtranslator/writers/iso/classes/class_referenceSystem.rb +25 -14
  106. data/lib/adiwg/mdtranslator/writers/iso/classes/class_resolution.rb +51 -40
  107. data/lib/adiwg/mdtranslator/writers/iso/classes/class_responsibleParty.rb +88 -77
  108. data/lib/adiwg/mdtranslator/writers/iso/classes/class_securityConstraints.rb +70 -59
  109. data/lib/adiwg/mdtranslator/writers/iso/classes/class_source.rb +58 -47
  110. data/lib/adiwg/mdtranslator/writers/iso/classes/class_standardOrderProcess.rb +75 -63
  111. data/lib/adiwg/mdtranslator/writers/iso/classes/class_taxonClassification.rb +55 -44
  112. data/lib/adiwg/mdtranslator/writers/iso/classes/class_taxonSystem.rb +98 -87
  113. data/lib/adiwg/mdtranslator/writers/iso/classes/class_telephone.rb +73 -62
  114. data/lib/adiwg/mdtranslator/writers/iso/classes/class_temporalExtent.rb +58 -47
  115. data/lib/adiwg/mdtranslator/writers/iso/classes/class_timeInstant.rb +36 -27
  116. data/lib/adiwg/mdtranslator/writers/iso/classes/class_timePeriod.rb +42 -33
  117. data/lib/adiwg/mdtranslator/writers/iso/classes/class_usage.rb +59 -48
  118. data/lib/adiwg/mdtranslator/writers/iso/classes/class_useConstraints.rb +26 -15
  119. data/lib/adiwg/mdtranslator/writers/iso/classes/class_verticalExtent.rb +52 -41
  120. data/lib/adiwg/mdtranslator/writers/iso/classes/class_vouchers.rb +39 -28
  121. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_associationType.rb +41 -29
  122. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_characterSet.rb +82 -47
  123. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_classification.rb +42 -24
  124. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_datatype.rb +56 -34
  125. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_dateType.rb +34 -19
  126. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_initiativeType.rb +41 -29
  127. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_keywordType.rb +46 -27
  128. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_maintenanceFrequency.rb +55 -36
  129. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_mediumFormat.rb +44 -26
  130. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_mediumName.rb +68 -38
  131. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_obligation.rb +32 -25
  132. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_onlineFunction.rb +42 -25
  133. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_presentationForm.rb +58 -31
  134. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_progress.rb +44 -25
  135. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_restriction.rb +47 -32
  136. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_role.rb +52 -29
  137. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_scope.rb +58 -35
  138. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_spatialRepresentationType.rb +43 -30
  139. data/lib/adiwg/mdtranslator/writers/iso/codelists/code_topicCategory.rb +51 -44
  140. data/lib/adiwg/mdtranslator/writers/iso/units/class_baseUnit.rb +26 -15
  141. data/lib/adiwg/mdtranslator/writers/iso/units/class_conventionalUnit.rb +56 -45
  142. data/lib/adiwg/mdtranslator/writers/iso/units/class_definitionUnit.rb +23 -12
  143. data/lib/adiwg/mdtranslator/writers/iso/units/class_derivedUnit.rb +30 -19
  144. data/lib/adiwg/mdtranslator/writers/iso/units/class_unitsOfMeasure.rb +223 -212
  145. data/lib/adiwg/mdtranslator/writers/iso19110/class_FCfeatureCatalogue.rb +174 -0
  146. data/lib/adiwg/mdtranslator/writers/iso19110/iso19110_writer.rb +41 -12
  147. data/lib/adiwg/mdtranslator/writers/iso19115_2/class_MImetadata.rb +347 -0
  148. data/lib/adiwg/mdtranslator/writers/iso19115_2/iso19115_2_writer.rb +151 -119
  149. data/lib/adiwg/mdtranslator/writers/mdWriters.rb +63 -0
  150. data/test/readers/mdJson/v0_9/tc_reader_mdjson_additionalDocumentation.rb +84 -0
  151. data/test/readers/mdJson/v0_9/tc_reader_mdjson_address.rb +100 -0
  152. data/test/readers/mdJson/v0_9/tc_reader_mdjson_associatedResource.rb +100 -0
  153. data/test/readers/mdJson/v0_9/tc_reader_mdjson_browseGraphic.rb +66 -0
  154. data/test/readers/mdJson/v0_9/tc_reader_mdjson_citation.rb +115 -0
  155. data/test/readers/mdJson/v0_9/tc_reader_mdjson_contact.rb +137 -0
  156. data/test/readers/mdJson/v0_9/tc_reader_mdjson_onlineResource.rb +47 -0
  157. data/test/readers/mdJson/v0_9/tc_reader_mdjson_phone.rb +128 -0
  158. data/test/readers/mdJson/v0_9/tc_translation.rb +82 -0
  159. data/test/writers/iso19115_2/tc_writer_iso19115_2_address.rb +222 -0
  160. metadata +87 -60
  161. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_additionalDocumentation.rb +0 -36
  162. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_address.rb +0 -71
  163. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_associatedResource.rb +0 -66
  164. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_boundingBox.rb +0 -51
  165. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_browseGraphic.rb +0 -52
  166. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_citation.rb +0 -104
  167. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_contacts.rb +0 -121
  168. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_coordinates.rb +0 -52
  169. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_dataDictionary.rb +0 -53
  170. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_dataQuality.rb +0 -40
  171. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_dateTime.rb +0 -27
  172. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_descriptiveKeyword.rb +0 -49
  173. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_dictionaryInfo.rb +0 -52
  174. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_distributionInfo.rb +0 -150
  175. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_domain.rb +0 -62
  176. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_domainItem.rb +0 -42
  177. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_entity.rb +0 -92
  178. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_entityAttribute.rb +0 -91
  179. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_entityForeignKey.rb +0 -43
  180. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_entityIndex.rb +0 -42
  181. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_extent.rb +0 -62
  182. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_geoCoordSystem.rb +0 -46
  183. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_geoProperties.rb +0 -89
  184. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_geographicElement.rb +0 -168
  185. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_legalConstraint.rb +0 -45
  186. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_lineString.rb +0 -25
  187. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_lineage.rb +0 -50
  188. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_metadata.rb +0 -77
  189. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_metadataExtension.rb +0 -40
  190. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_metadataInfo.rb +0 -112
  191. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_onlineResource.rb +0 -62
  192. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_phone.rb +0 -59
  193. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_point.rb +0 -25
  194. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_polygon.rb +0 -55
  195. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_processStep.rb +0 -64
  196. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_resolution.rb +0 -42
  197. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_resourceFormat.rb +0 -35
  198. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_resourceIdentifier.rb +0 -49
  199. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_resourceInfo.rb +0 -317
  200. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_resourceMaintenance.rb +0 -50
  201. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_resourceSpecificUsage.rb +0 -50
  202. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_responsibleParty.rb +0 -37
  203. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_securityConstraint.rb +0 -52
  204. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_source.rb +0 -48
  205. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_spatialReference.rb +0 -48
  206. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_taxonClass.rb +0 -43
  207. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_taxonomy.rb +0 -83
  208. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_temporalElement.rb +0 -71
  209. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_timeInstant.rb +0 -45
  210. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_timePeriod.rb +0 -53
  211. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_verticalElement.rb +0 -53
  212. data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_voucher.rb +0 -38
  213. data/lib/adiwg/mdtranslator/validator.rb +0 -43
  214. data/lib/adiwg/mdtranslator/writers/iso/classes/class_FCfeatureCatalogue.rb +0 -171
  215. data/lib/adiwg/mdtranslator/writers/iso/classes/class_MImetadata.rb +0 -333
  216. data/test/tc_translation.rb +0 -73
@@ -0,0 +1,128 @@
1
+ # MdTranslator - minitest of
2
+ # reader / mdJson / module_phone
3
+
4
+ # History:
5
+ # Stan Smith 2014-12-09 original script
6
+ # Stan Smith 2014-12-15 modified to use namespaces added to mdTranslator
7
+
8
+ require 'minitest/autorun'
9
+ require 'json'
10
+ require 'adiwg/mdtranslator/internal/internal_metadata_obj'
11
+ require 'adiwg/mdtranslator/readers/mdJson/modules_0.9/module_phone'
12
+
13
+ class TestReaderMdJsonAddress_v0_9 < MiniTest::Test
14
+
15
+ def test_build_full_phone_object
16
+
17
+ json_string = '{ ' +
18
+ '"phoneName": "Name",' +
19
+ '"phoneNumber": "(999)999-9999",' +
20
+ '"service": ["voice","fax","sms"]' +
21
+ '}'
22
+ hIn = JSON.parse(json_string)
23
+
24
+ intObj = []
25
+ intObjPart = {
26
+ phoneServiceType: 'voice',
27
+ phoneName: 'Name',
28
+ phoneNumber: '(999)999-9999'
29
+ }
30
+ intObj << intObjPart
31
+ intObjPart = {
32
+ phoneServiceType: 'fax',
33
+ phoneName: 'Name',
34
+ phoneNumber: '(999)999-9999'
35
+ }
36
+ intObj << intObjPart
37
+ intObjPart = {
38
+ phoneServiceType: 'sms',
39
+ phoneName: 'Name',
40
+ phoneNumber: '(999)999-9999'
41
+ }
42
+ intObj << intObjPart
43
+
44
+ assert_equal intObj, ADIWG::Mdtranslator::Readers::MdJson::Phone.unpack(hIn)
45
+
46
+ end
47
+
48
+ def test_missing_phone_service
49
+
50
+ json_string = '{ ' +
51
+ '"phoneName": "Name",' +
52
+ '"phoneNumber": "(999)999-9999"' +
53
+ '}'
54
+ hIn = JSON.parse(json_string)
55
+
56
+ intObj = []
57
+ intObjPart = {
58
+ phoneServiceType: 'voice',
59
+ phoneName: 'Name',
60
+ phoneNumber: '(999)999-9999'
61
+ }
62
+ intObj << intObjPart
63
+
64
+ assert_equal intObj, ADIWG::Mdtranslator::Readers::MdJson::Phone.unpack(hIn)
65
+
66
+ end
67
+
68
+ def test_null_phone_service
69
+
70
+ json_string = '{ ' +
71
+ '"phoneName": "Name",' +
72
+ '"phoneNumber": "(999)999-9999",' +
73
+ '"service": ""' +
74
+ '}'
75
+ hIn = JSON.parse(json_string)
76
+
77
+ intObj = []
78
+ intObjPart = {
79
+ phoneServiceType: 'voice',
80
+ phoneName: 'Name',
81
+ phoneNumber: '(999)999-9999'
82
+ }
83
+ intObj << intObjPart
84
+
85
+ assert_equal intObj, ADIWG::Mdtranslator::Readers::MdJson::Phone.unpack(hIn)
86
+
87
+ end
88
+
89
+ def test_missing_phone_number
90
+
91
+ json_string = '{ ' +
92
+ '"service": ["service"]' +
93
+ '}'
94
+ hIn = JSON.parse(json_string)
95
+
96
+ intObj = []
97
+
98
+ assert_equal intObj, ADIWG::Mdtranslator::Readers::MdJson::Phone.unpack(hIn)
99
+
100
+ end
101
+
102
+ def test_null_phone_number
103
+
104
+ # missing phone number should return empty object
105
+ json_string = '{ ' +
106
+ '"phoneName": "",' +
107
+ '"phoneNumber": "",' +
108
+ '"service": ""' +
109
+ '}'
110
+ hIn = JSON.parse(json_string)
111
+
112
+ intObj = []
113
+
114
+ assert_equal intObj, ADIWG::Mdtranslator::Readers::MdJson::Phone.unpack(hIn)
115
+
116
+ end
117
+
118
+ def test_build_empty_phone_object
119
+
120
+ json_string = '{}'
121
+ hIn = JSON.parse(json_string)
122
+ intObj = []
123
+
124
+ assert_equal intObj, ADIWG::Mdtranslator::Readers::MdJson::Phone.unpack(hIn)
125
+
126
+ end
127
+
128
+ end
@@ -0,0 +1,82 @@
1
+ # MdTranslator - code to test mdtranslator from Ruby Terminal during development
2
+
3
+ # History:
4
+ # Stan Smith 2014-07-02 original script
5
+ # Josh Bradley 2014-09-28 updated to use test/unit
6
+ # Stan Smith 2015-01-16 changed ADIWG::Mdtranslator.translate() to keyword parameters
7
+
8
+ require 'minitest/autorun'
9
+ require 'json'
10
+
11
+ class TestTranslation_v0_9 < MiniTest::Test
12
+
13
+ require 'adiwg-mdtranslator'
14
+
15
+ @@reader = 'mdJson'
16
+ @@writer = 'iso19115_2'
17
+
18
+ def test_full_success
19
+ # read mdJson full
20
+ file = File.open('test/schemas/v0_9/examples/full_example.json', 'r')
21
+ jsonObj = file.read
22
+ file.close
23
+
24
+ # call opening module in mdTranslator
25
+ metadata = ADIWG::Mdtranslator.translate(
26
+ file: jsonObj, reader: @@reader, validate: 'normal',
27
+ writer: @@writer, showAllTags: 'true')
28
+ version = JSON.parse(jsonObj)['version']['version'].split('.')
29
+
30
+ assert_equal('json', metadata[:readerFormat], 'Check reader name')
31
+ assert metadata[:readerStructurePass], metadata[:readerStructureMessages].join(',')
32
+ assert_equal(@@reader, metadata[:readerFound])
33
+ #major version
34
+ assert_equal(version[0], metadata[:readerVersionUsed].split('.')[0])
35
+ #minor version
36
+ assert_equal(version[1], metadata[:readerVersionUsed].split('.')[1])
37
+ assert metadata[:readerValidationPass], "reader validation failed: \n" + metadata[:readerValidationMessages].join(',')
38
+ assert_equal(@@writer, metadata[:writerName])
39
+ assert metadata[:writerPass], "writer validation failed: \n" + metadata[:writerMessages].join(',')
40
+ refute_nil metadata[:writerOutput]
41
+ end
42
+
43
+ def test_minimum_success
44
+ # read mdJson minimum
45
+ file = File.open('test/schemas/v0_9/examples/minimum_example.json', 'r')
46
+ jsonObj = file.read
47
+ file.close
48
+
49
+ # call opening module in mdTranslator
50
+ metadata = ADIWG::Mdtranslator.translate(
51
+ file: jsonObj, reader: @@reader, validate: 'normal',
52
+ writer: @@writer, showAllTags: 'true')
53
+
54
+ assert_equal('json', metadata[:readerFormat], 'Check reader name')
55
+ assert metadata[:readerStructurePass], metadata[:readerStructureMessages].join(',')
56
+ assert_equal(@@reader, metadata[:readerFound])
57
+ assert metadata[:readerValidationPass], "reader validation failed: \n" + metadata[:readerValidationMessages].join(',')
58
+ assert_equal(@@writer, metadata[:writerName])
59
+ assert metadata[:writerPass], "writer validation failed: \n" + metadata[:writerMessages].join(',')
60
+ refute_nil metadata[:writerOutput]
61
+ end
62
+
63
+ def test_19110_success
64
+ # read mdJson full
65
+ file = File.open('test/schemas/v0_9/examples/full_example.json', 'r')
66
+ jsonObj = file.read
67
+ file.close
68
+
69
+ # call opening module in mdTranslator
70
+ metadata = ADIWG::Mdtranslator.translate(
71
+ file: jsonObj, reader: @@reader, validate: 'normal',
72
+ writer: 'iso19110', showAllTags: 'true')
73
+
74
+ assert_equal('json', metadata[:readerFormat], 'Check reader name')
75
+ assert metadata[:readerStructurePass], metadata[:readerStructureMessages].join(',')
76
+ assert_equal(@@reader, metadata[:readerFound])
77
+ assert metadata[:readerValidationPass], "reader validation failed: \n" + metadata[:readerValidationMessages].join(',')
78
+ assert_equal('iso19110', metadata[:writerName])
79
+ assert metadata[:writerPass], "writer validation failed: \n" + metadata[:writerMessages].join(',')
80
+ refute_nil metadata[:writerOutput]
81
+ end
82
+ end
@@ -0,0 +1,222 @@
1
+ # MdTranslator - minitest of
2
+ # writer / iso19115_2 / class_address
3
+
4
+ # History:
5
+ # Stan Smith 2014-12-22 original script
6
+
7
+ require 'minitest/autorun'
8
+ require 'builder'
9
+ require 'adiwg/mdtranslator/internal/internal_metadata_obj'
10
+ require 'adiwg/mdtranslator/writers/iso/classes/class_address'
11
+
12
+ class TestWriter191152Address < MiniTest::Test
13
+
14
+ # set internal structure
15
+ intMetadataClass = InternalMetadata.new
16
+ @@intAdd = intMetadataClass.newAddress
17
+
18
+ @@intAdd[:deliveryPoints] = %w[deliveryPoint1 deliveryPoint2]
19
+ @@intAdd[:city] = 'city'
20
+ @@intAdd[:adminArea] = 'administrativeArea'
21
+ @@intAdd[:postalCode] = 'postalCode'
22
+ @@intAdd[:country] = 'country'
23
+ @@intAdd[:eMailList] = %w[example1@example.com example2@example.com]
24
+
25
+ # set namespace
26
+ @@NameSpace = ADIWG::Mdtranslator::Writers::Iso
27
+
28
+ def test_complete_address_object
29
+
30
+ hIn = @@intAdd.clone
31
+
32
+ # create instance of writer class
33
+ xmlResult = Builder::XmlMarkup.new(indent: 3)
34
+ addClass = @@NameSpace::CI_Address.new(xmlResult)
35
+
36
+ # assign xml results to a string 'xmlExpect'
37
+ xml = Builder::XmlMarkup.new(indent: 3)
38
+ xmlExpect = xml.tag!('gmd:CI_Address') do
39
+ xml.tag!('gmd:deliveryPoint') do
40
+ xml.tag!('gco:CharacterString','deliveryPoint1')
41
+ end
42
+ xml.tag!('gmd:deliveryPoint') do
43
+ xml.tag!('gco:CharacterString','deliveryPoint2')
44
+ end
45
+ xml.tag!('gmd:city') do
46
+ xml.tag!('gco:CharacterString','city')
47
+ end
48
+ xml.tag!('gmd:administrativeArea') do
49
+ xml.tag!('gco:CharacterString','administrativeArea')
50
+ end
51
+ xml.tag!('gmd:postalCode') do
52
+ xml.tag!('gco:CharacterString','postalCode')
53
+ end
54
+ xml.tag!('gmd:country') do
55
+ xml.tag!('gco:CharacterString','country')
56
+ end
57
+ xml.tag!('gmd:electronicMailAddress') do
58
+ xml.tag!('gco:CharacterString','example1@example.com')
59
+ end
60
+ xml.tag!('gmd:electronicMailAddress') do
61
+ xml.tag!('gco:CharacterString','example2@example.com')
62
+ end
63
+ end
64
+
65
+ $showAllTags = false
66
+ assert_equal xmlExpect, addClass.writeXML(hIn)
67
+ end
68
+
69
+ def test_missing_deliveryPoint_address_element
70
+
71
+ # create instance of writer class
72
+ xmlResult = Builder::XmlMarkup.new(indent: 3)
73
+ addClass = @@NameSpace::CI_Address.new(xmlResult)
74
+
75
+ hIn = @@intAdd.clone
76
+ hIn[:deliveryPoints] = []
77
+
78
+ # assign xml results to a string 'xmlExpect'
79
+ # expect electronicMailAddress only
80
+ xml = Builder::XmlMarkup.new(indent: 3)
81
+ xmlExpect = xml.tag!('gmd:CI_Address') do
82
+ xml.tag!('gmd:electronicMailAddress') do
83
+ xml.tag!('gco:CharacterString','example1@example.com')
84
+ end
85
+ xml.tag!('gmd:electronicMailAddress') do
86
+ xml.tag!('gco:CharacterString','example2@example.com')
87
+ end
88
+ end
89
+
90
+ $showAllTags = false
91
+ assert_equal xmlExpect, addClass.writeXML(hIn)
92
+ end
93
+
94
+ def test_missing_deliveryPoint_address_element_showEmpty
95
+
96
+ # create instance of writer class
97
+ xmlResult = Builder::XmlMarkup.new(indent: 3)
98
+ addClass = @@NameSpace::CI_Address.new(xmlResult)
99
+
100
+ hIn = @@intAdd.clone
101
+ hIn[:deliveryPoints] = []
102
+
103
+ # assign xml results to a string 'xmlExpect'
104
+ # expect electronicMailAddress only
105
+ # show all others as empty tags
106
+ xml = Builder::XmlMarkup.new(indent: 3)
107
+ xmlExpect = xml.tag!('gmd:CI_Address') do
108
+ xml.tag!('gmd:deliveryPoint')
109
+ xml.tag!('gmd:city')
110
+ xml.tag!('gmd:administrativeArea')
111
+ xml.tag!('gmd:postalCode')
112
+ xml.tag!('gmd:country')
113
+ xml.tag!('gmd:electronicMailAddress') do
114
+ xml.tag!('gco:CharacterString','example1@example.com')
115
+ end
116
+ xml.tag!('gmd:electronicMailAddress') do
117
+ xml.tag!('gco:CharacterString','example2@example.com')
118
+ end
119
+ end
120
+
121
+ $showAllTags = true
122
+ assert_equal xmlExpect, addClass.writeXML(hIn)
123
+ end
124
+
125
+ def test_missing_electronic_address_element
126
+
127
+ # create instance of writer class
128
+ xmlResult = Builder::XmlMarkup.new(indent: 3)
129
+ addClass = @@NameSpace::CI_Address.new(xmlResult)
130
+
131
+ hIn = @@intAdd.clone
132
+ hIn[:eMailList] = []
133
+
134
+ # assign xml results to a string 'xmlExpect'
135
+ # expect electronicMailAddress only
136
+ xml = Builder::XmlMarkup.new(indent: 3)
137
+ xmlExpect = xml.tag!('gmd:CI_Address') do
138
+ xml.tag!('gmd:deliveryPoint') do
139
+ xml.tag!('gco:CharacterString','deliveryPoint1')
140
+ end
141
+ xml.tag!('gmd:deliveryPoint') do
142
+ xml.tag!('gco:CharacterString','deliveryPoint2')
143
+ end
144
+ xml.tag!('gmd:city') do
145
+ xml.tag!('gco:CharacterString','city')
146
+ end
147
+ xml.tag!('gmd:administrativeArea') do
148
+ xml.tag!('gco:CharacterString','administrativeArea')
149
+ end
150
+ xml.tag!('gmd:postalCode') do
151
+ xml.tag!('gco:CharacterString','postalCode')
152
+ end
153
+ xml.tag!('gmd:country') do
154
+ xml.tag!('gco:CharacterString','country')
155
+ end
156
+ end
157
+
158
+ $showAllTags = false
159
+ assert_equal xmlExpect, addClass.writeXML(hIn)
160
+ end
161
+
162
+ def test_missing_electronic_address_element_showEmpty
163
+
164
+ # create instance of writer class
165
+ xmlResult = Builder::XmlMarkup.new(indent: 3)
166
+ addClass = @@NameSpace::CI_Address.new(xmlResult)
167
+
168
+ hIn = @@intAdd.clone
169
+ hIn[:eMailList] = []
170
+
171
+ # assign xml results to a string 'xmlExpect'
172
+ # expect electronicMailAddress only
173
+ xml = Builder::XmlMarkup.new(indent: 3)
174
+ xmlExpect = xml.tag!('gmd:CI_Address') do
175
+ xml.tag!('gmd:deliveryPoint') do
176
+ xml.tag!('gco:CharacterString','deliveryPoint1')
177
+ end
178
+ xml.tag!('gmd:deliveryPoint') do
179
+ xml.tag!('gco:CharacterString','deliveryPoint2')
180
+ end
181
+ xml.tag!('gmd:city') do
182
+ xml.tag!('gco:CharacterString','city')
183
+ end
184
+ xml.tag!('gmd:administrativeArea') do
185
+ xml.tag!('gco:CharacterString','administrativeArea')
186
+ end
187
+ xml.tag!('gmd:postalCode') do
188
+ xml.tag!('gco:CharacterString','postalCode')
189
+ end
190
+ xml.tag!('gmd:country') do
191
+ xml.tag!('gco:CharacterString','country')
192
+ end
193
+ xml.tag!('gmd:electronicMailAddress')
194
+ end
195
+
196
+ $showAllTags = true
197
+ assert_equal xmlExpect, addClass.writeXML(hIn)
198
+ end
199
+
200
+ def test_empty_address_object
201
+
202
+ # create instance of writer class
203
+ xmlResult = Builder::XmlMarkup.new(indent: 3)
204
+ addClass = @@NameSpace::CI_Address.new(xmlResult)
205
+
206
+ # create and empty address object
207
+ intMetadataClass = InternalMetadata.new
208
+ emptyAdd = intMetadataClass.newAddress
209
+
210
+ assert_equal nil, addClass.writeXML(emptyAdd)
211
+ end
212
+
213
+ def test_nil_address_object
214
+
215
+ # create instance of writer class
216
+ xmlResult = Builder::XmlMarkup.new(indent: 3)
217
+ addClass = @@NameSpace::CI_Address.new(xmlResult)
218
+
219
+ assert_equal nil, addClass.writeXML(nil)
220
+ end
221
+
222
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adiwg-mdtranslator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stan Smith
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-05 00:00:00.000000000 Z
12
+ date: 2015-01-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -116,6 +116,9 @@ dependencies:
116
116
  - - "~>"
117
117
  - !ruby/object:Gem::Version
118
118
  version: 2.4.0
119
+ - - "<"
120
+ - !ruby/object:Gem::Version
121
+ version: 2.5.0
119
122
  type: :runtime
120
123
  prerelease: false
121
124
  version_requirements: !ruby/object:Gem::Requirement
@@ -123,6 +126,9 @@ dependencies:
123
126
  - - "~>"
124
127
  - !ruby/object:Gem::Version
125
128
  version: 2.4.0
129
+ - - "<"
130
+ - !ruby/object:Gem::Version
131
+ version: 2.5.0
126
132
  - !ruby/object:Gem::Dependency
127
133
  name: adiwg-json_schemas
128
134
  requirement: !ruby/object:Gem::Requirement
@@ -165,63 +171,63 @@ files:
165
171
  - lib/adiwg/mdtranslator/internal/module_dateTimeFun.rb
166
172
  - lib/adiwg/mdtranslator/readers/mdJson/mdJson_reader.rb
167
173
  - lib/adiwg/mdtranslator/readers/mdJson/mdJson_validator.rb
168
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_additionalDocumentation.rb
169
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_address.rb
170
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_associatedResource.rb
171
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_boundingBox.rb
172
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_browseGraphic.rb
173
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_citation.rb
174
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_contacts.rb
175
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_coordinates.rb
176
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_dataDictionary.rb
177
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_dataQuality.rb
178
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_dateTime.rb
179
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_descriptiveKeyword.rb
180
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_dictionaryInfo.rb
181
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_distributionInfo.rb
182
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_domain.rb
183
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_domainItem.rb
184
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_entity.rb
185
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_entityAttribute.rb
186
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_entityForeignKey.rb
187
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_entityIndex.rb
188
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_extent.rb
189
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_geoCoordSystem.rb
190
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_geoProperties.rb
191
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_geographicElement.rb
192
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_legalConstraint.rb
193
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_lineString.rb
194
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_lineage.rb
195
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_metadata.rb
196
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_metadataExtension.rb
197
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_metadataInfo.rb
198
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_onlineResource.rb
199
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_phone.rb
200
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_point.rb
201
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_polygon.rb
202
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_processStep.rb
203
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_resolution.rb
204
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_resourceFormat.rb
205
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_resourceIdentifier.rb
206
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_resourceInfo.rb
207
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_resourceMaintenance.rb
208
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_resourceSpecificUsage.rb
209
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_responsibleParty.rb
210
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_securityConstraint.rb
211
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_source.rb
212
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_spatialReference.rb
213
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_taxonClass.rb
214
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_taxonomy.rb
215
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_temporalElement.rb
216
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_timeInstant.rb
217
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_timePeriod.rb
218
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_verticalElement.rb
219
- - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_voucher.rb
174
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_additionalDocumentation.rb
175
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_address.rb
176
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_associatedResource.rb
177
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_boundingBox.rb
178
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_browseGraphic.rb
179
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_citation.rb
180
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_contacts.rb
181
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_coordinates.rb
182
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_dataDictionary.rb
183
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_dataQuality.rb
184
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_dateTime.rb
185
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_descriptiveKeyword.rb
186
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_dictionaryInfo.rb
187
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_distributionInfo.rb
188
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_domain.rb
189
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_domainItem.rb
190
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_entity.rb
191
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_entityAttribute.rb
192
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_entityForeignKey.rb
193
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_entityIndex.rb
194
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_extent.rb
195
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_geoCoordSystem.rb
196
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_geoProperties.rb
197
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_geographicElement.rb
198
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_legalConstraint.rb
199
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_lineString.rb
200
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_lineage.rb
201
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_mdJson.rb
202
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_metadata.rb
203
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_metadataExtension.rb
204
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_metadataInfo.rb
205
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_onlineResource.rb
206
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_phone.rb
207
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_point.rb
208
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_polygon.rb
209
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_processStep.rb
210
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_resolution.rb
211
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_resourceFormat.rb
212
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_resourceIdentifier.rb
213
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_resourceInfo.rb
214
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_resourceMaintenance.rb
215
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_resourceSpecificUsage.rb
216
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_responsibleParty.rb
217
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_securityConstraint.rb
218
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_source.rb
219
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_spatialReference.rb
220
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_taxonClass.rb
221
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_taxonomy.rb
222
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_temporalElement.rb
223
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_timeInstant.rb
224
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_timePeriod.rb
225
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_verticalElement.rb
226
+ - lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_voucher.rb
220
227
  - lib/adiwg/mdtranslator/readers/mdJson/readme.md
221
- - lib/adiwg/mdtranslator/validator.rb
228
+ - lib/adiwg/mdtranslator/readers/mdJson/validator.rb
229
+ - lib/adiwg/mdtranslator/readers/mdReaders.rb
222
230
  - lib/adiwg/mdtranslator/version.rb
223
- - lib/adiwg/mdtranslator/writers/iso/classes/class_FCfeatureCatalogue.rb
224
- - lib/adiwg/mdtranslator/writers/iso/classes/class_MImetadata.rb
225
231
  - lib/adiwg/mdtranslator/writers/iso/classes/class_address.rb
226
232
  - lib/adiwg/mdtranslator/writers/iso/classes/class_aggregateInformation.rb
227
233
  - lib/adiwg/mdtranslator/writers/iso/classes/class_boundingPolygon.rb
@@ -299,11 +305,23 @@ files:
299
305
  - lib/adiwg/mdtranslator/writers/iso/units/class_definitionUnit.rb
300
306
  - lib/adiwg/mdtranslator/writers/iso/units/class_derivedUnit.rb
301
307
  - lib/adiwg/mdtranslator/writers/iso/units/class_unitsOfMeasure.rb
308
+ - lib/adiwg/mdtranslator/writers/iso19110/class_FCfeatureCatalogue.rb
302
309
  - lib/adiwg/mdtranslator/writers/iso19110/iso19110_writer.rb
303
310
  - lib/adiwg/mdtranslator/writers/iso19110/readme.md
311
+ - lib/adiwg/mdtranslator/writers/iso19115_2/class_MImetadata.rb
304
312
  - lib/adiwg/mdtranslator/writers/iso19115_2/iso19115_2_writer.rb
305
313
  - lib/adiwg/mdtranslator/writers/iso19115_2/readme.md
306
- - test/tc_translation.rb
314
+ - lib/adiwg/mdtranslator/writers/mdWriters.rb
315
+ - test/readers/mdJson/v0_9/tc_reader_mdjson_additionalDocumentation.rb
316
+ - test/readers/mdJson/v0_9/tc_reader_mdjson_address.rb
317
+ - test/readers/mdJson/v0_9/tc_reader_mdjson_associatedResource.rb
318
+ - test/readers/mdJson/v0_9/tc_reader_mdjson_browseGraphic.rb
319
+ - test/readers/mdJson/v0_9/tc_reader_mdjson_citation.rb
320
+ - test/readers/mdJson/v0_9/tc_reader_mdjson_contact.rb
321
+ - test/readers/mdJson/v0_9/tc_reader_mdjson_onlineResource.rb
322
+ - test/readers/mdJson/v0_9/tc_reader_mdjson_phone.rb
323
+ - test/readers/mdJson/v0_9/tc_translation.rb
324
+ - test/writers/iso19115_2/tc_writer_iso19115_2_address.rb
307
325
  homepage: http://www.adiwg.org/mdTranslator
308
326
  licenses:
309
327
  - UNLICENSED
@@ -316,7 +334,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
316
334
  requirements:
317
335
  - - ">="
318
336
  - !ruby/object:Gem::Version
319
- version: '0'
337
+ version: '2.1'
320
338
  required_rubygems_version: !ruby/object:Gem::Requirement
321
339
  requirements:
322
340
  - - ">="
@@ -331,4 +349,13 @@ summary: The mdtranslator (metadata translator) is a toolkit for translating met
331
349
  in one format to another. The toolkit is written and maintained by the Alaska Data
332
350
  Integration Working Group (ADIwg).
333
351
  test_files:
334
- - test/tc_translation.rb
352
+ - test/readers/mdJson/v0_9/tc_reader_mdjson_additionalDocumentation.rb
353
+ - test/readers/mdJson/v0_9/tc_reader_mdjson_address.rb
354
+ - test/readers/mdJson/v0_9/tc_reader_mdjson_associatedResource.rb
355
+ - test/readers/mdJson/v0_9/tc_reader_mdjson_browseGraphic.rb
356
+ - test/readers/mdJson/v0_9/tc_reader_mdjson_citation.rb
357
+ - test/readers/mdJson/v0_9/tc_reader_mdjson_contact.rb
358
+ - test/readers/mdJson/v0_9/tc_reader_mdjson_onlineResource.rb
359
+ - test/readers/mdJson/v0_9/tc_reader_mdjson_phone.rb
360
+ - test/readers/mdJson/v0_9/tc_translation.rb
361
+ - test/writers/iso19115_2/tc_writer_iso19115_2_address.rb