@@ -87,25 +87,13 @@ def self.load(url, graph_name: nil, **options, &block)
8787 end
8888
8989 ##
90- # @overload initialize(graph_name, options)
91- # @param [RDF::Resource] graph_name
92- # The graph_name from the associated {RDF::Queryable} associated
93- # with this graph as provided with the `:data` option
94- # (only for {RDF::Queryable} instances supporting
95- # named graphs).
96- # @param [Hash{Symbol => Object}] options
97- # @option options [RDF::Queryable] :data (RDF::Repository.new)
98- # Storage behind this graph.
99- # @deprecated This form is deprecated in version 2.0.
100- #
101- # @overload initialize(graph_name: nil, data: nil)
102- # @param [RDF::Resource] graph_name
103- # The graph_name from the associated {RDF::Queryable} associated
104- # with this graph as provided with the `:data` option
105- # (only for {RDF::Queryable} instances supporting
106- # named graphs).
107- # @param [RDF::Queryable] :data (RDF::Repository.new)
108- # Storage behind this graph.
90+ # @param [RDF::Resource] graph_name
91+ # The graph_name from the associated {RDF::Queryable} associated
92+ # with this graph as provided with the `:data` option
93+ # (only for {RDF::Queryable} instances supporting
94+ # named graphs).
95+ # @param [RDF::Queryable] :data (RDF::Repository.new)
96+ # Storage behind this graph.
10997 #
11098 # @raise [ArgumentError] if a `data` does not support named graphs.
11199 # @note
@@ -115,12 +103,7 @@ def self.load(url, graph_name: nil, **options, &block)
115103 # graphs which are named, but the name is not a property of the graph.
116104 # @yield [graph]
117105 # @yieldparam [Graph]
118- def initialize ( *args , graph_name : nil , data : nil , **options , &block )
119- unless args . empty?
120- warn "[DEPRECATION] Graph#initialize now uses keyword arguments. Called from #{ Gem . location_of_caller . join ( ':' ) } "
121- graph_name ||= args . first
122- end
123-
106+ def initialize ( graph_name : nil , data : nil , **options , &block )
124107 @graph_name = case graph_name
125108 when nil then nil
126109 when RDF ::Resource then graph_name
0 commit comments