Sha256: bb87b024c21cab9de39f2f32fe1bb0f2741e90b16b02b65d5fcd712f8f185f98

Contents?: true

Size: 809 Bytes

Versions: 4

Compression:

Stored size: 809 Bytes

Contents

module RDF::N3::Algebra::Math
  ##
  # True iff the subject is a string representation of a number which  is NOT LESS than a number of which the object is a string representation.
  #
  # @see https://www.w3.org/TR/xpath-functions/#func-numeric-less-than
  class NotLessThan < LessThan
    NAME = :mathNotLessThan
    URI = RDF::N3::Math.notLessThan

    ##
    # Returns TRUE if `term1` is greater 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#==
    def apply(term1, term2)
      RDF::Literal(super != RDF::Literal::TRUE)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rdf-n3-3.3.0 lib/rdf/n3/algebra/math/not_less_than.rb
rdf-n3-3.2.1 lib/rdf/n3/algebra/math/not_less_than.rb
rdf-n3-3.2.0 lib/rdf/n3/algebra/math/not_less_than.rb
rdf-n3-3.1.2 lib/rdf/n3/algebra/math/not_less_than.rb