Sha256: 34eb1424d1afa28897b05f614c5251dcc025b3618ae41ecbff5eccf200fff564
Contents?: true
Size: 858 Bytes
Versions: 4
Compression:
Stored size: 858 Bytes
Contents
module RDF::N3::Algebra::Math ## # 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 https://www.w3.org/TR/xpath-functions/#func-numeric-equal class NotEqualTo < EqualTo NAME = :mathNotEqualTo URI = RDF::N3::Math.notEqualTo ## # 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#== def apply(term1, term2) RDF::Literal(super != RDF::Literal::TRUE) end end end
Version data entries
4 entries across 4 versions & 1 rubygems