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

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



839
840
841
# File 'vendor/bundler/ruby/2.6.0/bundler/gems/sparql-client-8b2723ff9503/lib/sparql/client/query.rb', line 839

def initialize(*args)
  super
end

Instance Method Details

#to_sObject



843
844
845
# File 'vendor/bundler/ruby/2.6.0/bundler/gems/sparql-client-8b2723ff9503/lib/sparql/client/query.rb', line 843

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