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

Inherits:
SPARQL::Client::QueryElement show all
Defined in:
vendor/bundler/ruby/2.4.0/bundler/gems/sparql-client-f33da4e3600f/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



746
747
748
# File 'vendor/bundler/ruby/2.4.0/bundler/gems/sparql-client-f33da4e3600f/lib/sparql/client/query.rb', line 746

def initialize(*args)
  super
end

Instance Method Details

#to_sObject



750
751
752
# File 'vendor/bundler/ruby/2.4.0/bundler/gems/sparql-client-f33da4e3600f/lib/sparql/client/query.rb', line 750

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