class RDF::N3::Algebra::Math::NotEqualTo

True iff the subject is a string representation of a number which is NOT EQUAL to a number of which the object is a string representation.

@see www.w3.org/TR/xpath-functions/#func-numeric-equal

Constants

NAME
URI

Public Instance Methods

apply(term1, term2) click to toggle source

The math:notEqualTo operator takes a pair of strings or numbers and determines if they are not the same numeric value.

@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::EqualTo#apply
# File lib/rdf/n3/algebra/math/not_equal_to.rb, line 21
def apply(term1, term2)
  RDF::Literal(super != RDF::Literal::TRUE)
end