Sha256: 038b91c5bf15b96713b0224746ca88d8f5758efb9df2cc95fcb9565b124e520a

Contents?: true

Size: 1001 Bytes

Versions: 3

Compression:

Stored size: 1001 Bytes

Contents

require "rdf/vocab"

module Ddr
  module Datastreams
    class AdministrativeMetadataDatastream < MetadataDatastream

      property :permanent_id, predicate: Ddr::Vocab::Asset.permanentId

      property :permanent_url, predicate: Ddr::Vocab::Asset.permanentUrl

      property :original_filename, predicate: Ddr::Vocab::PREMIS.hasOriginalName do |index|
        index.as :stored_sortable
      end

      property :workflow_state, predicate: Ddr::Vocab::Asset.workflowState

      Ddr::Vocab::Roles::LEGACY_ROLES.each do |legacy_role|
        property legacy_role, predicate: Ddr::Vocab::Roles.send(legacy_role) do |index|
          index.as :symbol
        end
      end

      property :access_role, predicate: Ddr::Vocab::Roles.hasRole, class_name: Ddr::Auth::Roles::Role

      property :local_id, predicate: RDF::Vocab::Identifiers.local

      property :admin_set, predicate: Ddr::Vocab::Asset.adminSet

      property :display_format, predicate: Ddr::Vocab::Display.format

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ddr-models-2.0.0.pre.4 lib/ddr/datastreams/administrative_metadata_datastream.rb
ddr-models-2.0.0.pre.3 lib/ddr/datastreams/administrative_metadata_datastream.rb
ddr-models-2.0.0.pre.2 lib/ddr/datastreams/administrative_metadata_datastream.rb