Sha256: cb0d54e5e4f104da648e96d718fc0c71a3c90bef22720c3a6b2322996b1fd8d9
Contents?: true
Size: 891 Bytes
Versions: 9
Compression:
Stored size: 891 Bytes
Contents
module Hydra::Works::Characterization module Base extend ActiveSupport::Concern included do # Apply the base schema. This will add properties defined in the schema. apply_schema BaseSchema, AlreadyThereStrategy # Parser config is :term => :property. # Use this config to override the default behavior of value assignment which is: # value is assigned to the property with the same name as the characterization term. # use parser_config.merge! for subsequent modules. class_attribute :parser_mapping self.parser_mapping = { exif_tool_version: :exif_version, file_mime_type: :mime_type } # Parser class is an OM terminology. # It maps the characterization tool's output xml to terms and values. class_attribute :parser_class self.parser_class = FitsDatastream end end end
Version data entries
9 entries across 9 versions & 1 rubygems