Class: RDF::N3::Algebra::Str::NotGreaterThan

Inherits:
GreaterThan show all
Defined in:
lib/rdf/n3/algebra/str/not_greater_than.rb

Overview

True iff the string is NOT greater than the object when ordered according to Unicode(tm) code order.

Constant Summary collapse

NAME =
:strNotGreaterThan
URI =
RDF::N3::Str.notGreaterThan

Instance Attribute Summary

Attributes included from Enumerable

#existentials, #universals

Instance Method Summary collapse

Methods inherited from GreaterThan

#input_operand, #resolve

Methods inherited from ResourceOperator

#as_literal, #execute, #input_operand, #resolve, #valid?

Methods included from Builtin

#each, #evaluate, #hash, #input_operand, #rank, #to_uri

Instance Method Details

#apply(left, right) ⇒ RDF::Literal::Boolean

Parameters:

Returns:

  • (RDF::Literal::Boolean)


13
14
15
# File 'lib/rdf/n3/algebra/str/not_greater_than.rb', line 13

def apply(left, right)
  RDF::Literal(super != RDF::Literal::TRUE)
end