class SPARQL::Algebra::Operator::Now
The SPARQL
logical `now` operator.
Returns an XSD dateTime value for the current query execution. All calls to this function in any one query execution must return the same value. The exact moment returned is not specified.
@example
(prefix ((xsd: <http://www.w3.org/2001/XMLSchema#>)) (ask (filter (= (datatype ?n) xsd:dateTime) (extend ((?n (now))) (bgp)))))
Constants
- NAME
Public Instance Methods
apply(**options)
click to toggle source
Returns an XSD dateTime value for the current query execution. All calls to this function in any one query execution must return the same value. The exact moment returned is not specified.
@return [RDF::Literal::Double] random value
# File lib/sparql/algebra/operator/now.rb, line 26 def apply(**options) RDF::Literal(DateTime.now) end