GSA / data.gov

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

MDTranslator ISO19115-2 to DCATUS: Temporal #4904

Closed Jin-Sun-tts closed 1 month ago

Jin-Sun-tts commented 1 month ago

User Story

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

Acceptance Criteria

Background

Security Considerations (required)

None

Sketch

Jin-Sun-tts commented 1 month ago

https://resources.data.gov/resources/podm-field-mapping/

  1. gml:TimePeriod //gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/ //gmd:temporalElement/gmd:EX_TemporalExtent/gmd:extent/gml:TimePeriod/gml:beginPosition and //gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:temporalElement/ //gmd:EX_TemporalExtent/gmd:extent/gml:TimePeriod/gml:endPosition

  2. if single date use this field to populate as both start/end date //gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:temporalElement/ //gmd:EX_TemporalExtent/gmd:extent/gml:TimeInstant/timePosition

  3. if more than two instances of this field exist choose the earliest date value and latest date value to populate the range of dates //gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:temporalElement/ //gmd:EX_TemporalExtent/gmd:extent/gml:TimeInstant/timePosition

Jin-Sun-tts commented 1 month ago

from the dcat_us_temporal writer, it retrieves the temporal information from [:temporalExtents][:timePeriod].

Additionally, since thegmd:temporalElementmay either share the same gmd:extentparent or be separated across multiple gmd:extent elements, the dcat_us_temporal writer has been updated to account for potential multiple extents, ensuring that both geographic and temporal elements are checked across different gmd:extent entries. (reverted this change as we would like to keep the current writer )

Jin-Sun-tts commented 1 month ago

we are not going to modify the dcat_us_temporal writer for now, we modified the test xml file to only have one parent gmd:extent includes both geographicElementandtemporalElement

here is the question:

Multiple instances of gmd:extent can exist. In such cases, the temporalElement may be located under a different parent extent. However, the dcatus_temporal only checks and gets timePeriod from the first extent. How do we handle this situation?