Class ExprNormalizer
java.lang.Object
fr.mines_stetienne.ci.sparql_generate.normalizer.aggregates.ExprNormalizer
Class used to normalize expressions and nodes, and output an expression that
is equivalent
- Author:
- Maxime Lefrançois
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.sparql.expr.Exprnormalize(org.apache.jena.graph.Node n) get a normalized expression for the node given as input, returns either the expression of a expression node (Node_Extended), or a NodeValueNode whose node is the input node.org.apache.jena.sparql.expr.Exprnormalize(org.apache.jena.sparql.expr.Expr expr) normalizes an expression, substituting every instance of NodeValueNode whose node is a Node_Extended with the associated expression of that Node_Extended.
-
Constructor Details
-
ExprNormalizer
-
-
Method Details
-
normalize
public org.apache.jena.sparql.expr.Expr normalize(org.apache.jena.sparql.expr.Expr expr) normalizes an expression, substituting every instance of NodeValueNode whose node is a Node_Extended with the associated expression of that Node_Extended.- Parameters:
expr- expression to normalize- Returns:
-
normalize
public org.apache.jena.sparql.expr.Expr normalize(org.apache.jena.graph.Node n) get a normalized expression for the node given as input, returns either the expression of a expression node (Node_Extended), or a NodeValueNode whose node is the input node.- Parameters:
n- node (potentially expression node) to get an expression from- Returns:
-