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

MDTranslator ISO19115-2 to DCATUS: theme #4884

Open
1 task
Jin-Sun-tts opened this issue Sep 11, 2024 · 1 comment
Open
1 task

MDTranslator ISO19115-2 to DCATUS: theme #4884

Jin-Sun-tts opened this issue Sep 11, 2024 · 1 comment
Assignees
Labels
H2.0/Harvest-Transform Transform Logic for Harvesting 2.0

Comments

@Jin-Sun-tts
Copy link
Contributor

Jin-Sun-tts commented Sep 11, 2024

User Story

In order to transform ISO19115-2 documents into DCATUS using mdtranslator, datagov wants to add processing for theme

Acceptance Criteria

  • GIVEN the DCATUS theme field
    AND how the DCATUS writer expects to find the data within the internal metadata object
    WHEN the associated ISO19115-2 reader ruby modules are created
    THEN theme should be transformed from ISO19115-2 to DCATUS

Background

  • related to #4862
  • We process 291017 ISO19115-2 datasets. We want all our datasets to be in DCATUS.
  • This reader is not intended to be feature complete according to the ISO19115-2 standard. All we're looking to read is as much as the DCATUS writer expects.
  • ISO19115-3 development workflow

Security Considerations (required)

None

Sketch

  • field mapping relationship ISO19115-2 -> MDJSON -> DCATUS
    • .//gmd:MD_DataIdentification//gmd:descriptiveKeywords//gmd:MD_Keywords//gmd:thesaurusName
    • intObj[:metadata][:resourceInfo][:keywords][:thesaurus][:title]
    • theme
  • add processing in resourceInfo to read keywords from gmd:MD_DataIdentification
  • create a transformation test demonstrating how the value went from the ISO19115-2 document into the DCATUS json
  • create a response object message test verifying when required elements are missing
@Jin-Sun-tts Jin-Sun-tts added the H2.0/Harvest-Transform Transform Logic for Harvesting 2.0 label Sep 11, 2024
@Jin-Sun-tts Jin-Sun-tts self-assigned this Sep 11, 2024
@Jin-Sun-tts
Copy link
Contributor Author

in the iso19115-2.xml example:

 <gmd:thesaurusName>
        <gmd:CI_Citation>
          <gmd:title>
            <gco:CharacterString>ISO 19115 Topic Category</gco:CharacterString>
          </gmd:title>

In dcat_us_theme.rb, we see the condition:

if keyword_group[:thesaurus][:title] == "ISO Topic Categories"

Questions: Should the thesaurusName title always be expected to have the value ISO Topic Categories?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
H2.0/Harvest-Transform Transform Logic for Harvesting 2.0
Projects
Status: Done
Development

No branches or pull requests

1 participant