GSA / data.gov

Main repository for the data.gov service
https://data.gov
Other
659 stars 102 forks source link

MDTranslator ISO19115-2 to DCATUS: rights #4898

Closed rshewitt closed 1 month ago

rshewitt commented 2 months ago

User Story

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

Acceptance Criteria

Background

Security Considerations (required)

None

Sketch

rshewitt commented 2 months ago

the dcatus rights writer relies on use-constraint data stored in :releasability which is only found in ISO19115-3. use-constraints exists in ISO19115-2 but only have useLimitation as child elements.

here's the data access in the rights writer

  statement = constraint.dig(:releasability, :statement)
  disseminationConstraints = constraint.dig(:releasability, :disseminationConstraint)

ISO19115-2 use-constraints don't have a releasability element to populate so the build method needs to be refactored. in the short term, the approach can just be compatible with ISO19115-2 but in the long term it should be able to process all 3 spatial metadata types (related ticket)