Sha256: 7787bbf4c75334fb3d4ff8fdf9ada143851c92d85d5ae2147df8d0f0a83ac49d
Contents?: true
Size: 1.3 KB
Versions: 1
Compression:
Stored size: 1.3 KB
Contents
# unpack metadata extension information # Reader - ADIwg JSON V1 to internal data structure # History: # Stan Smith 2013-11-22 original script # Stan Smith 2014-05-15 modified for JSON schema 0.4.0 module Md_MetadataExtension def self.addExtensionISObio() intMetadataClass = InternalMetadata.new intMetaExt = intMetadataClass.newMetadataExtension intContactRole = intMetadataClass.newRespParty # extension online information intMetaExt[:onLineResource] = {} # extension entity information intMetaExt[:extName] = 'Taxonomy System' intMetaExt[:extShortName] = 'TaxonSys' intMetaExt[:extDefinition] = 'Documentation of taxonomic sources, procedures, and treatments' intMetaExt[:obligation] = 'optional' intMetaExt[:dataType] = 'class' intMetaExt[:maxOccurrence] = '1' intMetaExt[:parentEntities] << 'MD_Identification' intMetaExt[:rule] = 'New Metadata section as a class to MD_Identification' intMetaExt[:rationales] << 'The set of data elements contained within this class element ' + 'represents an attempt to provide better documentation of ' + 'taxonomic sources, procedures, and treatments.' # source information intContactRole[:contactId] = 'ADIwgBio' intContactRole[:roleName] = 'resourceProvider' intMetaExt[:extSources] << intContactRole return intMetaExt end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adiwg-mdtranslator-0.10.2 | lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_metadataExtension.rb |