Class: ODRL::Profile::AssetRelation

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:myRelation rdfs:subPropertyOf odrl:relation .



272
273
274
275
276
277
278
279
280
281
# File 'lib/odrl/profile/builder.rb', line 272

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.relation, repo)
  ODRL::Profile::Builder.triplify(uri, RDFS.label, label, repo)
  ODRL::Profile::Builder.triplify(uri, SKOS.defintion, definition, repo)
  ODRL::Profile::Builder.triplify(uri, RDFS.domain, ODRLV.Rule, repo)
  ODRL::Profile::Builder.triplify(uri, RDFS.range, ODRLV.Asset, repo)
end