adiwg-mdtranslator 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -7
- data/Rakefile +1 -2
- data/adiwg-mdtranslator.gemspec +23 -23
- data/bin/mdtranslator +187 -155
- data/lib/adiwg/mdtranslator.rb +63 -38
- data/lib/adiwg/mdtranslator/internal/internal_metadata_obj.rb +123 -5
- data/lib/adiwg/mdtranslator/internal/module_coordinates.rb +55 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/mdJson_reader.rb +98 -70
- data/lib/adiwg/mdtranslator/readers/mdJson/mdJson_validator.rb +13 -11
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_additionalDocumentation.rb +13 -3
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_address.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_associatedResource.rb +22 -4
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_boundingBox.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_browseGraphic.rb +11 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_citation.rb +28 -9
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_classedData.rb +49 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_classedDataItem.rb +53 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_contacts.rb +14 -12
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_coverageInfo.rb +83 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_coverageItem.rb +136 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_dataDictionary.rb +9 -7
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_dataQuality.rb +17 -3
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_dateTime.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_descriptiveKeyword.rb +22 -5
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_dictionaryInfo.rb +18 -3
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_digitalTransferOption.rb +80 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_dimension.rb +81 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_distributionInfo.rb +89 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_distributionOrder.rb +62 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_domain.rb +24 -5
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_domainItem.rb +23 -4
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_entity.rb +26 -7
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_entityAttribute.rb +24 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_entityForeignKey.rb +20 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_entityIndex.rb +20 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_extent.rb +9 -7
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_geoCoordSystem.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_geoProperties.rb +9 -7
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_geographicElement.rb +20 -18
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_gridInfo.rb +67 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_imageInfo.rb +119 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_legalConstraint.rb +7 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_lineString.rb +5 -4
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_lineage.rb +11 -5
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_locale.rb +57 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_mdJson.rb +10 -9
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_medium.rb +73 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_metadata.rb +14 -12
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_metadataExtension.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_metadataInfo.rb +35 -15
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_onlineResource.rb +7 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_phone.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_point.rb +5 -4
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_polygon.rb +5 -4
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_processStep.rb +19 -6
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_resolution.rb +7 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_resourceFormat.rb +12 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_resourceIdentifier.rb +30 -5
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_resourceInfo.rb +70 -33
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_resourceMaintenance.rb +5 -3
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_resourceSpecificUsage.rb +5 -3
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_responsibleParty.rb +10 -8
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_securityConstraint.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/module_sensorInfo.rb +69 -0
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_source.rb +11 -5
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_spatialReference.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_taxonClass.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_taxonomy.rb +11 -9
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_temporalElement.rb +9 -7
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_timeInstant.rb +5 -3
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_timePeriod.rb +6 -4
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_verticalElement.rb +3 -1
- data/lib/adiwg/mdtranslator/readers/mdJson/{modules_1.0 → modules_v1}/module_voucher.rb +5 -3
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_v1/version.rb +19 -0
- data/lib/adiwg/mdtranslator/readers/mdReaders.rb +21 -18
- data/lib/adiwg/mdtranslator/version.rb +15 -1
- data/lib/adiwg/mdtranslator/writers/html/html_writer.rb +11 -8
- data/lib/adiwg/mdtranslator/writers/html/md_html_writer.rb +21 -18
- data/lib/adiwg/mdtranslator/writers/html/sections/html_additionalDocumentation.rb +48 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_associatedResource.rb +73 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_body.rb +84 -135
- data/lib/adiwg/mdtranslator/writers/html/sections/html_citation.rb +18 -8
- data/lib/adiwg/mdtranslator/writers/html/sections/html_classedData.rb +50 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_classedDataItem.rb +50 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_contact.rb +5 -9
- data/lib/adiwg/mdtranslator/writers/html/sections/html_coverageInfo.rb +88 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_coverageItem.rb +139 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_dataDictionary.rb +13 -12
- data/lib/adiwg/mdtranslator/writers/html/sections/html_dataLineage.rb +5 -4
- data/lib/adiwg/mdtranslator/writers/html/sections/html_dataSource.rb +5 -4
- data/lib/adiwg/mdtranslator/writers/html/sections/html_dimension.rb +71 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_distributor.rb +62 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_domain.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_entity.rb +5 -4
- data/lib/adiwg/mdtranslator/writers/html/sections/html_extent.rb +7 -6
- data/lib/adiwg/mdtranslator/writers/html/sections/html_format.rb +7 -1
- data/lib/adiwg/mdtranslator/writers/html/sections/html_geographicElement.rb +7 -7
- data/lib/adiwg/mdtranslator/writers/html/sections/html_gridInfo.rb +65 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_head.rb +18 -3
- data/lib/adiwg/mdtranslator/writers/html/sections/html_imageInfo.rb +120 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_inlineCss.css +13 -20
- data/lib/adiwg/mdtranslator/writers/html/sections/html_keyword.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_medium.rb +19 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_metadataInfo.rb +22 -9
- data/lib/adiwg/mdtranslator/writers/html/sections/html_orderProcess.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_processStep.rb +5 -4
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceContact.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceGeneral.rb +25 -14
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceId.rb +30 -3
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceInfo.rb +194 -129
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceMaint.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceOther.rb +7 -6
- data/lib/adiwg/mdtranslator/writers/html/sections/html_resourceUsage.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_responsibleParty.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_sensorInfo.rb +66 -0
- data/lib/adiwg/mdtranslator/writers/html/sections/html_taxonomy.rb +7 -6
- data/lib/adiwg/mdtranslator/writers/html/sections/html_temporalElement.rb +7 -6
- data/lib/adiwg/mdtranslator/writers/html/sections/html_timeInstant.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_timePeriod.rb +3 -2
- data/lib/adiwg/mdtranslator/writers/html/sections/html_transferOption.rb +29 -4
- data/lib/adiwg/mdtranslator/writers/html/version.rb +17 -0
- data/lib/adiwg/mdtranslator/writers/iso19110/class_FCfeatureCatalogue.rb +17 -16
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_address.rb +12 -8
- data/lib/adiwg/mdtranslator/writers/iso19110/classes/class_baseUnit.rb +42 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_codelist.rb +8 -3
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_contact.rb +16 -25
- data/lib/adiwg/mdtranslator/writers/iso19110/classes/class_conventionalUnit.rb +68 -0
- data/lib/adiwg/mdtranslator/writers/iso19110/classes/class_definitionUnit.rb +39 -0
- data/lib/adiwg/mdtranslator/writers/iso19110/classes/class_derivedUnit.rb +46 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_featureAttribute.rb +17 -14
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_featureConstraint.rb +6 -2
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_featureType.rb +16 -12
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_listedValue.rb +9 -18
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_multiplicity.rb +8 -4
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_onlineResource.rb +13 -9
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_responsibleParty.rb +16 -12
- data/lib/adiwg/mdtranslator/writers/{iso → iso19110}/classes/class_telephone.rb +9 -5
- data/lib/adiwg/mdtranslator/writers/iso19110/classes/class_unitsOfMeasure.rb +262 -0
- data/lib/adiwg/mdtranslator/writers/iso19110/iso19110_writer.rb +36 -16
- data/lib/adiwg/mdtranslator/writers/iso19110/version.rb +14 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_2/class_MImetadata.rb +73 -37
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_address.rb +116 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_aggregateInformation.rb +13 -9
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_band.rb +165 -0
- data/lib/adiwg/mdtranslator/writers/{iso/units → iso19115_2/classes}/class_baseUnit.rb +6 -6
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_boundingPolygon.rb +14 -10
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_browseGraphic.rb +9 -5
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_citation.rb +31 -16
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_codelist.rb +56 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_contact.rb +87 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_contentInfo.rb +111 -0
- data/lib/adiwg/mdtranslator/writers/{iso/units → iso19115_2/classes}/class_conventionalUnit.rb +6 -6
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_dataIdentification.rb +106 -59
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_dataQuality.rb +11 -7
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_date.rb +8 -5
- data/lib/adiwg/mdtranslator/writers/{iso/units → iso19115_2/classes}/class_definitionUnit.rb +7 -7
- data/lib/adiwg/mdtranslator/writers/{iso/units → iso19115_2/classes}/class_derivedUnit.rb +6 -6
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_digitalTransferOptions.rb +92 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_dimension.rb +68 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_distribution.rb +8 -4
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_distributor.rb +44 -22
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_enumerationList.rb +7 -2
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_extent.rb +18 -14
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_format.rb +18 -2
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_geographicBoundingBox.rb +6 -2
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_geographicDescription.rb +8 -4
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_geographicElement.rb +10 -6
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_gridInfo.rb +80 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_identifier.rb +10 -6
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_imageDescription.rb +157 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_keyword.rb +12 -8
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_legalConstraints.rb +12 -8
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_lineString.rb +13 -10
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_lineage.rb +14 -10
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_locale.rb +67 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_maintenanceInformation.rb +12 -8
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_medium.rb +30 -9
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_metadataExtension.rb +19 -15
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_multiGeometry.rb +22 -17
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_onlineResource.rb +94 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_point.rb +12 -9
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_polygon.rb +14 -11
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_processStep.rb +12 -9
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_rangeElementDescription.rb +88 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_referenceSystem.rb +52 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_resolution.rb +6 -2
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_resourceIdentifier.rb +94 -0
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_responsibleParty.rb +106 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_securityConstraints.rb +12 -8
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_source.rb +12 -8
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_standardOrderProcess.rb +11 -9
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_taxonClassification.rb +8 -4
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_taxonSystem.rb +18 -14
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_telephone.rb +92 -0
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_temporalExtent.rb +10 -6
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_timeInstant.rb +9 -8
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_timePeriod.rb +10 -8
- data/lib/adiwg/mdtranslator/writers/{iso/units → iso19115_2/classes}/class_unitsOfMeasure.rb +48 -25
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_usage.rb +11 -7
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_useConstraints.rb +6 -2
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_verticalExtent.rb +6 -2
- data/lib/adiwg/mdtranslator/writers/{iso → iso19115_2}/classes/class_vouchers.rb +8 -4
- data/lib/adiwg/mdtranslator/writers/iso19115_2/iso19115_2_writer.rb +32 -19
- data/lib/adiwg/mdtranslator/writers/iso19115_2/version.rb +17 -0
- data/lib/adiwg/mdtranslator/writers/mdWriters.rb +21 -24
- data/test/readers/mdJson/v1/tc_reader_mdjson_additionalDocumentation.rb +116 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_address.rb +111 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_associatedResource.rb +157 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_browseGraphic.rb +119 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_citation.rb +143 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_contact.rb +138 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_dataQuality.rb +111 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_dateTime.rb +159 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_descriptiveKeyword.rb +115 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_dictionaryInfo.rb +121 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_digitalTransferOption.rb +94 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_distributionOrder.rb +103 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_domain.rb +130 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_domainItem.rb +98 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_entity.rb +134 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_entityAttribute.rb +154 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_entityForeignKey.rb +100 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_entityIndex.rb +99 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_legalConstraint.rb +104 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_lineage.rb +117 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_medium.rb +98 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_metadataInfo.rb +141 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_onlineResource.rb +110 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_phone.rb +112 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_processStep.rb +118 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_resolution.rb +77 -0
- data/test/readers/mdJson/v1/tc_reader_mdjson_source.rb +117 -0
- data/test/readers/mdJson/v1/tc_translation_19110.rb +57 -0
- data/test/readers/mdJson/{v1_0/tc_translation.rb → v1/tc_translation_19115_2.rb} +16 -31
- data/test/writers/iso19115_2/tc_writer_iso19115_2_address.rb +22 -15
- metadata +219 -140
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_1.0/module_coordinates.rb +0 -63
- data/lib/adiwg/mdtranslator/readers/mdJson/modules_1.0/module_distributionInfo.rb +0 -161
- data/lib/adiwg/mdtranslator/writers/html/sections/logo150.txt +0 -25
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_digitalTransferOptions.rb +0 -62
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_genericMetaData.rb +0 -74
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_referenceIdentifier.rb +0 -53
- data/lib/adiwg/mdtranslator/writers/iso/classes/class_referenceSystem.rb +0 -40
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_additionalDocumentation.rb +0 -85
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_address.rb +0 -100
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_associatedResource.rb +0 -101
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_browseGraphic.rb +0 -86
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_citation.rb +0 -116
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_contact.rb +0 -138
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_dictionaryInfo.rb +0 -95
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_domain.rb +0 -99
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_onlineResource.rb +0 -92
- data/test/readers/mdJson/v1_0/tc_reader_mdjson_phone.rb +0 -110
@@ -0,0 +1,50 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# classed data
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2015-08-21 original script
|
6
|
+
|
7
|
+
require_relative 'html_classedDataItem'
|
8
|
+
|
9
|
+
module ADIWG
|
10
|
+
module Mdtranslator
|
11
|
+
module Writers
|
12
|
+
module Html
|
13
|
+
|
14
|
+
class MdHtmlClassedData
|
15
|
+
def initialize(html)
|
16
|
+
@html = html
|
17
|
+
end
|
18
|
+
|
19
|
+
def writeHtml(hClassD)
|
20
|
+
|
21
|
+
# classes used
|
22
|
+
htmlClassItem = MdHtmlClassedDataItem.new(@html)
|
23
|
+
|
24
|
+
# classed data - number of classes
|
25
|
+
s = hClassD[:numberOfClasses]
|
26
|
+
if !s.nil?
|
27
|
+
@html.em('Number of classes: ')
|
28
|
+
@html.text!(s.to_s)
|
29
|
+
@html.br
|
30
|
+
end
|
31
|
+
|
32
|
+
# classed data - data items
|
33
|
+
aClassItems = hClassD[:classedDataItems]
|
34
|
+
aClassItems.each do |hClassItem|
|
35
|
+
@html.details do
|
36
|
+
@html.summary(hClassItem[:className], {'class'=>'h5'})
|
37
|
+
@html.section(:class=>'block') do
|
38
|
+
htmlClassItem.writeHtml(hClassItem)
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
end # writeHtml
|
44
|
+
|
45
|
+
end # class
|
46
|
+
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# classed data item
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2015-08-21 original script
|
6
|
+
|
7
|
+
module ADIWG
|
8
|
+
module Mdtranslator
|
9
|
+
module Writers
|
10
|
+
module Html
|
11
|
+
|
12
|
+
class MdHtmlClassedDataItem
|
13
|
+
def initialize(html)
|
14
|
+
@html = html
|
15
|
+
end
|
16
|
+
|
17
|
+
def writeHtml(hClassItem)
|
18
|
+
|
19
|
+
# classed data item - name
|
20
|
+
s = hClassItem[:className]
|
21
|
+
if !s.nil?
|
22
|
+
@html.em('Item name: ')
|
23
|
+
@html.text!(s)
|
24
|
+
@html.br
|
25
|
+
end
|
26
|
+
|
27
|
+
# classed data item - description
|
28
|
+
s = hClassItem[:classDescription]
|
29
|
+
if !s.nil?
|
30
|
+
@html.em('Item description: ')
|
31
|
+
@html.text!(s)
|
32
|
+
@html.br
|
33
|
+
end
|
34
|
+
|
35
|
+
# classed data item - value
|
36
|
+
s = hClassItem[:classValue]
|
37
|
+
if !s.nil?
|
38
|
+
@html.em('Item value: ')
|
39
|
+
@html.text!(s.to_s)
|
40
|
+
@html.br
|
41
|
+
end
|
42
|
+
|
43
|
+
end # writeHtml
|
44
|
+
|
45
|
+
end # class
|
46
|
+
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -3,8 +3,10 @@
|
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2015-03-23 original script
|
6
|
+
# Stan Smith 2015-06-23 replace global ($response) with passed in object (responseObj)
|
7
|
+
# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
|
6
8
|
|
7
|
-
|
9
|
+
require_relative 'html_onlineResource'
|
8
10
|
|
9
11
|
module ADIWG
|
10
12
|
module Mdtranslator
|
@@ -19,16 +21,10 @@ module ADIWG
|
|
19
21
|
def writeHtml(contactId)
|
20
22
|
|
21
23
|
# classes used
|
22
|
-
htmlOlRes =
|
24
|
+
htmlOlRes = MdHtmlOnlineResource.new(@html)
|
23
25
|
|
24
26
|
# find contact in contact list
|
25
|
-
hContact =
|
26
|
-
$aContacts.each do |hCont|
|
27
|
-
if hCont[:contactId] == contactId
|
28
|
-
hContact = hCont
|
29
|
-
break
|
30
|
-
end
|
31
|
-
end
|
27
|
+
hContact = MdHtmlWriter.getContact(contactId)
|
32
28
|
|
33
29
|
# contact - individual name
|
34
30
|
s = hContact[:indName]
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# coverage information
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2015-08-21 original script
|
6
|
+
|
7
|
+
require_relative 'html_resourceId'
|
8
|
+
require_relative 'html_coverageItem'
|
9
|
+
require_relative 'html_imageInfo'
|
10
|
+
|
11
|
+
module ADIWG
|
12
|
+
module Mdtranslator
|
13
|
+
module Writers
|
14
|
+
module Html
|
15
|
+
|
16
|
+
class MdHtmlCoverageInfo
|
17
|
+
def initialize(html)
|
18
|
+
@html = html
|
19
|
+
end
|
20
|
+
|
21
|
+
def writeHtml(hCover)
|
22
|
+
|
23
|
+
# classes used
|
24
|
+
htmlResId = MdHtmlResourceId.new(@html)
|
25
|
+
htmlItem = MdHtmlCoverageItem.new(@html)
|
26
|
+
htmlImage = MdHtmlImageInfo.new(@html)
|
27
|
+
|
28
|
+
# coverage information - type
|
29
|
+
s = hCover[:coverageType]
|
30
|
+
if !s.nil?
|
31
|
+
@html.em('Coverage type: ')
|
32
|
+
@html.text!(s)
|
33
|
+
@html.br
|
34
|
+
end
|
35
|
+
|
36
|
+
# coverage information - name
|
37
|
+
s = hCover[:coverageName]
|
38
|
+
if !s.nil?
|
39
|
+
@html.em('Coverage name: ')
|
40
|
+
@html.text!(s)
|
41
|
+
@html.br
|
42
|
+
end
|
43
|
+
|
44
|
+
# coverage information - description
|
45
|
+
s = hCover[:coverageDescription]
|
46
|
+
if !s.nil?
|
47
|
+
@html.em('Coverage description: ')
|
48
|
+
@html.text!(s)
|
49
|
+
@html.br
|
50
|
+
end
|
51
|
+
|
52
|
+
# coverage information - processing level
|
53
|
+
hIdentifier = hCover[:processingLevel]
|
54
|
+
if !hIdentifier.empty?
|
55
|
+
@html.em('Processing level: ')
|
56
|
+
@html.section(:class=>'block') do
|
57
|
+
htmlResId.writeHtml(hIdentifier)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# coverage information - items
|
62
|
+
aCoverItems = hCover[:coverageItems]
|
63
|
+
aCoverItems.each do |hCovItem|
|
64
|
+
@html.details do
|
65
|
+
@html.summary(hCovItem[:itemName], {'class'=>'h5'})
|
66
|
+
@html.section(:class=>'block') do
|
67
|
+
htmlItem.writeHtml(hCovItem)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# coverage information - image info
|
73
|
+
hImage = hCover[:imageInfo]
|
74
|
+
if !hImage.empty?
|
75
|
+
@html.em('Image information: ')
|
76
|
+
@html.section(:class=>'block') do
|
77
|
+
htmlImage.writeHtml(hImage)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
end # writeHtml
|
82
|
+
|
83
|
+
end # class
|
84
|
+
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -0,0 +1,139 @@
|
|
1
|
+
# HTML writer
|
2
|
+
# coverage item
|
3
|
+
|
4
|
+
# History:
|
5
|
+
# Stan Smith 2015-08-21 original script
|
6
|
+
|
7
|
+
require_relative 'html_classedData'
|
8
|
+
require_relative 'html_sensorInfo'
|
9
|
+
|
10
|
+
module ADIWG
|
11
|
+
module Mdtranslator
|
12
|
+
module Writers
|
13
|
+
module Html
|
14
|
+
|
15
|
+
class MdHtmlCoverageItem
|
16
|
+
def initialize(html)
|
17
|
+
@html = html
|
18
|
+
end
|
19
|
+
|
20
|
+
def writeHtml(hCovItem)
|
21
|
+
|
22
|
+
# classes used
|
23
|
+
htmlClassD = MdHtmlClassedData.new(@html)
|
24
|
+
htmlSensor = MdHtmlSensorInfo.new(@html)
|
25
|
+
|
26
|
+
# coverage item - item name
|
27
|
+
s = hCovItem[:itemName]
|
28
|
+
if !s.nil?
|
29
|
+
@html.em('Item name: ')
|
30
|
+
@html.text!(s)
|
31
|
+
@html.br
|
32
|
+
end
|
33
|
+
|
34
|
+
# coverage item - item type
|
35
|
+
s = hCovItem[:itemType]
|
36
|
+
if !s.nil?
|
37
|
+
@html.em('Item type: ')
|
38
|
+
@html.text!(s)
|
39
|
+
@html.br
|
40
|
+
end
|
41
|
+
|
42
|
+
# coverage item - item description
|
43
|
+
s = hCovItem[:itemDescription]
|
44
|
+
if !s.nil?
|
45
|
+
@html.em('Item Description: ')
|
46
|
+
@html.text!(s)
|
47
|
+
@html.br
|
48
|
+
end
|
49
|
+
|
50
|
+
# coverage item - min value
|
51
|
+
s = hCovItem[:minValue]
|
52
|
+
if !s.nil?
|
53
|
+
@html.em('Min value: ')
|
54
|
+
@html.text!(s.to_s)
|
55
|
+
@html.br
|
56
|
+
end
|
57
|
+
|
58
|
+
# coverage item - max value
|
59
|
+
s = hCovItem[:maxValue]
|
60
|
+
if !s.nil?
|
61
|
+
@html.em('Max value: ')
|
62
|
+
@html.text!(s.to_s)
|
63
|
+
@html.br
|
64
|
+
end
|
65
|
+
|
66
|
+
# coverage item - units
|
67
|
+
s = hCovItem[:units]
|
68
|
+
if !s.nil?
|
69
|
+
@html.em('Units: ')
|
70
|
+
@html.text!(s)
|
71
|
+
@html.br
|
72
|
+
end
|
73
|
+
|
74
|
+
# coverage item - scale factor
|
75
|
+
s = hCovItem[:scaleFactor]
|
76
|
+
if !s.nil?
|
77
|
+
@html.em('Scale factor: ')
|
78
|
+
@html.text!(s.to_s)
|
79
|
+
@html.br
|
80
|
+
end
|
81
|
+
|
82
|
+
# coverage item - offset
|
83
|
+
s = hCovItem[:offset]
|
84
|
+
if !s.nil?
|
85
|
+
@html.em('Offset: ')
|
86
|
+
@html.text!(s.to_s)
|
87
|
+
@html.br
|
88
|
+
end
|
89
|
+
|
90
|
+
# coverage item - mean value
|
91
|
+
s = hCovItem[:meanValue]
|
92
|
+
if !s.nil?
|
93
|
+
@html.em('Mean value: ')
|
94
|
+
@html.text!(s.to_s)
|
95
|
+
@html.br
|
96
|
+
end
|
97
|
+
|
98
|
+
# coverage item - standard deviation
|
99
|
+
s = hCovItem[:standardDeviation]
|
100
|
+
if !s.nil?
|
101
|
+
@html.em('Standard deviation: ')
|
102
|
+
@html.text!(s.to_s)
|
103
|
+
@html.br
|
104
|
+
end
|
105
|
+
|
106
|
+
# coverage item - bits per value
|
107
|
+
s = hCovItem[:bitsPerValue]
|
108
|
+
if !s.nil?
|
109
|
+
@html.em('Bits per value: ')
|
110
|
+
@html.text!(s.to_s)
|
111
|
+
@html.br
|
112
|
+
end
|
113
|
+
|
114
|
+
# coverage item - classed data
|
115
|
+
hClassD= hCovItem[:classedData]
|
116
|
+
if !hClassD.empty?
|
117
|
+
@html.em('Classified data items: ')
|
118
|
+
@html.section(:class=>'block') do
|
119
|
+
htmlClassD.writeHtml(hClassD)
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# coverage item - sensor information
|
124
|
+
hSensor = hCovItem[:sensorInfo]
|
125
|
+
if !hSensor.empty?
|
126
|
+
@html.em('Sensor information: ')
|
127
|
+
@html.section(:class=>'block') do
|
128
|
+
htmlSensor.writeHtml(hSensor)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
end # writeHtml
|
133
|
+
|
134
|
+
end # class
|
135
|
+
|
136
|
+
end
|
137
|
+
end
|
138
|
+
end
|
139
|
+
end
|
@@ -3,10 +3,11 @@
|
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2015-03-26 original script
|
6
|
+
# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
|
8
|
+
require_relative 'html_citation'
|
9
|
+
require_relative 'html_domain'
|
10
|
+
require_relative 'html_entity'
|
10
11
|
|
11
12
|
module ADIWG
|
12
13
|
module Mdtranslator
|
@@ -21,9 +22,9 @@ module ADIWG
|
|
21
22
|
def writeHtml(hDictionary)
|
22
23
|
|
23
24
|
# classes used
|
24
|
-
htmlCitation =
|
25
|
-
htmlDomain =
|
26
|
-
htmlEntity =
|
25
|
+
htmlCitation = MdHtmlCitation.new(@html)
|
26
|
+
htmlDomain = MdHtmlDictionaryDomain.new(@html)
|
27
|
+
htmlEntity = MdHtmlDictionaryEntity.new(@html)
|
27
28
|
|
28
29
|
hDictId = hDictionary[:dictionaryInfo]
|
29
30
|
aDictDom = hDictionary[:domains]
|
@@ -67,9 +68,9 @@ module ADIWG
|
|
67
68
|
end
|
68
69
|
|
69
70
|
# data dictionary - resource domains
|
70
|
-
|
71
|
-
@html.
|
72
|
-
|
71
|
+
unless aDictDom.empty?
|
72
|
+
@html.details do
|
73
|
+
@html.summary('Resource Domains', {'class'=>'h4'})
|
73
74
|
aDictDom.each do |hDomain|
|
74
75
|
@html.section(:class=>'block') do
|
75
76
|
@html.details do
|
@@ -84,9 +85,9 @@ module ADIWG
|
|
84
85
|
end
|
85
86
|
|
86
87
|
# data dictionary - resource schema
|
87
|
-
|
88
|
-
@html.
|
89
|
-
|
88
|
+
unless aDictEnt.empty?
|
89
|
+
@html.details do
|
90
|
+
@html.summary('Resource Entities', {'class'=>'h4'})
|
90
91
|
aDictEnt.each do |hEntity|
|
91
92
|
@html.section(:class=>'block') do
|
92
93
|
@html.details do
|
@@ -3,9 +3,10 @@
|
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2015-03-27 original script
|
6
|
+
# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
|
6
7
|
|
7
|
-
|
8
|
-
|
8
|
+
require_relative 'html_processStep'
|
9
|
+
require_relative 'html_dataSource'
|
9
10
|
|
10
11
|
module ADIWG
|
11
12
|
module Mdtranslator
|
@@ -20,8 +21,8 @@ module ADIWG
|
|
20
21
|
def writeHtml(hLineage)
|
21
22
|
|
22
23
|
# classes used
|
23
|
-
htmlPStep =
|
24
|
-
htmlDSource =
|
24
|
+
htmlPStep = MdHtmlProcessStep.new(@html)
|
25
|
+
htmlDSource = MdHtmlDataSource.new(@html)
|
25
26
|
|
26
27
|
# lineage - statement
|
27
28
|
s = hLineage[:statement]
|
@@ -3,9 +3,10 @@
|
|
3
3
|
|
4
4
|
# History:
|
5
5
|
# Stan Smith 2015-03-27 original script
|
6
|
+
# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
|
6
7
|
|
7
|
-
|
8
|
-
|
8
|
+
require_relative 'html_citation'
|
9
|
+
require_relative 'html_processStep'
|
9
10
|
|
10
11
|
module ADIWG
|
11
12
|
module Mdtranslator
|
@@ -20,8 +21,8 @@ module ADIWG
|
|
20
21
|
def writeHtml(hSource)
|
21
22
|
|
22
23
|
# classes used
|
23
|
-
htmlCitation =
|
24
|
-
htmlPStep =
|
24
|
+
htmlCitation = MdHtmlCitation.new(@html)
|
25
|
+
htmlPStep = MdHtmlProcessStep.new(@html)
|
25
26
|
|
26
27
|
# data source - description
|
27
28
|
s = hSource[:sourceDescription]
|