module RDF::Term
Extensions for `RDF::Term`.
Public Instance Methods
aggregate?()
click to toggle source
# File lib/sparql/algebra/extensions.rb, line 258 def aggregate?; false; end
evaluate(bindings, **options)
click to toggle source
@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/extensions.rb, line 254 def evaluate(bindings, **options) self end
ndvars()
click to toggle source
Return the non-destinguished variables contained within this operator @return [Array<RDF::Query::Variable>]
# File lib/sparql/algebra/extensions.rb, line 263 def ndvars vars.reject(&:distinguished?) end
optimize(**options)
click to toggle source
A duplicate of this term.
@return [RDF::Term] a copy of `self` @see SPARQL::Algebra::Expression#optimize
# File lib/sparql/algebra/extensions.rb, line 279 def optimize(**options) optimized = self.deep_dup optimized.lexical = nil if optimized.respond_to?(:lexical=) optimized end
vars()
click to toggle source
Return the variables contained within this operator @return [Array<RDF::Query::Variable>]
# File lib/sparql/algebra/extensions.rb, line 270 def vars variable? ? [self] : [] end