Class: ODRL::Profile::Permission

Inherits:
Rule show all
Defined in:
lib/odrl/profile/builder.rb

Instance Attribute Summary

Attributes inherited from Rule

#disjoints

Attributes inherited from ProfileElement

#definition, #label, #parent_class, #parent_property, #uri

Instance Method Summary collapse

Constructor Details

#initialize(disjoints: [], **args) ⇒ Permission

Returns a new instance of Permission.



235
236
237
# File 'lib/odrl/profile/builder.rb', line 235

def initialize(disjoints: [], **args)
  super(disjoints: [ODRLV.Prohibition, ODRLV.Duty].concat(disjoints), **args)
end

Instance Method Details

#build(repo:) ⇒ Object



239
240
241
242
243
# File 'lib/odrl/profile/builder.rb', line 239

def build(repo:)
  ODRL::Profile::Builder.triplify(uri, RDFS.subClassOf, ODRLV.Permission, repo)

  super(repo: repo)
end