Class: ODRL::Profile::Operator
- Inherits:
-
ProfileElement
- Object
- ProfileElement
- ODRL::Profile::Operator
- 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
-
#build(repo:) ⇒ Object
ex:myOperator a odrl:Operator .
Methods inherited from ProfileElement
Constructor Details
This class inherits a constructor from ODRL::Profile::ProfileElement
Instance Method Details
#build(repo:) ⇒ Object
ex:myOperator a odrl:Operator .
341 342 343 344 345 |
# File 'lib/odrl/profile/builder.rb', line 341 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 |