lib/ldp/container/basic.rb in ldp-0.4.1 vs lib/ldp/container/basic.rb in ldp-0.5.0

- old
+ new

@@ -3,21 +3,12 @@ def members return enum_for(:members) unless block_given? contains.each { |k, x| yield x } end - def contains - @contains ||= Hash[get.graph.query(predicate: Ldp.contains).map do |x| - [x.object, Ldp::Resource::RdfSource.new(client, x.object, contained_graph(x.object))] - end] - end - - private - def contained_graph subject - g = RDF::Graph.new - get.graph.query(subject: subject) do |stmt| - g << stmt - end - g + protected + + def interaction_model + RDF::Vocab::LDP.BasicContainer end end end