Class: SPARQL::Client::Query::Filter

Inherits:
SPARQL::Client::QueryElement show all
Defined in:
vendor/bundler/ruby/2.5.0/bundler/gems/sparql-client-c651818e506f/lib/sparql/client/query.rb

Overview

Allow Filters to be

Instance Attribute Summary

Attributes inherited from SPARQL::Client::QueryElement

#elements

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Filter

Returns a new instance of Filter



817
818
819
# File 'vendor/bundler/ruby/2.5.0/bundler/gems/sparql-client-c651818e506f/lib/sparql/client/query.rb', line 817

def initialize(*args)
  super
end

Instance Method Details

#to_sObject



821
822
823
# File 'vendor/bundler/ruby/2.5.0/bundler/gems/sparql-client-c651818e506f/lib/sparql/client/query.rb', line 821

def to_s
  "FILTER(#{elements.join(' ')})"
end