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.
- checksums.yaml +4 -4
- data/.travis.yml +2 -4
- data/Rakefile +4 -1
- data/adiwg-mdtranslator.gemspec +10 -8
- data/bin/mdtranslator +8 -2
- data/lib/adiwg/mdtranslator.rb +72 -147
- data/lib/adiwg/mdtranslator/internal/internal_metadata_obj.rb +538 -538
- data/lib/adiwg/mdtranslator/internal/module_dateTimeFun.rb +78 -78
- data/lib/adiwg/mdtranslator/readers/mdJson/mdJson_reader.rb +153 -74
- data/lib/adiwg/mdtranslator/readers/mdJson/mdJson_validator.rb +41 -108
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_additionalDocumentation.rb +54 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_address.rb +89 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_associatedResource.rb +82 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_boundingBox.rb +62 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_browseGraphic.rb +69 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_citation.rb +122 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_contacts.rb +150 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_coordinates.rb +63 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_dataDictionary.rb +63 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_dataQuality.rb +51 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_dateTime.rb +38 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_descriptiveKeyword.rb +60 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_dictionaryInfo.rb +63 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_distributionInfo.rb +161 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_domain.rb +73 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_domainItem.rb +53 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_entity.rb +103 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_entityAttribute.rb +102 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_entityForeignKey.rb +54 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_entityIndex.rb +53 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_extent.rb +73 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_geoCoordSystem.rb +57 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_geoProperties.rb +100 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_geographicElement.rb +179 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_legalConstraint.rb +56 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_lineString.rb +36 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_lineage.rb +61 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_mdJson.rb +69 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_metadata.rb +88 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_metadataExtension.rb +51 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_metadataInfo.rb +123 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_onlineResource.rb +79 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_phone.rb +79 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_point.rb +36 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_polygon.rb +66 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_processStep.rb +75 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_resolution.rb +53 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_resourceFormat.rb +46 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_resourceIdentifier.rb +60 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_resourceInfo.rb +328 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_resourceMaintenance.rb +61 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_resourceSpecificUsage.rb +61 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_responsibleParty.rb +48 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_securityConstraint.rb +63 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_source.rb +59 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_spatialReference.rb +59 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_taxonClass.rb +54 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_taxonomy.rb +94 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_temporalElement.rb +82 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_timeInstant.rb +56 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_timePeriod.rb +64 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_verticalElement.rb +64 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9/module_voucher.rb +49 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/readme.md +1 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/validator.rb +43 -0
- data/lib/adiwg/mdtranslator/readers/mdReaders.rb +55 -0
- data/lib/adiwg/mdtranslator/version.rb +15 -4
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_address.rb +107 -86
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_aggregateInformation.rb +68 -57
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_boundingPolygon.rb +59 -48
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_browseGraphic.rb +57 -46
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_citation.rb +149 -138
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_contact.rb +83 -72
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_dataIdentification.rb +334 -322
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_dataQuality.rb +46 -34
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_date.rb +47 -36
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_digitalTransferOptions.rb +42 -31
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_distribution.rb +29 -18
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_distributor.rb +77 -66
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_extent.rb +87 -76
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_featureAttribute.rb +113 -102
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_featureConstraint.rb +44 -33
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_featureType.rb +121 -110
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_format.rb +45 -34
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_genericMetaData.rb +45 -36
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_geographicBoundingBox.rb +78 -67
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_geographicDescription.rb +25 -14
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_geographicElement.rb +30 -19
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_identifier.rb +41 -30
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_keyword.rb +58 -49
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_legalConstraints.rb +65 -54
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_lineString.rb +77 -66
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_lineage.rb +62 -51
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_listedValue.rb +70 -59
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_maintenanceInformation.rb +54 -43
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_medium.rb +58 -47
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_metadataExtension.rb +154 -143
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_multiGeometry.rb +138 -127
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_multiplicity.rb +37 -26
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_onlineResource.rb +79 -68
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_point.rb +77 -66
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_polygon.rb +98 -87
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_processStep.rb +80 -69
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_referenceIdentifier.rb +38 -27
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_referenceSystem.rb +25 -14
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_resolution.rb +51 -40
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_responsibleParty.rb +88 -77
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_securityConstraints.rb +70 -59
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_source.rb +58 -47
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_standardOrderProcess.rb +75 -63
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_taxonClassification.rb +55 -44
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_taxonSystem.rb +98 -87
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_telephone.rb +73 -62
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_temporalExtent.rb +58 -47
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_timeInstant.rb +36 -27
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_timePeriod.rb +42 -33
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_usage.rb +59 -48
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_useConstraints.rb +26 -15
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_verticalExtent.rb +52 -41
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_vouchers.rb +39 -28
- data/lib/adiwg/mdtranslator/writers/iso/codelists/code_associationType.rb +41 -29
- data/lib/adiwg/mdtranslator/writers/iso/codelists/code_characterSet.rb +82 -47
- data/lib/adiwg/mdtranslator/writers/iso/codelists/code_classification.rb +42 -24
- data/lib/adiwg/mdtranslator/writers/iso/codelists/code_datatype.rb +56 -34
- data/lib/adiwg/mdtranslator/writers/iso/codelists/code_dateType.rb +34 -19
- data/lib/adiwg/mdtranslator/writers/iso/codelists/code_initiativeType.rb +41 -29
- data/lib/adiwg/mdtranslator/writers/iso/codelists/code_keywordType.rb +46 -27
- data/lib/adiwg/mdtranslator/writers/iso/codelists/code_maintenanceFrequency.rb +55 -36
- data/lib/adiwg/mdtranslator/writers/iso/codelists/code_mediumFormat.rb +44 -26
- data/lib/adiwg/mdtranslator/writers/iso/codelists/code_mediumName.rb +68 -38
- data/lib/adiwg/mdtranslator/writers/iso/codelists/code_obligation.rb +32 -25
- data/lib/adiwg/mdtranslator/writers/iso/codelists/code_onlineFunction.rb +42 -25
- data/lib/adiwg/mdtranslator/writers/iso/codelists/code_presentationForm.rb +58 -31
- data/lib/adiwg/mdtranslator/writers/iso/codelists/code_progress.rb +44 -25
- data/lib/adiwg/mdtranslator/writers/iso/codelists/code_restriction.rb +47 -32
- data/lib/adiwg/mdtranslator/writers/iso/codelists/code_role.rb +52 -29
- data/lib/adiwg/mdtranslator/writers/iso/codelists/code_scope.rb +58 -35
- data/lib/adiwg/mdtranslator/writers/iso/codelists/code_spatialRepresentationType.rb +43 -30
- data/lib/adiwg/mdtranslator/writers/iso/codelists/code_topicCategory.rb +51 -44
- data/lib/adiwg/mdtranslator/writers/iso/units/class_baseUnit.rb +26 -15
- data/lib/adiwg/mdtranslator/writers/iso/units/class_conventionalUnit.rb +56 -45
- data/lib/adiwg/mdtranslator/writers/iso/units/class_definitionUnit.rb +23 -12
- data/lib/adiwg/mdtranslator/writers/iso/units/class_derivedUnit.rb +30 -19
- data/lib/adiwg/mdtranslator/writers/iso/units/class_unitsOfMeasure.rb +223 -212
- data/lib/adiwg/mdtranslator/writers/iso19110/class_FCfeatureCatalogue.rb +174 -0
- data/lib/adiwg/mdtranslator/writers/iso19110/iso19110_writer.rb +41 -12
- data/lib/adiwg/mdtranslator/writers/iso19115_2/class_MImetadata.rb +347 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_2/iso19115_2_writer.rb +151 -119
- data/lib/adiwg/mdtranslator/writers/mdWriters.rb +63 -0
- data/test/readers/mdJson/v0_9/tc_reader_mdjson_additionalDocumentation.rb +84 -0
- data/test/readers/mdJson/v0_9/tc_reader_mdjson_address.rb +100 -0
- data/test/readers/mdJson/v0_9/tc_reader_mdjson_associatedResource.rb +100 -0
- data/test/readers/mdJson/v0_9/tc_reader_mdjson_browseGraphic.rb +66 -0
- data/test/readers/mdJson/v0_9/tc_reader_mdjson_citation.rb +115 -0
- data/test/readers/mdJson/v0_9/tc_reader_mdjson_contact.rb +137 -0
- data/test/readers/mdJson/v0_9/tc_reader_mdjson_onlineResource.rb +47 -0
- data/test/readers/mdJson/v0_9/tc_reader_mdjson_phone.rb +128 -0
- data/test/readers/mdJson/v0_9/tc_translation.rb +82 -0
- data/test/writers/iso19115_2/tc_writer_iso19115_2_address.rb +222 -0
- metadata +87 -60
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_additionalDocumentation.rb +0 -36
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_address.rb +0 -71
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_associatedResource.rb +0 -66
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_boundingBox.rb +0 -51
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_browseGraphic.rb +0 -52
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_citation.rb +0 -104
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_contacts.rb +0 -121
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_coordinates.rb +0 -52
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_dataDictionary.rb +0 -53
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_dataQuality.rb +0 -40
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_dateTime.rb +0 -27
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_descriptiveKeyword.rb +0 -49
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_dictionaryInfo.rb +0 -52
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_distributionInfo.rb +0 -150
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_domain.rb +0 -62
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_domainItem.rb +0 -42
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_entity.rb +0 -92
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_entityAttribute.rb +0 -91
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_entityForeignKey.rb +0 -43
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_entityIndex.rb +0 -42
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_extent.rb +0 -62
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_geoCoordSystem.rb +0 -46
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_geoProperties.rb +0 -89
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_geographicElement.rb +0 -168
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_legalConstraint.rb +0 -45
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_lineString.rb +0 -25
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_lineage.rb +0 -50
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_metadata.rb +0 -77
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_metadataExtension.rb +0 -40
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_metadataInfo.rb +0 -112
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_onlineResource.rb +0 -62
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_phone.rb +0 -59
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_point.rb +0 -25
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_polygon.rb +0 -55
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_processStep.rb +0 -64
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_resolution.rb +0 -42
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_resourceFormat.rb +0 -35
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_resourceIdentifier.rb +0 -49
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_resourceInfo.rb +0 -317
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_resourceMaintenance.rb +0 -50
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_resourceSpecificUsage.rb +0 -50
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_responsibleParty.rb +0 -37
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_securityConstraint.rb +0 -52
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_source.rb +0 -48
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_spatialReference.rb +0 -48
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_taxonClass.rb +0 -43
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_taxonomy.rb +0 -83
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_temporalElement.rb +0 -71
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_timeInstant.rb +0 -45
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_timePeriod.rb +0 -53
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_verticalElement.rb +0 -53
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_voucher.rb +0 -38
- data/lib/adiwg/mdtranslator/validator.rb +0 -43
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_FCfeatureCatalogue.rb +0 -171
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_MImetadata.rb +0 -333
- 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.
|
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:
|
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
|
169
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
170
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
171
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
172
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
173
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
174
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
175
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
176
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
177
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
178
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
179
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
180
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
181
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
182
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
183
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
184
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
185
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
186
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
187
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
188
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
189
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
190
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
191
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
192
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
193
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
194
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
195
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
196
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
197
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
198
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
199
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
200
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
201
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
202
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
203
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
204
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
205
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
206
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
207
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
208
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
209
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
210
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
211
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
212
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
213
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
214
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
215
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
216
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
217
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
218
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
219
|
-
- lib/adiwg/mdtranslator/readers/mdJson/modules_0.9
|
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
|
-
-
|
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: '
|
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/
|
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
|