Class: ODRL::Profile::RightOperand

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

Instance Attribute Summary

Attributes inherited from ProfileElement

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

Instance Method Summary collapse

Methods inherited from ProfileElement

#initialize

Constructor Details

This class inherits a constructor from ODRL::Profile::ProfileElement

Instance Method Details

#build(repo:) ⇒ Object

ex:myRightOperand a odrl:RightOperand .



332
333
334
335
336
# File 'lib/odrl/profile/builder.rb', line 332

def build(repo:)
  ODRL::Profile::Builder.triplify(uri, RDF.type, ODRLV.RightOperand, repo)
  ODRL::Profile::Builder.triplify(uri, RDFS.label, label, repo)
  ODRL::Profile::Builder.triplify(uri, SKOS.defintion, definition, repo)
end