Class Alignment

java.lang.Object
org.aksw.commons.util.Pair<List<org.apache.jena.sparql.expr.Expr>,List<org.apache.jena.sparql.expr.Expr>>
org.aksw.jena_sparql_api.views.Alignment
All Implemented Interfaces:
Map.Entry<List<org.apache.jena.sparql.expr.Expr>,List<org.apache.jena.sparql.expr.Expr>>

public class Alignment extends org.aksw.commons.util.Pair<List<org.apache.jena.sparql.expr.Expr>,List<org.apache.jena.sparql.expr.Expr>>
The following optimizations are currently implemented: - f(argsA) = f(argsB) -> argA_0 = argB_0 && ... && argA_n = argB_n Currently this rule is always applied, however it is only true for deterministic, side-effect free functions. It will cause pitfalls if anyone every tried something like rand() = rand(): This will return always true (i think - but maybe not) The following optimizations are about to be implemented: - Inverse function on variables op(f(expr_with_vars), const) -> op(expr_with_var, f^-1(const)) (if f^-1 exists) op can be =, <, > ... (not sure right now whether the shift in semantics is acceptable) Also note, that this optization currently does not take function indexes into account. So if there was in index f(x) our optimization would be wrong in thinking that using x alone is better.
Author:
Claus Stadler
  • Constructor Summary

    Constructors
    Constructor
    Description
    Alignment(List<org.apache.jena.sparql.expr.Expr> key, List<org.apache.jena.sparql.expr.Expr> value)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     

    Methods inherited from class org.aksw.commons.util.Pair

    create, equals, getKey, getValue, hashCode, setValue, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Alignment

      public Alignment(List<org.apache.jena.sparql.expr.Expr> key, List<org.apache.jena.sparql.expr.Expr> value)
  • Method Details

    • isSameSize

      public boolean isSameSize()