Sha256: e7dc6e54eaac7f21a9dee6fd6364a42042343a4b8a7a5d2c3ad9892949c5ca4d

Contents?: true

Size: 1.06 KB

Versions: 11

Compression:

Stored size: 1.06 KB

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

      property :research_help_contact, predicate: Ddr::Vocab::Contact.assistance

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ddr-models-2.0.1 lib/ddr/datastreams/administrative_metadata_datastream.rb
ddr-models-2.0.0 lib/ddr/datastreams/administrative_metadata_datastream.rb
ddr-models-2.0.0.rc6 lib/ddr/datastreams/administrative_metadata_datastream.rb
ddr-models-2.0.0.rc5 lib/ddr/datastreams/administrative_metadata_datastream.rb
ddr-models-2.0.0.rc4 lib/ddr/datastreams/administrative_metadata_datastream.rb
ddr-models-2.0.0.rc3 lib/ddr/datastreams/administrative_metadata_datastream.rb
ddr-models-2.0.0.rc2 lib/ddr/datastreams/administrative_metadata_datastream.rb
ddr-models-1.17.1 lib/ddr/datastreams/administrative_metadata_datastream.rb
ddr-models-2.0.0.rc1 lib/ddr/datastreams/administrative_metadata_datastream.rb
ddr-models-2.0.0.pre.5 lib/ddr/datastreams/administrative_metadata_datastream.rb
ddr-models-1.17.0 lib/ddr/datastreams/administrative_metadata_datastream.rb