class RDF::N3::Algebra::Math::NotGreaterThan
True iff the subject is a string representation of a number which is NOT greater than the number of which the object is a string representation.
@see www.w3.org/TR/xpath-functions/#func-numeric-greater-than
Constants
- NAME
- URI
Public Instance Methods
apply(term1, term2)
click to toggle source
Returns TRUE if ‘term1` is less than or equal to `term2`.
@param [RDF::Term] term1
an RDF term
@param [RDF::Term] term2
an RDF term
@return [RDF::Literal::Boolean] ‘true` or `false` @raise [TypeError] if either operand is not an RDF
term or operands are not comperable
@see RDF::Term#==
Calls superclass method
RDF::N3::Algebra::Math::GreaterThan#apply
# File lib/rdf/n3/algebra/math/not_greater_than.rb, line 21 def apply(term1, term2) RDF::Literal(super != RDF::Literal::TRUE) end