class SPARQL::Algebra::Operator::Asc
The SPARQL
ascending sort operator.
@example
(prefix ((foaf: <http://xmlns.com/foaf/0.1/>)) (project (?name) (order ((asc ?name)) (bgp (triple ?x foaf:name ?name)))))
Constants
- NAME
Public Instance Methods
evaluate(bindings, **options)
click to toggle source
Returns the evaluation of its operand. Default comparison is in ascending order. Ordering is applied in {Order}.
@param [RDF::Query::Solution] bindings
a query solution containing zero or more variable bindings
@param [Hash{Symbol => Object}] options ({})
options passed from query
@return [RDF::Term]
# File lib/sparql/algebra/operator/asc.rb, line 27 def evaluate(bindings, **options) operand(0).evaluate(bindings, depth: options[:depth].to_i + 1, **options) end