Method: Ldp::Resource::RdfSource#graph
- Defined in:
- lib/ldp/resource/rdf_source.rb
#graph ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/ldp/resource/rdf_source.rb', line 31 def graph @graph ||= begin if subject.nil? build_empty_graph else filtered_graph(response_graph) end rescue Ldp::NotFound # This is an optimization that lets us avoid doing HEAD + GET # when the object exists. We just need to handle the 404 case build_empty_graph end end |