adiwg-mdtranslator 2.19.0.pre.beta.12 → 2.19.0.pre.beta.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9af670ec818cd4bfb3e2a39b629cda7acd711cea3b0b7cfd2427ae4bafb9bbb
4
- data.tar.gz: 16d420750835aad0f5047231ad55b53222fa2b325b97940bbe8d1995a1240a64
3
+ metadata.gz: 24f78c61ad9d8d18ff94378af29e72995b167431942a290c7ae425ffbafe9a5d
4
+ data.tar.gz: ce3d9a34254bd22f4ebb25c5eebabbfb6e3046f71a1e11e09c8c0e8ffc6108d7
5
5
  SHA512:
6
- metadata.gz: 8dabb3db81a1db6cf996772d9f6194101c8d9cd48a02458e5e2b0a90bad45980edcd320fcb03e783f021effc292325e1a02d105c0368ca0ac4aebbf6dbe6e032
7
- data.tar.gz: ad51417d6cd25c1705f446773b238a3d1a8252e99664e701de6af102946d51a6cb7869199b06353079168a9a175cc5feefef124be13eea2b214388b86f8d7f55
6
+ metadata.gz: afce426983e990d9708dde1476607392f262edd0c4c2adae6d65820446b71e3ffb6de566301874a4300e3d1ec1e33226b11060c4a9629997cf2e92730c51a440
7
+ data.tar.gz: 94cce522b66288d9fdcbfc9c652ad502429f0d7fc74b16a3c6e415f759db4736e2d61f61f5cfb4bd7d915c1fc5a710575072f441a4003ef10e6cafc3429a12cf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- adiwg-mdtranslator (2.19.0.pre.beta.12)
4
+ adiwg-mdtranslator (2.19.0.pre.beta.13)
5
5
  adiwg-mdcodes (= 2.9.3.pre.beta.3)
6
6
  adiwg-mdjson_schemas (= 2.9.2.pre.beta.21)
7
7
  builder (~> 3.2)
@@ -30,7 +30,7 @@ module ADIWG
30
30
  xAccuracy = xDataQual.xpath('./attracc')
31
31
  accuracyReport = xAccuracy.xpath('./attraccr').text
32
32
  report = intMetadataClass.newDataQualityReport
33
- report[:type] = 'NonQuantitativeAttributeAccuracy'
33
+ report[:type] = 'NonQuantitativeAttributeCorrectness'
34
34
  descriptiveResult = intMetadataClass.newDescriptiveResult
35
35
  descriptiveResult[:statement] = accuracyReport
36
36
  report[:descriptiveResult] << descriptiveResult
@@ -68,7 +68,7 @@ module ADIWG
68
68
  else
69
69
  complete = xComplete.text
70
70
  report = intMetadataClass.newDataQualityReport
71
- report[:type] = 'CompletenessOmission'
71
+ report[:type] = 'Omission'
72
72
  descriptiveResult = intMetadataClass.newDescriptiveResult
73
73
  descriptiveResult[:statement] = complete
74
74
  report[:descriptiveResult] << descriptiveResult
@@ -109,7 +109,7 @@
109
109
  module ADIWG
110
110
  module Mdtranslator
111
111
  # current mdtranslator version
112
- VERSION = "2.19.0-beta.12"
112
+ VERSION = "2.19.0-beta.13"
113
113
  end
114
114
  end
115
115
 
@@ -30,7 +30,7 @@ module ADIWG
30
30
  if hDataQuality && hDataQuality[:report]
31
31
  # data quality 2.1 (attracc) - attribute accuracy (not implemented)
32
32
  attribute_completeness_report = hDataQuality[:report].find do |report|
33
- report[:type] == 'NonQuantitativeAttributeCompleteness' &&
33
+ report[:type] == 'NonQuantitativeAttributeCorrectness' &&
34
34
  !report.dig(:descriptiveResult, 0, :statement).nil?
35
35
  end
36
36
 
@@ -56,7 +56,7 @@ module ADIWG
56
56
 
57
57
  # data quality 2.3 (complete) - completion report (not implemented) (required)
58
58
  completeness_report = hDataQuality[:report].find do |report|
59
- report[:type] == 'CompletenessOmission' &&
59
+ report[:type] == 'Omission' &&
60
60
  !report.dig(:descriptiveResult, 0, :statement).nil?
61
61
  end
62
62
 
@@ -70,20 +70,20 @@ module ADIWG
70
70
 
71
71
 
72
72
  horizontal_positional_accuracy_report = hDataQuality[:report].find do |report|
73
- report[:type] == 'AbsolutePositionalAccuracy' &&
74
- report.dig(:qualityMeasure, :nameOfMeasure)&.any? { |name|
75
- name == 'Horizontal Positional Accuracy Report'
76
- }
73
+ report[:type] == 'AbsolutePositionalAccuracy' # &&
74
+ # report.dig(:qualityMeasure, :nameOfMeasure)&.any? { |name|
75
+ # name == 'Horizontal Positional Accuracy Report'
76
+ # }
77
77
  end
78
78
 
79
79
  horizpar = horizontal_positional_accuracy_report&.dig(:evaluationMethod, :methodDescription)
80
80
 
81
81
 
82
82
  vertical_positional_accuracy_report = hDataQuality[:report].find do |report|
83
- report[:type] == 'AbsolutePositionalAccuracy' &&
84
- report.dig(:qualityMeasure, :nameOfMeasure)&.any? { |name|
85
- name == 'Vertical Positional Accuracy Report'
86
- }
83
+ report[:type] == 'AbsolutePositionalAccuracy' # &&
84
+ # report.dig(:qualityMeasure, :nameOfMeasure)&.any? { |name|
85
+ # name == 'Vertical Positional Accuracy Report'
86
+ # }
87
87
  end
88
88
 
89
89
  vertaccr = vertical_positional_accuracy_report&.dig(:evaluationMethod, :methodDescription)
@@ -99,8 +99,10 @@ module ADIWG
99
99
  end
100
100
  end
101
101
  end
102
- @xml.tag!('mdq:evaluationMethodType') do
103
- codeListClass.writeXML('mcc', 'iso_evaluationMethodType', evaluationMethod[:evaluationMethodType])
102
+ unless evaluationMethod[:evaluationMethodType].nil?
103
+ @xml.tag!('mdq:evaluationMethodType') do
104
+ codeListClass.writeXML('mcc', 'iso_evaluationMethodType', evaluationMethod[:evaluationMethodType])
105
+ end
104
106
  end
105
107
  end
106
108
  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: 2.19.0.pre.beta.12
4
+ version: 2.19.0.pre.beta.13
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: 2024-05-02 00:00:00.000000000 Z
12
+ date: 2024-05-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler