Igor Nakshin created RYA-271:
--------------------------------
Summary: rya.indexing IndexingFunctionRegistry does not allow
custom functions
Key: RYA-271
URL: https://issues.apache.org/jira/browse/RYA-271
Project: Rya
Issue Type: Bug
Affects Versions: 3.2.10
Reporter: Igor Nakshin
Priority: Blocker
Using a custom SPARQL function results in null FUNCTION_TYPE and null return
value from IndexingFunctionRegistry.getResultVarFromFunctionCall.
Suggest modifying the function to use findBinaryResultVar if type is null,
otherwise proceed as now.
public static Var getResultVarFromFunctionCall(URI function, List<ValueExpr>
args) {
FUNCTION_TYPE type = SEARCH_FUNCTIONS.get(function);
if (type == null) {
return findBinaryResultVar(args);
}
else {
switch(type) {
case GEO:
return findBinaryResultVar(args);
case FREETEXT:
return findLiteralResultVar(args);
case TEMPORAL:
return findBinaryResultVar(args);
default:
return null;
}
}
}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)