Module: ActiveFedora::RdfObject
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/active_fedora/rdf_object.rb
Instance Method Summary collapse
Instance Method Details
#graph ⇒ Object
10 11 12 13 |
# File 'lib/active_fedora/rdf_object.rb', line 10 def graph @graph ||= RDF::Graph.new @graph end |
#initialize(graph, subject = nil) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/active_fedora/rdf_object.rb', line 16 def initialize(graph, subject=nil) subject ||= RDF::Node.new @graph = graph @rdf_subject = subject insert_type_assertion end |