Update contribution guidelines to add business rules for creating new ISO code lists.
The following guidelines apply to ISO specified codelists (e.g. codelists.html, codelists.xml). The ISO "CI_DateTypeCode" codelist will be used for the following examples.
Specifying attributes for ISO maintained codelists
codelistName
- Identify the desired ISO codelist name (e.g. "CI_DateTypeCode")
- Remove class identifier prefix and "Code" suffix (CI_DateTypeCode -> DateType)
- Convert shortened name to lowerCamelCase and add "iso_" prefix (DateType -> iso_dateType)
- CI_DateTypeCode ->
codelistName = iso_dateType
- Use the newly created
codelistName as the file name (e.g. iso_dateType.yml, iso_dateType.json)
source
- Use value "ISO"
sourceName
- Use the ISO specified codelist name. See the
<cat:name> element from codelists.xml snippet below:
<cat:codelistItem>
<cat:CT_Codelist id="CI_DateTypeCode">
<cat:identifier>
<gco:ScopedName codeSpace="http://standards.iso.org/iso/19115/-3/cit/1.0">CI_DateTypeCode</gco:ScopedName>
</cat:identifier>
<cat:name>
<gco:ScopedName codeSpace="http://standards.iso.org/iso/19115/-3/cit/1.0">CI_DateTypeCode</gco:ScopedName>
</cat:name>
sourceName = "CI_DateTypeCode"
description
- Use the ISO specified codelist description
<cat:definition>
<gco:CharacterString>identification of when a given event occurred</gco:CharacterString>
</cat:definition>
description = "identification of when a given event occurred"
Update contribution guidelines to add business rules for creating new ISO code lists.
The following guidelines apply to ISO specified codelists (e.g. codelists.html, codelists.xml). The ISO "CI_DateTypeCode" codelist will be used for the following examples.
Specifying attributes for ISO maintained codelists
codelistNamecodelistName= iso_dateTypecodelistNameas the file name (e.g. iso_dateType.yml, iso_dateType.json)sourcesourceName<cat:name>element from codelists.xml snippet below:sourceName= "CI_DateTypeCode"descriptiondescription= "identification of when a given event occurred"