Class: ODRL::Profile::PartyFunction
- Inherits:
-
ProfileElement
- Object
- ProfileElement
- ODRL::Profile::PartyFunction
- 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:myFunctionRole rdfs:subPropertyOf odrl:function.
Methods inherited from ProfileElement
Constructor Details
This class inherits a constructor from ODRL::Profile::ProfileElement
Instance Method Details
#build(repo:) ⇒ Object
ex:myFunctionRole rdfs:subPropertyOf odrl:function
286 287 288 289 290 291 292 293 |
# File 'lib/odrl/profile/builder.rb', line 286 def build(repo:) ODRL::Profile::Builder.triplify(uri, RDF.type, RDF.Property, repo) ODRL::Profile::Builder.triplify(uri, RDF.type, OWL.ObjectProperty, repo) ODRL::Profile::Builder.triplify(uri, RDF.type, SKOS.Concept, repo) ODRL::Profile::Builder.triplify(uri, RDFS.subPropertyOf, ODRLV.function, repo) ODRL::Profile::Builder.triplify(uri, RDFS.label, label, repo) ODRL::Profile::Builder.triplify(uri, SKOS.defintion, definition, repo) end |