lib/sparql/algebra/expression.rb in sparql-3.1.2 vs lib/sparql/algebra/expression.rb in sparql-3.1.3

- old
+ new

@@ -18,16 +18,9 @@ # @yield [expression] # @yieldparam [SPARQL::Algebra::Expression] expression # @yieldreturn [void] ignored # @return [Expression] def self.parse(sse, **options, &block) - begin - require 'sxp' # @see https://rubygems.org/gems/sxp - rescue LoadError - abort "SPARQL::Algebra::Expression.parse requires the SXP gem (hint: `gem install sxp')." - end - require 'sparql/algebra/sxp_extensions' - sse = sse.encode(Encoding::UTF_8) sxp = SXP::Reader::SPARQL.new(sse) do |reader| # Set base_uri if we have one reader.base_uri = options[:base_uri] if options[:base_uri] end