Sha256: 28746ba00c2a3ba6fbeca6f4920117f456c64e95a1badd8fcded2db9005af095
Contents?: true
Size: 785 Bytes
Versions: 5
Compression:
Stored size: 785 Bytes
Contents
module SPARQL; module Algebra class Operator ## # The SPARQL relational `!=` (not equal) comparison operator. # # @see https://www.w3.org/TR/sparql11-query/#OperatorMapping # @see https://www.w3.org/TR/sparql11-query/#func-RDFterm-equal class NotEqual < Equal NAME = :'!=' ## # Returns `true` if the operands are not equal; returns `false` # otherwise. # # @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 def apply(term1, term2) RDF::Literal(super.false?) end end # NotEqual end # Operator end; end # SPARQL::Algebra
Version data entries
5 entries across 5 versions & 1 rubygems