lib/hydra/works/services/characterization_service.rb
# Get given source into form that can be passed to Hydra::FileCharacterization
# Use Hydra::FileCharacterization to extract metadata (an OM XML document)
# Get the terms (and their values) from the extracted metadata
# Assign the values of the terms to the properties of the object
Get given source into form that can be passed to Hydra::FileCharacterization
Use Hydra::FileCharacterization to extract metadata (an OM XML document)
Get the terms (and their values) from the extracted metadata
Assign the values of the terms to the properties of the object
Get given source into form that can be passed to Hydra :: FileCharacterization Use Hydra :: FileCharacterization to extract metadata ( an OM XML document ) Get the terms ( and their values ) from the extracted metadata Assign the values of the terms to the properties of the object
def characterize
      content = source_to_content
      extracted_md = extract_metadata(content)
      terms = parse_metadata(extracted_md)
      store_metadata(terms)
    end
def characterize content = source_to_content extracted_md = extract_metadata ( content ) terms = parse_metadata ( extracted_md ) store_metadata ( terms ) end
Get given source into form that can be passed to Hydra::FileCharacterization
Use Hydra::FileCharacterization to extract metadata (an OM XML document)
Get the terms (and their values) from the extracted metadata
Assign the values of the terms to the properties of the object
Get given source into form that can be passed to Hydra :: FileCharacterization Use Hydra :: FileCharacterization to extract metadata ( an OM XML document ) Get the terms ( and their values ) from the extracted metadata Assign the values of the terms to the properties of the object