adiwg-mdtranslator 2.18.0rc7 → 2.18.0rc8
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_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: 6aa9d9a369f120417e2585914c68922b28c31463c8ade4244708ef12a0aa4987
|
4
|
+
data.tar.gz: e4a9355ce59d4db79806f1ca629694594180d08a9139b92cdb2e07abd64bee07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e04b3ae89041a439a12562572fffde7cea1a00d397f3e51d778059f8953d6e7fe30f491b7d23bdc2437a9c3b1bb4a4d307744b16f7d45af249816a0564ccdf0
|
7
|
+
data.tar.gz: 3d43d5238ba9e1766b21c34e522b74d781730f717cafad2ab30b9b96e77a2b91e744a2d4ba31662cc420132c3d133e668d9560e1aacb2e8d86a67a16214c7d10
|
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.beta8"
|
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
|
@@ -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.0rc8
|
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.beta8
|
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.beta8
|
140
140
|
- !ruby/object:Gem::Dependency
|
141
141
|
name: adiwg-mdcodes
|
142
142
|
requirement: !ruby/object:Gem::Requirement
|