class RDF::N3::Algebra::Str::EqualIgnoringCase
Constants
- NAME
- URI
Public Instance Methods
Source
# File lib/rdf/n3/algebra/str/equal_ignoring_case.rb, line 30 def apply(left, right) RDF::Literal(left.to_s == right.to_s) end
True iff the subject string is the same as object string ignoring differences between upper and lower case.
@param [RDF::Literal] left
a literal
@param [RDF::Literal] right
a literal
@return [RDF::Literal::Boolean]
Source
# File lib/rdf/n3/algebra/str/equal_ignoring_case.rb, line 18 def input_operand RDF::N3::List.new(values: operands) end
Both subject and object are inputs.
Source
# File lib/rdf/n3/algebra/str/equal_ignoring_case.rb, line 13 def resolve(resource, position:) RDF::Literal(resource.to_s.downcase) if resource.term? end
Resolves inputs as lower-case strings.
@param [RDF::Term] resource @param [:subject, :object] position @return [RDF::Literal] @see RDF::N3::ResourceOperator#evaluate