Sha256: a554450cb3e4f2033ff0fadf78cdc9fb04be03c8116b0e1dc78467eb3c431e76

Contents?: true

Size: 662 Bytes

Versions: 1

Compression:

Stored size: 662 Bytes

Contents

require "rdf-vocab"

module Ddr
  module Datastreams
    class AdminMetadataDatastream < ActiveFedora::NtriplesRDFDatastream

      property :permanent_id, predicate: Ddr::Vocab::Asset.permanentId
      property :permanent_url, predicate: Ddr::Vocab::Asset.permanentUrl
      property :original_filename, predicate: RDF::Vocab::PREMIS::V1.hasOriginalName
      property :workflow_state, predicate: Ddr::Vocab::Asset.workflowState

      Ddr::Vocab::Roles.each do |term|
        property Ddr::Metadata::Vocabulary.term_name(Ddr::Vocab::Roles, term), 
                 predicate: term do |index|
          index.as :symbol
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ddr-models-1.8.0 lib/ddr/datastreams/admin_metadata_datastream.rb