Class: ODRL::Profile::Prohibition

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) ⇒ Prohibition

Returns a new instance of Prohibition.



247
248
249
# File 'lib/odrl/profile/builder.rb', line 247

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

Instance Method Details

#build(repo:) ⇒ Object



251
252
253
254
255
# File 'lib/odrl/profile/builder.rb', line 251

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

  super(repo: repo)
end