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

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



840
841
842
# File 'vendor/bundler/ruby/2.7.0/bundler/gems/sparql-client-72464f4ec182/lib/sparql/client/query.rb', line 840

def initialize(*args)
  super
end

Instance Method Details

#to_sObject



844
845
846
# File 'vendor/bundler/ruby/2.7.0/bundler/gems/sparql-client-72464f4ec182/lib/sparql/client/query.rb', line 844

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