From 33df05e99a86603344679e2ef6edc02ef4cfcf85 Mon Sep 17 00:00:00 2001 From: Gregg Kellogg Date: Sat, 1 Apr 2017 09:07:52 -0700 Subject: [PATCH] Repo supports literal_equality if all sources support literal_equality. --- lib/rdf/aggregate_repo.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/rdf/aggregate_repo.rb b/lib/rdf/aggregate_repo.rb index 08f3408..d5229be 100644 --- a/lib/rdf/aggregate_repo.rb +++ b/lib/rdf/aggregate_repo.rb @@ -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