Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/acquisition (v2.21.0) #382

Draft
wants to merge 265 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
265 commits
Select commit Hold shift + click to select a range
18c4f8f
Update Version
jwaspin Dec 19, 2023
8b536c6
Update Version
jwaspin Dec 19, 2023
c019781
Fix Internal Metadata Object - Data Quality Coverage Result
jwaspin Dec 19, 2023
ef9aead
Fix Refereence Typo
jwaspin Dec 19, 2023
2037484
Add Data Quality Link
jwaspin Dec 19, 2023
b830243
Handle Empty Citation
jwaspin Dec 19, 2023
329989b
Improve Data Quality
jwaspin Dec 19, 2023
7277404
Implement Data Quality Reports
jwaspin Dec 19, 2023
e86dcc4
Add Null Checks
jwaspin Dec 19, 2023
0087059
Handle nil and empty
jwaspin Dec 19, 2023
9bf6eb2
Handle nil & empty
jwaspin Dec 19, 2023
b6104e4
New Generator newRangeElementDescription
jwaspin Dec 19, 2023
670e6c9
close out function
J-Oliveros Dec 20, 2023
1363fe5
fix reader to recognize rangeElement key from mdJson file (#317)
J-Oliveros Dec 21, 2023
e01dcf3
fix key retrieval for Html_RangeElementDescription writer class (#318)
J-Oliveros Dec 21, 2023
1fc5a73
fix rangeElementDescription class for iso-3 (#321)
J-Oliveros Jan 2, 2024
78f41b3
add contact - external identifiers
J-Oliveros Jan 2, 2024
c2e2412
Merge branch 'feature/range-element-description' into releases/2-18-5
jwaspin Jan 3, 2024
a4b1d05
Merge branch 'feature/sbjson-external-contact-identifier' into releas…
jwaspin Jan 3, 2024
23f52c2
Fix Simple HTML and mdJson hash objects
jwaspin Jan 3, 2024
d6bf7cf
Fix misplaced br tag
jwaspin Jan 3, 2024
16b989a
Merge branch 'writers/html/data-quality-reports' into releases/2-18-5
jwaspin Jan 3, 2024
5ca21cb
make changes based on feedback found in release v2.18.5 branch (#325)
J-Oliveros Jan 5, 2024
e009e9a
Revert Changes
jwaspin Jan 5, 2024
8561600
Reorder and Add derivedElementReport
jwaspin Jan 5, 2024
1191dca
Add Report Fields
jwaspin Jan 5, 2024
f0baf07
Change dateTime to array
jwaspin Jan 5, 2024
3dd5016
Revert
jwaspin Jan 5, 2024
2d4e044
Add standaloneQualityReportDetails
jwaspin Jan 5, 2024
e7176d1
Add derivedElementReport
jwaspin Jan 5, 2024
2da59c5
add posacc w hori and vert tags. fix key retrieval from qualityMeasur…
J-Oliveros Jan 10, 2024
d30a1a1
New GitHub Test Action (#328)
jwaspin Jan 10, 2024
fb95081
Bugfix/unit tests (#329)
jwaspin Jan 25, 2024
40e8b25
Completed Feature: Coverage Result (#330)
jwaspin Jan 30, 2024
567454e
Increment Minor Version
jwaspin Jan 31, 2024
8738973
Update Version
jwaspin Jan 31, 2024
bfd3baf
Revert Changes
jwaspin Jan 31, 2024
a6fe887
Revert Changes
jwaspin Jan 31, 2024
a301684
Revert Changes
jwaspin Jan 31, 2024
6bcf90d
Revert Changes
jwaspin Jan 31, 2024
d26adf3
Remove nil Check
jwaspin Jan 31, 2024
6b71dfe
Remove nil Check
jwaspin Jan 31, 2024
dc28432
Revert Changes
jwaspin Jan 31, 2024
894515e
change divs to headers (#337)
J-Oliveros Feb 1, 2024
c924481
Update mdCodes Version
jwaspin Feb 5, 2024
f7ff830
Update Gemfile.lock
jwaspin Feb 6, 2024
1ff7d59
Fix Data Quality
jwaspin Feb 6, 2024
80b3917
Fix name -> nameOfMeasure
jwaspin Feb 6, 2024
cb2b508
Increment Patch Version
jwaspin Feb 6, 2024
ff5cb27
Merge branch 'releases/2-18-5' into releases/2-20-0
jwaspin Feb 7, 2024
c27277c
Fix FGDC Reader
jwaspin Feb 7, 2024
14fed59
Merge branch 'releases/2-18-5' into releases/2-20-0
jwaspin Feb 8, 2024
ffc6fde
Fix Data Quality (#342)
jwaspin Feb 8, 2024
7b4aa57
Merge branch 'releases/2-18-5' into releases/2-20-0
jwaspin Feb 8, 2024
cded8cd
Increment Patch Version
jwaspin Feb 8, 2024
15fbd11
Simple HTML Enhancements (#339)
jwaspin Feb 8, 2024
223cb88
Merge branch 'releases/2-18-5' into releases/2-20-0
jwaspin Feb 8, 2024
271bfe9
Merge branch 'releases/2-20-0' of github.com:adiwg/mdTranslator into …
jwaspin Feb 8, 2024
4b2bd51
Bugfixes for Simple HTML (#343)
jwaspin Feb 8, 2024
45ba9f2
Increment Patch Version
jwaspin Feb 8, 2024
c578391
Fix Data Quality
jwaspin Feb 9, 2024
fe519a3
Increment Patch Version
jwaspin Feb 9, 2024
e9965a0
Feature/simple html (#345)
jwaspin Feb 12, 2024
61bbdc0
Update mdJson-schemas version
jwaspin Feb 13, 2024
4d1e84d
Increment Patch Version
jwaspin Feb 13, 2024
c769d1c
Feature/fgdc reader lineage process (#347)
J-Oliveros Feb 20, 2024
cfdad70
Update adiwg-mdtranslator gem dependencies
jwaspin Mar 11, 2024
8f163d7
Update adiwg-mdcodes gem dependency to version 2.9.1
jwaspin Mar 13, 2024
4fc32d6
Disable test_mdJson_reader_schema_version_future_minor method
jwaspin Mar 13, 2024
9a6368f
Update mdtranslator version to 2.19.0-beta.6
jwaspin Mar 13, 2024
33b7751
Update adiwg-mdcodes gem dependency to version 2.9.1
jwaspin Mar 13, 2024
5280efa
Fix data quality report type
jwaspin Mar 14, 2024
bc293bf
Update mdtranslator version to 2.19.0-beta.7
jwaspin Mar 19, 2024
db90e7b
Update adiwg-mdjson_schemas and adiwg-mdcodes gem dependencies
jwaspin Mar 19, 2024
5fd351d
Update adiwg-mdjson_schemas and adiwg-mdcodes gem dependencies
jwaspin Mar 20, 2024
e119ec7
Merge branch 'releases/2-19-0' into releases/2-20-0
jwaspin Mar 20, 2024
0d1307a
Update 19115-3 test data (#334)
chris-macdermaid Mar 29, 2024
0ac8429
Fix version comparison bug in mdJson_reader.rb (#356)
J-Oliveros Apr 8, 2024
1202405
Update adiwg-mdtranslator version to 2.20.0-beta.0
jwaspin Apr 9, 2024
e5f845d
add Acquisition class. Fix internal obj
J-Oliveros Apr 15, 2024
0b1eab5
Boilerplate for acq classes. Add logic to handle acq-pass
J-Oliveros Apr 15, 2024
f53540f
add acq-event class
J-Oliveros Apr 15, 2024
aabf4f8
fix internal object variable reference
J-Oliveros Apr 15, 2024
05aee35
Fix closing out conditional
J-Oliveros Apr 15, 2024
5a43540
Release Version 2.20.0 (#346)
jwaspin Apr 22, 2024
11051ed
Update adiwg-mdjson_schemas and adiwg-mdcodes gem dependencies
jwaspin Apr 22, 2024
dbc9393
Merge branch 'releases/2-19-0' into feature/acquisition
jwaspin Apr 24, 2024
1fe82d4
add acquisition key to metadata internal object
J-Oliveros Apr 29, 2024
0bb9da9
Add outContext
J-Oliveros Apr 29, 2024
4472aee
chore: Update adiwg-mdjson_schemas and adiwg-mdcodes gem dependencies…
jwaspin Apr 30, 2024
1b6869a
chore: Update adiwg-mdjson_schemas and adiwg-mdcodes gem dependencies…
jwaspin Apr 30, 2024
ec270f2
Refactor dataQuality report structure
jwaspin Apr 30, 2024
cf39d33
chore: Update adiwg-mdjson_schemas and adiwg-mdcodes gem dependencies…
jwaspin Apr 30, 2024
489e027
Update adiwg-mdcodes gem dependency to version 2.9.3.pre.beta.3
jwaspin Apr 30, 2024
fdea3ea
Update adiwg-mdjson_schemas gem dependency to version 2.9.2.pre.beta.19
jwaspin Apr 30, 2024
c25a58e
Update mdtranslator version to 2.19.0-beta.9
jwaspin Apr 30, 2024
d01dbaa
Update adiwg-mdtranslator version to 2.19.0.pre.beta.9
jwaspin Apr 30, 2024
8d5c376
Fix data quality report type
jwaspin Apr 30, 2024
e9b99a7
Update adiwg-mdtranslator version to 2.19.0.pre.beta.10
jwaspin Apr 30, 2024
9ef5dab
add acquisition to metadata hash objects
J-Oliveros Apr 30, 2024
82b78d2
Merge branch 'releases/2-19-0' into feature/acquisition
jwaspin Apr 30, 2024
f9701f6
Update adiwg-mdtranslator version to 2.20.0.pre.beta.1
jwaspin Apr 30, 2024
5dfe0fb
Merge branch 'releases/2-20-0' into feature/acquisition
jwaspin Apr 30, 2024
5a3f584
fix/mdJson-reader-requirement (#359)
J-Oliveros May 1, 2024
498193f
Fix/md json reader event (#362)
J-Oliveros May 1, 2024
3a514e7
Fix/md json reader instrument (#363)
J-Oliveros May 1, 2024
fe4361b
Fix evaluationMethodType in class_dataQualityReport.rb
jwaspin May 1, 2024
470b22f
Merge branch 'releases/2-19-0' into releases/2-20-0
jwaspin May 1, 2024
465ff05
Update adiwg-mdtranslator version to 2.20.0-beta.0
jwaspin May 1, 2024
174f3d8
Update adiwg-mdtranslator version to 2.20.0-beta.1
jwaspin May 1, 2024
9e33e0f
Update adiwg-mdjson_schemas and adiwg-mdcodes gem dependencies to lat…
jwaspin May 2, 2024
18d02d4
Update adiwg-mdtranslator version to 2.19.0.pre.beta.11
jwaspin May 2, 2024
3cd7445
Add acquisition class to writer. Add reference to class in metadata.
J-Oliveros May 2, 2024
5dc829a
Fix/md json reader pass (#364)
J-Oliveros May 2, 2024
0e5f255
fix/mdJson-reader-platform (#361)
J-Oliveros May 2, 2024
3c32ffe
Merge branch 'feature/acquisition' into fix/mdJson-writer-acqusition
J-Oliveros May 2, 2024
cfd6150
Merge branch 'feature/acquisition' into feature/acquisition-mdjson-wr…
jwaspin May 2, 2024
8ef4d30
Merge branch 'feature/acquisition-mdjson-writer' into fix/mdJson-writ…
jwaspin May 2, 2024
95fc253
Merge branch 'fix/mdJson-writer-acqusition' into fix/mdJson-writer-re…
J-Oliveros May 2, 2024
1048f3e
Update adiwg-mdtranslator and adiwg-mdjson_schemas gem dependencies t…
jwaspin May 2, 2024
220fd71
Fix evaluationMethodType in class_dataQualityReport.rb
jwaspin May 3, 2024
43bec4c
Add Requirement and RequestedDate classes to mdJson writer.
J-Oliveros May 3, 2024
3092287
Fix data quality report type
jwaspin May 3, 2024
c34038c
Update adiwg-mdtranslator version to 2.19.0.pre.beta.13
jwaspin May 3, 2024
46602fb
fix class name for requestedDate
J-Oliveros May 3, 2024
a2cec2e
Add Objective class to writer
J-Oliveros May 3, 2024
8746b41
Add Platform class to mdJson writer
J-Oliveros May 3, 2024
2037a2a
Add instrument class to writer.
J-Oliveros May 3, 2024
7eb9883
Add instrumentationEventList, instrumentationEvent, Revision classes …
J-Oliveros May 4, 2024
4fa43cd
Fix/mdjson-reader-platform (#371)
J-Oliveros May 6, 2024
2c5f3c8
Update AcqPlan class to handle acq-plan (#358)
J-Oliveros May 6, 2024
8f1e241
Add acquisition class to writer. Add reference to class in metadata. …
J-Oliveros May 6, 2024
575b8c3
Add Event class to writer. (#369)
J-Oliveros May 6, 2024
54ee05d
Merge branch 'feature/acquisition' into feature/acquisition-mdjson-wr…
J-Oliveros May 7, 2024
24a951e
fix/mdJson-reader-environment (#366)
J-Oliveros May 7, 2024
37f26ec
Merge branch 'feature/acquisition-mdjson-writer' into fix/mdJson-writ…
J-Oliveros May 7, 2024
2e558ef
Add operation class. remove acq- prefix to relative require and class…
J-Oliveros May 7, 2024
195cd4a
fix/mdJson-reader-objective (#367)
J-Oliveros May 7, 2024
9159bea
Merge branch 'feature/acquisition' into feature/acquisition-mdjson-wr…
J-Oliveros May 7, 2024
7b1c8f9
Merge branch 'feature/acquisition-mdjson-writer' into fix/mdJson-writ…
J-Oliveros May 7, 2024
8be6f92
remove puts
J-Oliveros May 7, 2024
4603eeb
remove puts
J-Oliveros May 7, 2024
392ef24
fix keys to internal objects. Remove puts
J-Oliveros May 7, 2024
0c4d22c
fix keys in Plan class.
J-Oliveros May 7, 2024
172e662
Merge branch 'feature/acquisition' into feature/acquisition-mdjson-wr…
J-Oliveros May 7, 2024
7588dc8
Merge branch 'feature/acquisition-mdjson-writer' into fix/mdJson-writ…
J-Oliveros May 7, 2024
839c926
fix Instrument identifier class
J-Oliveros May 7, 2024
7b2bcd9
Merge branch 'feature/acquisition' into feature/acquisition-mdjson-wr…
J-Oliveros May 7, 2024
09012f3
Merge branch 'feature/acquisition-mdjson-writer' into fix/mdJson-writ…
J-Oliveros May 7, 2024
f88a3e1
Update adiwg-mdtranslator and adiwg-mdjson_schemas gem dependencies t…
jwaspin May 7, 2024
ed3421d
Merge branch 'releases/2-19-0' into releases/2-20-0
jwaspin May 7, 2024
48380f9
Merge branch 'releases/2-20-0' into feature/acquisition
J-Oliveros May 7, 2024
46272dd
Merge branch 'releases/2-20-0' into feature/acquisition-mdjson-writer
J-Oliveros May 7, 2024
e2e6389
Merge branch 'feature/acquisition-mdjson-writer' into fix/mdjson-writ…
J-Oliveros May 7, 2024
5d4aeef
uncomment Platform class in acquisition
J-Oliveros May 7, 2024
98256f9
fix appending result of sponsor to array. fix outContext for error ha…
J-Oliveros May 7, 2024
4ff3edc
Merge branch 'feature/acquisition' into feature/acquisition-mdjson-wr…
J-Oliveros May 7, 2024
21bfd16
Merge branch 'feature/acquisition-mdjson-writer' into fix/mdjson-writ…
J-Oliveros May 7, 2024
4e8ad0e
Merge branch 'feature/acquisition-mdjson-writer' into fix/mdJson-writ…
J-Oliveros May 7, 2024
ae2bce0
fix Objective class and add Pass class to writer
J-Oliveros May 7, 2024
fc096c6
Merge branch 'feature/acquisition-mdjson-writer' into fix/mdJson-writ…
J-Oliveros May 7, 2024
0764c4d
Add Plan class and fix requirement class in writer.
J-Oliveros May 7, 2024
94d3308
fix identifier key in requirement class for reader
J-Oliveros May 7, 2024
8e99f63
Merge branch 'feature/acquisition' into feature/acquisition-mdjson-wr…
J-Oliveros May 7, 2024
1a7daf8
fix keys for Event class writer.
J-Oliveros May 8, 2024
33357b6
uncomment Pass class from acquisition. Minor clarification fixes.
J-Oliveros May 8, 2024
739a9fe
Add Environment class for use in acquisition writer.
J-Oliveros May 8, 2024
295166c
Fix Environment class for use in Acquisition
J-Oliveros May 8, 2024
7ce9d83
Merge branch 'feature/acquisition' into feature/acquisition-mdjson-wr…
J-Oliveros May 8, 2024
3b0dc10
fix environment key for acquisition class.
J-Oliveros May 8, 2024
75cfa86
Merge branch 'feature/acquisition' into feature/acquisition-mdjson-wr…
J-Oliveros May 8, 2024
0093c71
remove puts
J-Oliveros May 8, 2024
ddf86d6
Update adiwg-mdtranslator and adiwg-mdjson_schemas gem dependencies t…
jwaspin May 8, 2024
76a82fa
Update adiwg-mdtranslator and adiwg-mdjson_schemas gem dependencies t…
jwaspin May 8, 2024
46259dd
Fix data quality report type
jwaspin May 8, 2024
1121986
Fix data quality report type
jwaspin May 8, 2024
f1177e2
Update adiwg-mdtranslator gem dependency to version 2.19.0.pre.beta.15
jwaspin May 8, 2024
5d0f14c
chore: Update adiwg-mdtranslator gem dependency to version 2.19.0.pre…
jwaspin May 9, 2024
a5f4bc5
Update adiwg-mdtranslator gem dependency to version 2.19.0.pre.beta.16
jwaspin May 9, 2024
fb11e0d
Update module files to include 'name' attribute
jwaspin May 9, 2024
ad140f1
Update adiwg-mdtranslator gem dependency to version 2.19.0.pre.beta.17
jwaspin May 9, 2024
699e524
Fix data quality report summary display
jwaspin May 10, 2024
48b020b
Refactor data quality report type display
jwaspin May 10, 2024
079d18f
Update adiwg-mdtranslator gem dependency to version 2.19.0.pre.beta.18
jwaspin May 10, 2024
bfa42f7
Refactor mdJson_onlineResource module to include 'protocol' attribute
jwaspin May 10, 2024
ba22491
Refactor mdJson_resourceInfo module to include 'credit' attribute
jwaspin May 10, 2024
ba44555
Update adiwg-mdtranslator gem dependency to version 2.19.0.pre.beta.18
jwaspin May 10, 2024
194ec62
Refactor data quality report type display
jwaspin May 10, 2024
2d1991b
Fix test cases. internal object and changes for bugfixes to mdJson re…
May 13, 2024
824bc1f
chore: Update versions
jwaspin May 14, 2024
855796a
chore: Increment beta version
jwaspin May 14, 2024
f7b8240
Update mdJson-schemas gem version. Change ordering of acquisition in …
May 14, 2024
543dab1
Revert Data Quality Report Types
jwaspin May 14, 2024
f7d4cbb
Refactor sbJson_citation.rb
jwaspin May 20, 2024
3103634
Refactor data quality report type display and add system identifier s…
jwaspin May 20, 2024
e77cabc
Refactor data quality report logic handling
jwaspin May 20, 2024
6a7dd7e
fix handling of parties within requirement class. Fix datetime string…
J-Oliveros May 21, 2024
5cd411e
Refactor data quality reports
jwaspin May 22, 2024
9966772
Fix acquistion to include operation. Update instrumentation event and…
J-Oliveros May 22, 2024
5fde8e6
Merge branch 'releases/2-19-0' into releases/2-20-0
jwaspin May 22, 2024
02daf6a
Update adiwg-mdjson_schemas gem version to 2.10.0.pre.beta.1
jwaspin May 22, 2024
b141e48
Fix typo in MdJsonHashWriter class
jwaspin May 22, 2024
502a2cd
Refactor data quality reports
jwaspin May 22, 2024
913d21d
chore: Update adiwg-mdtranslator gem dependency to version 2.19.0.pre…
jwaspin May 23, 2024
07e83fe
Refactor data quality reports
jwaspin May 23, 2024
e87033f
chore: Update adiwg-mdtranslator gem dependency to version 2.19.0.pre…
jwaspin May 24, 2024
b08d6f2
Refactor XML date format in test data files
jwaspin May 24, 2024
483fc0a
Refactor data identification to handle distribution liability statements
jwaspin May 24, 2024
b05ea1b
Merge branch 'releases/2-19-0' into releases/2-20-0
jwaspin May 26, 2024
63477f2
Feature/acquisition html writer (#381)
J-Oliveros May 26, 2024
9778dbd
Merge branch 'releases/2-20-0' into feature/acquisition
jwaspin May 26, 2024
0ec1e1f
chore: Update adiwg-mdtranslator gem dependency to version 2.9.4.pre.…
jwaspin May 26, 2024
5f2c062
Refactor module_acq-operation.rb file
jwaspin May 26, 2024
156b2f4
chore: Update adiwg-mdtranslator gem dependency to version 2.19.0.pre…
jwaspin May 26, 2024
29488c4
Merge branch 'releases/2-19-0' into releases/2-20-0
jwaspin May 26, 2024
41e4304
chore: Update adiwg-mdtranslator gem dependency to version 2.10.0
jwaspin May 26, 2024
b8e1542
Merge branch 'releases/2-20-0' into feature/acquisition
jwaspin May 26, 2024
f687f6c
chore: Update adiwg-mdtranslator gem dependency to version 2.10.0
jwaspin May 26, 2024
39e6276
chore: Update adiwg-mdtranslator gem dependency to version 2.21.0.pre…
jwaspin May 26, 2024
b12d213
Update adiwg-mdtranslator gem dependency to version 2.19.0
jwaspin May 26, 2024
1587fa6
Merge branch 'releases/2-19-0' into feature/acquisition
jwaspin May 26, 2024
ee0d58b
Update mdMetadata to include MI_AcquisitionInformation class. Add sev…
J-Oliveros Jun 4, 2024
6bc9739
Add plan, operation, requirement, requestedDate classes to iso19115-3…
J-Oliveros Jun 4, 2024
bf8091a
Fix outermost tags for several classes. Add event, operation and pass…
J-Oliveros Jun 4, 2024
54e5dc6
Update acquisition tag in mdMetadata. Add MI_EnvironmentalRecord clas…
J-Oliveros Jun 6, 2024
787b040
Fixes made to conform to iso19115-3 standard
J-Oliveros Jun 17, 2024
a925c26
Feature/acquisition simple html writer (#385)
J-Oliveros Jun 17, 2024
ed953f5
Merge branch 'feature/acquisition-iso-3-writer' into feature/acquisition
J-Oliveros Jun 18, 2024
2ec0741
Add 'Attribute Accuracy Explanation' text in the evaluation method na…
jwaspin Jun 20, 2024
17a8694
Refactor data quality reports to handle multiple results and differen…
jwaspin Jun 20, 2024
5c90a1a
Fix altmax to use maximumAltitude
jwaspin Jun 24, 2024
71a4b2b
Refactor Positional Accuracy Reports
jwaspin Jun 25, 2024
735c2c9
fix: Unit test for maximum altitude
jwaspin Jun 25, 2024
8c67f40
Merge branch 'releases/2-19-0' of github.com:adiwg/mdTranslator into …
jwaspin Jun 25, 2024
2abd84d
Refactor unit test for positional accuracy
jwaspin Jun 25, 2024
346f0c4
feat: Add metadata extension section for taxonomy info.
jwaspin Jun 25, 2024
1869cd1
feat: Set conditional for metadata extension taxonomy.
jwaspin Jun 26, 2024
6fc43b5
feat: Remove metadata extension for taxonomy information
jwaspin Jun 26, 2024
de2706f
Fix: Replaced div with h5 as needed
jwaspin Jun 27, 2024
17cbe18
fix: Citation Other Details
jwaspin Jun 27, 2024
a9fef38
Merge branch 'releases/2-19-0' into feature/acquisition
jwaspin Jun 27, 2024
763bca2
Refactor class_timePeriod.rb for improved date handling
jwaspin Jul 1, 2024
2a6d3f3
chore: Add note to move object out of function
jwaspin Jul 1, 2024
064a517
chore: Refactor unit tests to match modifications to dateTime in time…
jwaspin Jul 1, 2024
97d50b2
chore: Update mdtranslator version to 2.19.0-beta.31
jwaspin Jul 3, 2024
87ce034
chore: Update adiwg-mdtranslator version to 2.19.0.pre.beta.31
jwaspin Jul 3, 2024
391a184
Merge branch 'releases/2-19-0' into feature/acquisition
jwaspin Jul 3, 2024
c54e04a
Merge branch 'develop' into feature/acquisition
jwaspin Dec 10, 2024
866d9f2
chore: Update adiwg-mdtranslator dependencies to version 2.10.1
jwaspin Jan 2, 2025
3113a12
Feature: Update mdtranslator to version 2.21.0-beta.1 and add diction…
jwaspin Jan 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
PATH
remote: .
specs:
adiwg-mdtranslator (2.20.0.pre.beta.5)
adiwg-mdcodes (= 2.10.0)
adiwg-mdjson_schemas (= 2.9.5)
adiwg-mdtranslator (2.21.0.pre.beta.1)
adiwg-mdcodes (= 2.10.1)
adiwg-mdjson_schemas (= 2.10.1)
builder (~> 3.2)
coderay (~> 1.1)
jbuilder (~> 2.5)
json (~> 2.0)
json-schema (~> 2.7)
kramdown (>= 1.13, < 3.0)
nokogiri (~> 1.15)
nokogiri (~> 1.15)
thor (~> 0.19)
uuidtools (~> 2.1)

Expand All @@ -36,10 +35,9 @@ GEM
tzinfo (~> 2.0)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
adiwg-mdcodes (2.10.0)
adiwg-mdcodes (2.10.0)
adiwg-mdcodes (2.10.1)
json (~> 2.0)
adiwg-mdjson_schemas (2.9.5)
adiwg-mdjson_schemas (2.10.1)
base64 (0.2.0)
bigdecimal (3.1.8)
builder (3.2.4)
Expand Down
4 changes: 2 additions & 2 deletions adiwg-mdtranslator.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency "thor", "~> 0.19"
spec.add_runtime_dependency "uuidtools", "~> 2.1"
spec.add_runtime_dependency "json-schema", "~> 2.7"
spec.add_runtime_dependency "adiwg-mdjson_schemas", "2.9.5"
spec.add_runtime_dependency "adiwg-mdcodes", "2.10.0"
spec.add_runtime_dependency "adiwg-mdjson_schemas", "2.10.1"
spec.add_runtime_dependency "adiwg-mdcodes", "2.10.1"
spec.add_runtime_dependency "jbuilder", "~> 2.5"
spec.add_runtime_dependency "kramdown", ">= 1.13", "< 3.0"
spec.add_runtime_dependency "coderay", "~> 1.1"
Expand Down
52 changes: 45 additions & 7 deletions lib/adiwg/mdtranslator/internal/internal_metadata_obj.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ def newMetadata
associatedResources: [],
additionalDocuments: [],
funding: [],
dataQuality: []
dataQuality: [],
acquisitions: []
}
end

Expand All @@ -158,6 +159,7 @@ def newSchema
# acquisition ----------------------------
def newAcquisition
{
scope: {},
plans: [],
requirements: [],
objectives: [],
Expand All @@ -175,19 +177,23 @@ def newEnvironment
averageAirTemperature: nil,
maxRelativeHumidity: nil,
maxAltitude: nil,
meteorologicalConditions: nil
meteorologicalConditions: nil,
solarAzimuth: nil,
solarElevation: nil

}
end

def newEvent
{
eventId: nil,
identifier: {},
trigger: nil,
context: nil,
sequence: nil,
dateTime: nil,
expectedObjectives: [],
relatedPass: nil,
relatedPass: {},
relatedSensors: []
}
end
Expand All @@ -199,7 +205,29 @@ def newInstrument
identifier: {},
instrumentType: nil,
description: nil,
mountedOn: nil
mountedOn: {},
histories: [],
hostId: {}
}
end

def newInstrumentationEvent
{
citations: [],
description: nil,
extent: {},
eventType: nil,
revisionHistories: [],
}
end

def newInstrumentationEventList
{
citation: {},
description: nil,
locale: {},
constraints: [],
instrumentationEvents: []
}
end

Expand Down Expand Up @@ -240,14 +268,15 @@ def newPlan
def newOperation
{
operationId: nil,
description: nil,
citation: {},
identifier: {},
status: nil,
operationType: nil,
objectives: [],
parentOperations: nil,
parentOperation: {},
childOperations: [],
plan: nil,
plan: {},
platforms: [],
significantEvents: []
}
Expand All @@ -267,14 +296,23 @@ def newRequirement
}
end

def newRevision
{
description: nil,
responsibleParty: {},
dateInfo: []
}
end

def newPlatform
{
platformId: nil,
citation: {},
identifier: {},
description: nil,
sponsors: [],
instruments: []
instruments: [],
history: []
}
end

Expand Down
133 changes: 133 additions & 0 deletions lib/adiwg/mdtranslator/readers/mdJson/modules/module_acquisition.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
require_relative 'module_scope'
require_relative 'module_objective'
require_relative 'module_requirement'
require_relative 'module_platform'
require_relative 'module_instrument'
require_relative 'module_operation'
require_relative 'module_pass'
require_relative 'module_event'
require_relative 'module_environment'
require_relative 'module_plan'

module ADIWG
module Mdtranslator
module Readers
module MdJson

module Acquisition

def self.unpack(hAcquisition, responseObj, inContext = nil)

@MessagePath = ADIWG::Mdtranslator::Readers::MdJson::MdJson

outContext = 'acquisition'
outContext = inContext + ' > ' + outContext unless inContext.nil?

# instance classes needed in script
intMetadataClass = InternalMetadata.new
intAcquisition = intMetadataClass.newAcquisition

if hAcquisition.has_key?('scope')
unless hAcquisition['scope'].empty?
hReturn = Scope.unpack(hAcquisition['scope'], responseObj, outContext)
unless hReturn.nil?
intAcquisition[:scope] = hReturn
end
end
end

if hAcquisition.has_key?('plan')
aItems = hAcquisition['plan']
aItems.each do |item|
hReturn = Plan.unpack(item, responseObj, outContext)
unless hReturn.nil?
intAcquisition[:plans] << hReturn
end
end
end

if hAcquisition.has_key?('requirement')
aItems = hAcquisition['requirement']
aItems.each do |item|
hReturn = Requirement.unpack(item, responseObj, outContext)
unless hReturn.nil?
intAcquisition[:requirements] << hReturn
end
end
end

if hAcquisition.has_key?('objective')
aItems = hAcquisition['objective']
aItems.each do |item|
hReturn = Objective.unpack(item, responseObj, outContext)
unless hReturn.nil?
intAcquisition[:objectives] << hReturn
end
end
end

if hAcquisition.has_key?('platform')
aItems = hAcquisition['platform']
aItems.each do |item|
hReturn = Platform.unpack(item, responseObj, outContext)
unless hReturn.nil?
intAcquisition[:platforms] << hReturn
end
end
end

if hAcquisition.has_key?('instrument')
aItems = hAcquisition['instrument']
aItems.each do |item|
hReturn = Instrument.unpack(item, responseObj, outContext)
unless hReturn.nil?
intAcquisition[:instruments] << hReturn
end
end
end

if hAcquisition.has_key?('operation')
aItems = hAcquisition['operation']
aItems.each do |item|
hReturn = Operation.unpack(item, responseObj, outContext)
unless hReturn.nil?
intAcquisition[:operations] << hReturn
end
end
end

if hAcquisition.has_key?('event')
aItems = hAcquisition['event']
aItems.each do |item|
hReturn = Event.unpack(item, responseObj, outContext)
unless hReturn.nil?
intAcquisition[:events] << hReturn
end
end
end

if hAcquisition.has_key?('pass')
aItems = hAcquisition['pass']
aItems.each do |item|
hReturn = Pass.unpack(item, responseObj, outContext)
unless hReturn.nil?
intAcquisition[:passes] << hReturn
end
end
end

if hAcquisition.has_key?('environment')
intAcquisition[:environment] = Environment.unpack(hAcquisition['environment'], responseObj, outContext)
end

return intAcquisition

end

end

end
end
end
end

Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ def self.unpack(hDictionary, responseObj)
intMetadataClass = InternalMetadata.new
intDictionary = intMetadataClass.newDataDictionary

# dictionary - id
if hDictionary.has_key?('dictionaryId')
s = hDictionary['dictionaryId']
if s != ''
intDictionary[:dictionaryId] = s
end
end

# dictionary - description
if hDictionary.has_key?('description')
s = hDictionary['description']
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
module ADIWG
module Mdtranslator
module Readers
module MdJson

module Environment
def self.unpack(hEnvironment, responseObj, inContext = nil)

intMetadataClass = InternalMetadata.new
intEnvironment = intMetadataClass.newEnvironment

outContext = 'environment'
outContext = inContext + ' > ' + outContext unless inContext.nil?

if hEnvironment.has_key?('averageAirTemperature')
intEnvironment[:averageAirTemperature] = hEnvironment['averageAirTemperature']
end

if hEnvironment.has_key?('maxRelativeHumidity')
intEnvironment[:maxRelativeHumidity] = hEnvironment['maxRelativeHumidity']
end

if hEnvironment.has_key?('maxAltitude')
intEnvironment[:maxAltitude] = hEnvironment['maxAltitude']
end

if hEnvironment.has_key?('meteorologicalConditions')
intEnvironment[:meteorologicalConditions] = hEnvironment['meteorologicalConditions']
end

if hEnvironment.has_key?('solarAzimuth')
intEnvironment[:solarAzimuth] = hEnvironment['solarAzimuth']
end

if hEnvironment.has_key?('solarElevation')
intEnvironment[:solarElevation] = hEnvironment['solarElevation']
end

intEnvironment

end
end

end
end
end
end
Loading
Loading