Class: ODRL::Profile::Operator

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

Instance Attribute Summary

Attributes inherited from ProfileElement

#definition, #label, #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:myOperator a odrl:Operator .



179
180
181
182
183
# File 'lib/odrl/profile/builder.rb', line 179

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