Sha256: 009411a73228aed738537707c389fbe39b879e4b8f99c1aac9d63f8d47974d31
Contents?: true
Size: 1.05 KB
Versions: 31
Compression:
Stored size: 1.05 KB
Contents
module SPARQL; module Algebra class Operator ## # The SPARQL relational `<=` (less than or equal) comparison operator. # # @example # (<= ?x ?y) # # @see http://www.w3.org/TR/rdf-sparql-query/#OperatorMapping # @see http://www.w3.org/TR/xpath-functions/#func-compare # @see http://www.w3.org/TR/xpath-functions/#func-numeric-less-than # @see http://www.w3.org/TR/xpath-functions/#func-boolean-less-than # @see http://www.w3.org/TR/xpath-functions/#func-dateTime-less-than class LessThanOrEqual < Compare NAME = :<= ## # Returns `true` if the first operand is less than or equal to the # second operand; returns `false` otherwise. # # @param [RDF::Literal] left # a literal # @param [RDF::Literal] right # a literal # @return [RDF::Literal::Boolean] `true` or `false` # @raise [TypeError] if either operand is not a literal def apply(left, right) super end end # LessThanOrEqual end # Operator end; end # SPARQL::Algebra
Version data entries
31 entries across 31 versions & 1 rubygems