class ActiveFedora::LdpResource

def build_graph(original_graph)

Returns:
  • (RDF::Graph) - A graph striped of any inlined resources present in the original

Parameters:
  • original_graph (RDF::Graph) -- The graph returned by the LDP server
def build_graph(original_graph)
  inlined_resources = get.graph.query(predicate: Ldp.contains).map { |x| x.object }
  # ActiveFedora always wants to copy the resources to a new graph because it
  # forces a cast to FedoraRdfResource
  graph_without_inlined_resources(original_graph, inlined_resources)
end