lib/active_triples/rdf_source.rb in active-triples-0.9.0 vs lib/active_triples/rdf_source.rb in active-triples-0.10.0

- old
+ new

@@ -89,17 +89,17 @@ # # @see RDF::Graph # @todo move this logic out to a Builder? def initialize(*args, &block) resource_uri = args.shift unless args.first.is_a?(Hash) + @rdf_subject = get_uri(resource_uri) if resource_uri unless args.first.is_a?(Hash) || args.empty? set_persistence_strategy(ParentStrategy) persistence_strategy.parent = args.shift else set_persistence_strategy(RepositoryStrategy) end @graph = RDF::Graph.new(*args, &block) - set_subject!(resource_uri) if resource_uri reload # Append type to graph if necessary. Array.wrap(self.class.type).each do |type|