java.lang.Object
fr.mines_stetienne.ci.sparql_generate.normalizer.aggregates.ExprNormalizer

public class ExprNormalizer extends Object
Class used to normalize expressions and nodes, and output an expression that is equivalent
Author:
Maxime Lefrançois
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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: