Class Year
java.lang.Object
org.eclipse.rdf4j.query.algebra.evaluation.function.datetime.Year
- All Implemented Interfaces:
Function
The SPARQL built-in
Function YEAR, as defined in
SPARQL Query Language for RDF- Author:
- Jeen Broekstra
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(ValueFactory valueFactory, Value... args) Evaluate the function over the supplied input arguments, using the suppliedValueFactoryto produce the result.getURI()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Function
evaluate, mustReturnDifferentResultModifier and TypeMethodDescriptiondefault Valueevaluate(TripleSource tripleSource, Value... args) Evaluate the function over the supplied input arguments.default booleanUUID() and STRUUID() must return a different result for each invocation.
-
Constructor Details
-
Year
public Year()
-
-
Method Details
-
getURI
-
evaluate
public Literal evaluate(ValueFactory valueFactory, Value... args) throws ValueExprEvaluationException Description copied from interface:FunctionEvaluate the function over the supplied input arguments, using the suppliedValueFactoryto produce the result.- Specified by:
evaluatein interfaceFunction- Parameters:
valueFactory- aValueFactoryto use for producing the function result.args- the function input arguments.- Returns:
- the function result value.
- Throws:
ValueExprEvaluationException
-