Sha256: d31b428cfa77f77e80e326c5c516aef69b9ef886e81cc6517768c5627e5bd239

Contents?: true

Size: 916 Bytes

Versions: 23

Compression:

Stored size: 916 Bytes

Contents

module Ddr
  module Vocab
    class Roles < RDF::StrictVocabulary("http://repository.lib.duke.edu/vocab/roles/")

      LEGACY_ROLES = [:administrator, :editor, :contributor, :downloader]

      term :Role,
        label: "Role",
        comment: "An assertion of a role granted to an agent."

      property :hasRole,
        label: "Has Role",
        comment: "Asserts the granting of a role on the subject to an agent."

      property :type,
        label: "Type",
        comment: "The type of role granted to the agent."

      property :agent,
        label: "Agent",
        comment: "The agent to whom the role is granted."

      property :scope,
        label: "Scope",
        comment: "The scope within which the role applies."

      #
      # Deprecated terms
      #

      LEGACY_ROLES.each do |legacy_role|
        term legacy_role, label: legacy_role.to_s.capitalize
      end

    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
ddr-models-2.0.1 lib/ddr/vocab/roles.rb
ddr-models-2.0.0 lib/ddr/vocab/roles.rb
ddr-models-2.0.0.rc6 lib/ddr/vocab/roles.rb
ddr-models-2.0.0.rc5 lib/ddr/vocab/roles.rb
ddr-models-2.0.0.rc4 lib/ddr/vocab/roles.rb
ddr-models-2.0.0.rc3 lib/ddr/vocab/roles.rb
ddr-models-2.0.0.rc2 lib/ddr/vocab/roles.rb
ddr-models-1.17.1 lib/ddr/vocab/roles.rb
ddr-models-2.0.0.rc1 lib/ddr/vocab/roles.rb
ddr-models-2.0.0.pre.5 lib/ddr/vocab/roles.rb
ddr-models-1.17.0 lib/ddr/vocab/roles.rb
ddr-models-2.0.0.pre.4 lib/ddr/vocab/roles.rb
ddr-models-2.0.0.pre.3 lib/ddr/vocab/roles.rb
ddr-models-1.16.2 lib/ddr/vocab/roles.rb
ddr-models-2.0.0.pre.2 lib/ddr/vocab/roles.rb
ddr-models-2.0.0.pre.1 lib/ddr/vocab/roles.rb
ddr-models-1.16.1 lib/ddr/vocab/roles.rb
ddr-models-1.16.0 lib/ddr/vocab/roles.rb
ddr-models-1.15.0 lib/ddr/vocab/roles.rb
ddr-models-1.14.2 lib/ddr/vocab/roles.rb