sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <>
Subject [jira] [Created] (SIS-419) Implement (un)marshalling of gco:Record
Date Thu, 24 May 2018 21:12:00 GMT
Martin Desruisseaux created SIS-419:

             Summary: Implement (un)marshalling of gco:Record
                 Key: SIS-419
             Project: Spatial Information Systems
          Issue Type: New Feature
          Components: Metadata
    Affects Versions: 0.8
            Reporter: Martin Desruisseaux

We do not support yet the XML (un)marshalling of {{gco:Record}} and {{gco:RecordType}} elements.
One difficulty is that a {{Record}} is a kind of _key-value_ pairs (like a {{java.util.Map}})
and we did not found a lot of examples about how to represent that. Looking at [this file
we found the following that looks like _key-description_ pairs separated by colon:

<gco:Record>Alphanumeric values: Product is alphanumeric.</gco:Record>
<gco:Record>Alphanumeric Text: Message contains alphanumeric text.</gco:Record>
<gco:Record>Part A: Reflectivity presented as a tabular listing of alphanumerics</gco:Record>

But we found also code lists:

  <gmd:CodeListValue codelist="someURL#DataQualityAssessment" codeListValue="intermediate">intermediate</gmd:CodeListValue>

The record types examples seems similar (reformatted on many lines below for readability):

  General Meteorological Products: General products include the baseline reflectivity and
  and also algorithmic graphic products spectrum width, vertical integrated liquid, and VAD
wind profile.

Unmarshalling implementation in Apache SIS 1.0-SNAPSHOT is:

* For {{gco:RecordType}}, take the part on the left side of the colon as the member name.
Part of the right side is discarded, since we currently have no place where to store the description
of a member.
* For {{gco:Record}}, store the text as-is (no parsing).

We may need to revisit this naive implementation if we find more examples of how records are
represented in XML files.

This message was sent by Atlassian JIRA

View raw message