Module: ActiveFedora::RdfObject
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/active_fedora/rdf_object.rb
Instance Method Summary collapse
Instance Method Details
#get_values(subject, predicate) ⇒ Object
23 24 25 26 |
# File 'lib/active_fedora/rdf_object.rb', line 23 def get_values(subject, predicate) predicate = find_predicate(predicate) unless predicate.kind_of? RDF::URI return TermProxy.new(@graph, @subject, predicate) end |
#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 |