Interface Function
-
- All Known Implementing Classes:
Abs,BinaryFunction,BooleanCast,BooleanCast,ByteCast,CastFunction,Ceil,Concat,Contains,DateTimeCast,DateTimeCast,Day,DecimalCast,DecimalCast,DoubleCast,DoubleCast,EncodeForUri,FloatCast,FloatCast,Floor,HashFunction,Hours,IntCast,IntegerCast,IntegerCast,IntegerCastFunction,IsTripleFunction,LongCast,LowerCase,MD5,Minutes,Month,NegativeIntegerCast,NonNegativeIntegerCast,NonPositiveIntegerCast,Now,PositiveIntegerCast,Rand,Replace,Round,Seconds,SHA1,SHA256,SHA384,SHA512,ShortCast,StatementFunction,StrAfter,StrBefore,StrDt,StrEnds,StringCast,StringCast,StrLang,StrLen,StrStarts,STRUUID,Substring,Timezone,TripleObjectFunction,TriplePredicateFunction,TripleSubjectFunction,Tz,UnaryFunction,UnsignedByteCast,UnsignedIntCast,UnsignedLongCast,UnsignedShortCast,UpperCase,UUID,Year
public interface FunctionA query function, which can be a built-in function in the query language, or a custom function as documented in the SPARQL 1.1 Query Language Recommendation.- Author:
- Arjohn Kampman, Jeen Broekstra
- See Also:
FunctionRegistry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description org.eclipse.rdf4j.model.Valueevaluate(org.eclipse.rdf4j.model.ValueFactory valueFactory, org.eclipse.rdf4j.model.Value... args)Deprecated.since 3.3.0.default org.eclipse.rdf4j.model.Valueevaluate(TripleSource tripleSource, org.eclipse.rdf4j.model.Value... args)Evaluate the function over the supplied input arguments.StringgetURI()default booleanmustReturnDifferentResult()UUID() and STRUUID() must return a different result for each invocation.
-
-
-
Method Detail
-
getURI
String getURI()
-
evaluate
@Deprecated org.eclipse.rdf4j.model.Value evaluate(org.eclipse.rdf4j.model.ValueFactory valueFactory, org.eclipse.rdf4j.model.Value... args) throws ValueExprEvaluationException
Deprecated.since 3.3.0. Useevaluate(TripleSource, Value...)instead. A reference to a ValueFactory can be retrieved usingTripleSource.getValueFactory()if needed.Evaluate the function over the supplied input arguments, using the suppliedValueFactoryto produce the result.- Parameters:
valueFactory- aValueFactoryto use for producing the function result.args- the function input arguments.- Returns:
- the function result value.
- Throws:
ValueExprEvaluationException
-
evaluate
default org.eclipse.rdf4j.model.Value evaluate(TripleSource tripleSource, org.eclipse.rdf4j.model.Value... args) throws ValueExprEvaluationException
Evaluate the function over the supplied input arguments.- Parameters:
tripleSource- theTripleSourceused in the query evaluation. This can be used to access the current state of the store.args- the function input arguments.- Returns:
- the function result value.
- Throws:
ValueExprEvaluationException- Since:
- 3.3.0
-
mustReturnDifferentResult
default boolean mustReturnDifferentResult()
UUID() and STRUUID() must return a different result for each invocation.- Returns:
- if each invocation must return a different result.
-
-