Skip to content

Commit

Permalink
Repo supports literal_equality if all sources support literal_equality.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Apr 1, 2017
1 parent 6aebfbf commit 33df05e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/rdf/aggregate_repo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ def named(name)
# @see RDF::Enumerable#supports?
def supports?(feature)
case feature.to_sym
when :graph_name then @options[:with_graph_name]
when :validity then @options.fetch(:with_validity, true)
when :graph_name then @options[:with_graph_name]
when :validity then @options.fetch(:with_validity, true)
when :literal_equality then sources.all? {|s| s.supports?(:literal_equality)}
else false
end
end
Expand Down

0 comments on commit 33df05e

Please sign in to comment.