Skip to content

ISO 19139 to MCF conversion without losing data #356

Description

@ThorodanBrom

Hello,

I'm using MCF and pygeometa for metadata collection by capturing metadata in MCF, converting to ISO 19139 and ingesting to pycsw. This works as expected.

I am also trying to use MCF as a metadata display format, where when a request for metadata comes to my server, I fetch the record from pycsw, convert it to MCF using the import_metadata function and serve the MCF as JSON. (I am aware that pycsw has support for returning JSON back, but since it's 'XML-fied' JSON, it's difficult/tedious to parse on a UI application. The MCF format is a decent abstraction of the complicated XML format. I do understand that this may be abusing MCF though!)

Unfortunately import_metadata for ISO 19139 omits fields like maintenanceFrequency and dataQuality, so the input MCF is never equal to the output MCF.

Is there any way I can get back the original MCF representation from the ISO 19139 record? (apart from storing a copy of the MCF along with the doc somehow)

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions