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 +4 -4
- data/adiwg-mdtranslator.gemspec +1 -1
- data/lib/adiwg/mdtranslator/readers/fgdc/modules/module_quality.rb +7 -0
- data/lib/adiwg/mdtranslator/version.rb +1 -1
- data/lib/adiwg/mdtranslator/writers/iso19115_1/classes/class_dataQuality.rb +8 -6
- data/lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_dataQuality.rb +9 -5
- data/lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_dataQuality.rb +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a133eb4d545defe8cc794eef72c452add2921106f3719d70c11a515e47a604c5
|
4
|
+
data.tar.gz: 53ee5e410dcc8a1de08f4a22895e72d7aba1939a9050482fe2c52d1c3c3c9156
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6b625ab90a69673a63953e35b7e3921a394b27281a7b8899db1a2f6371f3c4f105ea4a3664667b10628ffc59a4f1e03c15e39c529f92f3d40b99f469db5b9e7
|
7
|
+
data.tar.gz: 1a8f1bcc76d5896c45a94fc43c6f607fd3807598363892bc3c90427044fa210fd62f2d9346953ee34ec94d792842a709f06a3fc1fb45da2f89841a7d30635bc9
|
data/adiwg-mdtranslator.gemspec
CHANGED
@@ -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.
|
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
|
@@ -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
|
-
|
37
|
-
|
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
|
-
|
43
|
-
@xml.tag!('
|
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
|
-
|
82
|
-
|
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
|
-
|
86
|
-
|
87
|
-
@xml.tag!('
|
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.
|
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-
|
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.
|
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.
|
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
|