Sha256: 986b2651cce4c57b2c57c12d0cda03c71e660ffda3585bb042c21f107548e487
Contents?: true
Size: 777 Bytes
Versions: 27
Compression:
Stored size: 777 Bytes
Contents
module ActiveFedora class LdpResource < Ldp::Resource::RdfSource def build_empty_graph graph_class.new(subject_uri) end def self.graph_class ActiveTriples::Resource end def graph_class self.class.graph_class end ## # @param [RDF::Graph] original_graph The graph returned by the LDP server # @return [RDF::Graph] A graph striped of any inlined resources present in the original 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 end end
Version data entries
27 entries across 27 versions & 1 rubygems