com.hp.hpl.jena.sparql.expr
Class ExprLib
java.lang.Object
com.hp.hpl.jena.sparql.expr.ExprLib
public class ExprLib
- extends Object
ExprLib
public ExprLib()
replaceAggregateByVariable
public static Expr replaceAggregateByVariable(Expr expr)
- transform an expression that may involve aggregates into one that just uses the variable for the aggregate
replaceAggregateByVariable
public static ExprList replaceAggregateByVariable(ExprList exprs)
- transform expressions that may involve aggregates into one that just uses the variable for the aggregate
isAssignmentSafeEquality
public static boolean isAssignmentSafeEquality(Expr expr)
- Decide whether an expression is safe for using a a graph substitution.
Need to be careful about value-like tests when the graph is not
matched in a value fashion.
isAssignmentSafeEquality
public static boolean isAssignmentSafeEquality(Expr expr,
boolean graphHasStringEquality,
boolean graphHasNumercialValueEquality)
- Parameters:
graphHasStringEquality
- True if the graph triple matching equates xsd:string and plain literalgraphHasNumercialValueEquality
- True if the graph triple matching equates numeric values
Licenced under the Apache License, Version 2.0