Skip to content

Commit f1078ba

Browse files
doriantaylorgkellogg
authored andcommitted
made RDF::Changeset#query actually produce an RDF::Query in case anybody genuinely needed one for any reason
1 parent 1153ee5 commit f1078ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rdf/changeset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def delete_statement(statement)
159159
# This simply returns its argument as an array in order to trick
160160
# {RDF::Mutable#delete} into working.
161161
def query stmt
162-
[stmt]
162+
RDF::Query.new RDF::Query::Pattern.from(stmt)
163163
end
164164

165165
undef_method :load, :update, :clear

0 commit comments

Comments
 (0)