lib/active_triples/persistable.rb in active-triples-0.10.2 vs lib/active_triples/persistable.rb in active-triples-0.11.0

- old
+ new

@@ -13,9 +13,22 @@ include RDF::Enumerable include RDF::Mutable ## + # This gives the {RDF::Graph} which represents the current state of this + # resource. + # + # @return [RDF::Graph] the underlying graph representation of the + # `RDFSource`. + # + # @see http://www.w3.org/TR/2014/REC-rdf11-concepts-20140225/#change-over-time + # RDF Concepts and Abstract Syntax comment on "RDF source" + def graph + persistence_strategy.graph + end + + ## # @see RDF::Enumerable.each def each(*args) graph.each(*args) end