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

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



920
921
922
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sparql-client-464d3f76cfd5/lib/sparql/client/query.rb', line 920

def initialize(*args)
  super
end

Instance Method Details

#to_sObject



924
925
926
# File 'vendor/bundler/ruby/3.3.0/bundler/gems/sparql-client-464d3f76cfd5/lib/sparql/client/query.rb', line 924

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