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: License #4883

Open
1 task
Jin-Sun-tts opened this issue Sep 10, 2024 · 2 comments
Open
1 task

MDTranslator ISO19115-2 to DCATUS: License #4883

Jin-Sun-tts opened this issue Sep 10, 2024 · 2 comments
Assignees
Labels
H2.0/Harvest-Transform Transform Logic for Harvesting 2.0

Comments

@Jin-Sun-tts
Copy link
Contributor

Jin-Sun-tts commented Sep 10, 2024

User Story

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

Acceptance Criteria

  • GIVEN the DCATUS license 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 license 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:resourceConstraints//gmd:MD_Constraints//gmd:useLimitation
    • intObj[:metadata][:resourceInfo][:constraints][:reference][:title]
    • license
  • 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 10, 2024
@Jin-Sun-tts Jin-Sun-tts self-assigned this Sep 10, 2024
@rshewitt
Copy link
Contributor

rshewitt commented Sep 10, 2024

iso19115-3 has 3 constraints: common, legal, and security. if these are present in -2 then you should probably create all 3. reference in the constraint is a citation in -3. dcatus only pulls the title from that reference/citation so there shouldn't need to be an update to the citation module because title is already processed

@Jin-Sun-tts
Copy link
Contributor Author

In the current DCAT-US writer, the license is derived from resourceInfo -> constraints -> reference -> title.

ISO19115-3 
<mri:resourceConstraints>
    <mco:MD_Constraints>
           <mco:reference>
               <cit:CI_Citation>
                  <cit:title>

However, in ISO19115-2, MD_Constraints under resourceConstraints does not include a reference element.

 <gmi:MI_Metadata
   <gmd:identificationInfo>
     <gmd:MD_DataIdentification>
       <gmd:resourceConstraints> 
          <gmd:MD_Constraints>
             <gmd:useLimitation>

need guidance on how to locate the corresponding license information in ISO19115-2.

@Jin-Sun-tts Jin-Sun-tts changed the title MDTranslator ISO19115-2 to DCATUS: license MDTranslator ISO19115-2 to DCATUS: License Sep 16, 2024
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: 📡 Blocked
Development

No branches or pull requests

2 participants