adiwg-mdtranslator 2.18.0rc7 → 2.18.0rc9

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: 591d2d7b0dc6725f4292ed10ee78f9ca89997589075359bf0fa08d8a93a107af
4
- data.tar.gz: f36fdd3179dd189530aea7f26007899a5f0397c4399ff41e31cc207abc6e9ccf
3
+ metadata.gz: a133eb4d545defe8cc794eef72c452add2921106f3719d70c11a515e47a604c5
4
+ data.tar.gz: 53ee5e410dcc8a1de08f4a22895e72d7aba1939a9050482fe2c52d1c3c3c9156
5
5
  SHA512:
6
- metadata.gz: 2f47e08dd56ccd40c5e32041bce1a2a76f3919225d0f355e842552d86f421e2c06f6352a85e2312bc71de2d6e692ca6a3bd2cb3552d01810f8a64b774161be0a
7
- data.tar.gz: d5bd3f4e3f8283514fe939d974e3c3008cdb248342aad13358cc7d0d567297b7f2b797f3cde07c3a3f4a8b85907b11c251b40ac01d6bcd6c3f3ca74820c57a20
6
+ metadata.gz: c6b625ab90a69673a63953e35b7e3921a394b27281a7b8899db1a2f6371f3c4f105ea4a3664667b10628ffc59a4f1e03c15e39c529f92f3d40b99f469db5b9e7
7
+ data.tar.gz: 1a8f1bcc76d5896c45a94fc43c6f607fd3807598363892bc3c90427044fa210fd62f2d9346953ee34ec94d792842a709f06a3fc1fb45da2f89841a7d30635bc9
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
34
34
  spec.add_runtime_dependency "thor", "~> 0.19"
35
35
  spec.add_runtime_dependency "uuidtools", "~> 2.1"
36
36
  spec.add_runtime_dependency "json-schema", "~> 2.7"
37
- spec.add_runtime_dependency "adiwg-mdjson_schemas", "2.8.0.pre.beta6"
37
+ spec.add_runtime_dependency "adiwg-mdjson_schemas", "2.8.0.pre.beta9"
38
38
  spec.add_runtime_dependency "adiwg-mdcodes", "~> 2.8"
39
39
  spec.add_runtime_dependency "jbuilder", "~> 2.5"
40
40
  spec.add_runtime_dependency "kramdown", "~> 1.13"
@@ -17,6 +17,13 @@ module ADIWG
17
17
 
18
18
  def self.unpack(xDataQual, hMetadata, hDataQuality, hResponseObj)
19
19
 
20
+ hDataQuality[:scope] = {scopeCode: 'tabularDataset'}
21
+ hDataQuality[:systemIdentifier] = {
22
+ uid: UUIDTools::UUID.random_create.to_s,
23
+ label: "CSDGM Data Quality"
24
+ }
25
+
26
+
20
27
  # data quality 2.1 (attracc) - attribute accuracy
21
28
  xAccuracy = xDataQual.xpath('./attracc')
22
29
  accuracyReport = xAccuracy.xpath('./attraccr').text
@@ -109,7 +109,7 @@
109
109
  module ADIWG
110
110
  module Mdtranslator
111
111
  # current mdtranslator version
112
- VERSION = "2.18.0rc7"
112
+ VERSION = "2.18.0rc9"
113
113
  end
114
114
  end
115
115
 
@@ -32,15 +32,17 @@ module ADIWG
32
32
  @xml.tag!('mdq:standaloneQualityReport') do
33
33
  @xml.tag!('mdq:DQ_StandaloneQualityReportInformation') do
34
34
  # reportReference
35
-
36
- @xml.tag!('mdq:reportReference') do
37
- citationClass.writeXML(hDataQuality[:standaloneQualityReport][:reportReference])
35
+ unless hDataQuality[:standaloneQualityReport][:reportReference].nil? || hDataQuality[:standaloneQualityReport][:reportReference].empty?
36
+ @xml.tag!('mdq:reportReference') do
37
+ citationClass.writeXML(hDataQuality[:standaloneQualityReport][:reportReference])
38
+ end
38
39
  end
39
40
 
40
-
41
41
  # abstract
42
- @xml.tag!('mdq:abstract') do
43
- @xml.tag!('gco:CharacterString', hDataQuality[:standaloneQualityReport][:abstract])
42
+ unless hDataQuality[:standaloneQualityReport][:abstract].nil? || hDataQuality[:standaloneQualityReport][:abstract].empty?
43
+ @xml.tag!('mdq:abstract') do
44
+ @xml.tag!('gco:CharacterString', hDataQuality[:standaloneQualityReport][:abstract])
45
+ end
44
46
  end
45
47
  end
46
48
  end
@@ -78,13 +78,17 @@ module ADIWG
78
78
  @xml.tag!('mdq:standaloneQualityReport') do
79
79
  @xml.tag!('mdq:DQ_StandaloneQualityReportInformation') do
80
80
  # reportReference
81
- @xml.tag!('mdq:reportReference') do
82
- citationClass.writeXML(hDataQuality[:standaloneQualityReport][:reportReference])
81
+ unless hDataQuality[:standaloneQualityReport][:reportReference].nil? || hDataQuality[:standaloneQualityReport][:reportReference].empty?
82
+ @xml.tag!('mdq:reportReference') do
83
+ citationClass.writeXML(hDataQuality[:standaloneQualityReport][:reportReference])
84
+ end
83
85
  end
84
86
 
85
- # abstract
86
- @xml.tag!('mdq:abstract') do
87
- @xml.tag!('gco:CharacterString', hDataQuality[:standaloneQualityReport][:abstract])
87
+ unless hDataQuality[:standaloneQualityReport][:abstract].nil? || hDataQuality[:standaloneQualityReport][:abstract].empty?
88
+ # abstract
89
+ @xml.tag!('mdq:abstract') do
90
+ @xml.tag!('gco:CharacterString', hDataQuality[:standaloneQualityReport][:abstract])
91
+ end
88
92
  end
89
93
  end
90
94
  end
@@ -16,6 +16,7 @@ module ADIWG
16
16
  def self.build(hDataQuality)
17
17
  Jbuilder.new do |json|
18
18
  json.scope Scope.build(hDataQuality[:scope])
19
+ json.systemIdentifier hDataQuality[:systemIdentifier]
19
20
  json.standaloneQualityReport hDataQuality[:standaloneQualityReport]
20
21
  json.report @Namespace.json_map(hDataQuality[:report], DataQualityReport)
21
22
  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.18.0rc7
4
+ version: 2.18.0rc9
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: 2023-02-02 00:00:00.000000000 Z
12
+ date: 2023-02-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -129,14 +129,14 @@ dependencies:
129
129
  requirements:
130
130
  - - '='
131
131
  - !ruby/object:Gem::Version
132
- version: 2.8.0.pre.beta6
132
+ version: 2.8.0.pre.beta9
133
133
  type: :runtime
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
137
  - - '='
138
138
  - !ruby/object:Gem::Version
139
- version: 2.8.0.pre.beta6
139
+ version: 2.8.0.pre.beta9
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: adiwg-mdcodes
142
142
  requirement: !ruby/object:Gem::Requirement