Module: Adiwg_MetadataExtension
- Defined in:
- lib/adiwg/mdtranslator/readers/adiwgJson/modules_0.9.0/module_metadataExtension.rb
Overview
History: Stan Smith 2013-11-22 original script
Stan Smith 2014-05-15 modified for JSON schema 0.4.0
Class Method Summary collapse
Class Method Details
.addExtensionISObio ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/adiwg/mdtranslator/readers/adiwgJson/modules_0.9.0/module_metadataExtension.rb', line 10 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 |