Class: ODRL::Profile::LeftOperand

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:myLeftOperand a odrl:LeftOperand .



321
322
323
324
325
326
327
# File 'lib/odrl/profile/builder.rb', line 321

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