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

entity rule change #167

Closed
4 tasks done
stansmith907 opened this issue Oct 27, 2017 · 0 comments
Closed
4 tasks done

entity rule change #167

stansmith907 opened this issue Oct 27, 2017 · 0 comments
Labels
enhancement Improve or modify an existing feature
Milestone

Comments

@stansmith907
Copy link
Contributor

stansmith907 commented Oct 27, 2017

New elements for entity:

  • entityReference [{citation}]: "reference to a standard or external schema which describes the entity"
  • fieldSeparatorCharacter {character}: "the character which indicates the end of the data field contents"
  • numberOfHeaderLines {integer}: "the number of lines at the beginning of the file before the data content actually begins"
  • quoteCharacter {string}: "Character used to quote fields in the data representation so that the field delimiter can be used as part of the field value. This character is typically a single quote mark or double quote mark."

Rules:

  • entityReference array, optional
  • fieldSeparatorCharacter optional
  • numberOfHeaderLines optional
  • quoteCharacter optional

mdJson:

{
   "entity": [
      {
         "entityId": "",
         "commonName": "",
         "codeName": "",
         "alias": [],
         "definition": "",
         "entityReference": [],
         "primaryKeyAttributeCodeName": [],
         "index": [],
         "attribute": [],
         "foreignKey": [],
         "fieldSeparatorCharacter": ["x" , "tab"],
         "numberOfHeaderLines": 9,
         "quoteCharacter": ""
      }
   ]
}

FGDC mapping to distribution section
The items cannot be mapped from FGDC to mdTranslator because the Bio extension defines the entity structure inside distribution transfer option, outside of the FGDC entity section. I cannot reliably merge the two entity descriptions. However, I have added the Bio extension elements to mdTranslator and mdJson entity object. Further, the fieldSeparatorCharacter cannot be mapped from FGDC since it is associated at the attribute level rather than the entity.

<metadata>
  <distinfo>
    <stdorder>
      <nondig>option for obtaining non-digital data 1</nondig>
      <digform>
        <digtinfo>
          <asciistr>
            <recdel>\n</recdel>
            <numheadl>1</numheadl>
            <deschead>column names</deschead>
            <orienta>columnmajor</orienta>
            <casesens>N</casesens>
            <authent>12ad155ee845d5c4</authent>
            <quotech>"'"</quotech>
            <datafiel>
              <dfieldnm>field1</dfieldnm>
              <missingv>-1</missingv>
              <dfwidth>12</dfwidth>
              <dfwidthd>tab</dfwidthd>
            </datafiel>
            <datafiel>
              <dfieldnm>field2</dfieldnm>
              <missingv>-1</missingv>
              <dfwidthd>;</dfwidthd>
            </datafiel>
          </asciistr>
        </digtinfo>
      </digform>
    </stdorder>
  </distinfo>
</metadata>

FGDC mapping to entity attribute information section - entity overview
entityReference is mapped to/from 'entity-attribute detail citation eadetcit.

<metadata>
  <eainfo>
    <overview>
      <eaover>entity and attribute overview 1</eaover>
      <eadetcit>entity and attribute citation 1</eadetcit>
      <eadetcit>entity and attribute citation 2</eadetcit>
    </overview>
  </eainfo>
</metadata>

ISO 19110-2 mapping:
The entityReference will be placed in an entity section (featureType) as follows:

<gfc:featureType>
  <gfc:FC_FeatureType id="entity_001">
    <gfc:typeName>
      <gco:LocalName>agency</gco:LocalName>
    </gfc:typeName>
    <gfc:definition>
      <gco:CharacterString>Organizations providing...</gco:CharacterString>
    </gfc:definition>
    <gfc:code>
      <gco:CharacterString>AGENCY</gco:CharacterString>
    </gfc:code>
    <gfc:isAbstract>
      <gco:Boolean>false</gco:Boolean>
    </gfc:isAbstract>
    <gfc:definitionReference>
      <gfc:FC_DefinitionReference>
        <gfc:definitionSource>
          <gfc:FC_DefinitionSource>
            <gfc:source>
              <gmd:CI_Citation>
                <gmd:title>title</gmd:title>
                <gmd:date></gmd:date>
              </gmd:CI_Citation>
            </gfc:source>
          </gfc:FC_DefinitionSource>
        </gfc:definitionSource>
      </gfc:FC_DefinitionReference>
    </gfc:definitionReference>
  </gfc:FC_FeatureType>
</gfc:featureType>
@stansmith907 stansmith907 added the enhancement Improve or modify an existing feature label Oct 27, 2017
@jlblcc jlblcc added this to the 2.4.0 milestone Dec 22, 2017
jlblcc added a commit that referenced this issue Dec 27, 2017
@jlblcc jlblcc closed this as completed Dec 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve or modify an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants